Tweaked ChangeLog
[WebKit-https.git] / WebCore / ChangeLog
1 2006-06-08  Justin Garcia  <justin.garcia@apple.com>
2
3         Reviewed by levi
4         
5         <http://bugzilla.opendarwin.org/show_bug.cgi?id=4468>
6         Implement execCommand(Insert{Un}OrderedList)
7
8         * WebCore.xcodeproj/project.pbxproj: Added InsertListCommand.{h,cpp} to the project.
9         * dom/Position.cpp:
10         (WebCore::hasRenderedNonAnonymousDescendantsWithHeight): 
11         Added. A block with height is only a candidate if this is false.  This should fix the problems
12         getting carets into empty blocks.
13         (WebCore::Position::inRenderedContent):
14         * editing/AppendNodeCommand.cpp:
15         (WebCore::AppendNodeCommand::doApply):
16         * editing/CompositeEditCommand.cpp:
17         (WebCore::hasARenderedDescendant):
18         (WebCore::CompositeEditCommand::prune): A node can have DOM descendants that are rendered, yet
19         have a renderer with no descendants.  Fixed the pruning rule to avoid removing a node like this.
20         (WebCore::CompositeEditCommand::mergeIdenticalElements): Put the two elements next to
21         each other if they aren't already, as a convenience.
22         (WebCore::CompositeEditCommand::moveParagraph): Added code to preserve the current selection.
23         (WebCore::CompositeEditCommand::moveParagraphs): Ditto. 
24         * editing/CompositeEditCommand.h:
25         * editing/DeleteSelectionCommand.cpp:
26         (WebCore::DeleteSelectionCommand::initializeStartEnd): Expansion for special elements should
27         continue to happen until it is no longer possible.
28         (WebCore::DeleteSelectionCommand::handleGeneralDelete): The code to adjust the start node
29         wouldn't always avoid removing the start block.
30         * editing/InsertListCommand.cpp: Added.
31         (WebCore::InsertListCommand::fixOrphanedListChild): Puts a list item that isn't inside a list
32         into a list.
33         (WebCore::InsertListCommand::InsertListCommand):
34         (WebCore::InsertListCommand::modifyRange):
35         (WebCore::InsertListCommand::doApply):
36         * editing/InsertListCommand.h: Added.
37         (WebCore::InsertListCommand::):
38         * editing/InsertNodeBeforeCommand.cpp:
39         (WebCore::InsertNodeBeforeCommand::doApply):
40         * editing/InsertParagraphSeparatorCommand.cpp:
41         * editing/JSEditor.cpp:
42         * editing/TextIterator.cpp:
43         (WebCore::TextIterator::advance): Don't handle a node if the end of the range used to create the 
44         iterator ends at the start of that node.
45         * editing/VisiblePosition.cpp:
46         (WebCore::VisiblePosition::next):
47         (WebCore::VisiblePosition::previous):
48         * editing/VisiblePosition.h: 
49         Added a parameter to next/previous that can prevent them from leaving the current editable region.
50         * editing/htmlediting.cpp:
51         (WebCore::highestAncestor):
52         (WebCore::enclosingList):
53         (WebCore::enclosingListChild):
54         (WebCore::outermostEnclosingList):
55         (WebCore::createListItemElement):
56         * editing/htmlediting.h:
57         * page/Frame.cpp:
58         (WebCore::Frame::selectionListState): Added.
59         * page/Frame.h:
60
61 2006-06-08  David Harrison  <harrison@apple.com>
62
63         Reviewed by Geoff and John.
64
65         <rdar://problem/4558879> -[DOMCSSPrimitiveValue setStringValue:] throws an exception (12)
66         
67         Problem was the primitive value was getting reset to a generic state before the parameter
68         check that relies on that state.
69
70         Test: fast/dom/setPrimitiveValue.html
71
72         * css/CSSPrimitiveValue.cpp:
73         (WebCore::CSSPrimitiveValue::setFloatValue):
74         (WebCore::CSSPrimitiveValue::setStringValue):
75         Move parameter checks ahead of call to cleanup().
76
77 2006-06-08  Alice Liu  <alice.liu@apple.com>
78
79         Reviewed by justin.
80
81         - fixed <rdar://problem/4578115> support Range.isPointInRange
82         - fixed <rdar://problem/4578123> support Range.comparePoint
83
84         * dom/Range.cpp:
85         (WebCore::Range::isPointInRange):
86         added implementation
87         (WebCore::Range::comparePoint):
88         added implementation
89         * dom/Range.h:
90         added prototypes
91         * dom/Range.idl:
92         added bindings
93
94 2006-06-08  Darin Adler  <darin@apple.com>
95
96         Reviewed by justin.
97
98         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8616
99           REGRESSION: TinyMCE: Crash on Undo
100
101         * bridge/mac/WebCoreFrameBridge.mm:
102         (-[WebCoreFrameBridge getInnerNonSharedNode:innerNode:URLElement:atPoint:allowShadowContent:]):
103         Changed to call nodeInfoAtPoint directly.
104         (-[WebCoreFrameBridge _visiblePositionForPoint:]): Changed to call nodeInfoAtPoint directly.
105         Also added code to convert coordinates so it works for points that are in nodes in subframes.
106
107         * page/Frame.cpp:
108         (WebCore::Frame::setMark): Added assertions to catch if we attempt to set selection
109         endpoints in another document.
110         (WebCore::Frame::setSelection): Ditto.
111
112 2006-06-07  Justin Garcia  <justin.garcia@apple.com>
113
114         Reviewed by levi
115         
116         Fixed some comments and removed an unused variable.
117
118         * editing/CompositeEditCommand.cpp:
119         (WebCore::CompositeEditCommand::removeBlockPlaceholder):
120         Don't remove a br if it isn't at the start of a block, since
121         it isn't really a "block placeholder".
122         * editing/DeleteSelectionCommand.cpp:
123         (WebCore::DeleteSelectionCommand::initializePositionData):
124         (WebCore::DeleteSelectionCommand::mergeParagraphs):
125         (WebCore::DeleteSelectionCommand::doApply):
126         * editing/InsertLineBreakCommand.cpp:
127         (WebCore::InsertLineBreakCommand::doApply):
128         * editing/ReplaceSelectionCommand.cpp:
129         (WebCore::ReplaceSelectionCommand::doApply):
130         (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
131         * editing/htmlediting.cpp:
132
133 2006-06-07  David Hyatt  <hyatt@apple.com>
134
135         Add support for custom highlighting.  This is all ifdefed to be Mac-only.
136
137         Reviewed by justin
138
139         * WebCore.xcodeproj/project.pbxproj:
140         * bridge/mac/FrameMac.h:
141         * bridge/mac/FrameMac.mm:
142         (WebCore::FrameMac::paintCustomHighlight):
143         * bridge/mac/WebCoreFrameBridge.h:
144         * platform/mac/ClipboardMac.h:
145         * rendering/InlineTextBox.cpp:
146         (WebCore::InlineTextBox::paint):
147         (WebCore::InlineTextBox::paintCustomHighlight):
148         * rendering/InlineTextBox.h:
149
150 2006-06-07  Adele Peterson  <adele@apple.com>
151
152         Reviewed by Hyatt 
153
154         Added support for cross-platform resize property.
155
156         * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
157         already cache this info when we handle mouse down and mouse up.
158         * platform/mac/MouseEventMac.mm: ditto.
159         * platform/win/TemporaryLinkStubs.cpp: ditto.
160
161         * page/Frame.cpp:
162         (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
163         * page/FrameView.cpp:
164         (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
165         (WebCore::FrameView::mousePressed): Added.
166         * page/FrameView.h: Added mousePressed.
167
168         * rendering/RenderTheme.h: Removed paintResizeControl.
169         Since its not dependent on the theme, the layer can just paint this.
170         * rendering/RenderTheme.cpp: ditto.
171         * rendering/RenderLayer.cpp:
172         (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
173         (WebCore::RenderLayer::~RenderLayer): Deletes m_resizeCornerImage.
174         (WebCore::RenderLayer::resize): Uses passed in event instead of creating a new one.
175         (WebCore::RenderLayer::paintResizeControl): Now loads and paints the resize image.
176         * rendering/RenderLayer.h: Added m_resizeCornerImage.  Important to have one per-layer for when we allow
177         more customization.
178
179         * platform/cairo/ImageCairo.cpp:
180         (WebCore::Image::loadResource): Loads image resources.
181
182 2006-06-07  David Hyatt  <hyatt@apple.com>
183
184         Add support for a new property for custom highlighting.  This patch just
185         adds support for the parsing of the property.  It doesn't do anything yet.
186
187         Reviewed by beth
188
189         * css/CSSComputedStyleDeclaration.cpp:
190         (WebCore::):
191         (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
192         * css/CSSPropertyNames.in:
193         * css/cssparser.cpp:
194         (WebCore::CSSParser::parseValue):
195         * css/cssstyleselector.cpp:
196         (WebCore::CSSStyleSelector::applyProperty):
197         * rendering/render_style.cpp:
198         (WebCore::StyleCSS3InheritedData::StyleCSS3InheritedData):
199         (WebCore::StyleCSS3InheritedData::operator==):
200         (WebCore::RenderStyle::diff):
201         * rendering/render_style.h:
202         (WebCore::RenderStyle::highlight):
203         (WebCore::RenderStyle::setHighlight):
204         (WebCore::RenderStyle::initialHighlight):
205
206 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
207
208         Fix suggested by Rob Buis. Reviewed by Darin.
209
210         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9341
211           REGRESSION: Repro crash caused by style="font:bold"
212
213         Test: fast/css/font-shorthand-weight-only.html
214
215         * css/cssparser.cpp: (WebCore::CSSParser::parseFont): Revert part of the change
216         made to fix bug 5564.
217
218 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
219
220         Reviewed by Hyatt.
221
222         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9122
223           REGRESSION: Incorrect vertical position for text fields in a "display: table" block
224
225         Test: fast/table/text-field-baseline.html
226
227         * rendering/RenderTableCell.cpp:
228         (WebCore::RenderTableCell::baselinePosition): Do not descend into replaced objects, just
229         use their baseline.
230
231 2006-06-07  Mitz Pettel  <opendarwin.org@mitzpettel.com>
232
233         Reviewed by Hyatt (concept) and Darin (some coding details).
234
235         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4334
236           REGRESSION: Flickering when css-hover should change opacity on floating elements
237
238         Pixel test: fast/block/float/nopaint-after-layer-destruction.html
239
240         * rendering/RenderBlock.cpp:
241         (WebCore::RenderBlock::setPaintsFloatingObject): Added. Changes the noPaint flag
242         in the block's FloatingObject for the given float and calls setChildNeedsLayout.
243         * rendering/RenderBlock.h:
244         * rendering/RenderBox.cpp:
245         (WebCore::blockThatPaintsFloat): Added this helper function.
246         (WebCore::RenderBox::setStyle): Added. Calls to setPaintsFloatingObject when a float
247         gains or loses its layer.
248
249 2006-06-06  Mitz Pettel  <opendarwin.org@mitzpettel.com>
250
251         Reviewed by Hyatt.
252
253         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9121
254           REGRESSION: [Incremental Repaint] DHTML movement test failures
255
256         Test (repaint): fast/repaint/containing-block-position-change.html
257
258         * manual-tests/containing-block-position-chage.html: Added.
259         * rendering/RenderBlock.cpp:
260         (WebCore::RenderBlock::layoutBlock): Unrelated change: fixed typo from
261         the RenderCanvas to RenderView rename.
262         (WebCore::RenderBlock::removePositionedObject): Added a return immediately
263         after removing the object.
264         (WebCore::RenderBlock::removePositionedObjects): Added.
265         * rendering/RenderBlock.h:
266         * rendering/RenderObject.cpp:
267         (WebCore::RenderObject::setStyle): Added code to remove absolutely positioned
268         descendants from the positioned objects list of their current containing block
269         when they are going to have a new one as a result of this block's position
270         property changing. 
271         * rendering/RenderObject.h:
272         (WebCore::RenderObject::removePositionedObjects):
273
274 2006-06-06  Justin Garcia  <justin.garcia@apple.com>
275
276         Reviewed by levi
277
278         * dom/Node.cpp:
279         (WebCore::Node::firstDescendant): Added.
280         * dom/Node.h:
281         * dom/Range.cpp: Added a constructor that takes in Positions.
282         (WebCore::Range::Range):
283         * dom/Range.h:
284         * editing/CompositeEditCommand.cpp:
285         (WebCore::CompositeEditCommand::insertNodeAt): 
286         Let this function insert children into empty containers.  
287         Calls canHaveChildrenForEditing.
288         (WebCore::CompositeEditCommand::appendNode): Assert that the parent canHaveChildrenForEditing.
289         (WebCore::CompositeEditCommand::moveParagraph): Tell ReplaceSelectionCommand to select the 
290         replacement so that moveParagraph's callers have a valid destination after the move.
291         * editing/CompositeEditCommand.h: Moved removeFullySelectedNode to DeleteSelectionCommand,
292         made deleteTextFromNode virtual so that DeleteSelectionCommand can update it's endingPosition.
293         * editing/DeleteSelectionCommand.cpp:
294         (WebCore::DeleteSelectionCommand::DeleteSelectionCommand): 
295         Removed m_startNode, used a local variable.
296         (WebCore::DeleteSelectionCommand::initializeStartEnd): Fixed special element expansion.
297         (WebCore::DeleteSelectionCommand::initializePositionData): Compute the endingPosition up
298         front and keep track of it as nodes and text are removed.
299         (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete): Removed use of m_startNode.
300         (WebCore::DeleteSelectionCommand::removeFullySelectedNode): Moved from CompositeEditCommand.
301         Update m_endingPosition as we remove nodes.
302         (WebCore::DeleteSelectionCommand::deleteTextFromNode): 
303         Update m_endingPosition as we delete text.
304         (WebCore::DeleteSelectionCommand::handleGeneralDelete): Retain the start block.  Cleaned up.
305         (WebCore::DeleteSelectionCommand::mergeParagraphs): Recompute m_endingPosition since moveParagraph
306         clobbers the old one.
307         (WebCore::DeleteSelectionCommand::doApply): Fixed the logic for placeholder insertion after 
308         deletion. Make the placeholder decision before we do special element expansion.
309         * editing/DeleteSelectionCommand.h:
310         * editing/InsertLineBreakCommand.cpp:
311         (WebCore::InsertLineBreakCommand::doApply): Fixed a bug where an extra br was inserted and cleaned 
312         up the code.
313         * editing/InsertParagraphSeparatorCommand.cpp:
314         (WebCore::InsertParagraphSeparatorCommand::doApply): Deletion of the current selection should do
315         a merge (added a testcase).
316         * editing/RebalanceWhitespaceCommand.cpp:
317         (WebCore::RebalanceWhitespaceCommand::doUnapply): Remove/insert in a way that will trigger a layout.
318         * editing/ReplaceSelectionCommand.cpp:
319         (WebCore::ReplaceSelectionCommand::doApply): Ditto.
320         Merge even when the incoming fragment has interchange newlines (added a testcase).
321         Merge when the selection being pasted into starts at the start of a block because not
322         doing so would leave one or more hanging empty blocks.
323         (WebCore::ReplaceSelectionCommand::completeHTMLReplacement):
324         Rebalance whitespace using rebalanceWhitespaceAt because rebalanceWhitespace requires
325         a selection, and a selection can't be created until whitespace has been rebalanced.
326         * editing/htmlediting.cpp:
327         (WebCore::canHaveChildrenForEditing): Added.
328         * editing/htmlediting.h:
329
330 2006-06-06  Beth Dakin  <bdakin@apple.com>
331
332         Reviewed by Maciej.
333
334         Fix for <rdar://problem/4570475> Dashboard regions do not scale for 
335         non-1.0 scale factors.
336
337         No test cases added since this only affects non-1.0 resolution 
338         scale factors.
339
340         * platform/FloatRect.cpp:
341         (WebCore::FloatRect::scale): Added new function that scales a 
342         rect's origin and size by a given factor.
343         * platform/FloatRect.h:
344         * platform/IntRect.cpp:
345         (WebCore::IntRect::scale): Same as above.
346         * platform/IntRect.h:
347         * rendering/RenderObject.cpp:
348         (WebCore::RenderObject::addDashboardRegions): After the bounds and 
349         clip rects on the Dashboard region have been calculated, get the 
350         user space scale factor, and if it is not 1.0, scale the rects.
351
352 2006-06-06  John Sullivan  <sullivan@apple.com>
353
354         Reviewed by Darin Adler.
355         
356         - fixed <rdar://problem/4566087> REGRESSION (420+): Crash occurs while completing a find again query at 
357         http://www.apple.com/ (RenderObject::repaint(bool))
358         
359         This wasn't a new problem in the code, but the recent use of DocumentMarkers for find results brought
360         it to the surface.
361
362         * dom/Document.h:
363         Use a RefPtr<Node> instead of a Node* in MarkerMap, so the node will be retained
364
365         * dom/Document.cpp:
366         (WebCore::Document::removeMarkers):
367         Add a .get() to compensate for using RefPtr. Also, only repaint if this node actually had a marker
368         removed.
369         (WebCore::Document::repaintMarkers):
370         Add a .get() to compensate for using RefPtr.
371
372 2006-06-06  Anders Carlsson  <acarlsson@apple.com>
373
374         Reviewed by Darin.
375
376         http://bugzilla.opendarwin.org/show_bug.cgi?id=9325
377         clientWidth/clientHeight on document element in strict mode should return visible frame size
378         
379         * dom/Element.cpp:
380         (WebCore::Element::clientWidth):
381         (WebCore::Element::clientHeight):
382         If we're the document element, and in strict mode, return the visible size of the frame.
383         
384 2006-06-06  Anders Carlsson  <acarlsson@apple.com>
385
386         Reviewed by John.
387
388         * bridge/mac/WebCoreFrameBridge.h:
389         * bridge/mac/WebCoreFrameBridge.mm:
390         (-[WebCoreFrameBridge containsPlugins]):
391         * page/Frame.cpp:
392         (WebCore::Frame::containsPlugins):
393         * page/Frame.h:
394         Add containsPlugins function which returns whether a frame contains plugins
395         or not.
396
397 2006-06-05  Rob Buis  <buis@kde.org>
398
399         Reviewed by mjs.
400
401         http://bugzilla.opendarwin.org/show_bug.cgi?id=5564
402         'font' shorthand parsing should be more tolerant in quirks mode
403
404         When not in strict mode accept font property specifications
405         lacking a font family part, like WinIE does.
406
407         * css/cssparser.cpp:
408         (WebCore::CSSParser::parseFont):
409
410 2006-06-05  Beth Dakin  <bdakin@apple.com>
411
412         Reviewed by Darin.
413
414         Fix for <rdar://problem/4567520> Pixel cracks in weather widget at 
415         1.83 scaling
416
417         To prevent pixel cracks at non-integral scaling factors, before we 
418         call into CG to draw an image, we have to convert the rect to 
419         device space, round the origin and size to integers in device 
420         space, and convert back to user space. 
421         
422         No test cases added since this only affects non-1.0 resolution 
423         scale factors.
424
425         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
426         (WebCore::JSCanvasRenderingContext2D::drawImage): drawImage() now 
427         takes FloatRects.
428         * html/CanvasPattern.cpp:
429         (WebCore::patternCallback): Call roundToDevicePixels()
430         * html/CanvasRenderingContext2D.cpp:
431         (WebCore::CanvasRenderingContext2D::drawImage): drawImage() now 
432         takes FloatRects and call roundToDevicePixels()
433         * html/CanvasRenderingContext2D.h: drawImage() now takes 
434         FloatRects.
435         * html/HTMLCanvasElement.cpp:
436         (WebCore::HTMLCanvasElement::paint): Call roundToDevicePixels()
437         * kcanvas/device/quartz/QuartzSupport.mm:
438         (WebCore::debugDumpCGImageToFile): Same as above.
439         * platform/GraphicsContext.h:
440         * platform/cg/GraphicsContextCG.cpp:
441         (WebCore::GraphicsContext::roundToDevicePixels): Takes care of 
442         converting between coordinate spaces and rounding.
443         (WebCore::GraphicsContext::drawLineForText):
444         * platform/mac/ImageMac.mm: Call roundToDevicePixels()
445         (WebCore::Image::draw): Same as above.
446         (WebCore::drawPattern): Same as above.
447
448 2006-06-05  Geoffrey Garen  <ggaren@apple.com>
449
450         Reviewed by Darin.
451
452         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9310
453         Add missing DOM prototypes and other DOM cleanup
454
455         - Added the built-in object prototype to DOM objects that were missing it
456         so that primitive operations like == work on them.
457         
458         - Removed dead EventConstructor class (it's autogenerated now)
459         
460         - Changed HTML collections to describe themselves as "[object Collection]",
461         to match IE.
462         
463         - Made DOMCSSRule constructor private because JSCSSRule is the class
464         to use.
465         
466         * bindings/js/JSHTMLOptionElementConstructor.cpp:
467         (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
468         * bindings/js/kjs_css.cpp:
469         (KJS::DOMStyleSheet::DOMStyleSheet):
470         (KJS::DOMStyleSheetList::DOMStyleSheetList):
471         (KJS::DOMCSSRule::DOMCSSRule):
472         (KJS::DOMCSSValue::DOMCSSValue):
473         (KJS::toJS):
474         (KJS::DOMRGBColor::DOMRGBColor):
475         (KJS::getDOMRGBColor):
476         (KJS::DOMRect::DOMRect):
477         * bindings/js/kjs_css.h:
478         * bindings/js/kjs_dom.cpp:
479         (KJS::DOMNodeList::DOMNodeList):
480         (KJS::DOMExceptionConstructor::DOMExceptionConstructor):
481         (KJS::DOMExceptionConstructor::getOwnPropertySlot):
482         (KJS::):
483         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
484         * bindings/js/kjs_dom.h:
485         (KJS::DOMNamedNodesCollection::classInfo):
486         * bindings/js/kjs_events.h:
487         * bindings/js/kjs_html.cpp:
488         (KJS::):
489
490 2006-06-04  Darin Adler  <darin@apple.com>
491
492         Reviewed by Maciej.
493
494         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9031
495           REGRESSION: Crash when closing tabs on newegg.com
496         - removed a no-longer-needed Win32-specific workaround (not reviewed)
497
498         * bindings/js/kjs_window.cpp: Added include of <wtf/MathExtras.h>.
499         (WebCore::floatFeature): Remove WIN32 ifdef around isnan.
500         (WebCore::toJS): Add null checks.
501
502 2006-06-04  Darin Adler  <darin@apple.com>
503
504         Reviewed by Maciej.
505
506         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9176
507           REGRESSION: repro crash in WebCore::StringImpl::hash() const + 28 (StringImpl.h:67)
508
509         Test: fast/loader/link-no-URL.html
510
511         * loader/Cache.h:
512         * loader/Cache.cpp:
513         (WebCore::Cache::updateCacheStatus): Removed the URL parameter. Instead get the URL
514         from the cached object itself. Callers were passing in the wrong URL. When it was a
515         null string, it caused the crash mentioned above. But in other cases it may have
516         caused some other minor problems as well. Added an assert to catch cases where the
517         URL is null (should never happen).
518         (WebCore::Cache::requestImage): Changed call site to not pass URL.
519         (WebCore::Cache::requestStyleSheet): Ditto.
520         (WebCore::Cache::requestScript): Ditto.
521         (WebCore::Cache::requestXSLStyleSheet): Ditto.
522         (WebCore::Cache::requestXBLDocument): Ditto.
523
524 2006-06-04  Darin Adler  <darin@apple.com>
525
526         Reviewed by Adele.
527
528         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7291
529           REGRESSION: delete key does not work in isIndex fields
530
531         * platform/mac/WebCoreTextField.mm:
532         (inputElement): Added. Helper function to get the Objective-C wrapper for an
533         input element associated with a QTextEdit. Returns nil if the element is not
534         an input element. The bug was caused by passing a non-input element to the
535         delegate methods.
536         (-[KWQTextFieldController controlTextDidBeginEditing:]): Use inputElement
537         and don't make the delegate call at all if there is none. This happens only
538         with isindex elements; it's not important to have auto-fill work with those.
539         (-[KWQTextFieldController controlTextDidEndEditing:]): Ditto.
540         (-[KWQTextFieldController controlTextDidChange:]): Ditto.
541         (-[KWQTextFieldController control:textShouldEndEditing:]): Ditto.
542         (-[KWQTextFieldController control:textView:doCommandBySelector:]): Ditto.
543         (-[KWQTextFieldController textView:shouldHandleEvent:]): Ditto.
544
545 2006-06-04  Darin Adler  <darin@apple.com>
546
547         Reviewed by Anders.
548
549         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8995
550           memory leak in XPath code -- seen in layout tests
551         - fixed malloc error on exit due to SVGDOMImplementation destructor
552         - attempted to fix the no-XPATH_SUPPORT build by adding an #if
553         - changed around includes and header-file formatting in XPath code
554
555         * bindings/scripts/CodeGeneratorJS.pm: Include PlatformString.h when
556         generating the bindings for XPathNSResolver.
557
558         * dom/DOMImplementation.h: Added a virtual destructor for the benefit of
559         SVGDOMImplementation.
560         * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::~DOMImplementation): Added.
561
562         * ksvg2/svg/SVGDOMImplementation.h: Reformatted a bit, removed unneeded declarations.
563         * ksvg2/svg/SVGDOMImplementation.cpp:
564         (SVGDOMImplementation::~SVGDOMImplementation): Remove commented-out code.
565         (SVGDOMImplementation::createDocument): Remove a reference to KDOMView.
566
567         * xpath/XPathExpression.cpp:
568         (WebCore::XPathExpression::createExpression): Called release to avoid a tiny bit of
569         reference count churn.
570         (WebCore::XPathExpression::evaluate): Set exception code explicitly, because the code
571         relies on it being 0 when the function succeeds.
572
573         * xpath/XPathResult.cpp:
574         (WebCore::InvalidatingEventListener::InvalidatingEventListener): Removed
575         unneeded target node data member.
576         (WebCore::XPathResult::XPathResult): Updated for enum name changes and
577         InvalidatingEventListener name change. Added an assertion.
578
579         * xpath/impl/XPathFunctions.h: Removed the FunctionLibrary class. Changed the parameter
580         for createFunction to be a String instead of char*.
581         * xpath/impl/XPathFunctions.cpp: Got rid of local implementation of "round", and
582         used <wtf/MathExtras.h> instead. Also removed unused Interval::asString. Marked all
583         the Interval functions inline.
584         (WebCore::XPath::FunSubstring::doEvaluate): Use lround() instead of (long)round().
585         (WebCore::XPath::FunLang::doEvaluate): Removed some unneeded temporary String variables.
586         Use equalIgnoringCase() instead of calling lower() on two strings.
587         (WebCore::XPath::createFunctionMap): Changed how this works so that it's all local to
588         this function. Also removed a duplicate entry for the "last" function.
589         (WebCore::XPath::createFunction): Changed from a member function to a separate function.
590         Also changed so that if the args are not used in the function they are deleted.
591         This was one of the sources of the storage leaks.
592
593         * xpath/impl/XPathGrammar.y: Put XPATH_SUPPORT ifdef in. Replaced <num> with values of
594         specific types (numop, eqop). Updated for name change from AxisType to Axis. Changed
595         tokens that were declared as <str> but weren't actually using the string to be
596         declared with no type (PLUS, MINUS, OR, AND, DOTDOT, SLASHSLASH). Replaced use of
597         unregisterString, unregisterPredicateVector, and unregisterExpressionVector to
598         call delete functions instead that both unregister and delete. Change call sites for
599         createFunction to just use the String, removing the deprecatedString().latin1() call
600         that is no longer needed. Added a call to unregisterParseNode that was missing in the
601         "FilterExpr DescendantOrSelf RelativeLocationPath" production.
602
603         * xpath/impl/XPathParser.h: Changed Token to hold a String, Step::Axis, NumericOp::Opcode,
604         and EqTestOp::Opcode. The token ID number tells us which to use. Rearranged to put the private
605         part of the Parser class last. Moved a number of private things inside the cpp file.
606         * xpath/impl/XPathParser.cpp:
607         (WebCore::XPath::charCat): Made this a separate function, instead of a static member.
608         (WebCore::XPath::isAxisName): Ditto. Also put the global axis map inside the function,
609         allowing use of a map instead of a map pointer.
610         (WebCore::XPath::isNodeTypeName): Ditto.
611         (WebCore::XPath::Parser::isOperatorContext): Made this const.
612         (WebCore::XPath::Parser::makeTokenAndAdvance): Got rid of the "int" version of this.
613         By using the actual types, we can safely use overload instead.
614         (WebCore::XPath::Parser::lexString): Use substring() instead of deprecatedString().mid().
615         (WebCore::XPath::Parser::lexNumber): Ditto.
616         (WebCore::XPath::Parser::lexNCName): Changed to return a bool and a String instead of a
617         Token. This avoids the hack of using a token value of "ERROR + 1" which I found quite
618         confusing and is also a bit more explicit.
619         (WebCore::XPath::Parser::lexQName): Ditto.
620         (WebCore::XPath::Parser::nextTokenInternal): Changed to adapt to the changes above and
621         to remove some unneeded else statements.
622         (WebCore::XPath::Parser::lex): Changed the logic that sets up yylval to use the token ID
623         to decide what the type is. This matches what the grammar expects, and removes the need
624         for the token object to track which part of the value is good and the need to reserve 0
625         to have a special meaning.
626         (WebCore::XPath::Parser::parseStatement): Added code to delete the predicates and the
627         expressions in the predicate and expression vectors. Before, we were only deleting
628         the vectors. This was one of the sources of the storage leaks.
629         (WebCore::XPath::Parser::deletePredicateVector): Renamed, and changed to delete
630         the vector. However this does not delete the predicates in the vector.
631         (WebCore::XPath::Parser::deleteExpressionVector): Renamed, and changed to delete
632         the vector. However this does not delete the expressions in the vector.
633         (WebCore::XPath::Parser::deleteString): Renamed, and changed to delete the string.
634
635         * xpath/impl/XPathPredicate.h:
636         * xpath/impl/XPathPredicate.cpp:
637         (WebCore::XPath::NumericOp::NumericOp): Changed opcode from an int to an enum, and
638         renamed to "opcode" instead of "opCode".
639         (WebCore::XPath::NumericOp::doEvaluate): More of the same.
640         (WebCore::XPath::EqTestOp::EqTestOp): Ditto.
641         (WebCore::XPath::EqTestOp::doEvaluate): Ditto.
642         (WebCore::XPath::LogicalOp::LogicalOp): Ditto.
643         (WebCore::XPath::LogicalOp::shortCircuitOn): Ditto.
644         (WebCore::XPath::Predicate::evaluate): Removed an unneeded "new".
645
646         * xpath/impl/XPathStep.h:
647         * xpath/impl/XPathStep.cpp: Renamed AxisType to Axis. Removed unused axisAsString
648         function and default constructor.
649
650         * xpath/impl/XPathValue.h: Renamed the type constants to have a Value suffix,
651         instead of the underscore suffix used before on NodeVector and String.
652         * xpath/impl/XPathValue.cpp: Updated for name change. Added asserts.
653
654         * xpath/impl/XPathVariableReference.cpp: (WebCore::XPath::VariableReference::doEvaluate):
655         Use a reference instead of a pointer.
656
657         * xpath/XPathEvaluator.cpp:
658         * xpath/XPathEvaluator.h:
659         * xpath/XPathExpression.h:
660         * xpath/XPathNSResolver.cpp:
661         * xpath/XPathNSResolver.h:
662         * xpath/XPathNamespace.cpp:
663         * xpath/XPathNamespace.h:
664         * xpath/XPathResult.h:
665         * xpath/impl/XPathExpressionNode.cpp:
666         * xpath/impl/XPathExpressionNode.h:
667         * xpath/impl/XPathPath.cpp:
668         * xpath/impl/XPathPath.h:
669         * xpath/impl/XPathUtil.cpp:
670         * xpath/impl/XPathUtil.h:
671         * xpath/impl/XPathVariableReference.h:
672         Reformatted and changed includes around; no substantive changes.
673
674 2006-06-04  Sam Weinig  <sam.weinig@gmail.com>
675
676         Reviewed by hyatt.
677
678         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9213
679           Absolutely positioned objects with relatively positioned inline 
680           containing blocks are rendered incorrectly
681
682         * rendering/RenderBox.cpp:
683         (WebCore::RenderBox::containingBlockWidthForPositioned):
684         (WebCore::RenderBox::containingBlockHeightForPositioned):
685         (WebCore::RenderBox::calcAbsoluteHorizontal):
686         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
687         (WebCore::RenderBox::calcAbsoluteVertical):
688         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
689         (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
690         * rendering/RenderBox.h:
691
692 2006-06-04  Anders Carlsson  <acarlsson@apple.com>
693
694         Reviewed by Darin.
695
696         http://bugzilla.opendarwin.org/show_bug.cgi?id=9035
697         document.evaluate and createNSResolver miss on namespaced elements
698         
699         * xpath/XPathExpression.cpp:
700         (WebCore::XPathExpression::createExpression):
701         Pass the resolver to the parser.
702         
703         * xpath/XPathResult.cpp:
704         (WebCore::XPathResult::iterateNext):
705         Fix off-by-one error.
706         
707         * xpath/impl/XPathExpressionNode.h:
708         (WebCore::XPath::EvaluationContext::EvaluationContext):
709         Get rid of the resolver in the evaluation context.
710         
711         * xpath/impl/XPathGrammar.y:
712         Fetch the resolver from the parser. Only return the local name.
713         
714         * xpath/impl/XPathParser.cpp:        
715         (WebCore::XPath::Parser::parseStatement):
716         * xpath/impl/XPathParser.h:
717         (WebCore::XPath::Parser::resolver):
718         Update to hold the resolver.
719         
720         * xpath/impl/XPathStep.cpp:
721         (WebCore::XPath::Step::Step):
722         If the parser has stored a namespace URI, set it.
723         
724         (WebCore::XPath::Step::nodeTestMatches):
725         Check namespace URIs.
726         
727         * xpath/impl/XPathStep.h:
728         Add m_namespaceURI.
729
730 2006-06-03  Rob Buis  <buis@kde.org>
731
732         Reviewed by mjs.  Tweaked and landed by ddkilzer.
733
734         http://bugzilla.opendarwin.org/show_bug.cgi?id=7281
735         With java disabled wrong information is displayed.
736
737         Test: fast/replaced/applet-rendering-java-disabled.html
738
739         Match WinIE, render applet content inline when java is
740         disabled. 
741
742         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderEmptyApplet.cpp and RenderEmptyApplet.h.
743         * WebCore.xcodeproj/project.pbxproj: Ditto.
744         * WebCoreSources.bkl: Ditto.
745         * html/HTMLAppletElement.cpp:
746         (WebCore::HTMLAppletElement::createRenderer):
747         * rendering/RenderEmptyApplet.cpp: Removed.
748         * rendering/RenderEmptyApplet.h: Removed.
749
750 2006-06-03  Mitz Pettel  <opendarwin.org@mitzpettel.com>
751
752         Reviewed by Hyatt.
753
754         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9252
755           REGRESSION: Very odd roll-over issues (content disappearing)
756
757         Test: fast/dom/HTMLLinkElement/pending-stylesheet-count.html
758
759         * html/HTMLLinkElement.cpp:
760         (WebCore::HTMLLinkElement::~HTMLLinkElement): If the stylesheet was being
761         loaded, call stylesheetLoaded() on the document, to keep the pending stylesheet
762         count correct.
763
764 2006-06-03  Darin Adler  <darin@apple.com>
765
766         - fix Windows build
767
768         * platform/Widget.h: Moved scaleFactor function out of Apple-specific
769         section of the header into the common part.
770
771 2006-06-03  Beth Dakin  <bdakin@apple.com>
772
773         Reviewed by Darin.
774
775         Fix for <rdar://problem/4537274> HiDPI: <canvas> needs to apply a 
776         scale. <canvas> needs to scale itself along with whatever scale 
777         factor is set on the window.
778
779         * html/HTMLCanvasElement.cpp:
780         (WebCore::HTMLCanvasElement::createDrawingContext): Get the scale 
781         factor and use it to create a larger buffer and to scale the 
782         CGContext.
783         * platform/Widget.h: Provide a new function that returns the user 
784         space scale factor.
785         * platform/mac/WidgetMac.mm:
786         (WebCore::Widget::scaleFactor): Get the scale factor from the 
787         window and return it.
788         * platform/win/WidgetWin.cpp:
789         (WebCore::Widget::scaleFactor): Just return 1.0f for now.
790
791 2006-06-03  Steve Falkenburg  <sfalken@apple.com>
792
793         Reviewed by hyatt.
794
795         Don't send empty referrers.  Fixes image load fail on Spinneret default content.
796
797         * platform/win/TransferJobWin.cpp:
798         (WebCore::TransferJob::start):
799
800 2006-06-02  Adele Peterson  <adele@apple.com>
801
802         Reviewed by Darin. 
803
804         Windows theme for textareas.  Also made some formatting changes. 
805
806         * rendering/RenderThemeWin.cpp:
807         (WebCore::RenderThemeWin::supportsFocus):
808         (WebCore::RenderThemeWin::getThemeData):
809         (WebCore::RenderThemeWin::adjustButtonStyle):
810         (WebCore::RenderThemeWin::adjustTextFieldStyle):
811         (WebCore::RenderThemeWin::adjustTextAreaStyle):
812         (WebCore::RenderThemeWin::paintTextArea):
813         * rendering/RenderThemeWin.h:
814         (WebCore::RenderThemeWin::supportsHover):
815
816 2006-06-02  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
817
818         Reviewed by Hyatt, checked in by Tim H.
819
820         Explicitly run perl on *.pl files instead of relying
821         on Windows shell figuring out which program to run for
822         this extention.
823
824         * DerivedSources.make:
825
826 2006-06-02  David Carson  <dacarson@gmail.com>
827
828         Reviewed by Hyatt, checked in by Tim H.
829
830         fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=9115
831         Changed RenderLayer to only render layers that are not
832         totally transparent.
833
834         * rendering/RenderLayer.cpp
835         (RenderLayer::paintLayer):
836         Changed function to also check if the layer is totally transparent
837         and if it is, don't bother painting it.
838
839 2006-06-02  Rob Buis  <buis@kde.org>
840
841         Reviewed by Hyatt, checked in by Tim H.
842
843         http://bugzilla.opendarwin.org/show_bug.cgi?id=8223
844         WebKit fails to update style on element via DOM
845
846         Handle !important by detecting it and using a different code
847         path from normal priority.
848
849         * bindings/js/kjs_css.cpp:
850         (KJS::DOMCSSStyleDeclaration::put):
851         * css/CSSStyleDeclaration.cpp:
852         (WebCore::CSSStyleDeclaration::setProperty):
853         * css/CSSStyleDeclaration.h:
854
855 2006-06-02  Darin Adler  <darin@apple.com>
856         
857         Reviewed by Geoff, checked in by Maciej.
858         
859         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9236
860         REGRESSION: focus method does not work on some elements before they are laid out
861         
862         * dom/Element.cpp: (WebCore::Element::focus): Do the updateLayout call before
863         calling isFocusable, since isFocusable looks at the size of the renderer.
864         
865 2006-06-02  Steve Falkenburg  <sfalken@apple.com>
866
867         Reviewed by darin.
868
869         Platform hookup fixes
870
871         * bridge/win/FrameWin.cpp:
872         (WebCore::FrameWin::urlSelected):
873         (WebCore::FrameWin::setTitle):
874         (WebCore::FrameWin::setStatusBarText):
875         * bridge/win/FrameWin.h:
876         * platform/win/TemporaryLinkStubs.cpp:
877         (FrameWin::overrideMediaType):
878         * platform/win/TransferJobWin.cpp:
879         (WebCore::TransferJobWndProc):
880         (WebCore::TransferJob::start):
881         (WebCore::TransferJob::fileLoadTimer):
882         (WebCore::TransferJob::cancel):
883
884 2006-06-02  RĂ©mi Zara  <remi_zara@mac.com>
885
886         Reviewed by Hyatt.
887
888         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3379
889           attr(X) does not work
890
891         Test: fast/css-generated-content/016.html
892
893         * css/cssstyleselector.cpp:
894         (WebCore::CSSStyleSelector::canShareStyleWithElement): Don't share style
895         if the unique bit is set.
896         (WebCore::CSSStyleSelector::applyProperty): When applying the "attr" property,
897         set the unique bit and add to m_selectorAttrs.
898
899         * rendering/render_style.cpp: Did a lot of reformatting, and this one real change.
900         (WebCore::RenderStyle::RenderStyle): Initialize m_unique to false.
901
902         * rendering/render_style.h:
903         (WebCore::RenderStyle::unique): Added. Returns value of m_unique.
904         (WebCore::RenderStyle::setUnique): Added. Sets m_unique.
905
906 2006-06-02  David Kilzer  <ddkilzer@kilzer.net>
907
908         Reviewed by mjs.
909
910         http://bugzilla.opendarwin.org/show_bug.cgi?id=9183
911         Finish renaming of RenderCanvas to RenderView
912
913         * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView".
914
915 2006-06-01  Darin Adler  <darin@apple.com>
916
917         - try to fix Windows build
918
919         * bridge/win/FrameWin.cpp: Added include of Decoder.h.
920
921 2006-06-01  Darin Adler  <darin@apple.com>
922
923         Reviewed by Maciej.
924
925         - WebCore doesn't need to load WebKit images any more; removed code for that
926
927         * WebCore.exp: Removed WebCoreImageRendererFactory.
928         * WebCore.xcodeproj/project.pbxproj: Removed WebCoreImageRendererFactory.h/mm.
929         * bridge/mac/WebCoreFrameBridge.mm: Removed include of WebCoreImageRendererFactory.h.
930         * platform/mac/ImageMac.mm: Removed include of WebCoreImageRendererFactory.h.
931         * platform/mac/WebCoreImageRendererFactory.h: Removed.
932         * platform/mac/WebCoreImageRendererFactory.m: Removed.
933
934 2006-06-01  Sam Weinig  <sam.weinig@gmail.com>
935
936         Reviewed by Geoff, tweaked a bit by Darin.
937
938         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9064
939           Split dom2_traversalimpl.* into separate files (one class per file).
940
941         * WebCore.xcodeproj/project.pbxproj: Updated for new files.
942         * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
943
944         * bindings/js/kjs_traversal.h:
945         * bindings/scripts/CodeGeneratorJS.pm:
946         * bindings/objc/DOM.mm:
947         * dom/Document.cpp:
948         * dom/Document.h:
949         Updated includes.
950
951         * dom/NodeFilter.cpp: Added.
952         * dom/NodeFilter.h: Added.
953         * dom/NodeFilterCondition.cpp: Added.
954         * dom/NodeFilterCondition.h: Added.
955         * dom/NodeIterator.cpp: Added.
956         * dom/NodeIterator.h: Added.
957         * dom/Traversal.cpp: Added.
958         * dom/Traversal.h: Added.
959         * dom/TreeWalker.cpp: Added.
960         * dom/TreeWalker.h: Added.
961
962         * dom/dom2_traversalimpl.cpp: Removed.
963         * dom/dom2_traversalimpl.h: Removed.
964
965 2006-06-01  David Carson  <dacarson@gmail.com>
966
967         Reviewed by Maciej and Adele
968
969         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8398
970         REGRESSION: LABEL in OPTION element is clobbering display #TEXT
971         Patch provided by Darin.
972         
973         * rendering/RenderSelect.cpp
974         (RenderSelect::updateFromElement): 
975         Changed to use the containing text by default, and not the label text
976
977 2006-06-01  David Carson  <dacarson@gmail.com>
978
979         Reviewed by Hyatt.
980
981         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646
982         Correcting the value returned for window.screen.pixelDepth and
983         window.screen.colorDepth
984         
985         * platform/mac/ScreenMac.mm
986         (screenDepth): 
987         Changed to return the BitsPerPixelFromDepth rather than the WindowDepth
988
989 2006-06-01  Adele Peterson  <adele@apple.com>
990
991         Reviewed by Maciej.
992
993         Missed an initialization in my last checkin which caused too many
994         resizers to be drawn.
995
996         * rendering/render_style.cpp: (WebCore::resize):
997         Initialize resize to RESIZE_NONE.
998
999 2006-06-01  Dave Hyatt <hyatt@apple.com>
1000
1001         Implement form POST using WinINet.  This code is crazy... CRAZY!
1002
1003         * platform/TransferJobInternal.h:
1004         (WebCore::TransferJobInternal::TransferJobInternal):
1005         * platform/win/CookieJarWin.cpp:
1006         (WebCore::setCookies):
1007         (WebCore::cookies):
1008         * platform/win/TransferJobWin.cpp:
1009         (WebCore::TransferJobWndProc):
1010         (WebCore::TransferJob::start):
1011
1012 2006-06-01  Adele Peterson  <adele@apple.com>
1013
1014         Reviewed by Hyatt.
1015
1016         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9216
1017         Implement CSS3 resize property
1018
1019         * css/html4.css: Sets resize:both for textareas. This won't affect old-style textareas.
1020
1021         * css/CSSPropertyNames.in: Added resize property.
1022         * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Added case for CSS_PROP_RESIZE.
1023         * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
1024         * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): ditto.
1025
1026         * rendering/render_style.cpp: (WebCore::StyleCSS3InheritedData): Initialize resize.
1027         * rendering/render_style.h:
1028         (WebCore::): Added EResize enum.
1029         (WebCore::RenderStyle::resize):
1030         (WebCore::RenderStyle::setResize):
1031         (WebCore::RenderStyle::initialResize):
1032
1033         * page/FrameView.cpp:
1034         (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_resizeLayer to keep track of a layer that has begun resizing.
1035         (WebCore::FrameViewPrivate::reset): Reset m_resizeLayer.
1036         (WebCore::FrameView::handleMousePressEvent): If the mouse was pressed in a layer's resize control, then put the layer into resize mode.
1037         (WebCore::selectCursor): Updated so we get a pointer cursor for the resize control.
1038         (WebCore::FrameView::handleMouseMoveEvent): If there's a layer currently resizing, then tell the layer to continue resizing.
1039         (WebCore::FrameView::handleMouseReleaseEvent): If there's a layer currently resizing, then pull it out of resize mode.
1040
1041         * rendering/RenderBlock.cpp: (WebCore::RenderBlock::isPointInScrollbar): Updated so the resize control isn't considered part of the scrollbar.
1042         * rendering/RenderLayer.cpp:
1043         (WebCore::RenderLayer::RenderLayer): Initialize m_inResizeMode
1044         (WebCore::RenderLayer::updateLayerPositions): Calls positionResizeControl.
1045         (WebCore::RenderLayer::resize): Added. Sets a new width and height based on the current mouse point.
1046         (WebCore::RenderLayer::isPointInResizeControl): Added.
1047         (WebCore::RenderLayer::positionResizeControl): Added.
1048         (WebCore::RenderLayer::positionScrollbars): Calls positionResizeControl.
1049         (WebCore::RenderLayer::paintScrollbars): Calls positionResizeControl.
1050         (WebCore::RenderLayer::paintResizeControl): Added.
1051         (WebCore::RenderLayer::paintLayer): Calls paintResizeControl.
1052         * rendering/RenderLayer.h: Added m_inResizeMode.
1053         (WebCore::RenderLayer::resizeControlRect):
1054         (WebCore::RenderLayer::setResizeControlRect):
1055         (WebCore::RenderLayer::inResizeMode): Added.
1056         (WebCore::RenderLayer::setInResizeMode): Added. 
1057
1058         * platform/mac/ImageMac.mm: (WebCore::Image::loadResource): Moved code from WebImageRendererFactory.  Now loads images from WebCore's resources.
1059         WebImageRendererFactory is no longer used and should be removed.
1060         * Resources/missingImage.tiff: Added. Copied from WebKit.
1061         * WebCore.xcodeproj/project.pbxproj: Added missingImage.tiff
1062         * loader/Cache.cpp: (WebCore::Cache::init): Updated name from missing_image to missingImage.
1063
1064         * rendering/RenderTheme.h:
1065         * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paintResizeControl): Added.
1066         * rendering/RenderThemeMac.h:
1067         * rendering/RenderThemeMac.mm:
1068         (WebCore::RenderThemeMac::RenderThemeMac): Initialize resizeCornerImage.
1069         (WebCore::RenderThemeMac::paintResizeControl): Paints resizeCornerImage.
1070
1071 2006-06-01  Brady Eidson  <beidson@apple.com>
1072
1073         Reviewed by Maciej.
1074
1075         Added the beginnings of sqlite-based code in a WebCore
1076         based version of the Icon Database.  Right now the code
1077         is very loosely hooked up through a Bridge and only
1078         creates an sqlite3 database.
1079
1080         There are also changes to our String classes to allow appending
1081         a single character to a String without creating a temporary object.
1082
1083         * WebCore.exp:
1084         -Added a symbol export
1085
1086         * WebCore.xcodeproj/project.pbxproj:
1087         * bridge/mac/WebCoreIconDatabaseBridge.h: Added.
1088         * bridge/mac/WebCoreIconDatabaseBridge.mm: Added.
1089         (-[WebCoreIconDatabaseBridge openSharedDatabaseWithPath:]):
1090         (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
1091         (-[WebCoreIconDatabaseBridge isOpen]):
1092         -This class will eventually shadow WebIconDatabase but for now
1093         is a minimal interface to make the sql code live
1094
1095         * icon: Added.
1096         * icon/IconDatabase.cpp: Added.
1097         -This class will eventually resemble WebIconDatabase but for now
1098         is minimal just to make the sql code live
1099         (WebCore::IconDatabase::sharedIconDatabase):
1100         (WebCore::IconDatabase::IconDatabase):
1101         (WebCore::IconDatabase::open):
1102         -This method calls a mkdir to make sure the target directory
1103         exists
1104         (WebCore::IconDatabase::close):
1105         (WebCore::IconDatabase::~IconDatabase):
1106
1107         * icon/IconDatabase.h: Added.
1108         (WebCore::IconDatabase::isOpen):
1109         * platform/Logging.cpp:
1110         * platform/Logging.h:
1111         -Added an IconDatabase logging channel
1112
1113         * platform/PlatformString.h:
1114         * platform/String.cpp:
1115         (WebCore::String::append):
1116         * platform/StringImpl.cpp:
1117         (WebCore::StringImpl::append):
1118         * platform/StringImpl.h:
1119         -Added append(char) and append(UChar) to allow appending a
1120         single character without creating a temporary object.  Required
1121         to facilitate manually adding a null character to a unicode 16
1122         string
1123
1124 2006-06-01  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1125
1126         Reviewed and landed by Anders.
1127
1128         - fixed all places in the Canvas to RenderView rename patch where
1129           view() should have been changed to frameView().
1130
1131         * kwq/WebCoreAXObject.mm:
1132         (-[WebCoreAXObject position]):
1133         (-[WebCoreAXObject accessibilityAttributeValue:]):
1134         * rendering/RenderBlock.cpp:
1135         (WebCore::RenderBlock::layoutBlock):
1136         * rendering/RenderBox.cpp:
1137         (WebCore::RenderBox::paintBackgroundExtended):
1138         * rendering/RenderTreeAsText.cpp:
1139         (externalRepresentation):
1140
1141 2006-06-01  Geoffrey Garen  <ggaren@apple.com>
1142
1143         Fix by Mitz. Reviewed, tweaked, tested, landed by me.
1144
1145         - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9113
1146         REGRESSION (14581): XMLHttpRequest never calls onreadystatechange with 
1147         a readystate == 4
1148         
1149         An XMLHttpRequest must be added to the DOMObject cache so that its
1150         DOM implementation object can protect it, and by extension, its event
1151         listeners.
1152         
1153         This design seems slightly backwards to me -- the bindings should know
1154         about the DOM, not the other way around -- but I'm restoring it for
1155         now to fix the regression.
1156         
1157         * bindings/js/JSXMLHttpRequest.cpp:
1158         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
1159         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
1160
1161 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
1162
1163         * platform/KURL.cpp:
1164         (equalIgnoringRef):
1165         Whoops. Fix build.
1166         
1167 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
1168
1169         Reviewed by Darin.
1170
1171         http://bugzilla.opendarwin.org/show_bug.cgi?id=6309
1172         multiple problems prevent bookmarking/back button technique for AJAX/DHTML applications from working
1173         
1174         * bindings/js/kjs_window.cpp:
1175         (KJS::Location::put):
1176         Handle the case where the hash starts with a "#". Also, don't do anything if the previous and new hashes
1177         are equal.
1178         
1179         * bridge/BrowserExtension.h:
1180         * bridge/mac/BrowserExtensionMac.h:
1181         * bridge/mac/BrowserExtensionMac.mm:        
1182         (WebCore::BrowserExtensionMac::historyURL):
1183         * bridge/mac/WebCoreFrameBridge.h:
1184         * bridge/mac/WebCoreFrameBridge.mm:
1185         New function historyURL which returns the complete URL for a given item in the history.
1186         
1187         * page/Frame.cpp:
1188         (WebCore::Frame::scheduleLocationChange):        
1189         (WebCore::Frame::scheduleHistoryNavigation):
1190         If the URL of the new location only differs in the hash, don't schedule the load. Instead, load it
1191         directly.
1192         
1193         * platform/KURL.cpp:
1194         * platform/KURL.h:
1195         Add equalsIgnoringRef which returns whether two URLs are equal, ignoring the ref.
1196
1197 2006-06-01  Anders Carlsson  <acarlsson@apple.com>
1198
1199         Reviewed by Maciej.
1200
1201         http://bugzilla.opendarwin.org/show_bug.cgi?id=9212
1202         dispatchEvent13.html crashes under GuardMalloc
1203
1204         * dom/EventTargetNode.cpp:
1205         (WebCore::EventTargetNode::addEventListener):
1206         (WebCore::EventTargetNode::removeEventListener):        
1207         (WebCore::EventTargetNode::handleLocalEvents):
1208         
1209         (WebCore::EventTargetNode::removeHTMLEventListener):
1210         (WebCore::EventTargetNode::getHTMLEventListener):
1211         * dom/EventTargetNode.h:
1212         Make the list of registered event listeners refcount the listeners
1213         by using a value list of RefPtr objects.
1214         
1215         Set removed flag to true in removeEventListener
1216         Only invoke event listeners if they don't have the removed flag.
1217         
1218         * dom/dom2_eventsimpl.cpp:
1219         (WebCore::RegisteredEventListener::RegisteredEventListener):
1220         * dom/dom2_eventsimpl.h:
1221         Make RegisteredEventListener refcounted.
1222         
1223         (WebCore::RegisteredEventListener::removed):
1224         (WebCore::RegisteredEventListener::setRemoved):
1225         Add removed flag and getter and setter
1226
1227 2006-06-01  Justin Garcia  <justin.garcia@apple.com>
1228
1229         Reviewed by harrison
1230         
1231         <rdar://problem/4567752> When forwarding a message, pressing TAB key to place caret in body actually selects the entire message instead
1232
1233         * dom/Element.cpp:
1234         (WebCore::Element::focus):
1235
1236 2006-06-01  David Kilzer  <ddkilzer@kilzer.net>
1237
1238         Reviewed by darin.
1239
1240         http://bugzilla.opendarwin.org/show_bug.cgi?id=9144
1241         Test for Bug 8079 (REGRESSION: Redraw from page cache does not show visited links)
1242
1243         * manual-tests/redraw-page-cache-visited-links.html: Added.
1244         * manual-tests/resources/redraw-page-cache-visited-links-2.html: Added.
1245
1246 2006-05-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1247
1248         Reviewed by Hyatt.
1249
1250         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9124
1251           Drop shadow obscures "add more stuff" bubble at live.com
1252
1253         Test: fast/css/find-next-layer.html
1254
1255         * rendering/RenderObject.cpp:
1256         (WebCore::RenderObject::findNextLayer): Fixed a bug where this function could reach
1257         two levels down in the layer tree and return 0.
1258
1259 2006-05-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1260
1261         Reviewed by Geoff.
1262
1263         - http://bugzilla.opendarwin.org/show_bug.cgi?id=9109
1264           Remove bogus assertion in RenderBlock::tabWidth
1265
1266         Changed the uninitialized value of m_tabWidth to -1 and removed the
1267         assertion that it cannot be 0.
1268
1269         * rendering/RenderBlock.cpp:
1270         (WebCore:::RenderBlock::RenderBlock):
1271         (WebCore::RenderBlock::setStyle):
1272         * rendering/bidi.cpp:
1273         (WebCore::RenderBlock::tabWidth):
1274
1275 2006-05-31  Sam Weinig  <sam.weinig@gmail.com>
1276
1277         Reviewed by Hyatt.
1278
1279         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9100
1280           Absolutely positioned replaced elements with all non-auto
1281           values are rendered incorrectly
1282
1283         * rendering/RenderBox.cpp:
1284         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced): Add support for case when all values are specified.
1285         (WebCore::RenderBox::calcAbsoluteVerticalReplaced): ditto
1286
1287 2006-05-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1288
1289         Reviewed by Hyatt.
1290
1291         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9012
1292           Row height not updated when cell heights change
1293
1294         Test: fast/table/row-height-recalc.html
1295
1296         * rendering/RenderTableCell.cpp:
1297         (WebCore::RenderTableCell::setStyle): Mark the section as needing recalculation
1298         if the height property changed.
1299         * rendering/RenderTableRow.cpp:
1300         (WebCore::RenderTableRow::setStyle): Ditto.
1301         * rendering/RenderTableSection.cpp:
1302         (WebCore::RenderTableSection::recalcCells): Initialize the grid row height
1303         to the height of the row element (like addChild() does).
1304
1305 2006-05-31  Mitz Pettel  <opendarwin.org@mitzpettel.com>
1306
1307         Reviewed by Hyatt.
1308
1309         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8969
1310           REGRESSION: typing in textfield repaints whole web page at gamefaqs.com
1311
1312         No test possible (no functionality change)
1313
1314         * dom/Document.cpp:
1315         (WebCore::Document::updateLayout): Changed to ensure that pending subtree
1316         layouts are performed too.
1317         * page/Frame.cpp:
1318         (WebCore::Frame::forceLayout): Force a full layout.
1319         * page/FrameView.cpp:
1320         (WebCore::FrameViewPrivate::reset):
1321         (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
1322         at d->layoutRoot if it's non-zero and allowSubtree is true.
1323         (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
1324         normal relayout by clearing d->layoutRoot and propagating needsLayout to the
1325         root. 
1326         (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
1327         * page/FrameView.h:
1328         * rendering/RenderObject.cpp:
1329         (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
1330         parameter. FrameView passes false to force marking all the way to the root
1331         when turning a pending subtree relayout into a full relayout. Otherwise,
1332         marking stops at the first textField (or at the root) and
1333         relayout of the last object reached is scheduled.
1334         (WebCore::RenderObject::scheduleRelayout):
1335         * rendering/RenderObject.h:
1336
1337 2006-05-31  Sam Weinig  <sam.weinig@gmail.com>
1338
1339         Reviewed by Darin.
1340
1341         patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8910>
1342         Bug 8910: Various code cleanups in RenderBox
1343         
1344         Clean up with some slight optimizations.
1345
1346         * rendering/RenderBox.cpp:
1347         (WebCore::RenderBox::contentWidth):
1348         (WebCore::RenderBox::contentHeight):
1349         (WebCore::RenderBox::setPos):
1350         (WebCore::RenderBox::calcWidth):
1351         (WebCore::RenderBox::calcWidthUsing):
1352         * rendering/RenderBox.h:
1353
1354 2006-05-31  Sam Weinig  <sam.weinig@gmail.com>
1355
1356         Reviewed by Hyatt.
1357
1358         patch for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8899>
1359         Bug 8899: Removes some unneeded code from RenderBox
1360         
1361         Removes the use of WidthType where not needed to simplify
1362         the code a little.
1363         
1364         * rendering/RenderBox.cpp:
1365         (WebCore::RenderBox::calcWidthUsing):
1366         (WebCore::RenderBox::sizesToIntrinsicWidth):
1367         (WebCore::RenderBox::calcReplacedWidth):
1368         (WebCore::RenderBox::calcReplacedWidthUsing):
1369         (WebCore::RenderBox::calcReplacedHeight):
1370         (WebCore::RenderBox::calcReplacedHeightUsing):
1371         * rendering/RenderBox.h:
1372         (WebCore::):
1373         (WebCore::RenderBox::renderName):
1374         * rendering/RenderImage.cpp:
1375         (WebCore::RenderImage::calcReplacedWidth):
1376         (WebCore::RenderImage::calcReplacedHeight):
1377
1378 2006-05-31  Rob Buis  <buis@kde.org>
1379
1380         Reviewed by Geoff.
1381
1382         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8455
1383         selectedIndex for a select after a Form reset() has wrong value
1384
1385         Make sure the list items are reset properly by selecting
1386         the first option in case no options have the selected attribute
1387         set.
1388
1389         * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::reset):
1390
1391 2006-05-31  Rob Buis  <buis@kde.org>
1392
1393         Reviewed by Geoff.
1394
1395         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8024
1396         "Go" button (search) doesn't work at fifa.com (document.all.FormName)
1397
1398         Allow input elements with name attributes as possible named
1399         items for document.all.
1400
1401         * html/HTMLCollection.cpp:
1402         (WebCore::HTMLCollection::checkForNameMatch):
1403         (WebCore::HTMLCollection::updateNameCache):
1404
1405 2006-05-31  Dave Hyatt <hyatt@apple.com>
1406
1407         Adding stubs for BMP/ICO/XBM image decoders.  They don't
1408         do anything yet though.
1409
1410         * WebCore.vcproj/WebCore/WebCore.vcproj:
1411         * platform/cairo/ImageSourceCairo.cpp:
1412         (WebCore::createDecoder):
1413         * platform/image-decoders/bmp: Added.
1414         * platform/image-decoders/bmp/BMPImageDecoder.cpp: Added.
1415         (WebCore::BMPImageDecoder::isSizeAvailable):
1416         (WebCore::BMPImageDecoder::frameBufferAtIndex):
1417         * platform/image-decoders/bmp/BMPImageDecoder.h: Added.
1418         * platform/image-decoders/ico: Added.
1419         * platform/image-decoders/ico/ICOImageDecoder.cpp: Added.
1420         (WebCore::ICOImageDecoder::isSizeAvailable):
1421         (WebCore::ICOImageDecoder::frameBufferAtIndex):
1422         * platform/image-decoders/ico/ICOImageDecoder.h: Added.
1423         * platform/image-decoders/xbm: Added.
1424         * platform/image-decoders/xbm/XBMImageDecoder.cpp: Added.
1425         (WebCore::XBMImageDecoder::isSizeAvailable):
1426         (WebCore::XBMImageDecoder::frameBufferAtIndex):
1427         * platform/image-decoders/xbm/XBMImageDecoder.h: Added.
1428
1429 2006-05-31  David Hyatt  <hyatt@apple.com>
1430
1431         Fix for the gmail tab-focus-stealing bug.
1432
1433         Reviewed by darin
1434
1435         * bindings/js/kjs_window.cpp:
1436         (KJS::WindowFunc::callAsFunction):
1437         * bridge/mac/BrowserExtensionMac.mm:
1438         (WebCore::BrowserExtensionMac::createNewWindow):
1439         * bridge/mac/FrameMac.h:
1440         * bridge/mac/FrameMac.mm:
1441         (WebCore::FrameMac::focusWindow):
1442         (WebCore::FrameMac::unfocusWindow):
1443         * bridge/mac/WebCoreFrameBridge.h:
1444         * page/Frame.h:
1445         * platform/Widget.h:
1446         * platform/mac/WidgetMac.mm:
1447         * platform/win/TemporaryLinkStubs.cpp:
1448         (FrameWin::focusWindow):
1449         * platform/win/WidgetWin.cpp:
1450
1451 2006-05-31  Beth Dakin  <bdakin@apple.com>
1452
1453         Reviewed by Hyatt.
1454
1455         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=6755 CSS3: 
1456         Borders rounded with border-radius don't draw the roundings
1457
1458         This patch does not draw all of the different border styles 
1459         perfectly, so I have filed a few followup bugs that I will 
1460         reference from this Bugzilla.
1461
1462         * platform/GraphicsContext.h:
1463         * platform/cairo/GraphicsContextCairo.cpp:
1464         (WebCore::GraphicsContext::drawArc): drawArc() has different 
1465         parameters now, but mostly this needs to be implemented to match 
1466         the Mac side later.
1467         (WebCore::GraphicsContext::addRoundedRectClip): Just a stub. 
1468         Implement this later.
1469         (WebCore::GraphicsContext::addInnerRoundedRectClip): Just a stub. 
1470         Implement this later.
1471         * platform/cg/GraphicsContextCG.cpp:
1472         (WebCore::GraphicsContext::drawArc): drawArc() now handles drawing 
1473         elliptical arcs as well as circular arcs, it also takes a thickness 
1474         parameter to draw an arc of a given thickness and draws with the 
1475         appropriate pen style.
1476         (WebCore::GraphicsContext::addInnerRoundedRectClip): Adds a clip to 
1477         the inside of an arc instead of to the outside which is already 
1478         done by addRoundedClipRect()
1479         * rendering/RenderObject.cpp:
1480         (WebCore::RenderObject::drawBorderArc): Draws the border arcs in 
1481         the appropriate styles.
1482         (WebCore::RenderObject::paintBorder): Calls drawBorderArc() when 
1483         border arcs are needed.
1484         * rendering/RenderObject.h:
1485
1486 2006-05-30  Eric Seidel  <eric@eseidel.com>
1487
1488         Reviewed by andersca.
1489
1490         Add first-cut SVG JS bindings autogeneration.
1491         SVGSVGElement and various other support classes are generated.
1492         Various small style fixes.
1493         http://bugzilla.opendarwin.org/show_bug.cgi?id=4249
1494
1495         * DerivedSources.make:
1496         * WebCore+SVG/RGBColor.cpp: Removed.
1497         * WebCore+SVG/RGBColor.h: Removed.
1498         * WebCore.xcodeproj/project.pbxproj:
1499         * bindings/js/JSHTMLElementWrapperFactory.cpp:
1500         (WebCore::createJSHTMLWrapper): renamed from createJSWrapper
1501         * bindings/js/JSHTMLElementWrapperFactory.h:
1502         * bindings/js/kjs_dom.cpp:
1503         (KJS::DOMNode::DOMNode):
1504         (KJS::DOMNode::toBoolean):
1505         (KJS::DOMNode::getOwnPropertySlot):
1506         (KJS::DOMNode::getValueProperty):
1507         (KJS::DOMNode::put):
1508         (KJS::DOMNode::putValueProperty):
1509         (KJS::DOMNode::toPrimitive):
1510         (KJS::DOMNode::toString):
1511         (KJS::DOMNodeProtoFunc::callAsFunction):
1512         (KJS::toEventTargetNode):
1513         (KJS::DOMEventTargetNode::getOwnPropertySlot):
1514         (KJS::DOMEventTargetNode::getValueProperty):
1515         (KJS::DOMEventTargetNode::put):
1516         (KJS::DOMEventTargetNode::putValueProperty):
1517         (KJS::DOMEventTargetNode::setListener):
1518         (KJS::DOMEventTargetNode::getListener):
1519         (KJS::DOMEventTargetNode::pushEventHandlerScope):
1520         (KJS::DOMEventTargetNodeProtoFunc::callAsFunction):
1521         (KJS::DOMNodeList::toPrimitive):
1522         (KJS::DOMNodeList::getValueProperty):
1523         (KJS::DOMNodeList::indexGetter):
1524         (KJS::DOMNodeList::nameGetter):
1525         (KJS::DOMNodeList::getOwnPropertySlot):
1526         (KJS::DOMNodeList::callAsFunction):
1527         (KJS::DOMNodeListFunc::callAsFunction):
1528         (KJS::toElement):
1529         (KJS::toDocumentType):
1530         (KJS::DOMNamedNodeMap::DOMNamedNodeMap):
1531         (KJS::DOMNamedNodeMap::~DOMNamedNodeMap):
1532         (KJS::DOMNamedNodeMap::lengthGetter):
1533         (KJS::DOMNamedNodeMap::indexGetter):
1534         (KJS::DOMNamedNodeMap::nameGetter):
1535         (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
1536         (KJS::toJS):
1537         (KJS::checkNodeSecurity):
1538         (KJS::getRuntimeObject):
1539         (KJS::DOMExceptionConstructor::getOwnPropertySlot):
1540         (KJS::DOMExceptionConstructor::getValueProperty):
1541         (KJS::getDOMExceptionConstructor):
1542         (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
1543         (KJS::DOMNamedNodesCollection::lengthGetter):
1544         (KJS::DOMNamedNodesCollection::indexGetter):
1545         (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
1546         * bindings/scripts/CodeGenerator.pm:
1547         * bindings/scripts/CodeGeneratorJS.pm:
1548         * dom/Document.cpp:
1549         (WebCore::Document::implicitClose):
1550         * dom/Element.h:
1551         * dom/StyledElement.h:
1552         * ksvg2/bindings/idl/svg/SVGAngle.idl: Removed.
1553         * ksvg2/bindings/idl/svg/SVGAnimatedLength.idl: Removed.
1554         * ksvg2/bindings/idl/svg/SVGColor.idl: Removed.
1555         * ksvg2/bindings/idl/svg/SVGDocument.idl: Removed.
1556         * ksvg2/bindings/idl/svg/SVGElement.idl: Removed.
1557         * ksvg2/bindings/idl/svg/SVGLength.idl: Removed.
1558         * ksvg2/bindings/idl/svg/SVGMatrix.idl: Removed.
1559         * ksvg2/bindings/idl/svg/SVGNumber.idl: Removed.
1560         * ksvg2/bindings/idl/svg/SVGPoint.idl: Removed.
1561         * ksvg2/bindings/idl/svg/SVGRect.idl: Removed.
1562         * ksvg2/bindings/idl/svg/SVGSVGElement.idl: Removed.
1563         * ksvg2/bindings/idl/svg/SVGTransform.idl: Removed.
1564         * ksvg2/bindings/idl/svg/kdomdefs.idl: Removed.
1565         * ksvg2/bindings/js: Added.
1566         * ksvg2/bindings/js/JSSVGNumber.cpp: Added.
1567         (WebCore::):
1568         (WebCore::JSSVGNumber::~JSSVGNumber):
1569         (WebCore::JSSVGNumber::getOwnPropertySlot):
1570         (WebCore::JSSVGNumber::getValue):
1571         (WebCore::getJSSVGNumber):
1572         * ksvg2/bindings/js/JSSVGNumber.h: Added.
1573         (WebCore::JSSVGNumber::JSSVGNumber):
1574         (WebCore::JSSVGNumber::classInfo):
1575         * ksvg2/bindings/js/JSSVGPoint.cpp: Added.
1576         (WebCore::):
1577         (WebCore::JSSVGPoint::~JSSVGPoint):
1578         (WebCore::JSSVGPoint::getOwnPropertySlot):
1579         (WebCore::JSSVGPoint::getValueProperty):
1580         (WebCore::getJSSVGPoint):
1581         (WebCore::toFloatPoint):
1582         * ksvg2/bindings/js/JSSVGPoint.h: Added.
1583         (WebCore::JSSVGPoint::JSSVGPoint):
1584         (WebCore::JSSVGPoint::classInfo):
1585         (WebCore::JSSVGPoint::):
1586         (WebCore::JSSVGPoint::impl):
1587         * ksvg2/bindings/js/JSSVGRect.cpp: Added.
1588         (WebCore::):
1589         (WebCore::JSSVGRect::~JSSVGRect):
1590         (WebCore::JSSVGRect::getOwnPropertySlot):
1591         (WebCore::JSSVGRect::getValueProperty):
1592         (WebCore::getJSSVGRect):
1593         (WebCore::toFloatRect):
1594         * ksvg2/bindings/js/JSSVGRect.h: Added.
1595         (WebCore::JSSVGRect::JSSVGRect):
1596         (WebCore::JSSVGRect::classInfo):
1597         (WebCore::JSSVGRect::):
1598         (WebCore::JSSVGRect::impl):
1599         * ksvg2/css/SVGCSSParser.cpp:
1600         (WebCore::CSSParser::parseSVGValue):
1601         * ksvg2/css/SVGCSSStyleSelector.cpp:
1602         (WebCore::CSSStyleSelector::applySVGProperty):
1603         * ksvg2/events/SVGZoomEvent.cpp:
1604         (SVGZoomEvent::SVGZoomEvent):
1605         (SVGZoomEvent::zoomRectScreen):
1606         (SVGZoomEvent::previousTranslate):
1607         (SVGZoomEvent::newTranslate):
1608         * ksvg2/events/SVGZoomEvent.h:
1609         * ksvg2/ksvg.h:
1610         (WebCore::):
1611         * ksvg2/misc/SVGDocumentExtensions.cpp:
1612         (WebCore::SVGDocumentExtensions::SVGDocumentExtensions):
1613         (WebCore::SVGDocumentExtensions::~SVGDocumentExtensions):
1614         (WebCore::SVGDocumentExtensions::addTimeContainer):
1615         (WebCore::SVGDocumentExtensions::removeTimeContainer):
1616         (WebCore::SVGDocumentExtensions::startAnimations):
1617         (WebCore::SVGDocumentExtensions::pauseAnimations):
1618         (WebCore::SVGDocumentExtensions::unpauseAnimations):
1619         * ksvg2/misc/SVGDocumentExtensions.h:
1620         * ksvg2/svg/SVGAElement.h:
1621         * ksvg2/svg/SVGAngle.h:
1622         (WebCore::SVGAngle::):
1623         * ksvg2/svg/SVGAngle.idl: Added.
1624         * ksvg2/svg/SVGAnimateColorElement.cpp:
1625         (WebCore::SVGAnimateColorElement::SVGAnimateColorElement):
1626         (WebCore::SVGAnimateColorElement::handleTimerEvent):
1627         (WebCore::SVGAnimateColorElement::clampColor):
1628         * ksvg2/svg/SVGAnimateColorElement.h:
1629         * ksvg2/svg/SVGAnimateElement.cpp:
1630         (SVGAnimateElement::SVGAnimateElement):
1631         (SVGAnimateElement::handleTimerEvent):
1632         * ksvg2/svg/SVGAnimateElement.h:
1633         * ksvg2/svg/SVGAnimateTransformElement.cpp:
1634         (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
1635         (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
1636         (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1637         (WebCore::SVGAnimateTransformElement::parseTransformValue):
1638         (WebCore::SVGAnimateTransformElement::calculateRotationFromMatrix):
1639         (WebCore::SVGAnimateTransformElement::initialMatrix):
1640         * ksvg2/svg/SVGAnimateTransformElement.h:
1641         * ksvg2/svg/SVGAnimatedLength.idl: Added.
1642         * ksvg2/svg/SVGAnimationElement.cpp:
1643         (SVGAnimationElement::closeRenderer):
1644         * ksvg2/svg/SVGAnimationElement.h:
1645         * ksvg2/svg/SVGCircleElement.h:
1646         * ksvg2/svg/SVGClipPathElement.h:
1647         * ksvg2/svg/SVGColor.cpp:
1648         (WebCore::SVGColor::SVGColor):
1649         (WebCore::SVGColor::rgbColor):
1650         (WebCore::SVGColor::setRGBColor):
1651         (WebCore::SVGColor::setRGBColorICCColor):
1652         (WebCore::SVGColor::setColor):
1653         (WebCore::SVGColor::color):
1654         * ksvg2/svg/SVGColor.h:
1655         (WebCore::SVGColor::):
1656         (WebCore::SVGColor::setRGBColor):
1657         * ksvg2/svg/SVGColor.idl: Added.
1658         * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1659         * ksvg2/svg/SVGCursorElement.h:
1660         * ksvg2/svg/SVGDefsElement.h:
1661         * ksvg2/svg/SVGDescElement.h:
1662         * ksvg2/svg/SVGDocument.idl: Added.
1663         * ksvg2/svg/SVGElement.cpp:
1664         (WebCore::SVGElement::SVGElement):
1665         (WebCore::SVGElement::isSupported):
1666         (WebCore::SVGElement::id):
1667         (WebCore::SVGElement::setId):
1668         (WebCore::SVGElement::xmlbase):
1669         (WebCore::SVGElement::setXmlbase):
1670         (WebCore::SVGElement::ownerSVGElement):
1671         (WebCore::SVGElement::viewportElement):
1672         (WebCore::SVGElement::tryGetAttribute):
1673         (WebCore::SVGElement::tryGetAttributeNS):
1674         (WebCore::SVGElement::childShouldCreateRenderer):
1675         * ksvg2/svg/SVGElement.h:
1676         * ksvg2/svg/SVGElement.idl: Added.
1677         * ksvg2/svg/SVGEllipseElement.h:
1678         * ksvg2/svg/SVGEvent.idl: Added.
1679         * ksvg2/svg/SVGFEBlendElement.h:
1680         * ksvg2/svg/SVGFEColorMatrixElement.h:
1681         * ksvg2/svg/SVGFEComponentTransferElement.h:
1682         * ksvg2/svg/SVGFECompositeElement.h:
1683         * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1684         * ksvg2/svg/SVGFEDistantLightElement.h:
1685         * ksvg2/svg/SVGFEFloodElement.h:
1686         * ksvg2/svg/SVGFEFuncAElement.h:
1687         * ksvg2/svg/SVGFEFuncBElement.h:
1688         * ksvg2/svg/SVGFEFuncGElement.h:
1689         * ksvg2/svg/SVGFEFuncRElement.h:
1690         * ksvg2/svg/SVGFEGaussianBlurElement.h:
1691         * ksvg2/svg/SVGFEImageElement.h:
1692         * ksvg2/svg/SVGFELightElement.h:
1693         * ksvg2/svg/SVGFEMergeElement.h:
1694         * ksvg2/svg/SVGFEMergeNodeElement.h:
1695         * ksvg2/svg/SVGFEOffsetElement.h:
1696         * ksvg2/svg/SVGFEPointLightElement.h:
1697         * ksvg2/svg/SVGFESpecularLightingElement.h:
1698         * ksvg2/svg/SVGFESpotLightElement.h:
1699         * ksvg2/svg/SVGFETileElement.h:
1700         * ksvg2/svg/SVGFETurbulenceElement.h:
1701         * ksvg2/svg/SVGFilterElement.h:
1702         * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1703         * ksvg2/svg/SVGForeignObjectElement.h:
1704         * ksvg2/svg/SVGGElement.h:
1705         * ksvg2/svg/SVGGradientElement.h:
1706         * ksvg2/svg/SVGHelper.cpp:
1707         (WebCore::SVGHelper::PercentageOfViewport):
1708         (WebCore::SVGHelper::ParseSeperatedList):
1709         * ksvg2/svg/SVGImageElement.h:
1710         * ksvg2/svg/SVGLength.h:
1711         (WebCore::SVGLength::):
1712         * ksvg2/svg/SVGLength.idl: Added.
1713         * ksvg2/svg/SVGLineElement.h:
1714         * ksvg2/svg/SVGLinearGradientElement.h:
1715         * ksvg2/svg/SVGLocatable.cpp:
1716         (SVGLocatable::getBBox):
1717         * ksvg2/svg/SVGLocatable.h:
1718         * ksvg2/svg/SVGMarkerElement.h:
1719         * ksvg2/svg/SVGMaskElement.h:
1720         * ksvg2/svg/SVGMatrix.cpp:
1721         (SVGMatrix::inverse):
1722         (SVGMatrix::rotateFromVector):
1723         * ksvg2/svg/SVGMatrix.h:
1724         * ksvg2/svg/SVGMatrix.idl: Added.
1725         * ksvg2/svg/SVGNumber.idl: Added.
1726         * ksvg2/svg/SVGPathElement.cpp:
1727         (WebCore::SVGPathElement::getPointAtLength):
1728         * ksvg2/svg/SVGPathElement.h:
1729         * ksvg2/svg/SVGPatternElement.cpp:
1730         (WebCore::SVGPatternElement::x):
1731         (WebCore::SVGPatternElement::y):
1732         (WebCore::SVGPatternElement::width):
1733         (WebCore::SVGPatternElement::height):
1734         (WebCore::SVGPatternElement::pushAttributeContext):
1735         (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1736         (WebCore::SVGPatternElement::drawPatternContentIntoTile):
1737         (WebCore::SVGPatternElement::notifyClientsToRepaint):
1738         (WebCore::SVGPatternElement::notifyAttributeChange):
1739         (WebCore::SVGPatternElement::canvasResource):
1740         (WebCore::SVGPatternElement::getCTM):
1741         * ksvg2/svg/SVGPatternElement.h:
1742         * ksvg2/svg/SVGPoint.idl: Added.
1743         * ksvg2/svg/SVGPolyElement.h:
1744         * ksvg2/svg/SVGPolygonElement.h:
1745         * ksvg2/svg/SVGPolylineElement.h:
1746         * ksvg2/svg/SVGRadialGradientElement.h:
1747         * ksvg2/svg/SVGRect.idl: Added.
1748         * ksvg2/svg/SVGRectElement.h:
1749         * ksvg2/svg/SVGSVGElement.cpp:
1750         (WebCore::SVGSVGElement::SVGSVGElement):
1751         (WebCore::SVGSVGElement::~SVGSVGElement):
1752         (WebCore::SVGSVGElement::viewport):
1753         (WebCore::SVGSVGElement::currentTranslate):
1754         (WebCore::SVGSVGElement::unsuspendRedraw):
1755         (WebCore::SVGSVGElement::getIntersectionList):
1756         (WebCore::SVGSVGElement::getEnclosureList):
1757         (WebCore::SVGSVGElement::checkIntersection):
1758         (WebCore::SVGSVGElement::checkEnclosure):
1759         (WebCore::SVGSVGElement::createSVGNumber):
1760         (WebCore::SVGSVGElement::createSVGPoint):
1761         (WebCore::SVGSVGElement::createSVGRect):
1762         (WebCore::SVGSVGElement::pauseAnimations):
1763         (WebCore::SVGSVGElement::unpauseAnimations):
1764         (WebCore::SVGSVGElement::animationsPaused):
1765         (WebCore::SVGSVGElement::getCurrentTime):
1766         (WebCore::SVGSVGElement::setCurrentTime):
1767         * ksvg2/svg/SVGSVGElement.h:
1768         (WebCore::SVGSVGElement::timeScheduler):
1769         * ksvg2/svg/SVGSVGElement.idl: Added.
1770         * ksvg2/svg/SVGScriptElement.h:
1771         * ksvg2/svg/SVGSetElement.cpp:
1772         (WebCore::SVGSetElement::SVGSetElement):
1773         (WebCore::SVGSetElement::handleTimerEvent):
1774         * ksvg2/svg/SVGSetElement.h:
1775         * ksvg2/svg/SVGStopElement.h:
1776         * ksvg2/svg/SVGStyleElement.h:
1777         * ksvg2/svg/SVGStyledElement.h:
1778         * ksvg2/svg/SVGStyledLocatableElement.cpp:
1779         (SVGStyledLocatableElement::getBBox):
1780         * ksvg2/svg/SVGStyledLocatableElement.h:
1781         * ksvg2/svg/SVGStyledTransformableElement.cpp:
1782         (SVGStyledTransformableElement::getBBox):
1783         * ksvg2/svg/SVGStyledTransformableElement.h:
1784         * ksvg2/svg/SVGSwitchElement.h:
1785         * ksvg2/svg/SVGSymbolElement.h:
1786         * ksvg2/svg/SVGTRefElement.h:
1787         * ksvg2/svg/SVGTSpanElement.h:
1788         * ksvg2/svg/SVGTextContentElement.cpp:
1789         (SVGTextContentElement::getStartPositionOfChar):
1790         (SVGTextContentElement::getEndPositionOfChar):
1791         (SVGTextContentElement::getExtentOfChar):
1792         (SVGTextContentElement::getCharNumAtPosition):
1793         (SVGTextContentElement::parseMappedAttribute):
1794         * ksvg2/svg/SVGTextContentElement.h:
1795         * ksvg2/svg/SVGTextElement.cpp:
1796         (WebCore::SVGTextElement::getBBox):
1797         * ksvg2/svg/SVGTextElement.h:
1798         * ksvg2/svg/SVGTextPositioningElement.h:
1799         * ksvg2/svg/SVGTitleElement.h:
1800         * ksvg2/svg/SVGTransform.h:
1801         (WebCore::SVGTransform::):
1802         * ksvg2/svg/SVGTransform.idl: Added.
1803         * ksvg2/svg/SVGUseElement.h:
1804         * ksvg2/svg/SVGViewElement.h:
1805         * page/Frame.cpp:
1806         (WebCore::Frame::Frame):
1807         (WebCore::Frame::pauseTimeouts):
1808         (WebCore::Frame::resumeTimeouts):
1809         * platform/Color.h:
1810         * rendering/RenderBR.h:
1811         * rendering/RenderBox.h:
1812         (WebCore::RenderBox::renderName):
1813         * rendering/RenderCanvas.h:
1814         (WebCore::RenderCanvas::view):
1815         * rendering/RenderContainer.h:
1816         * rendering/RenderFlexibleBox.h:
1817         * rendering/RenderFlow.h:
1818         (WebCore::RenderFlow::RenderFlow):
1819         * rendering/RenderInline.h:
1820         * rendering/RenderTableSection.h:
1821         * rendering/RenderTextFragment.h:
1822         (WebCore::RenderTextFragment::contentString):
1823         * xml/xmlattrs.in: Added.
1824
1825 2006-05-30  Geoffrey Garen  <ggaren@apple.com>
1826
1827         Reviewed by Maciej.
1828
1829         - Fixed <rdar://problem/4559720> window sizing: make javascript window 
1830         and screen sizing methods and properties work @ HIDPI
1831         
1832         The general approach here is to change some ints to floats, make 
1833         a few key functions that scale between WebView and window/screen 
1834         coordinates, and change other functions that work with screen 
1835         coordinates to use the scaling functions for their underlying 
1836         implementations.
1837
1838         * manual-tests/window-open-features.html: Removed.
1839         * manual-tests/window-sizing.html: Added. More test coverage.
1840
1841         * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
1842         FloatRects, because window coordinates can be fractional when scaled 
1843         to WebView/DOM coordinates.
1844         (KJS::floatFeature):
1845         (KJS::showModalDialog):
1846         (KJS::Window::getValueProperty):
1847         (KJS::constrainToVisible):
1848         (KJS::WindowFunc::callAsFunction):
1849         * bridge/BrowserExtension.h:
1850         * bridge/mac/BrowserExtensionMac.mm:
1851         (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
1852         code and replaced with calls to Page::windowRect and 
1853         Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
1854         'frameBridge,' respectively.
1855         * bridge/mac/PageMac.mm:
1856         (WebCore::Page::windowRect): Changed to use scaling
1857         (WebCore::Page::setWindowRect): ditto
1858         * bridge/mac/WebCoreFrameBridge.mm:
1859         (globalPoint):
1860         * page/Page.h:
1861         * platform/IntRect.h:
1862         * platform/Screen.h:
1863         * platform/mac/MouseEventMac.mm:
1864         (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
1865         * platform/mac/ScreenMac.mm:
1866         (WebCore::flipScreenRect): New key function
1867         (WebCore::flipScreenPoint): New key function
1868         (WebCore::scaleScreenRectToView): New key function
1869         (WebCore::scaleViewRectToScreen): New key function
1870         (WebCore::screenRect): Changed to use scaling
1871         (WebCore::usableScreenRect): ditto
1872
1873         Feeble attempt to preserve Windows build:
1874         
1875         * platform/win/ScreenWin.cpp:
1876         (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
1877         (WebCore::scaleWidgetRectToScreen): ditto
1878         * bridge/win/PageWin.cpp:
1879         (WebCore::Page::Page):
1880         (WebCore::Page::widget):
1881
1882 2006-05-30  David Hyatt  <hyatt@apple.com>
1883
1884         Rename RenderCanvas to RenderView. Rename canvas(), isCanvas()
1885         to view(), isView().  Rename the frame view accessor on the old canvas
1886         from view() to frameView() (to avoid view()->view(), since that just looks
1887         stupid). :)
1888
1889         Reviewed by andersca
1890
1891         * WebCore.vcproj/WebCore/WebCore.vcproj:
1892         * WebCore.xcodeproj/project.pbxproj:
1893         * bindings/js/kjs_dom.cpp:
1894         * bindings/js/kjs_window.cpp:
1895         * bridge/mac/FrameMac.mm:
1896         * bridge/mac/WebCoreFrameBridge.mm:
1897         (-[WebCoreFrameBridge _setupRootForPrinting:]):
1898         (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
1899         (-[WebCoreFrameBridge selectionColor]):
1900         (-[WebCoreFrameBridge accessibilityTree]):
1901         * dom/Document.cpp:
1902         (WebCore::Document::attach):
1903         (WebCore::Document::updateSelection):
1904         (WebCore::Document::prepareMouseEvent):
1905         * editing/SelectionController.cpp:
1906         * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
1907         * ksvg2/svg/SVGClipPathElement.cpp:
1908         (SVGClipPathElement::canvasResource):
1909         * ksvg2/svg/SVGFEFloodElement.cpp:
1910         (SVGFEFloodElement::filterEffect):
1911         * ksvg2/svg/SVGGradientElement.cpp:
1912         (SVGGradientElement::rebuildStops):
1913         * ksvg2/svg/SVGHelper.cpp:
1914         (SVGHelper::PercentageOfViewport):
1915         * ksvg2/svg/SVGPathElement.cpp:
1916         (WebCore::SVGPathElement::getPointAtLength):
1917         * ksvg2/svg/SVGSVGElement.cpp:
1918         (WebCore::SVGSVGElement::currentTranslate):
1919         * ksvg2/svg/SVGStyledElement.cpp:
1920         (WebCore::SVGStyledElement::view):
1921         (WebCore::SVGStyledElement::pushAttributeContext):
1922         * ksvg2/svg/SVGStyledElement.h:
1923         * kwq/WebCoreAXObject.mm:
1924         (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
1925         (-[WebCoreAXObject role]):
1926         (-[WebCoreAXObject value]):
1927         (-[WebCoreAXObject position]):
1928         (-[WebCoreAXObject accessibilityIsIgnored]):
1929         (-[WebCoreAXObject accessibilityAttributeNames]):
1930         (-[WebCoreAXObject topView]):
1931         (-[WebCoreAXObject accessibilityAttributeValue:]):
1932         * page/Frame.cpp:
1933         (WebCore::Frame::selectionRect):
1934         (WebCore::Frame::paint):
1935         (WebCore::Frame::adjustPageHeight):
1936         (WebCore::Frame::forceLayoutWithPageWidthRange):
1937         * page/FrameView.cpp:
1938         (WebCore::FrameView::adjustViewSize):
1939         (WebCore::FrameView::layout):
1940         * page/FrameView.h:
1941         * rendering/AutoTableLayout.cpp:
1942         (WebCore::shouldScaleColumns):
1943         * rendering/RenderBlock.cpp:
1944         (WebCore::RenderBlock::MarginInfo::MarginInfo):
1945         (WebCore::RenderBlock::isSelfCollapsingBlock):
1946         (WebCore::RenderBlock::layoutBlock):
1947         (WebCore::RenderBlock::paintChildren):
1948         (WebCore::RenderBlock::setSelectionState):
1949         (WebCore::RenderBlock::isSelectionRoot):
1950         (WebCore::RenderBlock::fillInlineSelectionGaps):
1951         (WebCore::RenderBlock::lowestPosition):
1952         (WebCore::RenderBlock::rightmostPosition):
1953         (WebCore::RenderBlock::leftmostPosition):
1954         (WebCore::RenderBlock::clearFloats):
1955         (WebCore::RenderBlock::nodeAtPoint):
1956         (WebCore::RenderBlock::calcBlocminMaxWidth):
1957         (WebCore::RenderBlock::inRootBlockContext):
1958         * rendering/RenderBox.cpp:
1959         (WebCore::RenderBox::setStyle):
1960         (WebCore::RenderBox::paintRootBoxDecorations):
1961         (WebCore::RenderBox::paintBackgroundExtended):
1962         (WebCore::RenderBox::calcHeight):
1963         (WebCore::RenderBox::calcPercentageHeight):
1964         (WebCore::RenderBox::availableHeightUsing):
1965         * rendering/RenderCanvas.cpp: Removed.
1966         * rendering/RenderCanvas.h: Removed.
1967         * rendering/RenderContainer.cpp:
1968         (WebCore::RenderContainer::removeChildNode):
1969         * rendering/RenderFileButton.cpp:
1970         (WebCore::RenderFileButton::RenderFileButton):
1971         * rendering/RenderFlow.cpp:
1972         (WebCore::RenderFlow::destroy):
1973         (WebCore::RenderFlow::paintLines):
1974         * rendering/RenderFrameSet.cpp:
1975         (WebCore::RenderFrameSet::layout):
1976         (WebCore::RenderFrameSet::userResize):
1977         (WebCore::RenderFrameSet::setResizing):
1978         * rendering/RenderImage.cpp:
1979         (WebCore::RenderImage::paint):
1980         * rendering/RenderLayer.cpp:
1981         (WebCore::RenderLayer::updateLayerPositions):
1982         (WebCore::RenderLayer::updateLayerPosition):
1983         (WebCore::RenderLayer::stackingContext):
1984         (WebCore::RenderLayer::enclosingPositionedAncestor):
1985         (WebCore::RenderLayer::convertToLayerCoords):
1986         (WebCore::RenderLayer::scrollToOffset):
1987         (WebCore::isSubframeCanvas):
1988         (WebCore::RenderLayer::intersectsDamageRect):
1989         * rendering/RenderLayer.h:
1990         (WebCore::RenderLayer::isStackingContext):
1991         * rendering/RenderListMarker.cpp:
1992         (WebCore::RenderListMarker::paint):
1993         * rendering/RenderObject.cpp:
1994         (WebCore::RenderObject::scroll):
1995         (WebCore::RenderObject::containingBlock):
1996         (WebCore::RenderObject::repaint):
1997         (WebCore::RenderObject::repaintRectangle):
1998         (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
1999         (WebCore::RenderObject::draggableNode):
2000         (WebCore::RenderObject::selectionStartEnd):
2001         (WebCore::RenderObject::setStyle):
2002         (WebCore::RenderObject::viewRect):
2003         (WebCore::RenderObject::view):
2004         (WebCore::RenderObject::container):
2005         (WebCore::RenderObject::removeFromObjectLists):
2006         (WebCore::RenderObject::scheduleRelayout):
2007         (WebCore::RenderObject::imageChanged):
2008         (WebCore::RenderObject::maximalOutlineSize):
2009         * rendering/RenderObject.h:
2010         (WebCore::RenderObject::isRenderView):
2011         * rendering/RenderTextArea.cpp:
2012         (WebCore::RenderTextArea::RenderTextArea):
2013         * rendering/RenderThemeMac.mm:
2014         (WebCore::RenderThemeMac::paintCheckbox):
2015         (WebCore::RenderThemeMac::paintRadio):
2016         (WebCore::RenderThemeMac::paintButton):
2017         * rendering/RenderTreeAsText.cpp:
2018         (externalRepresentation):
2019         * rendering/RenderView.cpp: Added.
2020         (WebCore::RenderView::RenderView):
2021         (WebCore::RenderView::~RenderView):
2022         (WebCore::RenderView::calcHeight):
2023         (WebCore::RenderView::calcWidth):
2024         (WebCore::RenderView::calcMinMaxWidth):
2025         (WebCore::RenderView::layout):
2026         (WebCore::RenderView::absolutePosition):
2027         (WebCore::RenderView::paint):
2028         (WebCore::RenderView::paintBoxDecorations):
2029         (WebCore::RenderView::repaintViewRectangle):
2030         (WebCore::RenderView::getAbsoluteRepaintRect):
2031         (WebCore::RenderView::computeAbsoluteRepaintRect):
2032         (WebCore::RenderView::absoluteRects):
2033         (WebCore::RenderView::selectionRect):
2034         (WebCore::RenderView::setSelection):
2035         (WebCore::RenderView::clearSelection):
2036         (WebCore::RenderView::selectionStartEnd):
2037         (WebCore::RenderView::updateWidgetPositions):
2038         (WebCore::RenderView::addWidget):
2039         (WebCore::RenderView::removeWidget):
2040         (WebCore::RenderView::viewRect):
2041         (WebCore::RenderView::docHeight):
2042         (WebCore::RenderView::docWidth):
2043         (WebCore::RenderView::setBestTruncatedAt):
2044         * rendering/RenderView.h: Added.
2045         (WebCore::RenderView::renderName):
2046         (WebCore::RenderView::isRenderView):
2047         (WebCore::RenderView::frameView):
2048         * rendering/RenderWidget.cpp:
2049         (WebCore::RenderWidget::RenderWidget):
2050         (WebCore::RenderWidget::destroy):
2051         (WebCore::RenderWidget::updateWidgetPosition):
2052         * rendering/RenderWidget.h:
2053         (WebCore::RenderWidget::widget):
2054         * rendering/bidi.cpp:
2055         (WebCore::RenderBlock::layoutInlineChildren):
2056
2057 2006-05-30  Tim Omernick  <timo@apple.com>
2058
2059         Reviewed by Geoff.
2060
2061         <rdar://problem/4567776> REGRESSION: window.open() links do not work at www.newarchery.com
2062
2063         * bindings/js/kjs_window.cpp:
2064         (KJS::WindowFunc::callAsFunction):
2065         Set the URL in the ResourceRequest; otherwise, it'll be uninitialized and createNewWindow() will
2066         not be able to load the URL into a pre-existing frame.
2067
2068 2006-05-30  Sam Weinig  <sam.weinig@gmail.com>
2069
2070         Reviewed by Maciej, landed by Beth.
2071
2072         - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9137
2073           Children with percentage heights of absolutely positioned element 
2074           with height: auto and top and bottom non-auto does not lay out 
2075           correctly
2076
2077         Adds special case.
2078
2079         * rendering/RenderBox.cpp:
2080         (WebCore::RenderBox::calcPercentageHeight):
2081         (WebCore::RenderBox::calcReplacedHeightUsing):
2082
2083 2006-05-30  Sam Weinig  <sam.weinig@gmail.com>
2084
2085         Reviewed by Hyatt, landed by Beth.
2086
2087         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9085
2088           Absolutely positioned objects with 'height': auto and 'top': and
2089           'bottom': non-auto should not be content based
2090
2091         * rendering/RenderBox.cpp:
2092         (WebCore::RenderBox::calcAbsoluteVertical):
2093         (WebCore::RenderBox::calcAbsoluteVerticalValues):
2094         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
2095         (WebCore::RenderBox::calcAbsoluteVerticalReplaced):
2096
2097 2006-05-30  Eric Seidel  <eric@eseidel.com>
2098
2099         Reviewed by andersca.
2100
2101         Small amount of svg-related code cleanup.
2102         No test case possible.
2103
2104         * ksvg2/svg/SVGColor.h:
2105         * ksvg2/svg/SVGLength.cpp:
2106         (SVGLength::SVGLength):
2107         (SVGLength::value):
2108         * ksvg2/svg/SVGMarkerElement.cpp:
2109         * ksvg2/svg/SVGMatrix.cpp:
2110         (SVGMatrix::SVGMatrix):
2111         (SVGMatrix::copy):
2112         (SVGMatrix::postMultiply):
2113         (SVGMatrix::inverse):
2114         (SVGMatrix::postTranslate):
2115         (SVGMatrix::postScale):
2116         (SVGMatrix::postScaleNonUniform):
2117         (SVGMatrix::postRotate):
2118         (SVGMatrix::postRotateFromVector):
2119         (SVGMatrix::postFlipX):
2120         (SVGMatrix::postFlipY):
2121         (SVGMatrix::postSkewX):
2122         (SVGMatrix::postSkewY):
2123         (SVGMatrix::multiply):
2124         (SVGMatrix::translate):
2125         (SVGMatrix::scale):
2126         (SVGMatrix::scaleNonUniform):
2127         (SVGMatrix::rotate):
2128         (SVGMatrix::rotateFromVector):
2129         (SVGMatrix::flipX):
2130         (SVGMatrix::flipY):
2131         (SVGMatrix::skewX):
2132         (SVGMatrix::skewY):
2133         (SVGMatrix::setMatrix):
2134         (SVGMatrix::qmatrix):
2135         (SVGMatrix::removeScale):
2136         * ksvg2/svg/SVGMatrix.h:
2137
2138 2006-05-30  Eric Seidel  <eric@eseidel.com>
2139
2140         Reviewed by andersca.
2141
2142         Small amount of bindings-related code cleanup.
2143         No test case possible.
2144
2145         * bindings/js/JSHTMLFormElementCustom.cpp:
2146         (WebCore::JSHTMLFormElement::nameGetter):
2147         * bindings/js/JSXMLSerializer.cpp:
2148         (WebCore::JSXMLSerializerConstructorImp::JSXMLSerializerConstructorImp):
2149         (WebCore::JSXMLSerializerConstructorImp::implementsConstruct):
2150         (WebCore::JSXMLSerializerConstructorImp::construct):
2151         (WebCore::):
2152         (WebCore::JSXMLSerializer::JSXMLSerializer):
2153         (WebCore::JSXMLSerializerProtoFunc::callAsFunction):
2154         * bindings/js/JSXMLSerializer.h:
2155         (WebCore::JSXMLSerializer::toBoolean):
2156         (WebCore::JSXMLSerializer::classInfo):
2157         (WebCore::JSXMLSerializer::):
2158         * bindings/js/kjs_window.cpp:
2159         (KJS::Window::getValueProperty):
2160
2161 2006-05-27  Anders Carlsson  <acarlsson@apple.com>
2162
2163         * bindings/js/JSHTMLElementWrapperFactory.cpp:
2164         Correct include file names.
2165
2166 2006-05-26  Justin Garcia  <justin.garcia@apple.com>
2167
2168         Reviewed by levi
2169         
2170         <rdar://problem/4564296> Mail crashes on Leopard9A184 when I attempt to compose a new message
2171
2172         * dom/Position.cpp:
2173         (WebCore::Position::inRenderedContent):
2174         Removed a candidate at [html, 0].
2175         * editing/CreateLinkCommand.cpp:
2176         (WebCore::CreateLinkCommand::doApply): Added early return when there is no selection.
2177         * editing/InsertLineBreakCommand.cpp:
2178         (WebCore::InsertLineBreakCommand::doApply): Ditto.
2179         * editing/InsertTextCommand.cpp:
2180         (WebCore::InsertTextCommand::input): Ditto.
2181         * editing/Selection.cpp:
2182         (WebCore::Selection::validate): If visible positions can't be created from the endpoints, 
2183         then create a null selection.  Not doing this was making editing code think there was
2184         a valid, editable selection even though there wasn't.
2185         * editing/UnlinkCommand.cpp:
2186         (WebCore::UnlinkCommand::doApply): Early return.
2187         * editing/VisiblePosition.cpp:
2188         (WebCore::VisiblePosition::initDeepPosition): Special case the html/body element boundary.
2189         It looks like a non-editable/editable boundary since rootEditableElement stops at the body
2190         even if the html element is editable.
2191
2192 2006-05-26  Adele Peterson  <adele@apple.com>
2193
2194         Reviewed by Justin.
2195
2196         Fixes a mistake in my last checkin.  Uses maxDeepOffset to get the end position for
2197         the textarea's inner div.
2198
2199         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::textWithHardLineBreaks):
2200
2201 2006-05-26  Adele Peterson  <adele@apple.com>
2202
2203         Reviewed by Hyatt.
2204
2205         Added support for wrap=hard for new textarea implementation.
2206
2207         Tests: fast/forms/textarea-appearance-wrap.html
2208
2209         * dom/Range.h: Added version of toString that will convert BRs to newlines.
2210         * dom/Range.cpp: (WebCore::Range::toString):
2211         * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplacementFragment::ReplacementFragment): 
2212           When in plain-text mode, and a white-space mode that doesn't collapse whitespace, create a fragment with one text node.
2213         * editing/visible_units.cpp:
2214         (WebCore::previousLinePosition): Subtract scroll offset so the absolute position for the containing block is correct.
2215         (WebCore::nextLinePosition): ditto.
2216         * rendering/RenderText.cpp:
2217         (WebCore::RenderText::positionForCoordinates): If the position is equal to the left edge of the box,
2218         make the affinity downstream so the position doesn't jump back to the previous line.
2219         (WebCore::RenderText::atLineWrap): The logic was reversed here in a recent change.
2220         If the box is not at a line break, then its at a line wrap.
2221         (WebCore::RenderText::caretRect): Only go to the next text box if its at a line wrap and the
2222          affinity is also downstream.  If its upstream, then the correct box is on the current line.
2223         (WebCore::RenderText::inlineBox): ditto.
2224         * rendering/RenderTextField.cpp:
2225         (WebCore::RenderTextField::updateFromElement): multi line controls don't need to check
2226          valueMatchesRenderer before updating the renderer.  For textareas, the renderer should always try to update.
2227          This matches our old textarea behavior.
2228         (WebCore::RenderTextField::text): Pass true to textContent so it converts BRs to newlines.
2229         (WebCore::RenderTextField::textWithHardLineBreaks): Iterate through the RootLineBoxes to find the soft wraps and replace them with newlines.
2230
2231 2006-05-26  Anders Carlsson  <acarlsson@apple.com>
2232
2233         Reviewed by Geoff.
2234
2235         http://bugzilla.opendarwin.org/show_bug.cgi?id=9127
2236         Invoke capturing event listeners when AT_TARGET
2237         
2238         * dom/EventTargetNode.cpp:
2239         (WebCore::EventTargetNode::handleLocalEvents):    
2240         Invoke capturing event listeners for the AT_TARGET phase. This violates the
2241         DOM spec but it's what Mozilla does.
2242         
2243 2006-05-26  David Harrison  <harrison@apple.com>
2244
2245         Reviewed by John Sullivan.
2246
2247         <rdar://problem/4514529> Add a list type parameter and a return value to _increaseSelectionListLevel
2248         
2249         * WebCore.vcproj/WebCore/WebCore.vcproj:
2250         * WebCore.xcodeproj/project.pbxproj:
2251         - Renamed ModifySelectionListLevelCommand .cpp and .h to ModifySelectionListLevel .cpp and .h
2252         
2253         * bridge/mac/WebCoreFrameBridge.h:
2254         * bridge/mac/WebCoreFrameBridge.mm:
2255         (-[WebCoreFrameBridge canIncreaseSelectionListLevel]):
2256         (-[WebCoreFrameBridge canDecreaseSelectionListLevel]):
2257         (-[WebCoreFrameBridge increaseSelectionListLevel]):
2258         (-[WebCoreFrameBridge decreaseSelectionListLevel]):
2259         - Call functions in IncreaseSelectionListLevelCommand or DecreaseSelectionListLevelCommand instead
2260         of ModifySelectionListLevelCommand.
2261         
2262         (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
2263         (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
2264         - Added.
2265         
2266         * editing/ModifySelectionListLevel.cpp: Added.
2267         - Renamed from ModifySelectionListLevelCommand.cpp
2268         - Made ModifySelectionListLevelCommand class into a useful base class for new
2269         classes IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand.
2270         
2271         (WebCore::ModifySelectionListLevelCommand::ModifySelectionListLevelCommand):
2272         (WebCore::getStartEndListChildren):
2273         (WebCore::ModifySelectionListLevelCommand::insertSiblingNodeRangeBefore):
2274         (WebCore::ModifySelectionListLevelCommand::appendSiblingNodeRange):
2275         - ModifySelectionListLevelCommand is base class for IncreaseSelectionListLevelCommand and DecreaseSelectionListLevelCommand
2276         
2277         (WebCore::IncreaseSelectionListLevelCommand::IncreaseSelectionListLevelCommand):
2278         (WebCore::IncreaseSelectionListLevelCommand::listElement):
2279         (WebCore::canIncreaseListLevel):
2280         (WebCore::IncreaseSelectionListLevelCommand::doApply):
2281         (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
2282         (WebCore::increaseSelectionListLevelWithType):
2283         (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevel):
2284         (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered):
2285         (WebCore::IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered):
2286         - Now a subclass of ModifySelectionListLevelCommand
2287         - Added Ordered and Unordered increaser functions
2288         - Increaser functions return the list element that the items were moved into
2289         
2290         (WebCore::DecreaseSelectionListLevelCommand::DecreaseSelectionListLevelCommand):
2291         (WebCore::canDecreaseListLevel):
2292         (WebCore::DecreaseSelectionListLevelCommand::doApply):
2293         (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
2294         (WebCore::DecreaseSelectionListLevelCommand::decreaseSelectionListLevel):
2295         - No functional changes other than to become a subclass of ModifySelectionListLevelCommand
2296
2297         * editing/ModifySelectionListLevel.h: Added.
2298         (WebCore::):
2299          - Renamed from ModifySelectionListLevelCommand.cpp
2300        
2301         * editing/ModifySelectionListLevelCommand.cpp: Removed.
2302         - Renamed to ModifySelectionListLevel.cpp
2303         
2304         * editing/ModifySelectionListLevelCommand.h: Removed.
2305         - Renamed to ModifySelectionListLevel.h
2306
2307         * editing/htmlediting.cpp:
2308         (WebCore::createOrderedListElement):
2309         (WebCore::createUnorderedListElement):
2310         * editing/htmlediting.h:
2311
2312 2006-05-26  Steve Falkenburg  <sfalken@apple.com>
2313
2314         Reviewed by adele.
2315
2316         Build fixes/tweaks
2317
2318         * WebCore.vcproj/WebCore/WebCore.vcproj:
2319         * config.h:
2320         * ksvg2/scripts/make_names.pl:
2321
2322 2006-05-26  Steve Falkenburg  <sfalken@apple.com>
2323
2324         Reviewed by adele.
2325
2326         Fix build
2327
2328         * WebCore.vcproj/WebCore/WebCore.vcproj:
2329         * config.h:
2330
2331 2006-05-25  Dave Hyatt <hyatt@apple.com>
2332
2333         Change default font size for fixed pitch to 13 to match Safari
2334         on Mac (and every other browser on the planet too).
2335
2336         Reviewed by adele
2337
2338         * bridge/win/FrameWin.cpp:
2339         (WebCore::FrameWin::FrameWin):
2340         * platform/win/FontCacheWin.cpp:
2341         (WebCore::FontCache::getFontLinkInterface):
2342
2343 2006-05-25  Alice Liu  <alice.liu@apple.com>
2344
2345         Reviewed by Adele.
2346
2347         * bindings/js/kjs_html.cpp:
2348         added bindings
2349         (KJS::HTMLElementFunction::callAsFunction):
2350         added case to handle namedItem for select elements
2351         * bindings/js/kjs_html.h:
2352         added enum value for bindings
2353         (KJS::JSHTMLElement::):
2354         * html/HTMLSelectElement.cpp:
2355         (WebCore::HTMLSelectElement::namedItem):
2356         implemented namedItem method
2357         * html/HTMLSelectElement.h:
2358         added prototype for namedItem method
2359
2360 2006-05-25  Dave Hyatt <hyatt@apple.com>
2361
2362         Make soft hyphens work on Win32 by special casing them
2363         along with normal hyphens.
2364
2365         Reviewed by mjs
2366
2367         * rendering/break_lines.cpp:
2368         (WebCore::nextBreakablePosition):
2369
2370 2006-05-25  Dave Hyatt <hyatt@apple.com>
2371
2372         Implement the fallback method containsCharacters for
2373         checking if a font has the necessary glyphs to be
2374         selected as a fallback choide.
2375
2376         * platform/win/FontDataWin.cpp:
2377         (WebCore::FontData::containsCharacters):
2378
2379 2006-05-25  Dave Hyatt <hyatt@apple.com>
2380
2381         For now eliminate the logical scale factor from Cairo.
2382         This enables bitmap fonts like MS Sans Serif to work on
2383         Win32.
2384
2385         * platform/cairo/cairo/src/cairo-win32-font.c:
2386         (cairo_win32_scaled_font_select_font):
2387         * platform/cairo/cairo/src/cairo-win32-private.h:
2388         * platform/cairo/font-bug-patch.txt: Removed.
2389         * platform/cairo/scale-removal.txt: Added.
2390         * platform/win/FontCacheWin.cpp:
2391         (WebCore::FontCache::createFontPlatformData):
2392         * platform/win/FontDataWin.cpp:
2393         (WebCore::FontData::smallCapsFontData):
2394         (WebCore::FontData::platformWidthForGlyph):
2395         * platform/win/FontPlatformData.h:
2396         * platform/win/GlyphMapWin.cpp:
2397         (WebCore::GlyphMap::fillPage):
2398
2399 2006-05-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2400
2401         Reviewed by hyatt.  Landed by eseidel.
2402
2403         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8848
2404           TFOOT borders are copied to THEAD and TBODY
2405
2406         Test: fast/table/border-collapsing/border-collapsing-head-foot.html
2407
2408         * rendering/RenderTable.cpp:
2409         (WebCore::RenderTable::sectionAbove): Added.
2410         (WebCore::RenderTable::sectionBelow): Added.
2411         (WebCore::RenderTable::cellAbove): Changed to call sectionAbove.
2412         (WebCore::RenderTable::cellBelow): Changed to call sectionBelow.
2413         * rendering/RenderTable.h:
2414         * rendering/RenderTableCell.cpp:
2415         (WebCore::RenderTableCell::collapsedTopBorder): Changed to call sectionAbove.
2416         (WebCore::RenderTableCell::collapsedBottomBorder): Changed to call sectionBelow.
2417
2418 2006-05-25  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2419
2420         Reviewed by hyatt.  Landed by eseidel.
2421
2422         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3297
2423           height property is not honored on table rows
2424
2425         * rendering/RenderTableSection.cpp:
2426         (WebCore::RenderTableSection::addChild): Assign the row renderer to the
2427         grid row.
2428         (WebCore::RenderTableSection::calcRowHeight): Fix off-by-one index bug
2429         and add vertical spacing only for grid rows that have a renderer.
2430         (WebCore::RenderTableSection::recalcCells): Assign row renderers to
2431         grid rows.
2432
2433 2006-05-25  Rob Buis  <buis@kde.org>
2434
2435         Reviewed by darin.  Landed by eseidel.
2436
2437         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=5978
2438         WebKIt+SVG should use SVGDocumentImpl for image/svg+xml
2439
2440         Make sure SVGDocument is created for standalone svg
2441         documents.
2442
2443         * ksvg2/svg/SVGDOMImplementation.cpp:
2444         (SVGDOMImplementation::instance):
2445         (SVGDOMImplementation::createDocument):
2446         * ksvg2/svg/SVGDOMImplementation.h:
2447         * ksvg2/svg/SVGDocument.cpp:
2448         (WebCore::SVGDocument::SVGDocument):
2449         (WebCore::SVGDocument::~SVGDocument):
2450         * ksvg2/svg/SVGDocument.h:
2451         * ksvg2/svg/SVGTests.cpp:
2452         (WebCore::SVGTests::isValid):
2453         * ksvg2/svg/SVGTitleElement.cpp:
2454         * ksvg2/svg/SVGTitleElement.h:
2455         * page/Frame.cpp:
2456         (WebCore::Frame::begin):
2457
2458 2006-05-25  Rob Buis  <buis@kde.org>
2459
2460         Reviewed by darin.  Landed by eseidel.
2461
2462         http://bugzilla.opendarwin.org/show_bug.cgi?id=5889
2463         HTMLNames.* should be generated using make_names.pl
2464
2465         Use a patched make_names.pl to autogenerate HTMLNames.*
2466
2467         * DerivedSources.make:
2468         * WebCore.xcodeproj/project.pbxproj:
2469         * html/HTMLNames.cpp: Removed.
2470         * html/HTMLNames.h: Removed.
2471         * html/HTMLTagNames.in: Added.
2472         * html/HTMLAttributeNames.in: Added.
2473         * ksvg2/scripts/make_names.pl:
2474
2475 2006-05-25  Eric Seidel  <eric@eseidel.com>
2476
2477         Reviewed by andersca.
2478
2479         Add "HasIndexGetter" support to bindings autogen system.
2480         http://bugzilla.opendarwin.org/show_bug.cgi?id=9057
2481
2482         * DerivedSources.make:
2483         * WebCore.xcodeproj/project.pbxproj:
2484         * bindings/js/JSHTMLInputElementBase.cpp:
2485         * bindings/js/kjs_css.cpp:
2486         (KJS::toJS):
2487         * bindings/js/kjs_css.h:
2488         * bindings/js/kjs_dom.cpp:
2489         (KJS::DOMNamedNodeMap::getOwnPropertySlot):
2490         * bindings/scripts/CodeGeneratorJS.pm:
2491         * css/CSSValueList.idl: Added.
2492
2493 2006-05-24  David Hyatt  <hyatt@apple.com>
2494
2495         Implement font aliasing of family names for Courier/Courier New,
2496         Arial/Helvetica, and Times/Times New Roman.  This behavior matches
2497         WinIE and Firefox.
2498
2499         Reviewed by maciej
2500
2501         Test cases not really possible, since they would have to rely on people
2502         not having the fonts installed (so not having installed Office).
2503
2504         * platform/FontCache.cpp:
2505         (WebCore::alternateFamilyName):
2506         (WebCore::FontCache::getCachedFontPlatformData):
2507         * platform/FontCache.h:
2508         * rendering/RenderContainer.cpp:
2509         (WebCore::RenderContainer::removeLeftoverAnonymousBoxes):
2510
2511 === WebCore-521.11 ===
2512
2513 2006-05-24  Justin Garcia  <justin.garcia@apple.com>
2514
2515         Reviewed by levi
2516         
2517         <rdar://problem/4549610> REGRESSION: No initial cursor in Mail reply or Blot document
2518         <rdar://problem/4560698> Mail is very crashy in Leopard9A182, WebCore::Range::compareBoundaryPoints(WebCore::Node*, int, WebCore::Node*, int)
2519
2520         * page/Frame.cpp:
2521         (WebCore::Frame::setSelectionFromNone): Find the body and stick a caret 
2522         in it.
2523
2524 2006-05-24  Geoffrey Garen  <ggaren@apple.com>
2525
2526         Rubber stamped by Anders.
2527         
2528         Removed meaningless 'dom::' prefix in IDL files.
2529
2530         * dom/Range.idl:
2531         * html/CanvasRenderingContext2D.idl:
2532         * html/HTMLOptionElement.idl:
2533
2534 2006-05-24  Geoffrey Garen  <ggaren@apple.com>
2535
2536         Reviewed by andersca.
2537         
2538         - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=9095
2539         regression: can't select by setting option.selected to true
2540         
2541         'text' and 'selected' were erroneously marked read-only for option elements.
2542         
2543         * html/HTMLOptionElement.idl:
2544
2545 2006-05-24  Geoffrey Garen  <ggaren@apple.com>
2546
2547         Reviewed by mjs.
2548
2549         - WebCore half of fix for <rdar://problem/4557926> TOT REGRESSION: Crash
2550         occurs when attempting to view image in slideshow mode at
2551         http://d.smugmug.com/gallery/581716 ( KJS::IfNode::execute
2552         (KJS::ExecState*) + 312)
2553
2554         On alternate threads, DOMObjects remain in the
2555         ScriptInterpreter's cache because they're not collected. So, they
2556         need an opportunity to mark their children.
2557         
2558         I'm not particularly happy with this solution because it fails to
2559         resolve many outstanding issues with the DOM object cache. Since none
2560         of those issues is a crasher or a serious compatibility concern,
2561         and since the behavior of other browsers is not much to go on in this
2562         case, I've filed <rdar://problem/4561439> about that, and I'm moving 
2563         on with my life.
2564
2565         Also added functionality for testing garbage collection from inside
2566         DumpRenderTree.
2567         
2568         Also removed XMLHttpRequest from the DOM object cache because XMLHttpRequest
2569         objects aren't accessed through the DOM.
2570         
2571         Also added JS locking around access to some shared data structures in
2572         WebCoreJavaScript, even though it probably doesn't matter in practice.
2573
2574         * bindings/js/JSXMLHttpRequest.cpp:
2575         (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
2576         (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
2577         * bindings/js/kjs_binding.cpp:
2578         (KJS::ScriptInterpreter::mark):
2579         * bindings/js/kjs_binding.h:
2580         * bridge/mac/WebCoreJavaScript.h:
2581         * bridge/mac/WebCoreJavaScript.mm:
2582         (collect):
2583         (+[WebCoreJavaScript objectCount]):
2584         (+[WebCoreJavaScript interpreterCount]):
2585         (+[WebCoreJavaScript protectedObjectCount]):
2586         (+[WebCoreJavaScript garbageCollect]):
2587         (+[WebCoreJavaScript garbageCollectOnAlternateThread:]):
2588         (+[WebCoreJavaScript shouldPrintExceptions]):
2589         (+[WebCoreJavaScript setShouldPrintExceptions:]):
2590
2591 2006-05-24  Dave Hyatt <hyatt@apple.com>
2592
2593         Fix the font cache corruption problems on Win32.  Move the
2594         native font destruction code out of FontPlatformData and
2595         into FontData.  Implement smallCaps.
2596
2597         * platform/win/FontDataWin.cpp:
2598         (WebCore::FontData::platformDestroy):
2599         (WebCore::FontData::smallCapsFontData):
2600         * platform/win/FontPlatformDataWin.cpp:
2601         (WebCore::FontPlatformData::~FontPlatformData):
2602
2603 2006-05-24  Anders Carlsson  <acarlsson@apple.com>
2604
2605         Reviewed by Maciej.
2606
2607         http://bugzilla.opendarwin.org/show_bug.cgi?id=9093
2608         Implement document.scripts
2609         
2610         * bindings/js/kjs_html.cpp:
2611         (KJS::JSHTMLDocument::getValueProperty):
2612         Return document.scripts() instead of a placeholder object.
2613         
2614         * dom/Document.cpp:
2615         (WebCore::Document::scripts):
2616         * dom/Document.h:
2617         Add Document::scripts.
2618         
2619         * html/HTMLCollection.cpp:
2620         (WebCore::HTMLCollection::traverseNextItem):
2621         * html/HTMLCollection.h:
2622         (WebCore::HTMLCollection::):
2623         Add scripts collection type which traverses all script elements.
2624         
2625 2006-05-24  Anders Carlsson  <acarlsson@apple.com>
2626
2627         Reviewed by Geoff.
2628
2629         http://bugzilla.opendarwin.org/show_bug.cgi?id=9092
2630         innerText is empty for elements without renderers
2631
2632         * dom/Node.cpp:
2633         (WebCore::Node::textContent):
2634         * dom/Node.h:
2635         Add optional convertBRsToNewlines argument for textContent.
2636         
2637         * html/HTMLElement.cpp:
2638         (WebCore::HTMLElement::innerText):
2639         If the element doesn't have a renderer, return textContent.
2640
2641 2006-05-24  Dave Hyatt <hyatt@apple.com>
2642
2643         Fix a bug with the computation of the Cairo glyph offsets
2644         on the Win32 code path.
2645
2646         * ChangeLog:
2647         * platform/GlyphBuffer.h:
2648         (WebCore::GlyphBuffer::add):
2649         * platform/win/FontWin.cpp:
2650         (WebCore::Font::drawGlyphs):
2651
2652 2006-05-23  Dave Hyatt <hyatt@apple.com>
2653
2654         Disable some code in Cairo that is attempting to clip
2655         runs of text to their glyph boundaries, since:
2656
2657         (a) Why re-measure text again when I just gave you
2658         the glyph bounds anyway.
2659         (b) It gets the measurements wrong.
2660
2661         * platform/GlyphBuffer.h:
2662         (WebCore::GlyphBuffer::add):
2663         * platform/cairo/cairo/src/cairo-surface-fallback.c:
2664         (_cairo_surface_fallback_show_glyphs):
2665         * platform/cairo/clipping-cleartype-font-bug-patch.txt: Added.
2666         * platform/win/FontWin.cpp:
2667         (WebCore::Font::drawGlyphs):
2668
2669 2006-05-23  Timothy Hatcher  <timothy@apple.com>
2670
2671         Reviewed by Eric.
2672
2673         Remove the recent idl files from the WebCore target to prevent them
2674         from being copied into the framework resources.
2675
2676         * WebCore.xcodeproj/project.pbxproj:
2677
2678 2006-05-23  John Sullivan  <sullivan@apple.com>
2679
2680         Reviewed by Justin Garcia and Levi Weintraub.
2681         
2682         - fixed Bug 9072: REGRESSION: Misspelling marker incorrect in editing/deleting/delete-and-undo.html
2683
2684         * dom/Document.cpp:
2685         (WebCore::Document::removeMarkers):
2686         One more time to get this right, ugh. There is still one case where we don't want to advance the
2687         iterator, and that's when we remove a marker and do not insert a replacement marker. So I undid
2688         my previous patch, and added it++ to each of the two cases that insert a replacement marker. Now
2689         the layout tests pass even with the pixel tests enabled.
2690
2691 2006-05-23  Dave Hyatt <hyatt@apple.com>
2692
2693         Do an initial implementation of CookieJar on Win32.  No policy
2694         checking yet and the cookies are just always on.
2695
2696         Reviewed by mjs
2697
2698         * WebCore.vcproj/WebCore/WebCore.vcproj:
2699         * platform/win/CookieJarWin.cpp: Added.
2700         (WebCore::setCookies):
2701         (WebCore::cookies):
2702         (WebCore::cookiesEnabled):
2703         * platform/win/TemporaryLinkStubs.cpp:
2704
2705 2006-05-23  Dave Hyatt <hyatt@apple.com>
2706
2707         Fix the JS autogeneration for WebCore so that the hashtables
2708         are correct on Win32.
2709
2710         Switch to using GetCharWidthI so that we can obtain widths
2711         for glyphs instead of having to obtain them from UChars.
2712
2713         Reviewed by eric (autogeneration) and maciej (fonts)
2714
2715         * bindings/scripts/CodeGeneratorJS.pm:
2716         * platform/Font.cpp:
2717         (WebCore::WidthIterator::advance):
2718         * platform/FontData.cpp:
2719         (WebCore::m_smallCapsFontData):
2720         (WebCore::FontData::widthForGlyph):
2721         * platform/FontData.h:
2722         * platform/mac/FontDataMac.mm:
2723         (-[NSFont WebCore]):
2724         * platform/win/FontDataWin.cpp:
2725         (WebCore::FontData::platformWidthForGlyph):
2726
2727 2006-05-23  Levi Weintraub  <lweintraub@apple.com>
2728
2729         Reviewed by Hyatt.
2730
2731         Cleaned up changes to markup by adding the non-virtual
2732         nodeNamePreservingCase accessor function.
2733
2734         * dom/Element.cpp:
2735         (WebCore::Element::nodeNamePreservingCase):
2736         * dom/Element.h:
2737         * editing/markup.cpp:
2738         (WebCore::startMarkup):
2739         (WebCore::endMarkup):
2740
2741 2006-05-23  John Sullivan  <sullivan@apple.com>
2742
2743         Reviewed by Anders Carlsson.
2744
2745         * dom/Document.cpp:
2746         (WebCore::Document::removeMarkers):
2747         Fix to my previous checkin (which broke a layout test).
2748         Advance the iterator position every time through the loop; formerly it was not advanced in the 
2749         case where a marker was actually removed, causing an infinite loop in certain cases. Also
2750         modified a comment that was confusing the situation by falsely claiming that iterating over a 
2751         just-inserted node would always be OK.
2752
2753 2006-05-23  Anders Carlsson  <acarlsson@apple.com>
2754
2755         Reviewed by Maciej.
2756
2757         http://bugzilla.opendarwin.org/show_bug.cgi?id=9017
2758         Weather2.css incorrectly treated as JavaScript file @ www.live.com
2759         
2760         * dom/Element.cpp:
2761         (WebCore::Element::getAttribute):
2762         (WebCore::Element::setAttribute):
2763         (WebCore::Element::removeAttribute):
2764         (WebCore::Element::getAttributeNode):
2765         (WebCore::Element::hasAttribute):
2766         Use new getAttributeItem method.
2767         
2768         * dom/NamedAttrMap.cpp:
2769         (WebCore::NamedAttrMap::getNamedItem):
2770         (WebCore::NamedAttrMap::removeNamedItem):
2771         Use new getAttributeItem method.
2772         
2773         (WebCore::NamedAttrMap::getAttributeItem):
2774         * dom/NamedAttrMap.h:
2775         New method which returns the attribute based on the nodeName.
2776
2777 2006-05-22  Eric Seidel  <eric@eseidel.com>
2778
2779         Rubber-stamped by adele.
2780
2781         * bindings/js/kjs_html.h: simple style cleanup.
2782
2783 === WebCore-521.10 ===
2784
2785 2006-05-22  John Sullivan  <sullivan@apple.com>
2786
2787         Reviewed by Anders Carlsson.
2788         
2789         - fixed Bug 9038: Rework Document::TextMarker mechanism to not use deprecated data structures
2790
2791         Changed Document::markersForNode and Document::MarkerMap to use Vector rather than 
2792         DeprecatedValueList and DeprecatedValueListIterator.
2793         
2794         * dom/Document.h:
2795         * dom/Document.cpp:
2796         (WebCore::Document::addMarker):
2797         (WebCore::Document::copyMarkers):
2798         (WebCore::Document::removeMarkers):
2799         (WebCore::Document::markersForNode):
2800         (WebCore::Document::repaintMarkers):
2801         (WebCore::Document::shiftMarkers):
2802         
2803         * rendering/InlineTextBox.cpp:
2804         (WebCore::InlineTextBox::paintAllMarkersOfType):
2805
2806 2006-05-22  Levi Weintraub  <lweintraub@apple.com>
2807
2808         Reviewed by Eric.
2809         
2810         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8393
2811           <br>s created by createMarkup aren't valid xhtml
2812           Fixed uppered output from innerHTML
2813
2814         * editing/markup.cpp:
2815         (WebCore::startMarkup):
2816         (WebCore::endMarkup):
2817
2818 2006-05-21  Dave Hyatt <hyatt@apple.com>
2819
2820         Fix Win32 bustage.   I forgot to add a bunch of files.
2821         Also tweak some existing functions a bit (just cleanup).
2822
2823         * platform/FontCache.cpp:
2824         (WebCore::FontCache::getCachedFontPlatformData):
2825         (WebCore::FontCache::getFontData):
2826         * platform/FontCache.h:
2827         * platform/mac/FontCacheMac.mm:
2828         (WebCore::FontCache::createFontPlatformData):
2829         * platform/win/FontDataWin.cpp:
2830         (WebCore::FontData::platformDestroy):
2831         (WebCore::FontData::smallCapsFontData):
2832
2833 2006-05-21  Adele Peterson  <adele@apple.com>
2834
2835         Reviewed by Maciej.
2836
2837         - Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9016
2838         crash loading live.com in TreeShared::ref because accessing RenderTextField::text() can destroy the RenderTextField
2839
2840         * rendering/RenderTextField.cpp: (WebCore::RenderTextField::text):
2841         Reverting recent change to user innerText instead of textContent.  For textareas,
2842         we need a better solution than textContent that also takes newlines into account,
2843         but this should fix this crasher.
2844
2845 2006-05-21  Anders Carlsson  <acarlsson@apple.com>
2846
2847         Fix build.
2848         
2849         * ForwardingHeaders/wtf/MathExtras.h: Added.
2850
2851 2006-05-20  Dave Hyatt <hyatt@apple.com>
2852
2853         Switch on Cairo-based text rendering on Win32.  This is tracked
2854         by bug 9019.
2855
2856         Reviewed by maciej
2857
2858         * WebCore.vcproj/WebCore/WebCore.vcproj:
2859         * config.h:
2860         * platform/Font.cpp:
2861         (WebCore::WidthIterator::advance):
2862         (WebCore::WidthIterator::normalizeVoicingMarks):
2863         (WebCore::Font::width):
2864         * platform/Font.h:
2865         (WebCore::Font::isRoundingHackCharacter):
2866         * platform/FontCache.cpp:
2867         (WebCore::computeHash):
2868         (WebCore::FontPlatformDataCacheKeyTraits::deletedValue):
2869         (WebCore::FontPlatformDataCacheKeyTraits::emptyValue):
2870         (WebCore::FontDataCacheKeyTraits::deletedValue):
2871         (WebCore::FontDataCacheKeyTraits::emptyValue):
2872         * platform/FontData.cpp:
2873         (WebCore::m_smallCapsFontData):
2874         (WebCore::FontData::widthForGlyph):
2875         * platform/FontData.h:
2876         * platform/FontPlatformData.h: Removed.
2877         * platform/GlyphBuffer.h:
2878         (WebCore::GlyphBuffer::clear):
2879         (WebCore::GlyphBuffer::glyphs):
2880         (WebCore::GlyphBuffer::advances):
2881         (WebCore::GlyphBuffer::swap):
2882         (WebCore::GlyphBuffer::glyphAt):
2883         (WebCore::GlyphBuffer::advanceAt):
2884         (WebCore::GlyphBuffer::add):
2885         * platform/GlyphMap.cpp:
2886         (WebCore::GlyphMap::locatePage):
2887         * platform/cairo/cairo/src/cairo-win32-font.c:
2888         (cairo_win32_scaled_font_select_font):
2889         * platform/cairo/font-bug-patch.txt: Added.
2890         * platform/mac/FontDataMac.mm:
2891         (-[NSFont WebCore]):
2892         * platform/mac/FontPlatformData.h: Added.
2893         (WebCore::FontPlatformData::FontPlatformData):
2894         * platform/win/FontDataWin.cpp: Added.
2895         (WebCore::FontData::platformInit):
2896         (WebCore::FontData::platformDestroy):
2897         (WebCore::FontData::smallCapsFontData):
2898         (WebCore::FontData::containsCharacters):
2899         (WebCore::FontData::determinePitch):
2900         (WebCore::FontData::platformWidthForGlyph):
2901         * platform/win/FontPlatformDataWin.cpp:
2902         (WebCore::m_size):
2903         (WebCore::FontPlatformData::~FontPlatformData):
2904         * platform/win/FontWin.cpp:
2905         (WebCore::notImplemented):
2906         (WebCore::Font::drawGlyphs):
2907         (WebCore::Font::selectionRectForComplexText):
2908         (WebCore::Font::drawComplexText):
2909         (WebCore::Font::floatWidthForComplexText):
2910         (WebCore::Font::offsetForPositionForComplexText):
2911
2912 2006-05-20  Alexey Proskuryakov  <ap@nypop.com>
2913
2914         Reviewed by Darin.
2915
2916         - http://bugzilla.opendarwin.org/show_bug.cgi?id=8991
2917           REGRESSION: missing or broken CSS custom cursors are displayed as 
2918           a missing image icon
2919
2920         * page/FrameView.cpp:
2921         (WebCore::selectCursor): Fallback to CURSOR_AUTO if the image is an error image.
2922         * manual-tests/custom-cursors.html: Added.
2923
2924 2006-05-20  Mitz Pettel  <opendarwin.org@mitzpettel.com>
2925
2926         Reviewed and landed by ap.
2927
2928         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9009
2929           REGRESSION: ToT crash in WebCore at Zap2it
2930
2931         Test: fast/table/empty-section-crash.html
2932
2933         * rendering/RenderTableSection.cpp:
2934         (WebCore::RenderTableSection::paint): Return immediately if the section
2935         has 0 rows or 0 columns.
2936
2937 2006-05-19  Levi Weintraub  <lweintraub@apple.com>
2938
2939         Reviewed by justin.
2940         
2941         <http://bugzilla.opendarwin.org/show_bug.cgi?id=8931>
2942         Drag caret not painted for editable sub-frames
2943         
2944         Moved the drag caret out of Frame and into Page.
2945         Only the Frame that contains the drag caret will paint it.
2946
2947         * editing/SelectionController.h:
2948         * page/Frame.cpp:
2949         (WebCore::Frame::dragCaret):
2950         (WebCore::Frame::setDragCaret):
2951         (WebCore::Frame::paintDragCaret):
2952         * page/FramePrivate.h:
2953         * page/Page.cpp:
2954         (WebCore::Page::dragCaret):
2955         (WebCore::Page::setDragCaret):
2956         * page/Page.h:
2957
2958 2006-05-19  Alice Liu  <alice.liu@apple.com>
2959
2960         Reviewed by Adele.
2961
2962         * html/HTMLButtonElement.idl:
2963         added support for HTMLButtonElement.click()
2964
2965 2006-05-19  Geoffrey Garen  <ggaren@apple.com>
2966
2967         Reviewed by Eric.
2968
2969         - Fixed non-autogenerated global constructors to match autogenerated
2970         ones and FF. (Found this bug while @ the GOOG.)
2971
2972         (1) They're no longer read-only, so they can be overridden.
2973         (2) They now have the default object prototype, so they can do things 
2974         like 'toString' and 'valueOf', necessary for general functionality,
2975         including my layout test.
2976         (3) Their prototype properties are now enumerable and not read-only.
2977         
2978         * bindings/js/JSDOMParser.cpp:
2979         (KJS::DOMParserConstructorImp::DOMParserConstructorImp):
2980         * bindings/js/JSXMLHttpRequest.cpp:
2981         (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
2982         * bindings/js/JSXMLHttpRequest.h:
2983         * bindings/js/JSXMLSerializer.cpp:
2984         (KJS::XMLSerializerConstructorImp::XMLSerializerConstructorImp):
2985         * bindings/js/JSXSLTProcessor.cpp:
2986         (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp):
2987         * bindings/js/kjs_html.cpp:
2988         (KJS::OptionConstructorImp::OptionConstructorImp):
2989         (KJS::ImageConstructorImp::ImageConstructorImp):
2990         * bindings/js/kjs_window.cpp:
2991
2992 2006-05-19  Anders Carlsson  <acarlsson@apple.com>
2993
2994         Reviewed by Eric.
2995
2996         http://bugzilla.opendarwin.org/show_bug.cgi?id=8983
2997         Autogenerate another 22 HTML classes
2998         
2999         Already covered by existing DOM tests.
3000
3001         * DerivedSources.make:
3002         * WebCore.vcproj/WebCore/WebCore.vcproj:
3003         * WebCore.xcodeproj/project.pbxproj:
3004         Add new IDL files and generated sources.
3005         
3006         * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
3007         (WebCore::JSCanvasRenderingContext2D::drawImage):
3008         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
3009         (WebCore::JSCanvasRenderingContext2D::createPattern):
3010         Use JSHTMLImageElement::info in inherits.
3011         
3012         * bindings/js/JSHTMLElementWrapperFactory.cpp:
3013         (WebCore::createJSWrapper):
3014         Add macros for the functions and the code to populate the hash set.
3015         
3016         * bindings/js/kjs_html.cpp:
3017         (KJS::):
3018         (KJS::JSHTMLElement::classInfo):
3019         (KJS::JSHTMLElement::accessors):
3020         (KJS::HTMLElementFunction::callAsFunction):
3021         * bindings/js/kjs_html.h:
3022         (KJS::JSHTMLElement::):
3023         Delete old cruft.
3024         
3025         * bindings/scripts/CodeGeneratorJS.pm:
3026         Add support for creating a JS object from a HTMLCollection.
3027         
3028         * html/HTMLAreaElement.idl: Added.
3029         * html/HTMLBRElement.idl: Added.
3030         * html/HTMLBaseFontElement.idl: Added.
3031         * html/HTMLBlockquoteElement.idl: Added.
3032         
3033         * html/HTMLBodyElement.cpp:
3034         (WebCore::HTMLBodyElement::scrollLeft):
3035         (WebCore::HTMLBodyElement::setScrollLeft):
3036         (WebCore::HTMLBodyElement::scrollTop):
3037         (WebCore::HTMLBodyElement::setScrollTop):
3038         (WebCore::HTMLBodyElement::scrollHeight):
3039         (WebCore::HTMLBodyElement::scrollWidth):        
3040         * html/HTMLBodyElement.h:
3041         Add new functions that used to be implemented in kjs_html.cpp
3042         
3043         * html/HTMLBodyElement.idl: Added.
3044         * html/HTMLFieldSetElement.idl: Added.
3045         * html/HTMLFontElement.idl: Added.
3046         * html/HTMLHRElement.idl: Added.
3047         * html/HTMLHeadingElement.idl: Added.
3048         * html/HTMLImageElement.idl: Added.
3049         * html/HTMLIsIndexElement.idl: Added.
3050         * html/HTMLLIElement.idl: Added.
3051         * html/HTMLLabelElement.idl: Added.
3052         * html/HTMLLegendElement.idl: Added.
3053         * html/HTMLMapElement.idl: Added.
3054         * html/HTMLMenuElement.idl: Added.
3055         * html/HTMLModElement.idl: Added.
3056         * html/HTMLParagraphElement.idl: Added.
3057         * html/HTMLParamElement.idl: Added.
3058         * html/HTMLPreElement.idl: Added.
3059         * html/HTMLQuoteElement.idl: Added.
3060         * html/HTMLScriptElement.idl: Added.
3061
3062 2006-05-18  David Hyatt  <hyatt@apple.com>
3063
3064         Turn off responding to font changes while running.  It doesn't work
3065         right anyway.
3066
3067         Reviewed by darin
3068
3069         * platform/FontCache.cpp:
3070         (WebCore::FontCache::getCachedFontPlatformData):
3071         * platform/FontCache.h:
3072         * platform/GlyphMap.h:
3073         (WebCore::GlyphMap::~GlyphMap):
3074         * platform/GlyphWidthMap.h:
3075         (WebCore::GlyphWidthMap::~GlyphWidthMap):
3076         * platform/mac/FontCacheMac.mm:
3077         (WebCore::FontCache::platformInit):
3078
3079 2006-05-18  Darin Adler  <darin@apple.com>
3080
3081         - try to fix the Windows build
3082
3083         * platform/TextEncoding.h: Changed a ";" to a ",".
3084         * WebCore.vcproj/WebCore/WebCore.vcproj: Removed
3085         JSCanvasRenderingContext2DBase.cpp and
3086         JSCanvasRenderingContext2DBase.h. Added
3087         JSCanvasRenderingContext2DCustom.cpp.
3088
3089 2006-05-18  Sam Weinig  <sam.weinig@gmail.com>
3090
3091         Reviewed by Hyatt.
3092
3093         Fix for <http://bugzilla.opendarwin.org/show_bug.cgi?id=8896>
3094         Bug 8896: Absolutely positioned elements should use their parent's
3095         direction when left, right and width are auto in quirks mode.
3096
3097         Use the parent's direction instead of the containing
3098         block's in quirks mode for absolute positioning to match
3099         WinIE.
3100
3101         * rendering/RenderBox.cpp:
3102         (WebCore::RenderBox::calcAbsoluteHorizontal):
3103         (WebCore::RenderBox::calcAbsoluteHorizontalValues):
3104         (WebCore::RenderBox::calcAbsoluteHorizontalReplaced):
3105         * rendering/RenderBox.h:
3106
3107 2006-05-18  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3108
3109         Reviewed and tweaked (way too much) by Darin.
3110
3111         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8937
3112           EncodingMap uses 0 as its empty value but 0 is a valid TextEncodingID
3113
3114         * platform/CharsetNames.cpp:
3115         (WebCore::TextEncodingIDHashTraits::emptyValue): Added a non-zero empty value,
3116         InvalidEncoding, and used InvalidEncoding2 for the deleted value.
3117         (WebCore::buildCharsetMaps): Added an assertion that the deleted and empty
3118         values are not valid encodings.
3119         * platform/TextEncoding.h: Defined InvalidEncoding2.
3120
3121 2006-05-18  David Hyatt  <hyatt@apple.com>
3122
3123         Horrible glyph map performance regression fix.
3124         The initial page of the map was being rebuilt over and over again.
3125
3126         Reviewed by andersca
3127
3128         * platform/GlyphMap.cpp:
3129         (WebCore::GlyphMap::locatePage):
3130         * platform/GlyphWidthMap.cpp:
3131         (WebCore::GlyphWidthMap::locatePage):
3132
3133 2006-05-18  Anders Carlsson  <acarlsson@apple.com>
3134
3135         Reviewed by Darin.
3136
3137         http://bugzilla.opendarwin.org/show_bug.cgi?id=8964
3138         Autogenerate more HTML classes
3139         
3140         * DerivedSources.make:
3141         * WebCore.xcodeproj/project.pbxproj:
3142         Add new files.
3143         
3144         * bindings/js/JSHTMLElementWrapperFactory.cpp:
3145         (WebCore::createAnchorWrapper):
3146         (WebCore::createAppletWrapper):
3147         (WebCore::createDivWrapper):
3148         (WebCore::createDirectoryWrapper):
3149         (WebCore::createDListWrapper):
3150         (WebCore::createHtmlWrapper):
3151         (WebCore::createOListWrapper):
3152         (WebCore::createUListWrapper):
3153         (WebCore::createJSWrapper):
3154         Add wrappers.
3155         
3156         * bindings/js/kjs_html.cpp:
3157         (KJS::):
3158         (KJS::JSHTMLElement::classInfo):
3159         (KJS::JSHTMLElement::accessors):
3160         (KJS::HTMLElementFunction::callAsFunction):
3161         * bindings/js/kjs_html.h:
3162         (KJS::JSHTMLElement::):
3163         Delete the old implementations.
3164         
3165         * html/HTMLAnchorElement.cpp:
3166         (WebCore::HTMLAnchorElement::hash):
3167         (WebCore::HTMLAnchorElement::host):
3168         (WebCore::HTMLAnchorElement::hostname):
3169         (WebCore::HTMLAnchorElement::pathname):
3170         (WebCore::HTMLAnchorElement::port):
3171         (WebCore::HTMLAnchorElement::protocol):
3172         (WebCore::HTMLAnchorElement::search):
3173         (WebCore::HTMLAnchorElement::text):
3174         * html/HTMLAnchorElement.h:
3175         Add some new accessor methods which used to be in kjs_html.cpp.
3176         
3177         * html/HTMLAnchorElement.idl: Added.
3178         * html/HTMLAppletElement.idl: Added.
3179         * html/HTMLDListElement.idl: Added.
3180         * html/HTMLDirectoryElement.idl: Added.
3181         * html/HTMLDivElement.idl: Added.
3182         * html/HTMLHtmlElement.idl: Added.
3183         * html/HTMLOListElement.idl: Added.
3184         * html/HTMLUListElement.idl: Added.
3185
3186 2006-05-17  David Hyatt  <hyatt@apple.com>
3187
3188         Convert the width map for glyphs into the same new HashMap-style as the
3189         glyph map for characters.
3190
3191         * WebCore.xcodeproj/project.pbxproj:
3192         * platform/FontData.cpp:
3193         (WebCore::FontData::~FontData):
3194         (WebCore::FontData::widthForGlyph):
3195         * platform/FontData.h:
3196         * platform/GlyphWidthMap.cpp: Added.
3197         (WebCore::GlyphWidthMap::widthForGlyph):
3198         (WebCore::GlyphWidthMap::setWidthForGlyph):
3199         (WebCore::GlyphWidthMap::locatePage):
3200         * platform/GlyphWidthMap.h: Added.
3201         (WebCore::GlyphWidthMap::GlyphWidthMap):
3202         (WebCore::GlyphWidthMap::~GlyphWidthMap):
3203         (WebCore::GlyphWidthMap::GlyphWidthPage::widthForGlyph):
3204         (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForGlyph):
3205         (WebCore::GlyphWidthMap::GlyphWidthPage::setWidthForIndex):
3206
3207 2006-05-17  David Hyatt  <hyatt@apple.com>
3208
3209         Rename FontData.mm to FontData.cpp, since it has no obj-c in it.
3210
3211         * WebCore.xcodeproj/project.pbxproj:
3212         * platform/FontData.cpp: Added.
3213
3214 2006-05-17  David Hyatt  <hyatt@apple.com>
3215
3216         Split FontData.mm into platform-specific and cross-platform pieces.
3217
3218         Reviewed by andersca
3219
3220         * WebCore.xcodeproj/project.pbxproj:
3221         * platform/FontData.h:
3222         (WebCore::FontData::xHeight):
3223         * platform/mac/FontData.mm:
3224         (WebCore::FontData::widthForGlyph):
3225         (WebCore::m_smallCapsFontData):
3226         (WebCore::FontData::~FontData):
3227         (WebCore::extendWidthMap):
3228
3229 2006-05-17  John Sullivan  <sullivan@apple.com>
3230
3231         Reviewed by Darin Adler
3232         
3233         Improvement to my previous patch, suggested by Darin
3234
3235         * dom/Document.cpp:
3236         (WebCore::Document::repaintMarkers):
3237         new method, similar in structure to removeMarkers but just repaints each node that
3238         has a marker of the specified type
3239         * dom/Document.h:
3240         declare new method, and tweak style in related method declarations
3241         
3242         * page/Frame.cpp:
3243         (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
3244         if the value changes, call repaintMarkers
3245
3246 2006-05-17  Eric Seidel  <eseidel@apple.com>
3247
3248         Reviewed by andersca.
3249
3250         Autogenerate button, optgroup, option, input and textarea js bindings
3251         http://bugzilla.opendarwin.org/show_bug.cgi?id=8953
3252
3253         * DerivedSources.make:
3254         * WebCore.xcodeproj/project.pbxproj:
3255         * bindings/js/JSHTMLElementWrapperFactory.cpp:
3256         (WebCore::createButtonWrapper):
3257         (WebCore::createInputWrapper):
3258         (WebCore::createOptGroupWrapper):
3259         (WebCore::createOptionWrapper):
3260         (WebCore::createTextAreaWrapper):
3261         (WebCore::createJSWrapper):
3262         * bindings/js/JSHTMLInputElementBase.cpp: Added.
3263         (WebCore::JSHTMLInputElementBaseProtoFunc::callAsFunction):
3264         (WebCore::):
3265         (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
3266         (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
3267         * bindings/js/JSHTMLInputElementBase.h: Added.
3268         (WebCore::JSHTMLInputElementBase::classInfo):
3269         (WebCore::JSHTMLInputElementBase::):
3270         (WebCore::JSHTMLInputElementBase::impl):
3271         * bindings/js/JSHTMLOptionElementConstructor.cpp: Added.
3272         (WebCore::JSHTMLOptionElementConstructor::JSHTMLOptionElementConstructor):
3273         (WebCore::JSHTMLOptionElementConstructor::implementsConstruct):
3274         (WebCore::JSHTMLOptionElementConstructor::construct):
3275         * bindings/js/JSHTMLOptionElementConstructor.h: Added.
3276         * bindings/js/kjs_domnode.h:
3277         * bindings/js/kjs_html.cpp:
3278         (KJS::):
3279         (KJS::JSHTMLElement::classInfo):
3280         (KJS::JSHTMLElement::accessors):
3281         (KJS::JSHTMLElement::getOwnPropertySlot):
3282         (KJS::HTMLElementFunction::callAsFunction):
3283         (KJS::JSHTMLElement::put):
3284         (KJS::JSHTMLElement::htmlSetter):
3285         * bindings/js/kjs_html.h:
3286         (KJS::JSHTMLElement::):
3287         * bindings/js/kjs_window.cpp:
3288         (KJS::Window::getValueProperty):
3289         * bindings/scripts/CodeGeneratorJS.pm:
3290         * html/HTMLButtonElement.idl: Added.
3291         * html/HTMLInputElement.idl: Added.
3292         * html/HTMLOptGroupElement.idl: Added.
3293         * html/HTMLOptionElement.idl: Added.
3294         * html/HTMLTextAreaElement.idl: Added.
3295
3296 2006-05-17  Adele Peterson  <adele@apple.com>
3297
3298         Reviewed by Hyatt.
3299
3300         First step for http://bugzilla.opendarwin.org/show_bug.cgi?id=8948
3301         Switch to use new text field implementation for <textarea>
3302
3303         New textareas can be turned on by setting -webkit-appearance:textarea.
3304
3305         Tests:
3306         * LayoutTests/fast/block/float/032.html - Updated results.
3307
3308         * bridge/mac/FrameMac.h: Added textDidChangeinTextArea to send notification over the bridge to form delegate.
3309         * bridge/mac/FrameMac.mm: (WebCore::FrameMac::textDidChangeInTextArea): ditto.
3310         * page/Frame.cpp: (WebCore::Frame::textDidChangeInTextArea): ditto.
3311         * page/Frame.h: ditto.
3312
3313         * css/CSSValueKeywords.in: Added textarea.
3314         * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Updates to check for textarea.
3315         * css/html4.css: Added style for textarea.  Leaved background-color and appearance values commented out.
3316         * rendering/render_style.h: (WebCore::): Added TextAreaAppearance.
3317
3318         * rendering/RenderTheme.cpp:
3319         (WebCore::RenderTheme::adjustStyle): Updated for textarea.
3320         (WebCore::RenderTheme::paint): ditto.
3321         (WebCore::RenderTheme::paintBorderOnly): ditto.
3322         (WebCore::RenderTheme::isControlStyled): ditto.
3323         (WebCore::RenderTheme::supportsFocusRing): ditto.
3324         (WebCore::RenderTheme::adjustTextFieldStyle): ditto.
3325         (WebCore::RenderTheme::adjustTextAreaStyle): ditto.
3326         * rendering/RenderTheme.h: (WebCore::RenderTheme::paintTextArea): Added.
3327         * rendering/RenderThemeMac.h: Added adjustTextAreaStyle.
3328         Note- I didn't add a paintTextArea function for RenderThemeMac, since we can just paint the border 
3329         specified in html4.css to match the NSTextView border.  Added a paintTextArea function to the Windows
3330         theme can override that border.
3331         * rendering/RenderThemeMac.mm:
3332         (WebCore::RenderThemeMac::isControlStyled): Updated for textarea.
3333         (WebCore::RenderThemeMac::adjustTextAreaStyle): ditto.
3334
3335         * html/HTMLGenericFormElement.cpp: (WebCore::HTMLGenericFormElement::HTMLGenericFormElement):
3336         Moved m_valueMatchesRenderer and its setters and getters into this class so HTMLInputElement and
3337         HTMLTextArea can share.
3338         * html/HTMLGenericFormElement.h:
3339         (WebCore::HTMLGenericFormElement::valueMatchesRenderer): Added.
3340         (WebCore::HTMLGenericFormElement::setValueMatchesRenderer): Added.
3341         * html/HTMLInputElement.cpp:
3342         (WebCore::HTMLInputElement::init): Remove m_valueMatchesRenderer intialization.
3343         (WebCore::HTMLInputElement::isKeyboardFocusable): Updated spelling.
3344         (WebCore::HTMLInputElement::createRenderer): Pass multiLine bool to RenderTextField constructor.
3345         (WebCore::HTMLInputElement::parseMappedAttribute): Use setValueMatchesRenderer instead of m_valueMatchesRenderer.
3346         (WebCore::HTMLInputElement::detach): ditto.
3347         (WebCore::HTMLInputElement::setValue): ditto.
3348         (WebCore::HTMLInputElement::setValueFromRenderer): ditto.
3349         * html/HTMLInputElement.h: Remove setValueMatchesRenderer and valueMatchesRenderer and m_valueMatchesRenderer.
3350         * html/HTMLTextAreaElement.cpp:
3351         (WebCore::HTMLTextAreaElement::HTMLTextAreaElement): Calls setValueMatchesRenderer to intialize m_valueMatchesRenderer.
3352         (WebCore::HTMLTextAreaElement::selectionStart): Uses appearance to determine which renderer to use.
3353         (WebCore::HTMLTextAreaElement::selectionEnd): ditto.
3354         (WebCore::HTMLTextAreaElement::setSelectionStart): ditto.
3355         (WebCore::HTMLTextAreaElement::setSelectionEnd): ditto.
3356         (WebCore::HTMLTextAreaElement::select): ditto.
3357         (WebCore::HTMLTextAreaElement::setSelectionRange): ditto.
3358         (WebCore::HTMLTextAreaElement::createRenderer): ditto.
3359         (WebCore::HTMLTextAreaElement::appendFormData): ditto.
3360         (WebCore::HTMLTextAreaElement::updateValue): ditto.
3361         (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Added.
3362         (WebCore::HTMLTextAreaElement::isMouseFocusable): Added.
3363         (WebCore::HTMLTextAreaElement::focus): Added.
3364         (WebCore::HTMLTextAreaElement::defaultEventHandler): Added to forward events to the inner div.
3365         (WebCore::HTMLTextAreaElement::setValue): Calls setValueMatchesRenderer.
3366         * html/HTMLTextAreaElement.h: Added defaultEventHandler, isMouseFocusable, isKeyboardFocusable, and focus methods.
3367         Removed invalidateValue and m_valueMatchesRenderer since those are now handled in the base class.
3368         * html/HTMLTextFieldInnerElement.cpp: (WebCore::HTMLTextFieldInnerElement::defaultEventHandler):
3369         Updated to handle textareas.
3370         * rendering/RenderTextArea.cpp: (WebCore::RenderTextArea::valueChanged):
3371         Calls setValueMatchesRenderer(false) instead of invalidateValue.
3372
3373         * rendering/RenderTextField.h: Changed to be a RenderFlexibleBox instead of a RenderBlock.
3374         This was necessary to get the inner div's height to grow and shrink with the size of the textarea.
3375         Added m_multiLine bool, and calcHeight, canHaveChildren, baselinePosition, isTextArea, textWithHardLineBreaks, selectionChanged.
3376         (WebCore::RenderTextField::canHaveChildren): Returns false now so that no renderer gets created for
3377         the textarea's child text node for its initial contents.
3378         (WebCore::RenderTextField::isTextField): Returns true if m_multiLine is false.
3379         (WebCore::RenderTextField::isTextArea): Returns true if m_multiLine is true.
3380         * rendering/RenderTextField.cpp:
3381         (WebCore::RenderTextField::RenderTextField):  Initializes m_multiLine.
3382         (WebCore::RenderTextField::~RenderTextField): Notifies HTMLTextAreaElement that the renderer is being destroyed so the value gets updated.
3383         (WebCore::RenderTextField::setStyle): Makes sure there's no overflow clip on the RenderTextField, since we're handling overflow on the inner div.
3384         (WebCore::RenderTextField::createDivStyle): Sets white-space, box-flex, overflow, word-wrap styles needed for text area.
3385         (WebCore::RenderTextField::updateFromElement): Updated for textarea elements.
3386         (WebCore::RenderTextField::setSelectionRange): Optimized caret case by checking to see if start is equal to end before calculating
3387         the same VisiblePosition twice.
3388         (WebCore::RenderTextField::subtreeHasChanged): Updated for textarea elements.
3389         (WebCore::RenderTextField::text): Use innerText so newlines are considered.
3390         (WebCore::RenderTextField::textWithHardLineBreaks): Added.  Not implemented yet. Just calls text method.
3391         (WebCore::RenderTextField::calcHeight): Added. Sets initial height based on specified number of rows, and then calls the base class.
3392         (WebCore::RenderTextField::baselinePosition): Added. Unlike text fields, textareas align to the bottom.
3393         (WebCore::RenderTextField::calcMinMaxWidth): Updated for textareas.
3394         (WebCore::RenderTextField::selectionChanged): Added. Not implemented yet.
3395
3396 2006-05-17  David Hyatt  <hyatt@apple.com>
3397
3398         Fix for 8954, separate the glyph map out into its own files and make it
3399         cross-platform.
3400
3401         Reviewed by darin
3402
3403         * WebCore.xcodeproj/project.pbxproj:
3404         * platform/Font.cpp:
3405         (WebCore::WidthIterator::advance):
3406         * platform/FontData.h:
3407         (WebCore::FontData::glyphDataForCharacter):
3408         (WebCore::FontData::setGlyphDataForCharacter):
3409         * platform/GlyphMap.cpp: Added.
3410         (WebCore::GlyphMap::glyphDataForCharacter):
3411         (WebCore::GlyphMap::setGlyphDataForCharacter):
3412         (WebCore::GlyphMap::locatePage):
3413         * platform/GlyphMap.h: Added.
3414         (WebCore::GlyphMap::GlyphMap):
3415         (WebCore::GlyphMap::~GlyphMap):
3416         (WebCore::GlyphMap::GlyphPage::glyphDataForCharacter):
3417         (WebCore::GlyphMap::GlyphPage::setGlyphDataForCharacter):
3418         (WebCore::GlyphMap::GlyphPage::setGlyphDataForIndex):
3419         * platform/mac/FontData.mm:
3420         (-[NSFont WebCore]):
3421         (WidthMap::m_ATSUMirrors):
3422         (WidthMap::FontData::~FontData):
3423         (WidthMap::FontData::xHeight):
3424         (WidthMap::FontData::platformInit):
3425         (WidthMap::extendWidthMap):
3426         * platform/mac/GlyphMapMac.cpp: Added.
3427         (WebCore::GlyphMap::fillPage):
3428         * platform/mac/WebCoreSystemInterface.h:
3429
3430 2006-05-17  Anders Carlsson  <acarlsson@apple.com>
3431
3432         Reviewed by Maciej.
3433
3434         http://bugzilla.opendarwin.org/show_bug.cgi?id=8958
3435         Should be able to have custom implementations for JS methods
3436         
3437         * DerivedSources.make:
3438         * WebCore.xcodeproj/project.pbxproj:
3439         * bindings/js/JSCanvasRenderingContext2DBase.cpp: Removed.
3440         * bindings/js/JSCanvasRenderingContext2DBase.h: Removed.
3441         * bindings/js/JSCanvasRenderingContext2DCustom.cpp: Added.
3442         Remove JSCanvasRenderingContext2DBase and add 
3443         JSCanvasRenderingContext2DCustom with custom implementations.
3444         
3445         (WebCore::toJS):
3446         (WebCore::toHTMLCanvasStyle):
3447         (WebCore::JSCanvasRenderingContext2D::strokeStyle):
3448         (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
3449         (WebCore::JSCanvasRenderingContext2D::fillStyle):
3450         (WebCore::JSCanvasRenderingContext2D::setFillStyle):
3451         (WebCore::JSCanvasRenderingContext2D::setFillColor):
3452         (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
3453         (WebCore::JSCanvasRenderingContext2D::strokeRect):
3454         (WebCore::JSCanvasRenderingContext2D::drawImage):
3455         (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
3456         (WebCore::JSCanvasRenderingContext2D::setShadow):
3457         (WebCore::JSCanvasRenderingContext2D::createPattern):
3458         Move implementations from JSCanvasRenderingContext2DBase.
3459         
3460         * bindings/scripts/CodeGeneratorJS.pm:
3461         Add new "Custom" extended attribute for functions and attributes. When a function or 
3462         attribute has this attribute, a custom implementation is called instead of calling down to
3463         the DOM object.
3464         
3465         * html/CanvasRenderingContext2D.idl:
3466         Add bunch of custom attributes and functions.
3467
3468 2006-05-17  John Sullivan  <sullivan@apple.com>
3469
3470         Reviewed by Maciej.
3471         
3472         First step towards making text-matching mechanism more flexible; now caller can 
3473         control whether or not the matches are highlighted.
3474
3475         * bridge/mac/WebCoreFrameBridge.h:
3476         * bridge/mac/WebCoreFrameBridge.mm:
3477         (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:]):
3478         renamed from highlightAllMatchesForString:
3479         (-[WebCoreFrameBridge markedTextMatchesAreHighlighted]):
3480         new getter method
3481         (-[WebCoreFrameBridge setMarkedTextMatchesAreHighlighted:]):
3482         new setter method
3483         (-[WebCoreFrameBridge unmarkAllTextMatches]):
3484         renamed from clearHighlightedMatches
3485         
3486         * page/Frame.h:
3487         * page/Frame.cpp:
3488         (WebCore::Frame::markAllMatchesForText):
3489         renamed from highlightAllMatchesForString
3490         (WebCore::Ferame::markedTextMatchesAreHighlighted):
3491         new getter method, uses boolean ivar in FramePrivate
3492         (WebCore::Frame::setMarkedTextMatchesAreHighlighted):
3493         new setter method, uses boolean ivar in FramePrivate
3494         
3495         * page/FramePrivate.h:
3496         (WebCore::FramePrivate::FramePrivate):
3497         added boolean ivar m_highlightTextMatches, initialized to 0
3498         
3499         * rendering/InlineTextBox.cpp:
3500         (WebCore::InlineTextBox::paint):
3501         respect markedTextMatchesAreHighlighted
3502
3503         * WebCore.xcodeproj/project.pbxproj:
3504         newer Xcode removed some obsolete settings
3505        
3506 2006-05-17  Adele Peterson  <adele@apple.com>
3507
3508         Reviewed by Beth.
3509
3510         * editing/htmlediting.cpp: (WebCore::editingIgnoresContent):
3511         Reverting change that Darin made a few weeks ago.  He was trying
3512         to make editingIgnoresContent return true for the new text fields, but the code
3513         actually didn't change that result.  When the new text fields actually do return
3514         true for editingIgnoresContent, other editing problems are exposed. For example,
3515         moving the cursor around an editable area that contains a text field will cross the
3516         text field boundary and descend into the shadow tree.  So for now, we'll revert this
3517         change.
3518
3519 2006-05-17  Mitz Pettel  <opendarwin.org@mitzpettel.com>
3520
3521         Reviewed by Maciej, tweaked by Darin.
3522
3523         - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8951
3524           AtomicString hash corrupted by high-bit Latin-1
3525
3526         Test: fast/encoding/high-bit-latin1.html
3527
3528         * platform/AtomicString.cpp: (WebCore::CStringTranslator::equal): Use an
3529         unsigned char local.
3530         * platform/StringImpl.cpp: (WebCore::StringImpl::init): Ditto.
3531
3532 2006-05-17  Rob Buis  <buis@kde.org>
3533
3534         Reviewed by Maciej.
3535
3536         Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=7492
3537         CSS attribute selectors fail when the setAttribute() method is used
3538         to create an attribute and the attribute name is not Class or ID.
3539
3540         Keep track of attributes used in attribute selectors to
3541         check after setAttribute whether a style recalc is needed.
3542
3543         Test: fast/css/selector-set-attribute.html
3544
3545         * css/cssstyleselector.cpp:
3546         (WebCore::CSSStyleSelector::checkOneSelector):
3547         (WebCore::CSSStyleSelector::hasSelectorForAttribute):