1 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
5 Kill warnings when generating IDL files on Qt/Linux, as the
6 SOURCE_ROOT environment variable is not defined (and not needed) for us.
8 * bindings/scripts/CodeGenerator.pm:
10 2006-10-08 Maciej Stachowiak <mjs@apple.com>
14 - split didNotOpenURL: into general and page-cache-specific parts
16 * bridge/mac/WebCoreFrameBridge.h:
17 * bridge/mac/WebCoreFrameBridge.mm:
18 (-[WebCoreFrameBridge didNotOpenURL:]):
19 (-[WebCoreFrameBridge invalidatePageCache:]):
21 2006-10-08 Anders Carlsson <acarlsson@apple.com>
26 Remove DeprecatedStringList.h include.
29 (WebCore::Frame::submitForm):
30 Don't remove "attach" from mailto URLs, we don't do it anywhere else.
32 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
36 Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
37 Yet another round of Objective-C SVG DOM bindings auto-generation
39 - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
40 DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
41 DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
42 DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
43 DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
44 DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
45 DOMSVGZoomAndPan and DOMSVGZoomEvent.
47 - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
48 using the new [ConvertFromString] property.
50 - Add forward declarations for NS* types to auto-generated classes.
52 * DerivedSources.make:
53 * WebCore.xcodeproj/project.pbxproj:
54 * bindings/objc/DOMHTMLAppletElement.mm: Removed.
55 * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
56 * bindings/objc/DOMInternal.h:
57 * bindings/objc/DOMSVG.h:
58 * bindings/scripts/CodeGeneratorObjC.pm:
59 * html/HTMLAppletElement.idl:
60 * html/HTMLEmbedElement.idl:
61 * ksvg2/svg/SVGPatternElement.idl:
62 * ksvg2/svg/SVGPolygonElement.idl:
63 * ksvg2/svg/SVGPolylineElement.idl:
64 * ksvg2/svg/SVGRadialGradientElement.idl:
65 * ksvg2/svg/SVGRenderingIntent.idl:
66 * ksvg2/svg/SVGScriptElement.idl:
67 * ksvg2/svg/SVGSetElement.idl:
68 * ksvg2/svg/SVGStopElement.idl:
69 * ksvg2/svg/SVGSwitchElement.idl:
70 * ksvg2/svg/SVGSymbolElement.idl:
71 * ksvg2/svg/SVGTRefElement.idl:
72 * ksvg2/svg/SVGTSpanElement.idl:
73 * ksvg2/svg/SVGTextContentElement.idl:
74 * ksvg2/svg/SVGTextElement.idl:
75 * ksvg2/svg/SVGTextPositioningElement.idl:
76 * ksvg2/svg/SVGTitleElement.idl:
77 * ksvg2/svg/SVGUseElement.idl:
78 * ksvg2/svg/SVGViewElement.idl:
79 * ksvg2/svg/SVGZoomEvent.idl:
81 2006-10-07 Anders Carlsson <acarlsson@apple.com>
85 Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
87 (WebCore::Loader::servePendingRequests):
89 2006-10-07 Anders Carlsson <acarlsson@apple.com>
93 Convert a bunch of RefPtr<StringImpl> to String.
95 * bridge/mac/FrameMac.h:
96 * bridge/mac/FrameMac.mm:
97 (WebCore::FrameMac::didTellBridgeAboutLoad):
98 (WebCore::FrameMac::haveToldBridgeAboutLoad):
99 * dom/BeforeUnloadEvent.cpp:
100 (WebCore::BeforeUnloadEvent::storeResult):
101 * dom/BeforeUnloadEvent.h:
102 (WebCore::BeforeUnloadEvent::result):
104 (WebCore::Document::createEntityReference):
106 (WebCore::Entity::Entity):
107 (WebCore::Entity::nodeName):
108 (WebCore::Entity::toString):
110 (WebCore::Entity::publicId):
111 (WebCore::Entity::systemId):
112 (WebCore::Entity::notationName):
113 * dom/EntityReference.cpp:
114 (WebCore::EntityReference::EntityReference):
115 (WebCore::EntityReference::nodeName):
116 (WebCore::EntityReference::cloneNode):
117 (WebCore::EntityReference::toString):
118 * dom/EntityReference.h:
119 * dom/KeyboardEvent.cpp:
120 (WebCore::KeyboardEvent::KeyboardEvent):
121 (WebCore::KeyboardEvent::initKeyboardEvent):
122 * dom/KeyboardEvent.h:
123 (WebCore::KeyboardEvent::keyIdentifier):
124 * dom/MutationEvent.cpp:
125 (WebCore::MutationEvent::MutationEvent):
126 (WebCore::MutationEvent::initMutationEvent):
127 * dom/MutationEvent.h:
128 (WebCore::MutationEvent::prevValue):
129 (WebCore::MutationEvent::newValue):
130 (WebCore::MutationEvent::attrName):
132 (WebCore::Notation::Notation):
133 (WebCore::Notation::nodeName):
135 (WebCore::Notation::publicId):
136 (WebCore::Notation::systemId):
137 * dom/ProcessingInstruction.cpp:
138 (WebCore::ProcessingInstruction::ProcessingInstruction):
139 (WebCore::ProcessingInstruction::setData):
140 (WebCore::ProcessingInstruction::nodeName):
141 (WebCore::ProcessingInstruction::nodeValue):
142 (WebCore::ProcessingInstruction::cloneNode):
143 (WebCore::ProcessingInstruction::checkStyleSheet):
144 (WebCore::ProcessingInstruction::toString):
145 * dom/ProcessingInstruction.h:
146 (WebCore::ProcessingInstruction::target):
147 (WebCore::ProcessingInstruction::data):
148 (WebCore::ProcessingInstruction::localHref):
150 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
154 Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
155 10 more SVG Objective-C auto-generated bindings
157 - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
158 DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
159 DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
160 DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
162 - Auto-generate the text method for DOMRange.
164 * DerivedSources.make:
165 * WebCore.xcodeproj/project.pbxproj:
166 * bindings/objc/DOM.mm:
167 * bindings/objc/DOMExtensions.h:
168 * bindings/objc/DOMInternal.h:
169 * bindings/objc/DOMPrivate.h:
170 * bindings/objc/DOMRGBColor.mm:
171 * bindings/objc/DOMSVG.h:
172 * bindings/objc/PublicDOMInterfaces.h:
173 * bindings/scripts/CodeGeneratorObjC.pm:
175 * ksvg2/svg/SVGFilterElement.cpp:
176 * ksvg2/svg/SVGFilterElement.h:
177 * ksvg2/svg/SVGFilterElement.idl:
178 * ksvg2/svg/SVGForeignObjectElement.idl:
179 * ksvg2/svg/SVGGElement.idl:
180 * ksvg2/svg/SVGGradientElement.idl:
181 * ksvg2/svg/SVGImageElement.idl:
182 * ksvg2/svg/SVGLineElement.idl:
183 * ksvg2/svg/SVGLinearGradientElement.idl:
184 * ksvg2/svg/SVGMarkerElement.idl:
185 * ksvg2/svg/SVGMaskElement.idl:
186 * ksvg2/svg/SVGPaint.idl:
188 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
192 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
193 Auto-generate a few more Objective-C DOM interfaces
195 - Fully auto-generate DOMAbstractView and DOMRange.
197 - Auto-generate just the interface for DOMRGBColor.
199 - Add DOMRanges.h as the new top level file for Ranges
202 - Add DOMRanges.h and DOMXPath.h to DOM.mm
204 * DerivedSources.make:
205 * WebCore.xcodeproj/project.pbxproj:
206 * bindings/objc/DOM.h:
207 * bindings/objc/DOM.mm:
208 * bindings/objc/DOMAbstractView.h: Removed.
209 * bindings/objc/DOMAbstractView.mm: Removed.
210 * bindings/objc/DOMInternal.h:
211 * bindings/objc/DOMPrivate.h:
212 * bindings/objc/DOMRGBColor.h: Removed.
213 * bindings/objc/DOMRGBColor.mm:
214 * bindings/objc/DOMRange.h: Removed.
215 * bindings/objc/DOMRanges.h: Added.
216 * bindings/objc/PublicDOMInterfaces.h:
217 * bindings/scripts/CodeGeneratorObjC.pm:
220 * page/AbstractView.idl: Added.
222 2006-10-07 Andrew Wellington <proton@wiretapped.net>
226 Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
227 http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
229 Return null when there is no frame. This matches Firefox.
231 * bindings/js/kjs_html.cpp:
232 (KJS::JSHTMLDocument::getValueProperty):
234 2006-10-07 David Hyatt <hyatt@apple.com>
236 Implement scroll corner painting (a white rect fill) for overflow areas to cover up
237 scrollbar joins properly.
239 Refactor painting of scrollbars and resizers into common functions. Eliminate the
240 extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
244 * page/FrameView.cpp:
245 (WebCore::selectCursor):
246 (WebCore::FrameView::handleMouseMoveEvent):
247 * platform/mac/PlatformScrollBar.h:
248 (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
249 (WebCore::PlatformScrollbar::verticalScrollbarWidth):
250 * rendering/RenderLayer.cpp:
251 (WebCore::RenderLayer::RenderLayer):
252 (WebCore::RenderLayer::~RenderLayer):
253 (WebCore::RenderLayer::updateLayerPositions):
254 (WebCore::scrollCornerRect):
255 (WebCore::RenderLayer::positionOverflowControls):
256 (WebCore::RenderLayer::paintOverflowControls):
257 (WebCore::RenderLayer::isPointInResizeControl):
258 (WebCore::RenderLayer::paintLayer):
259 * rendering/RenderLayer.h:
261 2006-10-07 Mark Rowe <bdash@webkit.org>
265 Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
266 matching recent ResourceLoader changes.
268 * platform/gdk/FrameGdk.cpp:
269 (WebCore::FrameGdk::openURL):
270 (WebCore::FrameGdk::urlSelected):
271 * platform/gdk/PlatformScrollBar.h:
272 * platform/gdk/ResourceLoaderCurl.cpp:
273 (WebCore::ResourceLoader::start):
274 * platform/gdk/ScrollViewGdk.cpp:
275 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
276 (WebCore::ScrollView::resizeContents):
277 (WebCore::ScrollView::scrollBy):
278 (WebCore::ScrollView::hScrollbarMode):
279 (WebCore::ScrollView::vScrollbarMode):
280 (WebCore::ScrollView::suppressScrollbars):
281 (WebCore::ScrollView::setHScrollbarMode):
282 (WebCore::ScrollView::setVScrollbarMode):
283 (WebCore::ScrollView::setScrollbarsMode):
284 * platform/gdk/TemporaryLinkStubs.cpp:
285 (FrameView::passMousePressEventToScrollbar):
286 (Widget::removeFromParent):
287 (ScrollView::addChild):
288 (ScrollView::updateScrollbars):
289 (ScrollView::scrollbarUnderMouse):
290 (PlatformScrollbar::PlatformScrollbar):
291 (PlatformScrollbar::~PlatformScrollbar):
292 (PlatformScrollbar::width):
293 (PlatformScrollbar::height):
294 (PlatformScrollbar::setEnabled):
295 (PlatformScrollbar::paint):
296 (PlatformScrollbar::updateThumbPosition):
297 (PlatformScrollbar::updateThumbProportion):
298 (PlatformScrollbar::setRect):
299 (Scrollbar::Scrollbar):
300 (Scrollbar::setSteps):
302 (Scrollbar::setValue):
303 (Scrollbar::setProportion):
305 2006-10-06 Dave Hyatt <hyatt@apple.com>
307 Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
309 * page/FrameView.cpp:
310 (WebCore::FrameView::windowClipRect):
312 * platform/ScrollView.h:
313 * platform/Widget.cpp:
314 (WebCore::Widget::windowClipRect):
316 (WebCore::Widget::geometryChanged):
317 (WebCore::Widget::handleMouseMoveEvent):
318 (WebCore::Widget::handleMouseReleaseEvent):
319 * platform/mac/ScrollViewMac.mm:
320 (WebCore::ScrollView::addChild):
321 * rendering/RenderLayer.cpp:
322 (WebCore::RenderLayer::documentClipRect):
323 * rendering/RenderLayer.h:
325 2006-10-06 Steve Falkenburg <sfalken@apple.com>
329 Add another method we'll need for scrollbar dodging
331 * platform/ScrollView.h:
332 * platform/win/TemporaryLinkStubs.cpp:
333 (ScrollView::resizerOverlapsContent):
335 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
339 Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
340 Auto-generate the interfaces even for Objective-C DOM
341 bindings that need custom implementations
343 - Fully auto-generate DOMEventTarget, DOMNodeFilter and
344 DOMHTMLOptionElement.
346 - Auto-generate just the interface for DOMHTMLAppletElement,
347 DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
348 using the new IDL property ObjCCustomImplementation.
350 * DerivedSources.make:
351 * WebCore.xcodeproj/project.pbxproj:
352 * bindings/objc/DOMEventTarget.h: Removed.
353 * bindings/objc/DOMHTMLAppletElement.h: Removed.
354 * bindings/objc/DOMHTMLEmbedElement.h: Removed.
355 * bindings/objc/DOMHTMLOptionElement.h: Removed.
356 * bindings/objc/DOMHTMLOptionElement.mm: Removed.
357 * bindings/objc/DOMInternal.h:
358 * bindings/objc/DOMNodeFilter.h: Removed.
359 * bindings/objc/DOMSVGNumber.h: Removed.
360 * bindings/objc/DOMSVGPoint.h: Removed.
361 * bindings/objc/DOMSVGPoint.mm:
362 (-[DOMSVGPoint matrixTransform:]):
363 * bindings/objc/DOMSVGRect.h: Removed.
364 * bindings/objc/PublicDOMInterfaces.h:
365 * bindings/scripts/CodeGeneratorObjC.pm:
366 * dom/EventTarget.idl:
367 * html/HTMLAppletElement.idl:
368 * html/HTMLEmbedElement.idl:
369 * html/HTMLOptionElement.idl:
370 * ksvg2/svg/SVGNumber.idl:
371 * ksvg2/svg/SVGPoint.idl:
372 * ksvg2/svg/SVGRect.idl:
374 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
378 Make Qt/Linux compile again completly.
380 * platform/qt/WidgetQt.cpp:
381 (WebCore::Widget::removeFromParent):
383 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
387 Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
389 * platform/qt/PlatformScrollBar.h:
390 * platform/qt/ScrollViewQt.cpp:
391 (WebCore::ScrollView::hScrollbarMode):
392 (WebCore::ScrollView::vScrollbarMode):
393 (WebCore::ScrollView::suppressScrollbars):
394 (WebCore::ScrollView::setHScrollbarMode):
395 (WebCore::ScrollView::setVScrollbarMode):
396 (WebCore::ScrollView::setScrollbarsMode):
397 (WebCore::ScrollView::scrollbarUnderMouse):
398 * platform/qt/TemporaryLinkStubs.cpp:
399 (WebCore::Scrollbar::Scrollbar):
400 (WebCore::Scrollbar::setSteps):
401 (WebCore::Scrollbar::scroll):
402 (WebCore::Scrollbar::setValue):
403 (WebCore::Scrollbar::setProportion):
404 (WebCore::PlatformScrollbar::PlatformScrollbar):
405 (WebCore::PlatformScrollbar::~PlatformScrollbar):
406 (WebCore::PlatformScrollbar::width):
407 (WebCore::PlatformScrollbar::height):
408 (WebCore::PlatformScrollbar::setEnabled):
409 (WebCore::PlatformScrollbar::paint):
410 (WebCore::PlatformScrollbar::updateThumbPosition):
411 (WebCore::PlatformScrollbar::updateThumbProportion):
412 (WebCore::PlatformScrollbar::setRect):
413 (FrameView::passMousePressEventToScrollbar):
415 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
419 Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
420 Another round of Objective-C SVG DOM bindings auto-generation
422 - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
423 DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
424 DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
425 DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
426 DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
427 DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
428 DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
429 DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
430 DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
431 DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
432 DOMSVGFETileElement, DOMSVGFETurbulenceElement,
433 DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
435 - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
440 - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
441 in it's macro declaration and definition.
443 * DerivedSources.make:
444 * WebCore.xcodeproj/project.pbxproj:
445 * bindings/objc/DOMCSS.mm:
446 (+[DOMCSSValue _CSSValueWith:WebCore::]):
447 * bindings/objc/DOMInternal.h:
448 * bindings/objc/DOMSVG.h:
449 * bindings/objc/DOMSVGNumber.h: Added.
450 * bindings/objc/DOMSVGNumber.mm: Added.
451 (-[DOMSVGNumber dealloc]):
452 (-[DOMSVGNumber finalize]):
453 (-[DOMSVGNumber value]):
454 (-[DOMSVGNumber setValue:]):
455 (-[DOMSVGNumber _SVGNumber]):
456 (-[DOMSVGNumber _initWithFloat:]):
457 (+[DOMSVGNumber _SVGNumberWith:]):
458 * bindings/objc/DOMSVGPoint.h: Added.
459 * bindings/objc/DOMSVGPoint.mm: Added.
460 (-[DOMSVGPoint dealloc]):
461 (-[DOMSVGPoint finalize]):
463 (-[DOMSVGPoint setX:]):
465 (-[DOMSVGPoint setY:]):
466 (-[DOMSVGPoint WebCore::]):
467 (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
468 (+[DOMSVGPoint _SVGPointWith:WebCore::]):
469 * bindings/objc/DOMSVGRect.h: Added.
470 * bindings/objc/DOMSVGRect.mm: Added.
471 (-[DOMSVGRect dealloc]):
472 (-[DOMSVGRect finalize]):
474 (-[DOMSVGRect setX:]):
476 (-[DOMSVGRect setY:]):
477 (-[DOMSVGRect width]):
478 (-[DOMSVGRect setWidth:]):
479 (-[DOMSVGRect height]):
480 (-[DOMSVGRect setHeight:]):
481 (-[DOMSVGRect WebCore::]):
482 (-[DOMSVGRect _initWithFloatRect:WebCore::]):
483 (+[DOMSVGRect _SVGRectWith:WebCore::]):
484 * bindings/scripts/CodeGeneratorObjC.pm:
485 * ksvg2/svg/SVGAnimatedNumberList.idl:
486 * ksvg2/svg/SVGAnimatedRect.idl:
487 * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
488 * ksvg2/svg/SVGCursorElement.idl:
489 * ksvg2/svg/SVGFEBlendElement.idl:
490 * ksvg2/svg/SVGFEColorMatrixElement.idl:
491 * ksvg2/svg/SVGFEComponentTransferElement.idl:
492 * ksvg2/svg/SVGFECompositeElement.idl:
493 * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
494 * ksvg2/svg/SVGFEDisplacementMapElement.idl:
495 * ksvg2/svg/SVGFEDistantLightElement.idl:
496 * ksvg2/svg/SVGFEFloodElement.idl:
497 * ksvg2/svg/SVGFEFuncAElement.idl:
498 * ksvg2/svg/SVGFEFuncBElement.idl:
499 * ksvg2/svg/SVGFEFuncGElement.idl:
500 * ksvg2/svg/SVGFEFuncRElement.idl:
501 * ksvg2/svg/SVGFEGaussianBlurElement.idl:
502 * ksvg2/svg/SVGFEImageElement.idl:
503 * ksvg2/svg/SVGFEMergeElement.idl:
504 * ksvg2/svg/SVGFEMergeNodeElement.idl:
505 * ksvg2/svg/SVGFEOffsetElement.idl:
506 * ksvg2/svg/SVGFEPointLightElement.idl:
507 * ksvg2/svg/SVGFESpecularLightingElement.idl:
508 * ksvg2/svg/SVGFESpotLightElement.idl:
509 * ksvg2/svg/SVGFETileElement.idl:
510 * ksvg2/svg/SVGFETurbulenceElement.cpp:
511 * ksvg2/svg/SVGFETurbulenceElement.h:
512 * ksvg2/svg/SVGFETurbulenceElement.idl:
513 * ksvg2/svg/SVGNumberList.idl:
515 2006-10-06 Adam Roben <aroben@apple.com>
517 Backing out my previous change.
519 * WebCore.xcodeproj/project.pbxproj:
520 * page/FrameView.cpp:
521 (WebCore::FrameView::adjustViewSize):
523 2006-10-06 Adam Roben <aroben@apple.com>
527 * WebCore.xcodeproj/project.pbxproj:
528 * page/FrameView.cpp:
529 (WebCore::FrameView::windowResizerRect):
531 2006-10-06 Adam Roben <aroben@apple.com>
537 * platform/ResourceLoader.h:
538 * platform/ResourceLoaderInternal.h:
539 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
540 * platform/win/TemporaryLinkStubs.cpp:
541 (WebCore::ResourceLoader::newHTTPRequest):
543 2006-10-05 Steve Falkenburg <sfalken@apple.com>
547 Stub out some methods that we'll be able to use to dodge a window resizer.
549 * bridge/win/FrameWin.h:
551 (WebCore::Frame::windowResizerRect):
553 * platform/ScrollView.h:
554 (WebCore::ScrollView::windowResizerRect):
556 * platform/win/TemporaryLinkStubs.cpp:
557 (FrameView::windowResizerRect):
560 (FrameWin::windowResizerRect):
562 2006-10-05 Dave Hyatt <hyatt@apple.com>
564 Stub out setFrameGeometry.
566 * platform/ScrollView.h:
568 2006-10-05 Adele Peterson <adele@apple.com>
570 Reverting autoscroll fix. I need to rework this a little.
573 (WebCore::Frame::handleAutoscroll):
574 (WebCore::Frame::autoscrollTimerFired):
575 (WebCore::Frame::stopAutoscrollTimer):
577 * rendering/RenderLayer.cpp:
578 (WebCore::RenderLayer::~RenderLayer):
579 * rendering/RenderListBox.cpp:
580 (WebCore::RenderListBox::~RenderListBox):
582 2006-10-05 Alice <alice.liu@apple.com>
586 Fixed <rdar://problem/4731778>
588 * editing/CommandByName.cpp:
589 (WebCore::Frame::Command::):
590 was calling the wrong enabledFn for arrow selection and navigation
592 2006-10-05 Adele Peterson <adele@apple.com>
596 - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
597 and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
599 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
600 * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
602 * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
603 (WebCore::Frame::handleAutoscroll):
604 (WebCore::Frame::autoscrollTimerFired):
605 (WebCore::Frame::autoscrollRenderer):
606 (WebCore::Frame::setAutoscrollRenderer):
607 (WebCore::Frame::stopAutoscrollTimer):
610 2006-10-05 Don Gibson <dgibson77@gmail.com>
614 Fix win32 build bustage after ggaren's Scrollbar renaming changes.
615 Properly include PlatformScrollBar.h in WbCore.vcproj.
616 Clean up WidgetWin.cpp a bit.
618 * WebCore.vcproj/WebCore/WebCore.vcproj:
620 * platform/win/PlatformScrollBar.h:
621 * platform/win/ScrollViewWin.cpp:
622 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
623 (WebCore::ScrollView::resizeContents):
624 (WebCore::ScrollView::scrollBy):
625 (WebCore::ScrollView::hScrollbarMode):
626 (WebCore::ScrollView::vScrollbarMode):
627 (WebCore::ScrollView::suppressScrollbars):
628 (WebCore::ScrollView::setHScrollbarMode):
629 (WebCore::ScrollView::setVScrollbarMode):
630 (WebCore::ScrollView::setScrollbarsMode):
631 (WebCore::ScrollView::updateScrollbars):
632 * platform/win/TemporaryLinkStubs.cpp:
633 (FrameView::passMousePressEventToScrollbar):
634 (Widget::removeFromParent):
635 (ScrollView::scrollbarUnderMouse):
636 (PlatformScrollbar::PlatformScrollbar):
637 (PlatformScrollbar::~PlatformScrollbar):
638 (PlatformScrollbar::width):
639 (PlatformScrollbar::height):
640 (PlatformScrollbar::setEnabled):
641 (PlatformScrollbar::paint):
642 (PlatformScrollbar::updateThumbPosition):
643 (PlatformScrollbar::updateThumbProportion):
644 (PlatformScrollbar::setRect):
645 (Scrollbar::Scrollbar):
646 (Scrollbar::setSteps):
648 (Scrollbar::setValue):
649 (Scrollbar::setProportion):
650 * platform/win/WidgetWin.cpp:
651 (WebCore::WidgetPrivate::WidgetPrivate):
652 (WebCore::Widget::Widget):
653 (WebCore::Widget::setContainingWindow):
654 (WebCore::Widget::containingWindow):
656 2006-10-05 Geoffrey Garen <ggaren@apple.com>
660 * WebCore.xcodeproj/project.pbxproj:
661 * bridge/mac/BrowserExtensionMac.mm:
662 (WebCore::BrowserExtensionMac::createNewWindow):
663 * bridge/mac/FrameMac.mm:
664 (WebCore::FrameMac::createFrame):
665 * bridge/mac/FrameViewMac.mm:
666 (WebCore::FrameView::passMousePressEventToScrollbar):
667 * bridge/mac/WebCoreFrameBridge.mm:
668 (-[WebCoreFrameBridge installInFrame:]):
669 * bridge/mac/WebCoreFrameView.h:
670 * platform/ScrollBar.cpp:
672 * platform/mac/PlatformScrollBar.h:
673 * platform/mac/PlatformScrollBarMac.mm:
674 (NSControlSizeForScrollBarControlSize):
675 (-[WebCoreScrollBar initWithPlatformScrollbar:]):
676 (-[WebCoreScrollBar detachPlatformScrollbar]):
677 (-[WebCoreScrollBar scroll:]):
678 (-[WebCoreScrollBar widget]):
679 (WebCore::PlatformScrollbar::PlatformScrollbar):
680 (WebCore::PlatformScrollbar::~PlatformScrollbar):
681 (WebCore::PlatformScrollbar::updateThumbPosition):
682 (WebCore::PlatformScrollbar::updateThumbProportion):
683 (WebCore::PlatformScrollbar::scrollbarHit):
684 (WebCore::PlatformScrollbar::width):
685 (WebCore::PlatformScrollbar::height):
686 (WebCore::PlatformScrollbar::setRect):
687 (WebCore::PlatformScrollbar::setEnabled):
688 (WebCore::PlatformScrollbar::paint):
689 * platform/mac/ScrollViewMac.mm:
690 (WebCore::ScrollView::setVScrollbarMode):
691 (WebCore::ScrollView::setHScrollbarMode):
692 (WebCore::ScrollView::setScrollbarsMode):
693 (WebCore::ScrollView::vScrollbarMode):
694 (WebCore::ScrollView::hScrollbarMode):
695 (WebCore::ScrollView::suppressScrollbars):
696 (WebCore::ScrollView::scrollbarUnderMouse):
697 * platform/mac/WidgetMac.mm:
698 (WebCore::Widget::removeFromParent):
699 * rendering/RenderLayer.cpp:
700 (WebCore::RenderLayer::destroyScrollbar):
702 2006-10-05 Geoffrey Garen <ggaren@apple.com>
707 * rendering/RenderLayer.cpp:
708 (WebCore::RenderLayer::destroyScrollbar):
710 2006-10-06 Mitz Pettel <mitz@webkit.org>
712 http://bugs.webkit.org/show_bug.cgi?id=8276
713 Fix broken manual test added back in r13990.
715 Add resource forks for test resources.
717 * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
718 * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
719 * manual-tests/resources/plain-text-paste/._4.txt: Added.
720 * manual-tests/resources/plain-text-paste/._5.webloc: Added.
722 2006-10-05 David Hyatt <hyatt@apple.com>
724 Rename addClip to clip.
728 * kcanvas/RenderForeignObject.cpp:
729 (WebCore::RenderForeignObject::paint):
730 * kcanvas/RenderSVGContainer.cpp:
731 (WebCore::RenderSVGContainer::paint):
732 * kcanvas/RenderSVGImage.cpp:
733 (WebCore::RenderSVGImage::paint):
734 * platform/GraphicsContext.h:
735 * platform/cairo/GraphicsContextCairo.cpp:
736 (WebCore::GraphicsContext::clip):
737 * platform/cg/GraphicsContextCG.cpp:
738 (WebCore::GraphicsContext::savePlatformState):
739 (WebCore::GraphicsContext::restorePlatformState):
740 (WebCore::GraphicsContext::clip):
741 (WebCore::GraphicsContext::addRoundedRectClip):
742 (WebCore::GraphicsContext::addInnerRoundedRectClip):
743 (WebCore::GraphicsContext::scale):
744 (WebCore::GraphicsContext::rotate):
745 (WebCore::GraphicsContext::translate):
746 (WebCore::GraphicsContext::concatCTM):
747 * platform/cg/GraphicsContextPlatformPrivate.h:
748 (WebCore::GraphicsContextPlatformPrivate::save):
749 (WebCore::GraphicsContextPlatformPrivate::restore):
750 (WebCore::GraphicsContextPlatformPrivate::clip):
751 (WebCore::GraphicsContextPlatformPrivate::scale):
752 (WebCore::GraphicsContextPlatformPrivate::rotate):
753 (WebCore::GraphicsContextPlatformPrivate::translate):
754 (WebCore::GraphicsContextPlatformPrivate::concatCTM):
755 * platform/qt/GraphicsContextQt.cpp:
756 (WebCore::GraphicsContext::clip):
757 (WebCore::GraphicsContext::addInnerRoundedRectClip):
758 (WebCore::GraphicsContext::addRoundedRectClip):
759 * rendering/InlineFlowBox.cpp:
760 (WebCore::InlineFlowBox::paintBackground):
761 (WebCore::InlineFlowBox::paintBackgroundAndBorder):
762 * rendering/InlineTextBox.cpp:
763 (WebCore::InlineTextBox::paintSelection):
764 (WebCore::InlineTextBox::paintTextMatchMarker):
765 * rendering/RenderBox.cpp:
766 (WebCore::RenderBox::paintBackgroundExtended):
767 * rendering/RenderButton.cpp:
768 (WebCore::RenderButton::paintObject):
769 * rendering/RenderFileUploadControl.cpp:
770 (WebCore::RenderFileUploadControl::paintObject):
771 * rendering/RenderLayer.cpp:
772 (WebCore::RenderLayer::beginTransparencyLayers):
774 * rendering/RenderListBox.cpp:
775 (WebCore::RenderListBox::paintObject):
776 * rendering/RenderMenuList.cpp:
777 (WebCore::RenderMenuList::paintObject):
778 * rendering/RenderTableCell.cpp:
779 (WebCore::RenderTableCell::paintBackgroundsBehindCell):
781 2006-10-05 Mitz Pettel <mitz@webkit.org>
785 - http://bugs.webkit.org/show_bug.cgi?id=10386
786 Delete RenderImageButton.* and remove references from .vcproj and .bkl files
789 * WebCore.vcproj/WebCore/WebCore.vcproj:
790 * WebCoreSources.bkl:
791 * rendering/RenderImageButton.cpp: Removed.
792 * rendering/RenderImageButton.h: Removed.
794 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
798 - http://bugs.webkit.org/show_bug.cgi?id=11067
799 manual-tests/scrollbar-hittest2.html is invalid
801 * manual-tests/scrollbar-hittest2.html:
803 2006-10-05 David Carson <dacarson@gmail.com>
807 http://bugs.webkit.org/show_bug.cgi?id=11152
808 Adjust the tokenizer chunk size to be smaller for
809 mobile devices, and also decrease the yield timer
810 for the tokenizer so that it can resume earlier.
812 * html/HTMLTokenizer.cpp:
815 2006-10-05 Adam Roben <aroben@apple.com>
817 Removing accidentally-checked-in do-nothing code.
819 * html/HTMLInputElement.cpp:
820 (WebCore::HTMLInputElement::defaultEventHandler):
822 2006-10-05 David Carson <dacarson@gmail.com>
826 http://bugs.webkit.org/show_bug.cgi?id=11158
827 Initialize class variables
829 * rendering/RenderLayer.cpp:
830 (WebCore::RenderLayer::RenderLayer):
832 2006-10-05 Don Gibson <dgibson77@gmail.com>
834 Reviewed by Darin, landed by Adam.
836 http://bugs.webkit.org/show_bug.cgi?id=11176
837 Fix win32 build, adapt to Maciej's ResourceLoader changes.
839 * platform/win/ResourceLoaderWin.cpp:
840 (WebCore::ResourceLoader::start):
842 2006-10-05 Marvin Decker <marv.decker@gmail.com>
846 http://bugs.webkit.org/show_bug.cgi?id=10989
847 Provide a way for embedders to implement BrowserExtensionWin
849 * WebCore.vcproj/WebCore/WebCore.vcproj:
850 * bridge/win/BrowserExtensionWin.cpp: Added.
851 (BrowserExtensionWin::BrowserExtensionWin):
852 (BrowserExtensionWin::setTypedIconURL):
853 (BrowserExtensionWin::setIconURL):
854 (BrowserExtensionWin::getHistoryLength):
855 (BrowserExtensionWin::canRunModal):
856 (BrowserExtensionWin::createNewWindow):
857 (BrowserExtensionWin::canRunModalNow):
858 (BrowserExtensionWin::runModal):
859 (BrowserExtensionWin::goBackOrForward):
860 (BrowserExtensionWin::historyURL):
861 * bridge/win/BrowserExtensionWin.h:
862 * bridge/win/FrameWin.cpp:
863 (WebCore::FrameWin::createNewWindow):
864 * bridge/win/FrameWin.h:
865 * platform/win/TemporaryLinkStubs.cpp:
867 2006-10-05 Geoffrey Garen <ggaren@apple.com>
871 Fixed <rdar://problem/4766987>
873 - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
874 except for file names.
876 - fixed RenderLayer to properly tear down scrollbars, removing them from
879 * bindings/js/kjs_window.cpp:
880 (KJS::showModalDialog):
881 (KJS::setWindowFeature):
882 (KJS::parseWindowFeatures):
883 * bridge/BrowserExtension.h:
885 (WebCore::Document::setInPageCache):
886 * html/HTMLFrameElement.cpp:
887 (WebCore::HTMLFrameElement::init):
888 (WebCore::HTMLFrameElement::parseMappedAttribute):
889 * html/HTMLFrameElement.h:
890 (WebCore::HTMLFrameElement::scrollingMode):
892 (WebCore::Frame::finishedParsing):
893 (WebCore::Frame::scrollbarsVisible):
894 * page/FrameView.cpp:
895 (WebCore::FrameViewPrivate::FrameViewPrivate):
896 (WebCore::FrameViewPrivate::reset):
897 (WebCore::FrameView::~FrameView):
898 (WebCore::FrameView::resetScrollbars):
899 (WebCore::FrameView::clear):
900 (WebCore::FrameView::initScrollbars):
901 (WebCore::FrameView::applyOverflowToViewport):
902 (WebCore::FrameView::layout):
903 (WebCore::FrameView::handleMousePressEvent):
904 (WebCore::selectCursor):
905 (WebCore::FrameView::handleMouseMoveEvent):
906 (WebCore::FrameView::setScrollbarsMode):
907 (WebCore::FrameView::setVScrollbarMode):
908 (WebCore::FrameView::setHScrollbarMode):
909 (WebCore::FrameView::restoreScrollbar):
910 (WebCore::FrameView::dispatchMouseEvent):
911 (WebCore::FrameView::scrollbarMoved):
913 * page/MouseEventWithHitTestResults.cpp:
914 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
915 * page/MouseEventWithHitTestResults.h:
916 (WebCore::MouseEventWithHitTestResults::scrollbar):
917 * platform/ScrollBar.cpp:
918 (WebCore::Scrollbar::Scrollbar):
919 (WebCore::Scrollbar::setValue):
920 (WebCore::Scrollbar::setProportion):
921 (WebCore::Scrollbar::setSteps):
922 (WebCore::Scrollbar::scroll):
923 * platform/ScrollBar.h:
925 (WebCore::ScrollbarClient::~ScrollbarClient):
926 (WebCore::Scrollbar::~Scrollbar):
927 (WebCore::Scrollbar::orientation):
928 (WebCore::Scrollbar::controlSize):
929 (WebCore::Scrollbar::hasPlatformScrollbars):
930 (WebCore::Scrollbar::client):
931 * platform/ScrollBarMode.h:
933 * platform/ScrollView.h:
934 * rendering/RenderBlock.cpp:
935 (WebCore::RenderBlock::isPointInScrollbar):
936 * rendering/RenderLayer.cpp:
937 (WebCore::RenderLayer::RenderLayer):
938 (WebCore::RenderLayer::~RenderLayer):
939 (WebCore::RenderLayer::scrollToOffset):
940 (WebCore::RenderLayer::horizontaScrollbarWidget):
941 (WebCore::RenderLayer::verticalScrollbarWidget):
942 (WebCore::RenderLayer::valueChanged):
943 (WebCore::RenderLayer::createScrollbar):
944 (WebCore::RenderLayer::destroyScrollbar):
945 (WebCore::RenderLayer::setHasHorizontalScrollbar):
946 (WebCore::RenderLayer::setHasVerticalScrollbar):
947 (WebCore::RenderLayer::verticalScrollbarWidth):
948 (WebCore::RenderLayer::horizontalScrollbarHeight):
949 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
950 * rendering/RenderLayer.h:
951 (WebCore::RenderLayer::horizontalScrollbar):
952 (WebCore::RenderLayer::verticalScrollbar):
953 * rendering/RenderListBox.cpp:
954 (WebCore::RenderListBox::~RenderListBox):
955 (WebCore::RenderListBox::calcMinMaxWidth):
956 (WebCore::RenderListBox::isPointInScrollbar):
957 (WebCore::RenderListBox::optionAtPoint):
958 (WebCore::RenderListBox::valueChanged):
959 * rendering/RenderListBox.h:
960 * rendering/RenderObject.h:
961 (WebCore::RenderObject::NodeInfo::scrollbar):
962 (WebCore::RenderObject::NodeInfo::setScrollbar):
964 2006-10-05 Don Gibson <dgibson77@gmail.com>
968 http://bugs.webkit.org/show_bug.cgi?id=11138
969 Incorrect mouse event generation on Windows
971 * platform/win/MouseEventWin.cpp:
972 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
973 (1) Set mouse button even for non-click-related messages.
974 (2) Track clicks correctly for all buttons, not just the left button.
976 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
978 Reviewed and landed by ap.
980 Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
982 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
983 (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
984 (WebCore::KRenderingPaintServerLinearGradientQt::setup):
985 (WebCore::KRenderingPaintServerRadialGradientQt::setup):
986 (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
987 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
988 (WebCore::KRenderingPaintServerPatternQt::renderPath):
989 * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
990 (WebCore::KRenderingPaintServerQt::setPenProperties):
991 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
992 (WebCore::KRenderingPaintServerSolidQt::setup):
993 (WebCore::KRenderingPaintServerSolidQt::renderPath):
994 * kcanvas/device/qt/RenderPathQt.cpp:
995 (WebCore::getPathStroke):
997 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
1001 http://bugs.webkit.org/show_bug.cgi?id=11054
1002 REGRESSION: Traditional Chinese encoding in login authentication
1004 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
1005 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
1006 for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
1008 * platform/StreamingTextDecoderICU.cpp:
1009 (WebCore::TextCodecICU::registerEncodingNames):
1011 2006-10-05 Eric Seidel <eric@eseidel.com>
1016 Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1018 * WebCore.xcodeproj/project.pbxproj:
1019 * ksvg2/ecma/GlobalObject.cpp: Removed.
1020 * ksvg2/ecma/GlobalObject.h: Removed.
1022 2006-10-05 Adam Roben <aroben@apple.com>
1026 Small ResourceLoaderInternal tweak.
1028 * platform/ResourceLoaderInternal.h:
1029 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1031 2006-10-05 Eric Seidel <eric@eseidel.com>
1035 More incremental KCanvas cleanup and optimization.
1036 Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1037 Optimized dash array usage to not malloc.
1038 Also removed un-needed KSVGRenderingStyle includes.
1040 * kcanvas/KCanvasTreeDebug.cpp:
1041 (WebCore::operator<<):
1042 * kcanvas/RenderPath.cpp:
1043 (WebCore::RenderPath::nodeAtPoint):
1044 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1045 (WebCore::RenderPath::strokeBBox):
1046 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1047 (WebCore::KRenderingPaintServerGradientQuartz::setup):
1048 (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1049 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1050 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1051 (WebCore::KRenderingPaintServerSolidQuartz::setup):
1052 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1053 (WebCore::KRenderingPaintServerPatternQuartz::setup):
1054 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1055 * kcanvas/device/quartz/QuartzSupport.mm:
1056 (WebCore::applyStrokeStyleToContext):
1057 * ksvg2/css/SVGRenderStyle.h:
1058 (WebCore::SVGRenderStyle::hasStroke):
1059 (WebCore::SVGRenderStyle::hasFill):
1060 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1061 (WebCore::KSVGPainterFactory::fillPaintServer):
1062 (WebCore::KSVGPainterFactory::strokePaintServer):
1063 * ksvg2/misc/KCanvasRenderingStyle.h:
1065 2006-10-05 Maciej Stachowiak <mjs@apple.com>
1069 - changed ResourceLoader to be refcounted
1071 It keeps a ref on itself while loading as well. This makes
1072 for a much saner memory management model than the previous.
1074 * bridge/mac/WebCoreResourceLoaderImp.mm:
1075 (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1076 * dom/XMLTokenizer.cpp:
1077 (WebCore::openFunc):
1078 * loader/icon/IconLoader.cpp:
1079 (IconLoader::IconLoader):
1080 (IconLoader::~IconLoader):
1081 (IconLoader::startLoading):
1082 (IconLoader::stopLoading):
1083 (IconLoader::receivedData):
1084 * loader/icon/IconLoader.h:
1085 * loader/loader.cpp:
1086 (WebCore::Loader::servePendingRequests):
1087 * platform/ResourceLoader.cpp:
1088 (WebCore::ResourceLoader::create):
1089 (WebCore::ResourceLoader::kill):
1090 * platform/ResourceLoader.h:
1091 * platform/ResourceLoaderInternal.h:
1092 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1093 * platform/mac/ResourceLoaderMac.mm:
1094 (WebCore::ResourceLoader::start):
1095 * xml/XSLTProcessor.cpp:
1096 (WebCore::docLoaderFunc):
1097 * xml/xmlhttprequest.cpp:
1098 (WebCore::XMLHttpRequest::send):
1099 * xml/xmlhttprequest.h:
1101 2006-10-05 Eric Seidel <eric@eseidel.com>
1105 Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
1106 http://bugs.webkit.org/show_bug.cgi?id=11163
1108 No SVG performance tests yet.
1110 * kcanvas/RenderForeignObject.cpp:
1111 (WebCore::RenderForeignObject::paint):
1112 * kcanvas/RenderSVGContainer.cpp:
1113 (WebCore::RenderSVGContainer::paint):
1114 * kcanvas/RenderSVGImage.cpp:
1115 (WebCore::RenderSVGImage::paint):
1116 * kcanvas/RenderSVGText.cpp:
1117 (WebCore::RenderSVGText::paint):
1119 2006-10-05 Dave Hyatt <hyatt@apple.com>
1121 Stub out some stuff for widget focusability.
1125 * page/FrameView.cpp:
1126 (WebCore::FrameView::dispatchMouseEvent):
1127 * platform/ScrollView.h:
1128 * platform/Widget.h:
1130 2006-10-05 Adam Roben <aroben@apple.com>
1132 Reviewed by Maciej and Tim H.
1134 Copy some WebKit frame lifetime logic into WebCore -- just a step
1135 along the path to frame lifetime being handled completely in WebCore.
1137 * bridge/mac/FrameMac.mm:
1138 (WebCore::FrameMac::setView): Move platform-independent parts of this
1141 (WebCore::Frame::setView): Adding platform-independent parts of
1143 (WebCore::Frame::detachChildren): New method to accomplish what
1144 -[WebFrameBridge _detachChildren] currently does.
1145 (WebCore::Frame::clear): Call detachChildren
1146 * page/Frame.h: Add declaration for detachChildren
1148 2006-10-04 Alice Liu <alice.liu@apple.com>
1152 Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
1154 * xml/xmlhttprequest.cpp:
1155 (WebCore::XMLHttpRequest::setRequestHeader):
1156 removed exception set when the request is not open yet
1158 2006-10-04 Anders Carlsson <acarlsson@apple.com>
1160 Reviewed by John Sullivan.
1162 <rdar://problem/4654328>
1163 Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
1165 * loader/PluginDocument.cpp:
1166 (WebCore::PluginTokenizer::writeRawData):
1167 Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
1169 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
1173 http://bugs.webkit.org/show_bug.cgi?id=11130
1174 Convert "undefined" to AE missing value
1176 * bridge/mac/WebCoreFrameBridge.mm:
1177 (aeDescFromJSValue): return missing value for UndefinedType.
1179 2006-10-03 Dave Hyatt <hyatt@apple.com>
1181 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
1182 the windowToContents/contentsToWindow functions.
1186 * bridge/mac/FrameMac.mm:
1187 (WebCore::FrameMac::eventMayStartDrag):
1188 (WebCore::FrameMac::dragHysteresisExceeded):
1189 (WebCore::FrameMac::mouseDown):
1190 (WebCore::FrameMac::shouldDragAutoNode):
1191 (WebCore::FrameMac::sendContextMenuEvent):
1192 * bridge/mac/FrameViewMac.mm:
1193 (WebCore::FrameView::passMousePressEventToScrollbar):
1194 * bridge/mac/WebCoreFrameBridge.mm:
1195 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1196 * dom/EventTargetNode.cpp:
1197 (WebCore::EventTargetNode::dispatchMouseEvent):
1198 (WebCore::EventTargetNode::dispatchWheelEvent):
1200 (WebCore::Frame::selectClosestWordFromMouseEvent):
1201 (WebCore::Frame::handleMousePressEventTripleClick):
1202 (WebCore::Frame::handleMousePressEventSingleClick):
1203 (WebCore::Frame::handleMouseMoveEvent):
1204 (WebCore::Frame::handleMouseReleaseEvent):
1205 * page/FrameView.cpp:
1206 (WebCore::FrameView::handleMousePressEvent):
1207 (WebCore::FrameView::handleMouseDoubleClickEvent):
1208 (WebCore::selectCursor):
1209 (WebCore::FrameView::handleMouseMoveEvent):
1210 (WebCore::FrameView::handleMouseReleaseEvent):
1211 (WebCore::FrameView::dispatchDragEvent):
1212 (WebCore::FrameView::prepareMouseEvent):
1213 (WebCore::FrameView::handleWheelEvent):
1215 * platform/ScrollBar.cpp:
1216 (WebCore::ScrollBar::setValue):
1217 * platform/ScrollView.h:
1218 * platform/Widget.h:
1219 (WebCore::Widget::scrolled):
1220 * platform/mac/ScrollViewMac.mm:
1221 (WebCore::ScrollView::contentsToWindow):
1222 (WebCore::ScrollView::windowToContents):
1223 (WebCore::ScrollView::scrollbarUnderMouse):
1224 * platform/mac/WidgetMac.mm:
1225 * rendering/RenderLayer.cpp:
1226 (WebCore::RenderLayer::resize):
1227 (WebCore::RenderLayer::positionScrollbars):
1228 * rendering/RenderReplaced.cpp:
1229 (WebCore::RenderReplaced::shouldPaint):
1230 * rendering/RenderView.cpp:
1231 * rendering/RenderView.h:
1232 * rendering/RenderWidget.cpp:
1233 (WebCore::RenderWidget::setWidget):
1235 2006-09-26 David Smith <catfish.man@gmail.com>
1237 Reviewed by Timothy.
1239 http://bugs.webkit.org/show_bug.cgi?id=3723
1240 Add -scrollDOMRangeToVisible:
1242 No automated tests are possible as this code path isn't reachable from JavaScript.
1244 * bridge/mac/WebCoreFrameBridge.h:
1245 * bridge/mac/WebCoreFrameBridge.mm:
1246 (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
1248 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1250 Reviewed by Timothy.
1252 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1253 When contentEditable, cursor doesn't change to hand
1255 Allow the behaviour of editable links to be specified by a WebPreference
1256 The preference WebKitEditableLinkBehavior has four options:
1257 - AlwaysLive: Safari 2.0 behaviour
1258 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1259 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1260 focused, or when the shift key is pressed
1261 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1263 No layout tests, just a modification of a manual-test as it isn't possible to test
1266 * bridge/mac/WebCoreSettings.h:
1267 * bridge/mac/WebCoreSettings.mm:
1268 (-[WebCoreSettings setEditableLinkBehavior:]):
1269 (-[WebCoreSettings editableLinkBehavior]):
1270 * html/HTMLAnchorElement.cpp:
1271 (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1272 (WebCore::HTMLAnchorElement::defaultEventHandler):
1273 (WebCore::HTMLAnchorElement::setActive):
1274 * html/HTMLAnchorElement.h:
1275 * manual-tests/contenteditable-link.html:
1276 * page/FrameView.cpp:
1277 (WebCore::nodeIsNotBeingEdited):
1278 (WebCore::selectCursor):
1280 (WebCore::Settings::):
1281 (WebCore::Settings::Settings):
1282 (WebCore::Settings::editableLinkBehavior):
1283 (WebCore::Settings::setEditableLinkBehavior):
1285 2006-10-03 Beth Dakin <bdakin@apple.com>
1289 No test cases needed.
1291 Implemented a version of StringImpl::append that takes a UChar* and
1294 * platform/StringImpl.cpp:
1295 (WebCore::StringImpl::append):
1296 (WebCore::StringImpl::insert): Call new append instead of making a
1298 * platform/StringImpl.h:
1300 2006-10-03 MorganL <morganl.webkit@yahoo.com>
1304 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
1305 HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
1307 * platform/win/ResourceLoaderWin.cpp:
1308 (WebCore::ResourceLoader::onHandleCreated):
1310 2006-10-02 Geoffrey Garen <ggaren@apple.com>
1312 Feared, loathed, reviewed by Darin.
1314 More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
1315 into FRAME, plus other cleanup.
1317 No new behavior, so no new test. Layout tests pass. Basic browsing and
1318 Mail editing seem to work.
1321 (WebCore::Node::detach): Removed random commented-out code.
1322 * html/HTMLFrameElement.cpp:
1323 (WebCore::HTMLFrameElement::isURLAllowed):
1324 (1) Removed reference to FrameView, to dissociate frame loading from rendering.
1325 (2) Renamed newURL to completeURL because the difference between newURL
1326 and URLString is that newURL is a KURL that is the complete version of URLString,
1328 (WebCore::HTMLFrameElement::willRemove):
1329 (1) Removed close() call and moved close() code into willRemove(), also removing
1330 close() call from detach(), since willRemove is the well-defined place
1331 from DOM tear-down, not detach().
1332 (2) Removed manual renderer detach code because the DOM is not responsible
1333 for managing the render tree. I confirmed that this change not
1334 regress <rdar://problem/4132581>.
1335 (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
1336 lost their content frames after being removed from the DOM. That's our
1337 current behavior, but it's going to change in future rounds of refactoring.
1338 This also fixes <rdar://problem/4750835>.
1339 (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
1340 attach/detach, because the render tree should not be in charge of deciding
1342 * html/HTMLFrameElement.h:
1343 * html/HTMLIFrameElement.cpp:
1344 (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
1345 because the renderer is a renderPartObject, not a renderPart.
1346 * html/HTMLIFrameElement.h:
1348 2006-10-03 Mark Rowe <bdash@webkit.org>
1352 http://bugs.webkit.org/show_bug.cgi?id=11137
1353 Bug 11137: GdkLauncher dies with "pure virtual method called" if
1354 window is closed while page still loading
1356 * platform/gdk/FrameGdk.cpp:
1357 (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
1358 methods to be called before the FrameGdk portion of "this" is torn down.
1360 2006-10-03 Adam Roben <aroben@apple.com>
1364 Handle tab key presses in the DOM.
1366 * dom/EventTargetNode.cpp:
1367 (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
1368 * page/FrameView.cpp:
1369 (WebCore::FrameView::advanceFocus): Rename and reimplement
1370 focusNextPrevNode. Now we just call Element::focus().
1371 * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
1374 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1378 <rdar://problem/4760612>
1379 TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
1381 No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
1384 (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
1385 positions are non-null since most of it's callers would be in a bad state if the positions
1386 were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
1387 Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
1388 from entering compareBoundaryPoints and hitting the assert.
1390 2006-10-03 Adele Peterson <adele@apple.com>
1394 Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
1396 * html/HTMLSelectElement.cpp:
1397 (WebCore::HTMLSelectElement::recalcStyle):
1398 (WebCore::HTMLSelectElement::isKeyboardFocusable):
1399 (WebCore::HTMLSelectElement::isMouseFocusable):
1400 (WebCore::HTMLSelectElement::createRenderer):
1401 (WebCore::HTMLSelectElement::setRecalcListItems):
1402 (WebCore::HTMLSelectElement::notifyOptionSelected):
1403 (WebCore::HTMLSelectElement::defaultEventHandler):
1405 2006-10-04 Darin Adler <darin@apple.com>
1409 - fix http://bugs.webkit.org/show_bug.cgi?id=11132
1410 Caret disappears when you're typing
1412 * editing/SelectionController.cpp:
1413 (WebCore::SelectionController::setSelection): Remove unnecessary call to
1414 clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
1415 (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
1416 to false so we can get the old caret repaint rect. Later we need to change the
1417 design so getting the rect doesn't have a side effect of causing a layout without
1420 2006-10-03 David Harrison <harrison@apple.com>
1424 <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
1427 * fast/text/justified-text-rect.html
1429 * bridge/mac/WebCoreFrameBridge.mm:
1430 (-[WebCoreFrameBridge convertToNSRange:]):
1431 (-[WebCoreFrameBridge convertToDOMRange:]):
1432 Make the selection's root editable element (or the document itself) be
1433 the basis for NSRange conversions. This supports "shadow DOM" like
1434 that for text fields and text areas.
1436 * editing/CompositeEditCommand.cpp:
1437 (WebCore::CompositeEditCommand::moveParagraphs):
1438 Pass the document element as the scope.
1440 * editing/TextIterator.cpp:
1441 (WebCore::TextIterator::rangeFromLocationAndLength):
1442 Make the first parameter the scope.
1444 * editing/TextIterator.h:
1445 Make the first parameter of rangeFromLocationAndLength() the scope.
1447 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
1453 * CMakeLists.txt: Add counter related files.
1455 2006-10-03 Mark Rowe <bdash@webkit.org>
1459 http://bugs.webkit.org/show_bug.cgi?id=10981
1460 Linux/GDK build fixes
1462 Based on a patch by Krzysztof Kowalczyk.
1464 * WebCoreSources.bkl:
1465 * platform/gdk/FrameGdk.cpp:
1466 (WebCore::doScroll):
1467 (WebCore::FrameGdk::handleGdkEvent):
1468 * platform/gdk/PlatformScrollBar.h: Added.
1469 (WebCore::PlatformScrollBar::isWidget):
1470 * platform/gdk/ScrollViewGdk.cpp:
1471 * platform/gdk/TemporaryLinkStubs.cpp:
1472 (FrameView::passMousePressEventToScrollbar):
1473 (FrameView::passMousePressEventToSubframe):
1474 (FrameView::passMouseReleaseEventToSubframe):
1475 (FrameView::passMouseMoveEventToSubframe):
1476 (FrameView::passWheelEventToSubframe):
1478 (Widget::invalidate):
1479 (Widget::invalidateRect):
1480 (ScrollView::wheelEvent):
1481 (ScrollView::convertToContainingWindow):
1482 (ScrollView::convertFromContainingWindow):
1483 (GraphicsContext::clip):
1484 (PlatformScrollBar::PlatformScrollBar):
1485 (PlatformScrollBar::updateThumbPosition):
1486 (PlatformScrollBar::updateThumbProportion):
1487 (ScrollBar::ScrollBar):
1488 (ScrollBar::setProportion):
1489 (WebCore::supportedKeySizes):
1490 (WebCore::signedPublicKeyAndChallengeString):
1491 * platform/gdk/WheelEventGdk.cpp:
1492 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1493 * platform/gdk/WidgetGdk.cpp:
1494 (WebCore::Widget::convertToContainingWindow):
1495 (WebCore::Widget::convertFromContainingWindow):
1497 2006-10-02 Adam Roben <aroben@apple.com>
1501 Let Windows determine which mouse button is pressed.
1503 * platform/PlatformMouseEvent.h: Add message parameter to constructor.
1504 * platform/win/MouseEventWin.cpp:
1505 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
1506 parameter to determine which mouse button is pressed.
1508 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1514 * editing/SelectionController.cpp:
1515 (WebCore::SelectionController::empty):
1516 * editing/SelectionController.h:
1518 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1522 <rdar://problem/4755287>
1523 Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1525 * editing/markup.cpp:
1526 (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
1527 elements). Don't skip blocks that aren't containers (like horizontal rules).
1529 2006-10-03 Darin Adler <darin@apple.com>
1531 Reviewed by Justin Garcia.
1533 - correct mistaken code that would restart blinking every
1534 time "invalidateSelection" is called even if the caret
1537 * editing/SelectionController.h:
1538 * editing/SelectionController.cpp:
1539 (WebCore::SelectionController::setSelection): Update for name change.
1540 (WebCore::SelectionController::recomputeCaretRect): New function.
1541 Computes caret rect and does any necessary invalidation if the rect
1543 (WebCore::SelectionController::invalidateCaretRect): Renamed from
1544 needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1545 calls recomputeCaretRect as a side effect.
1548 (WebCore::Frame::invalidateSelection): Remove unneeded call to
1549 clearCaretRectIfNeeded.
1550 (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1551 (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1552 recomputeCaretRect function and not restart blinking if caret has
1553 not changed position.
1554 (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1555 are not needed since selectionLayoutChanged already checks these.
1557 * page/FramePrivate.h: Removed unused m_blinkCaret.
1559 2006-10-02 Beth Dakin <bdakin@apple.com>
1563 Build fix. Add counters to vcproj.
1565 * WebCore.vcproj/WebCore/WebCore.vcproj:
1567 2006-10-02 Brady Eidson <beidson@apple.com>
1571 If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1572 icon data out because we don't correctly check SQL error conditions.
1574 * loader/icon/IconDataCache.cpp:
1575 (WebCore::IconDataCache::writeToDatabase):
1577 2006-10-02 Steve Falkenburg <sfalken@apple.com>
1581 Added method to find out whether a layout has occurred.
1583 * page/FrameView.cpp:
1584 (WebCore::FrameView::didFirstLayout):
1587 2006-10-02 Beth Dakin <bdakin@apple.com>
1591 Initial implementation of CSS2 counters. See http://
1592 bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1594 * WebCore.xcodeproj/project.pbxproj:
1595 * css/CSSComputedStyleDeclaration.cpp:
1596 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
1597 the increment/reset list now that this is implemented.
1598 * css/CSSPrimitiveValue.cpp:
1599 (WebCore::CSSPrimitiveValue::cssText):
1601 (WebCore::Counter::Counter):
1602 (WebCore::Counter::~Counter):
1603 (WebCore::Counter::identifier):
1604 (WebCore::Counter::listStyle):
1605 (WebCore::Counter::separator):
1606 (WebCore::Counter::listStyleNumber):
1607 (WebCore::Counter::setIdentifier):
1608 (WebCore::Counter::setListStyle):
1609 (WebCore::Counter::setSeparator):
1610 * css/cssparser.cpp:
1611 (WebCore::CSSParser::addProperty): Take care of reset/increment
1612 (WebCore::CSSParser::parseValue):
1613 (WebCore::CSSParser::parseContent): content can now take counters
1614 (WebCore::CSSParser::parseCounterContent): Parse counter() and
1616 (WebCore::CSSParser::parseCounter): Parse counter-reset and
1619 * css/cssstyleselector.cpp:
1620 (WebCore::CSSStyleSelector::matchUARules):
1621 (WebCore::CSSStyleSelector::applyProperty):
1622 * platform/PlatformString.h:
1623 * platform/String.cpp:
1624 (WebCore::String::insert): Implemented a version of insert that
1625 accepts a UChar* and a length.
1626 * platform/StringImpl.cpp:
1627 (WebCore::StringImpl::insert): Same as above.
1628 * platform/StringImpl.h:
1629 * rendering/CounterListItem.h: Added.
1630 * rendering/CounterNode.cpp: Added.
1631 (WebCore::CounterNode::CounterNode):
1632 (WebCore::CounterNode::insertAfter):
1633 (WebCore::CounterNode::removeChild):
1634 (WebCore::CounterNode::remove):
1635 (WebCore::CounterNode::setUsesSeparator):
1636 (WebCore::CounterNode::recountAndGetNext):
1637 (WebCore::CounterNode::recountTree):
1638 (WebCore::CounterNode::setSelfDirty):
1639 (WebCore::CounterNode::setParentDirty):
1640 * rendering/CounterNode.h: Added.
1641 (WebCore::CounterNode::~CounterNode):
1642 (WebCore::CounterNode::parent):
1643 (WebCore::CounterNode::previousSibling):
1644 (WebCore::CounterNode::nextSibling):
1645 (WebCore::CounterNode::firstChild):
1646 (WebCore::CounterNode::lastChild):
1647 (WebCore::CounterNode::value):
1648 (WebCore::CounterNode::setValue):
1649 (WebCore::CounterNode::count):
1650 (WebCore::CounterNode::setCount):
1651 (WebCore::CounterNode::setHasSeparator):
1652 (WebCore::CounterNode::isReset):
1653 (WebCore::CounterNode::hasSeparator):
1654 (WebCore::CounterNode::willNeedLayout):
1655 (WebCore::CounterNode::setWillNeedLayout):
1656 (WebCore::CounterNode::isRoot):
1657 (WebCore::CounterNode::setRenderer):
1658 (WebCore::CounterNode::renderer):
1659 * rendering/CounterResetNode.cpp: Added.
1660 (WebCore::CounterResetNode::CounterResetNode):
1661 (WebCore::CounterResetNode::insertAfter):
1662 (WebCore::CounterResetNode::removeChild):
1663 (WebCore::CounterResetNode::recountAndGetNext):
1664 (WebCore::CounterResetNode::setParentDirty):
1665 (WebCore::CounterResetNode::updateTotal):
1666 * rendering/CounterResetNode.h: Added.
1667 (WebCore::CounterResetNode::firstChild):
1668 (WebCore::CounterResetNode::lastChild):
1669 (WebCore::CounterResetNode::isReset):
1670 (WebCore::CounterResetNode::total):
1671 * rendering/RenderContainer.cpp:
1672 (WebCore::RenderContainer::updatePseudoChildForObject): Account for
1674 * rendering/RenderCounter.cpp: Added.
1675 (WebCore::RenderCounter::RenderCounter):
1676 (WebCore::RenderCounter::layout):
1678 (WebCore::toLetterString):
1679 (WebCore::toHebrew):
1680 (WebCore::RenderCounter::convertValueToType):
1681 (WebCore::RenderCounter::calcMinMaxWidth):
1682 * rendering/RenderCounter.h: Added.
1683 (WebCore::RenderCounter::renderName):
1684 (WebCore::RenderCounter::isCounter):
1685 * rendering/RenderObject.cpp:
1686 (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
1687 maps of CounterNodes
1688 (WebCore::RenderObject::RenderObject):
1689 (WebCore::RenderObject::destroy): Destroy the maps.
1690 (WebCore::RenderObject::findCounter): Finds/creates counters.
1691 * rendering/RenderObject.h:
1692 (WebCore::RenderObject::isCounter):
1693 * rendering/RenderStyle.cpp:
1694 (WebCore::StyleVisualData::StyleVisualData):
1695 (WebCore::RenderStyle::arenaDelete):
1696 (WebCore::RenderStyle::RenderStyle):
1697 (WebCore::RenderStyle::diff):
1698 (WebCore::RenderStyle::setContent):
1699 (WebCore::ContentData::clearContent):
1700 (WebCore::RenderStyle::counterDataEquivalent):
1701 (WebCore::hasCounter):
1702 (WebCore::RenderStyle::hasCounterReset):
1703 (WebCore::RenderStyle::hasCounterIncrement):
1704 (WebCore::readCounter):
1705 (WebCore::RenderStyle::counterReset):
1706 (WebCore::RenderStyle::counterIncrement):
1707 * rendering/RenderStyle.h:
1708 (WebCore::StyleVisualData::operator==):
1709 (WebCore::CounterData::CounterData):
1710 (WebCore::CounterData::identifier):
1711 (WebCore::CounterData::listStyle):
1712 (WebCore::CounterData::separator):
1713 (WebCore::ContentData::contentCounter):
1714 (WebCore::ContentData::):
1715 (WebCore::RenderStyle::counterIncrement):
1716 (WebCore::RenderStyle::counterReset):
1717 (WebCore::RenderStyle::setCounterIncrement):
1718 (WebCore::RenderStyle::setCounterReset):
1719 (WebCore::RenderStyle::setCounterResetList):
1720 (WebCore::RenderStyle::setCounterIncrementList):
1721 (WebCore::RenderStyle::counterResetValueList):
1722 (WebCore::RenderStyle::counterIncrementValueList):
1724 2006-10-02 Adele Peterson <adele@apple.com>
1728 - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1730 There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
1731 by using "-webkit-appearance:none".
1735 2006-10-02 David Harrison <harrison@apple.com>
1737 Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1738 addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1739 Left the layout test.
1741 * rendering/bidi.cpp:
1742 (WebCore::checkMidpoints):
1744 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1746 Reviewed by eseidel. Landed by eseidel.
1750 * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1751 (WebCore::supportedKeySizes):
1753 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1755 Reviewed by eseidel & mjs. Landed by eseidel.
1757 Fix Qt/Linux build with older gcc 3.3.4.
1758 http://bugs.webkit.org/show_bug.cgi?id=11116
1760 As discussed with Maciej, the GCC_ROOT_NS_HACK
1761 can be completely removed, as well as the friendship
1762 between cacheGlobalObject & the JS* objects.
1764 * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
1765 * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
1766 (png_read_filter_row_mmx_avg):
1767 * platform/image-decoders/png/pngvcrd.c: Ditto.
1769 (png_read_filter_row_mmx_avg):
1771 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1773 Rubber stamped by Alexey.
1775 - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
1779 2006-10-01 Eric Seidel <eric@webkit.org>
1783 Eliminate a few more hotspots in SVG drawing code.
1785 No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
1787 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1788 (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
1789 * platform/mac/ColorMac.mm:
1790 (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
1792 2006-10-01 Geoffrey Garen <ggaren@apple.com>
1796 More frame/iframe merging.
1798 - Removed needWidgetUpdate and related code. needWidgetUpdate is always
1799 false, so this was dead code.
1800 - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
1801 than attach(), is the correct place for setInViewSourceMode, because
1802 openURL() is the function that creates our frame.
1803 - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
1804 code that did the same thing in other places.
1805 - Made FRAME's attach() method suffuciently generic so that IFRAME could
1806 call up to it, rather than skipping its superclass and calling up directly
1808 - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
1809 - Replaced ad hoc frame loading code in FRAME::attach() with call to
1810 openURL(), the designated frame loading function.
1812 Layout tests pass. I added a layout test for viewsource mode, since I
1813 broke it in the course of writing this patch.
1815 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1820 (WebCore::Document::recalcStyleSelector):
1822 Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
1825 Remove DeprecatedStringList class forward declaration.
1827 * editing/markup.cpp:
1828 Include DeprecatedStringList.h here since it's not included by Document.h anymore.
1830 * kcanvas/KCanvasTreeDebug.cpp:
1831 * kcanvas/KCanvasTreeDebug.h:
1832 Remove unused functions.
1834 * loader/loader.cpp:
1838 Fixup DeprecatedStringList.h includes.
1840 2006-09-30 David Harrison <harrison@apple.com>
1842 Reviewed by John Sullivan.
1844 <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
1846 Problem was that the decision to trim was based only on whether the character
1847 is a soft hyphen, which caused pretty much any Japanese character to go.
1848 Changed to decide based on whether the character is ignorable whitespace.
1851 * fast/text/international/wrap-CJK-001.html
1853 * rendering/bidi.cpp:
1854 (WebCore::isTrimmableChar):
1855 New. Checks whether character is whitespace that can be ignored
1856 according to the text node's style.
1857 trimmed from the end of wrapped line.
1858 (WebCore::checkMidpoints):
1859 Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
1861 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1863 Reviewed by Mitz Pettel.
1865 Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
1867 * ksvg2/svg/SVGColor.cpp:
1868 (WebCore::SVGColor::setRGBColor):
1869 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1870 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1871 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1872 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1873 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1874 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1875 (SVGFESpecularLightingElement::parseMappedAttribute):
1876 * ksvg2/svg/SVGFETurbulenceElement.cpp:
1877 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1878 * ksvg2/svg/SVGLengthList.cpp:
1879 * ksvg2/svg/SVGNumberList.cpp:
1880 (SVGNumberList::parse):
1881 * ksvg2/svg/SVGNumberList.h:
1882 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1883 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
1884 * ksvg2/svg/SVGStringList.cpp:
1885 (WebCore::SVGStringList::reset):
1886 * ksvg2/svg/SVGStringList.h:
1887 * ksvg2/svg/SVGTransformable.cpp:
1888 (SVGTransformable::parseTransformAttribute):
1890 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
1892 Reviewed by Eric, tweaked and landed by ap.
1897 * platform/qt/PlatformScrollBar.h:
1898 * platform/qt/TemporaryLinkStubs.cpp:
1899 (WebCore::ScrollBar::ScrollBar):
1900 (WebCore::PlatformScrollBar::PlatformScrollBar):
1901 (FrameView::passMousePressEventToSubframe):
1902 (FrameView::passMouseMoveEventToSubframe):
1903 (FrameView::passMouseReleaseEventToSubframe):
1904 (FrameView::passWheelEventToSubframe):
1905 (FrameView::passMousePressEventToScrollbar):
1906 * ksvg2/svg/SVGDocument.h:
1908 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
1912 Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
1913 REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
1915 No test case added (probably requires new DumpRenderTree functionality)
1917 * rendering/RenderImage.cpp:
1918 (WebCore::RenderImage::imageChanged): Added early return if the document is
1921 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
1925 Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
1926 REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
1928 Make sure we only break after a space (and not any other valid line-break) if
1929 the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
1930 I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
1931 twice in quick succession.
1933 * rendering/bidi.cpp:
1934 (WebCore::RenderBlock::findNextLineBreak):
1936 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1938 Reviewed by Maciej and Darin.
1940 http://bugs.webkit.org/show_bug.cgi?id=4372
1941 JavaScript document.write page form does not submit in Safari
1943 Test: fast/forms/document-write.html
1946 (WebCore::Frame::submitForm): Don't check for parsing().
1948 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1952 * bridge/mac/FrameViewMac.mm: Add missing #imports.
1954 2006-10-01 Dave Hyatt <hyatt@apple.com>
1956 Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
1960 * bridge/mac/FrameMac.mm:
1961 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1962 * bridge/mac/FrameViewMac.mm:
1963 (WebCore::FrameView::passMousePressEventToScrollbar):
1964 * page/FrameView.cpp:
1965 (WebCore::FrameView::handleMousePressEvent):
1966 (WebCore::FrameView::setMousePressed):
1968 * platform/win/TemporaryLinkStubs.cpp:
1969 (FrameView::passMousePressEventToScrollbar):
1971 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
1975 Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
1976 Add more SVG Objective-C DOM bindings
1978 - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
1979 DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
1980 DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
1981 DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
1982 DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
1983 DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
1985 * DerivedSources.make:
1986 * WebCore.xcodeproj/project.pbxproj:
1987 * bindings/objc/DOMInternal.h:
1988 * bindings/objc/DOMSVG.h:
1989 * bindings/scripts/CodeGeneratorObjC.pm:
1990 * ksvg2/svg/SVGAElement.idl:
1991 * ksvg2/svg/SVGAnimateColorElement.idl:
1992 * ksvg2/svg/SVGAnimateElement.idl:
1993 * ksvg2/svg/SVGAnimateTransformElement.idl:
1994 * ksvg2/svg/SVGAnimatedPathData.idl:
1995 * ksvg2/svg/SVGAnimatedPoints.idl:
1996 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
1997 * ksvg2/svg/SVGAnimationElement.idl:
1998 * ksvg2/svg/SVGCircleElement.idl:
1999 * ksvg2/svg/SVGClipPathElement.idl:
2000 * ksvg2/svg/SVGColor.idl:
2001 * ksvg2/svg/SVGCursorElement.idl:
2002 * ksvg2/svg/SVGDefsElement.idl:
2003 * ksvg2/svg/SVGDescElement.idl:
2004 * ksvg2/svg/SVGDocument.idl:
2005 * ksvg2/svg/SVGEllipseElement.idl:
2006 * ksvg2/svg/SVGPointList.idl:
2007 * ksvg2/svg/SVGPreserveAspectRatio.idl:
2008 * ksvg2/svg/SVGRect.idl:
2009 * ksvg2/svg/SVGSVGElement.idl:
2011 2006-09-30 Maciej Stachowiak <mjs@apple.com>
2017 * platform/FloatRect.h:
2018 (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2019 but more appropriate for path-type stuff.
2020 * platform/cg/PathCG.cpp:
2021 (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2023 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
2027 http://bugs.webkit.org/show_bug.cgi?id=11011
2028 External CSS is parsed as iso-8859-1 even though the main document is utf-8
2030 Test: fast/encoding/css-charset-default.xhtml
2032 * loader/CachedResourceClient.h:
2033 (WebCore::CachedResourceClient::setCSSStyleSheet):
2034 (WebCore::CachedResourceClient::setXSLStyleSheet):
2035 Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2036 takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2038 * css/CSSImportRule.cpp:
2039 (WebCore::CSSImportRule::setCSSStyleSheet):
2040 (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2041 * css/CSSImportRule.h:
2043 * css/CSSStyleSheet.cpp:
2044 (WebCore::CSSStyleSheet::CSSStyleSheet):
2045 * css/CSSStyleSheet.h:
2046 Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2047 member. Changed some String parameters to const String&.
2049 * css/StyleSheet.cpp:
2050 (WebCore::StyleSheet::StyleSheet):
2052 Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2054 * css/StyleSheetList.cpp:
2055 (WebCore::StyleSheetList::length):
2056 (WebCore::StyleSheetList::item):
2057 * css/StyleSheetList.h:
2058 Special-casing implicit stylesheets seemed to be dead code, removed.
2061 (WebCore::Document::setCSSStyleSheet):
2062 (WebCore::Document::recalcStyleSelector):
2064 Renamed setStyleSheet() to setCSSStyleSheet().
2066 * dom/ProcessingInstruction.cpp:
2067 (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2068 (WebCore::ProcessingInstruction::setCSSStyleSheet):
2069 (WebCore::ProcessingInstruction::setXSLStyleSheet):
2070 (WebCore::ProcessingInstruction::parseStyleSheet):
2071 * dom/ProcessingInstruction.h:
2073 * html/HTMLLinkElement.cpp:
2074 (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
2076 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2077 * html/HTMLLinkElement.h:
2079 * html/HTMLStyleElement.cpp:
2080 (WebCore::HTMLStyleElement::childrenChanged):
2081 * ksvg2/svg/SVGStyleElement.cpp:
2082 (WebCore::SVGStyleElement::childrenChanged):
2083 Inherit URL and charset from the document.
2086 (WebCore::Cache::requestCSSStyleSheet):
2088 Adjust for setStyleSheet() renaming.
2090 * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
2091 * loader/CachedCSSStyleSheet.cpp:
2092 (WebCore::CachedCSSStyleSheet::ref):
2093 (WebCore::CachedCSSStyleSheet::deref):
2094 (WebCore::CachedCSSStyleSheet::checkNotify):
2095 Pass the encoding to setCSSStyleSheet().
2097 * loader/CachedXSLStyleSheet.cpp:
2098 (WebCore::CachedXSLStyleSheet::ref):
2099 (WebCore::CachedXSLStyleSheet::checkNotify):
2100 * loader/DocLoader.cpp:
2101 (WebCore::DocLoader::requestCSSStyleSheet):
2102 * loader/DocLoader.h:
2104 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2105 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
2106 * xml/XSLImportRule.cpp:
2107 (WebCore::XSLImportRule::setXSLStyleSheet):
2108 (WebCore::XSLImportRule::loadSheet):
2109 * xml/XSLImportRule.h:
2110 Adjust for setStyleSheet() renaming.
2112 2006-09-30 Rob Buis <buis@kde.org>
2114 Reviewed by eseidel.
2116 http://bugs.webkit.org/show_bug.cgi?id=11096
2117 Hit testing for polylines fails
2119 Fix Path::contains so it handles filled, non-closed paths too.
2121 * platform/cg/PathCG.cpp:
2122 (WebCore::Path::contains):
2124 2006-09-30 Dave Hyatt <hyatt@apple.com>
2126 Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
2127 Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
2128 subframes while the mouse is down.
2130 Reviewed by mitzpettel
2132 * bridge/mac/FrameMac.h:
2133 * bridge/mac/FrameMac.mm:
2134 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2135 (WebCore::FrameMac::passWheelEventToWidget):
2136 * bridge/mac/FrameViewMac.mm:
2137 (WebCore::FrameView::passMousePressEventToSubframe):
2138 (WebCore::FrameView::passMouseMoveEventToSubframe):
2139 (WebCore::FrameView::passMouseReleaseEventToSubframe):
2140 (WebCore::FrameView::passWheelEventToSubframe):
2143 * page/FrameView.cpp:
2144 (WebCore::subframeForTargetNode):
2145 (WebCore::FrameView::handleMousePressEvent):
2146 (WebCore::FrameView::handleMouseDoubleClickEvent):
2147 (WebCore::FrameView::handleMouseMoveEvent):
2148 (WebCore::FrameView::handleMouseReleaseEvent):
2149 (WebCore::FrameView::handleWheelEvent):
2151 * platform/ScrollBar.h:
2152 (WebCore::ScrollBar::handleMouseMoveEvent):
2153 (WebCore::ScrollBar::handleMouseOutEvent):
2154 * platform/Widget.h:
2155 (WebCore::Widget::handleMouseMoveEvent):
2156 (WebCore::Widget::handleMouseReleaseEvent):
2157 * platform/win/TemporaryLinkStubs.cpp:
2158 (FrameView::passMousePressEventToSubframe):
2159 (FrameView::passMouseMoveEventToSubframe):
2160 (FrameView::passMouseReleaseEventToSubframe):
2161 (FrameView::passWheelEventToSubframe):
2162 (Widget::capturingMouse):
2163 (Widget::setCapturingMouse):
2164 (Widget::capturingTarget):
2165 (Widget::capturingChild):
2166 (Widget::setCapturingChild):
2167 * rendering/RenderView.cpp:
2168 (WebCore::RenderView::paintBoxDecorations):
2170 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2174 Fixes windows bustage:
2175 http://bugs.webkit.org/show_bug.cgi?id=11093
2177 * platform/win/PlatformScrollBar.h:
2178 * platform/win/TemporaryLinkStubs.cpp:
2179 (PlatformScrollBar::PlatformScrollBar):
2180 (ScrollBar::ScrollBar):
2182 2006-09-29 David Hyatt <hyatt@apple.com>
2184 Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
2185 in RenderObject::NodeInfo (and then propagating that Widget to
2186 MouseEventWithHitTestResults).
2188 This allows RenderListBox and RenderBlock to do the same thing when the
2189 mouse is over the scrollbar.
2191 Also land fix to support font-size: 0.
2193 Reviewed by mjs (scrollbar), eric (font-size)
2196 (WebCore::Document::prepareMouseEvent):
2198 (WebCore::Frame::passWidgetMouseDownEventToWidget):
2199 * page/FrameView.cpp:
2200 (WebCore::selectCursor):
2201 (WebCore::FrameView::handleMouseMoveEvent):
2202 (WebCore::FrameView::dispatchMouseEvent):
2203 * page/MouseEventWithHitTestResults.cpp:
2204 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2205 * page/MouseEventWithHitTestResults.h:
2206 (WebCore::MouseEventWithHitTestResults::scrollbar):
2207 * rendering/RenderBlock.cpp:
2208 (WebCore::RenderBlock::isPointInScrollbar):
2209 (WebCore::RenderBlock::nodeAtPoint):
2210 * rendering/RenderBlock.h:
2211 * rendering/RenderLayer.cpp:
2212 (WebCore::RenderLayer::hitTest):
2213 * rendering/RenderLayer.h:
2214 (WebCore::RenderLayer::getHiddenBehavior):
2215 * rendering/RenderListBox.cpp:
2216 (WebCore::RenderListBox::RenderListBox):
2217 (WebCore::RenderListBox::~RenderListBox):
2218 (WebCore::RenderListBox::isPointInScrollbar):
2219 * rendering/RenderListBox.h:
2220 * rendering/RenderObject.h:
2221 (WebCore::RenderObject::NodeInfo::NodeInfo):
2222 (WebCore::RenderObject::NodeInfo::scrollbar):
2223 (WebCore::RenderObject::NodeInfo::setScrollbar):
2225 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2229 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
2231 * platform/win/ScrollViewWin.cpp:
2232 (WebCore::ScrollView::convertToContainingWindow):
2233 (WebCore::ScrollView::convertFromContainingWindow):
2234 * platform/win/WidgetWin.cpp:
2235 (WebCore::Widget::convertToContainingWindow):
2236 (WebCore::Widget::convertFromContainingWindow):
2238 2006-09-29 Adele Peterson <adele@apple.com>
2240 Updated with new argument for PlatformScrollBar.
2242 * platform/win/TemporaryLinkStubs.cpp:
2243 (PlatformScrollBar::PlatformScrollBar):
2245 2006-09-29 Adele Peterson <adele@apple.com>
2249 Fixing build bustage with cast to int.
2251 * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
2253 2006-09-29 Adele Peterson <adele@apple.com>
2255 Fixing accidental include.
2257 * rendering/RenderListBox.cpp:
2259 2006-09-29 Adele Peterson <adele@apple.com>
2261 Adding RenderListBox files.
2263 * WebCore.vcproj/WebCore/WebCore.vcproj:
2265 2006-09-29 Adele Peterson <adele@apple.com>
2269 Initial implementation of engine-based list box control.
2271 * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
2273 * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
2274 * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
2275 (WebCore::FrameMac::FrameMac):
2276 (WebCore::FrameMac::handleMousePressEvent):
2277 (WebCore::FrameMac::handleMouseMoveEvent):
2278 (WebCore::FrameMac::mouseDown):
2281 (WebCore::Frame::handleMouseMoveEvent):
2282 (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
2283 (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
2284 (WebCore::Frame::autoscrollTimerFired): ditto.
2285 (WebCore::Frame::stopAutoscrollTimer): ditto.
2286 (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
2288 * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
2290 * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
2291 (WebCore::FrameViewPrivate::reset):
2292 (WebCore::FrameView::currentMousePosition):
2293 (WebCore::FrameView::handleMousePressEvent):
2294 (WebCore::FrameView::handleMouseDoubleClickEvent):
2295 (WebCore::selectCursor):
2296 (WebCore::FrameView::handleMouseMoveEvent):
2297 (WebCore::FrameView::handleMouseReleaseEvent):
2300 * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
2301 * platform/ScrollBar.h:
2303 (WebCore::ScrollBar::controlSize):
2304 * platform/mac/PlatformScrollBar.h:
2305 * platform/mac/PlatformScrollBarMac.mm:
2306 (NSControlSizeForScrollBarControlSize):
2307 (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2308 (WebCore::PlatformScrollBar::PlatformScrollBar):
2310 * rendering/RenderBlock.h:
2311 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
2312 * rendering/RenderLayer.h:
2313 * rendering/RenderObject.cpp:
2314 (WebCore::RenderObject::shouldAutoscroll):
2315 (WebCore::RenderObject::autoscroll):
2316 * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
2318 * css/html4.css: Added properties for new list boxes.
2320 * html/HTMLOptionElement.cpp:
2321 (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
2322 (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
2323 * html/HTMLOptionElement.h: Added disabled method.
2325 * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
2326 (WebCore::HTMLSelectElement::recalcStyle):
2327 (WebCore::HTMLSelectElement::lastSelectedListIndex):
2328 (WebCore::HTMLSelectElement::deselectItems):
2329 (WebCore::HTMLSelectElement::setSelectedIndex):
2330 (WebCore::HTMLSelectElement::isKeyboardFocusable):
2331 (WebCore::HTMLSelectElement::isMouseFocusable):
2332 (WebCore::HTMLSelectElement::createRenderer):
2333 (WebCore::HTMLSelectElement::recalcListItems):
2334 (WebCore::HTMLSelectElement::setRecalcListItems):
2335 (WebCore::HTMLSelectElement::reset):
2336 (WebCore::HTMLSelectElement::notifyOptionSelected):
2337 (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
2338 (WebCore::HTMLSelectElement::nextSelectableListIndex):
2339 (WebCore::HTMLSelectElement::previousSelectableListIndex):
2340 * html/HTMLSelectElement.h:
2342 * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
2343 (WebCore::RenderTheme::paint):
2344 (WebCore::RenderTheme::paintBorderOnly):
2345 (WebCore::RenderTheme::paintDecorations):
2346 (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
2347 (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
2348 (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
2349 (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
2350 (WebCore::RenderTheme::isControlStyled):
2351 (WebCore::RenderTheme::supportsFocusRing):
2352 * rendering/RenderTheme.h:
2353 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
2355 * rendering/RenderListBox.cpp: Added.
2356 (WebCore::RenderListBox::RenderListBox):
2357 (WebCore::RenderListBox::~RenderListBox):
2358 (WebCore::RenderListBox::setStyle):
2359 (WebCore::RenderListBox::updateFromElement):
2360 (WebCore::RenderListBox::calcMinMaxWidth):
2361 (WebCore::RenderListBox::size):
2362 (WebCore::RenderListBox::numItems):
2363 (WebCore::RenderListBox::calcHeight):
2364 (WebCore::RenderListBox::baselinePosition):
2365 (WebCore::RenderListBox::itemBoundingBoxRect):
2366 (WebCore::RenderListBox::paintObject):
2367 (WebCore::RenderListBox::paintScrollbar):
2368 (WebCore::RenderListBox::paintItemForeground):
2369 (WebCore::RenderListBox::paintItemBackground):
2370 (WebCore::RenderListBox::scrollBarTarget):
2371 (WebCore::RenderListBox::isPointInScrollbar):
2372 (WebCore::RenderListBox::optionAtPoint):
2373 (WebCore::RenderListBox::autoscroll):
2374 (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
2375 (WebCore::RenderListBox::scroll):
2376 (WebCore::RenderListBox::valueChanged):
2377 * rendering/RenderListBox.h: Added.
2378 (WebCore::RenderListBox::isListBox):
2379 (WebCore::RenderListBox::selectionChanged):
2380 (WebCore::RenderListBox::setSelectionChanged):
2381 (WebCore::RenderListBox::canHaveChildren):
2382 (WebCore::RenderListBox::renderName):
2383 (WebCore::RenderListBox::setOptionsChanged):
2384 (WebCore::RenderListBox::shouldAutoscroll):
2385 (WebCore::RenderListBox::listIndexIsVisible):
2387 2006-09-29 Beth Dakin <bdakin@apple.com>
2391 We had a bug where html4.css was ignoring Media Queries. In the end
2392 the problem was that we were trying to send a char* to the
2393 MediaQueryEvaluator constructor that expects a String, but the
2394 char* got interpreted as a bool, the wrong constructor was called,
2395 and the media type was never set.
2397 No test case possible since this only affects html4.css
2399 * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
2401 (WebCore::MediaQueryEvaluator):
2402 * css/MediaQueryEvaluator.h: Same.
2404 2006-09-29 Geoffrey Garen <ggaren@apple.com>
2406 Reviewed by John, Maciej.
2408 Integrated some frame and iframe code. I'm trying to fix up frame ownership
2409 and loading. Reducing the number of different code paths involved
2410 seemed like a good first step.
2412 As a side effect, I fixed a bug where FRAME elements would report their
2413 src attributes as relative, rather than compelete, URLs. (IFRAME elements
2414 had the correct complete URL behavior.)
2416 * html/HTMLFrameElement.cpp:
2417 (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
2418 (WebCore::HTMLFrameElement::openURL):
2419 (1) Removed checks that requestFrame does for us
2420 (2) Added isURLAllowed check, to have one clear bottleneck for it
2421 (3) Added viewsource check, to have one clear bottleneck for it
2422 (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
2423 method, instead of finding our content frame in our own unique way.
2424 (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
2425 since openURL does this for us now.
2426 (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
2427 This is what FF does, and it made no sense to have different behaviors
2428 for FRAME and IFRAME elements.
2429 * html/HTMLIFrameElement.cpp:
2430 (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
2432 * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
2433 HTMLFrameElement now does everything we need.
2435 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
2442 * platform/qt/ScrollViewQt.cpp:
2443 (WebCore::ScrollView::convertToContainingWindow):
2444 (WebCore::ScrollView::convertFromContainingWindow):
2445 * platform/qt/TemporaryLinkStubs.cpp:
2446 (WebCore::signedPublicKeyAndChallengeString):
2447 * platform/qt/WidgetQt.cpp:
2448 (WebCore::Widget::convertToContainingWindow):
2449 (WebCore::Widget::convertFromContainingWindow):
2451 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
2455 Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
2456 Simplify Internal methods for the auto-generated Objective-C DOM code
2458 - Auto-generate the internal methods for more Objective-C classes.
2460 * WebCore.xcodeproj/project.pbxproj:
2461 * bindings/objc/DOM.mm:
2462 * bindings/objc/DOMCSS.mm:
2463 (-[DOMStyleSheet WebCore::]):
2464 (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2465 (-[DOMCSSRule WebCore::]):
2466 (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2467 (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2468 (-[DOMCSSValue WebCore::]):
2469 (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2470 (+[DOMCSSValue _CSSValueWith:WebCore::]):
2471 * bindings/objc/DOMHTMLAppletElement.mm:
2472 (-[DOMHTMLAppletElement WebCore::]):
2473 (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
2474 * bindings/objc/DOMHTMLEmbedElement.mm:
2475 (-[DOMHTMLEmbedElement WebCore::]):
2476 (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
2477 * bindings/objc/DOMInternal.h:
2478 * bindings/objc/DOMInternal.mm:
2479 * bindings/scripts/CodeGeneratorObjC.pm:
2480 * css/CSSCharsetRule.idl:
2481 * css/CSSFontFaceRule.idl:
2482 * css/CSSImportRule.idl:
2483 * css/CSSMediaRule.idl:
2484 * css/CSSPageRule.idl:
2485 * css/CSSPrimitiveValue.idl:
2486 * css/CSSStyleRule.idl:
2487 * css/CSSStyleSheet.idl:
2488 * css/CSSUnknownRule.idl:
2489 * css/CSSValueList.idl:
2490 * dom/KeyboardEvent.idl:
2491 * dom/MouseEvent.idl:
2492 * dom/MutationEvent.idl:
2493 * dom/NodeIterator.idl:
2494 * dom/OverflowEvent.idl:
2496 * dom/WheelEvent.idl:
2498 2006-09-29 David Harrison <harrison@apple.com>
2500 Reviewed by John Sullivan.
2502 <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
2503 <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
2506 * fast/text/attributed-substring-from-range-001.html
2508 * bridge/mac/FrameMac.mm:
2509 (WebCore::FrameMac::attributedString):
2510 Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
2511 Also, add validation of the range.
2513 2006-09-29 Rob Buis <buis@kde.org>
2517 http://bugs.webkit.org/show_bug.cgi?id=10893
2518 InsertRule can not handle @import statements
2520 Allow @import as part of a css rule.
2524 2006-09-28 David Hyatt <hyatt@apple.com>
2526 Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2528 * bridge/mac/FrameMac.mm:
2529 (WebCore::FrameMac::eventMayStartDrag):
2530 (WebCore::FrameMac::dragHysteresisExceeded):
2531 (WebCore::FrameMac::mouseDown):
2532 (WebCore::FrameMac::shouldDragAutoNode):
2533 (WebCore::FrameMac::sendContextMenuEvent):
2534 * bridge/mac/WebCoreFrameBridge.mm:
2535 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2537 2006-09-28 Dave Hyatt <hyatt@apple.com>
2539 This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2540 ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2543 Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2544 the patch after review, once I realized that these new functions essentially do the same thing.)
2546 * dom/EventTargetNode.cpp:
2547 (WebCore::EventTargetNode::dispatchMouseEvent):
2548 (WebCore::EventTargetNode::dispatchWheelEvent):
2550 (WebCore::Frame::selectClosestWordFromMouseEvent):
2551 (WebCore::Frame::handleMousePressEventTripleClick):
2552 (WebCore::Frame::handleMousePressEventSingleClick):
2553 (WebCore::Frame::handleMouseMoveEvent):
2554 (WebCore::Frame::handleMouseReleaseEvent):
2555 * page/FrameView.cpp:
2556 (WebCore::FrameView::handleMousePressEvent):
2557 (WebCore::selectCursor):
2558 (WebCore::FrameView::dispatchDragEvent):
2559 (WebCore::FrameView::prepareMouseEvent):
2560 (WebCore::FrameView::handleWheelEvent):
2561 * platform/ScrollView.h:
2562 * platform/Widget.cpp:
2563 (WebCore::Widget::convertToContainingWindow):
2564 * platform/Widget.h:
2565 * platform/mac/ScrollViewMac.mm:
2566 (WebCore::ScrollView::convertToContainingWindow):
2567 (WebCore::ScrollView::convertFromContainingWindow):
2568 * platform/mac/WidgetMac.mm:
2569 (WebCore::Widget::convertToContainingWindow):
2570 (WebCore::Widget::convertFromContainingWindow):
2571 * platform/win/ScrollViewWin.cpp:
2572 (WebCore::ScrollView::convertToContainingWindow):
2573 (WebCore::ScrollView::convertFromContainingWindow):
2574 * rendering/RenderLayer.cpp:
2575 (WebCore::RenderLayer::resize):
2577 2006-09-28 Alice Liu <alice.liu@apple.com>
2579 Build fix by adding missing files for CommandByName
2581 * WebCore.xcodeproj/project.pbxproj:
2583 2006-09-28 Alice Liu <alice.liu@apple.com>
2585 Adding CommandByName files to the vcproj
2587 * WebCore.vcproj/WebCore/WebCore.vcproj:
2589 2006-09-28 Alice Liu <alice.liu@apple.com>
2591 Reviewed by Adam Roben.
2593 This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc.
2594 This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2595 This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2597 * editing/CommandByName.cpp: Added.
2598 Added a command class that hangs off the frame so the frame can call commands more easily.
2599 (WebCore::Frame::commandImp):
2600 (WebCore::Frame::execCopy):
2601 (WebCore::Frame::execCut):
2602 (WebCore::Frame::execDelete):
2603 (WebCore::Frame::execForwardDelete):
2604 (WebCore::Frame::execPaste):
2605 (WebCore::Frame::execMoveLeft):
2606 (WebCore::Frame::execMoveRight):
2607 (WebCore::Frame::execMoveUp):
2608 (WebCore::Frame::execMoveDown):
2609 (WebCore::Frame::execSelectAll):
2610 (WebCore::Frame::execSelectLeft):
2611 (WebCore::Frame::execSelectRight):
2612 (WebCore::Frame::execSelectUp):
2613 (WebCore::Frame::execSelectDown):
2614 (WebCore::Frame::enabled):
2615 (WebCore::Frame::enabledAnySelection):
2616 (WebCore::Frame::enabledAnyEditableSelection):
2617 (WebCore::Frame::enabledPaste):
2618 (WebCore::Frame::enabledAnyRangeSelection):
2619 (WebCore::Frame::enabledAnyEditableRangeSelection):
2620 (WebCore::Frame::createCommandDictionary):
2621 (WebCore::Frame::Command::):
2622 (WebCore:::m_frame):
2623 (WebCore::CommandByName::execCommand):
2624 * editing/CommandByName.h: Added.
2626 Added implementation of accessor for CommandByName member
2627 (WebCore::Frame::command):
2629 Added accessor for CommandByName member
2630 * page/FramePrivate.h:
2631 Added a CommandByName member
2632 (WebCore::FramePrivate::FramePrivate):
2633 * platform/PlatformMouseEvent.h:
2634 Changed constructor prototype
2635 * platform/StringImpl.cpp:
2636 Exposing getWordBreakIterator to be used elsewhere
2637 (WebCore::getWordBreakIterator):
2638 * platform/StringImpl.h:
2639 Exposing getWordBreakIterator to be used elsewhere
2640 * platform/win/MouseEventWin.cpp:
2641 Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
2642 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2644 2006-09-28 Adam Roben <aroben@apple.com>
2648 Remove no-longer-used PopUpButton.
2650 * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2651 * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2653 * platform/PopUpButton.h: Removed.
2654 * platform/mac/PopUpButtonMac.mm: Removed.
2655 * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2656 * rendering/DeprecatedRenderSelect.cpp: Change #include of
2657 PopUpButton.h to ListBox.h
2659 2006-09-28 Darin Adler <darin@apple.com>
2663 - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2664 10% perf. regression (copying strings while decoding)
2666 Use Vector<UChar> instead of String when building up the decoded string in
2667 the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2668 String grows the buffer every single time that append is called. Using
2669 Vector::append instead of String::append also avoids constructing a string
2670 each time just to append and a questionable copy that is done inside the
2671 String::append function which also contributed to the slowness.
2673 * platform/PlatformString.h:
2674 * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2675 Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2677 * platform/StringImpl.h:
2678 * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2680 * platform/StreamingTextDecoder.h:
2681 * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2682 Change to use a Vector<UChar> instead of a String, since vectors have better
2683 resizing performance (they store a separate capacity).
2685 * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2686 * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2687 Change to use Vector<UChar> instead of String and then create a string at
2688 the end of the process using the new adopt function.
2690 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
2694 Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2695 Auto-generate more SVG Objective-C bindings
2697 - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
2698 DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2699 DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2700 DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2701 DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2702 DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
2703 and DOMSVGTransformable.
2705 - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2706 parent interfaces and the SVG animated classes.
2708 - Corrects CodeGenerator.pm to only skip the first parent for the main
2711 * DerivedSources.make:
2712 * WebCore.xcodeproj/project.pbxproj:
2713 * bindings/objc/DOMInternal.h:
2714 * bindings/objc/DOMSVG.h:
2715 * bindings/scripts/CodeGenerator.pm:
2716 * bindings/scripts/CodeGeneratorObjC.pm:
2717 * ksvg2/svg/SVGAnimatedAngle.idl:
2718 * ksvg2/svg/SVGAnimatedBoolean.idl:
2719 * ksvg2/svg/SVGAnimatedEnumeration.idl:
2720 * ksvg2/svg/SVGAnimatedInteger.idl:
2721 * ksvg2/svg/SVGAnimatedLength.idl:
2722 * ksvg2/svg/SVGAnimatedLengthList.idl:
2723 * ksvg2/svg/SVGAnimatedNumber.idl:
2724 * ksvg2/svg/SVGAnimatedPathData.idl:
2725 * ksvg2/svg/SVGAnimatedString.idl:
2726 * ksvg2/svg/SVGAnimatedTransformList.idl:
2727 * ksvg2/svg/SVGExternalResourcesRequired.idl:
2728 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2729 * ksvg2/svg/SVGFitToViewBox.idl:
2730 * ksvg2/svg/SVGLangSpace.idl:
2731 * ksvg2/svg/SVGLocatable.idl:
2732 * ksvg2/svg/SVGMetadataElement.idl:
2733 * ksvg2/svg/SVGStringList.idl:
2734 * ksvg2/svg/SVGStylable.idl:
2735 * ksvg2/svg/SVGStyleElement.idl:
2736 * ksvg2/svg/SVGTests.idl:
2737 * ksvg2/svg/SVGTransformable.idl:
2738 * ksvg2/svg/SVGURIReference.idl:
2739 * ksvg2/svg/SVGUnitTypes.idl:
2740 * ksvg2/svg/SVGZoomAndPan.idl:
2742 2006-09-28 Brady Eidson <beidson@apple.com>
2744 Reviewed by Mitz Pettel!!!
2746 Change the error code check for common functions from SQLResultOk to SQLResultDone
2748 * loader/icon/IconDatabase.cpp:
2749 (WebCore::IconDatabase::forgetPageURLQuery):
2750 (WebCore::IconDatabase::setIconIDForPageURLQuery):
2751 (WebCore::IconDatabase::addIconForIconURLQuery):
2753 2006-09-28 Dave Hyatt <hyatt@apple.com>
2755 Just eliminate MapWindowPoints usage and use the HWND as
2758 * platform/win/MouseEventWin.cpp:
2759 (WebCore::positionForEvent):
2760 * platform/win/ScrollViewWin.cpp:
2761 (WebCore::ScrollView::viewportToContents):
2762 (WebCore::ScrollView::contentsToViewport):
2764 2006-09-27 David Hyatt <hyatt@apple.com>
2766 Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
2767 selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
2768 scrollbars to provide hover feedback if needed.
2772 * page/FrameView.cpp:
2773 (WebCore::selectCursor):
2774 (WebCore::FrameView::handleMouseMoveEvent):
2775 * platform/ScrollBar.h:
2776 (WebCore::ScrollBar::mouseMoved):
2778 2006-09-27 MorganL <morganl.webkit@yahoo.com>
2780 Reviewed by Maciej and Adam, landed by Adam
2782 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
2783 Windows build is busted
2785 * platform/win/TemporaryLinkStubs.cpp:
2786 (ScrollView::paint):
2787 (ScrollView::themeChanged):
2789 2006-09-27 Eric Seidel <eric@eseidel.com>
2793 paths with no fill specified default to black but do not recieve paint-related mouse events
2794 http://bugs.webkit.org/show_bug.cgi?id=11069
2795 The default fill was being applied at the wrong place in the rendering chain, causing this problem.
2797 Test: svg/custom/hover-default-fill.svg
2799 * kcanvas/RenderPath.cpp:
2800 (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
2801 * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
2802 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2803 (WebCore::KSVGPainterFactory::isFilled): remove null check
2804 (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
2805 (WebCore::KSVGPainterFactory::isStroked): remove null check
2806 (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
2807 * ksvg2/svg/SVGPaint.cpp:
2808 (WebCore::SVGPaint::defaultFill): added.
2809 (WebCore::SVGPaint::defaultStroke): added.
2810 * ksvg2/svg/SVGPaint.h:
2812 2006-09-27 Rob Buis <buis@kde.org>
2814 Reviewed by eseidel.
2816 http://bugs.webkit.org/show_bug.cgi?id=11015
2817 SVG handles em units incorrectly
2819 Calculate viewport coordinates at layout time, since
2820 at this point the font size is known and lengths depending
2821 on font sizes can be calculated correctly.
2823 * kcanvas/RenderSVGContainer.cpp:
2824 (WebCore::RenderSVGContainer::layout):
2825 (WebCore::RenderSVGContainer::viewport):
2826 (WebCore::RenderSVGContainer::calcViewport):
2827 * kcanvas/RenderSVGContainer.h:
2828 * ksvg2/svg/SVGLength.cpp:
2829 (WebCore::SVGLength::updateValue):
2830 * ksvg2/svg/SVGMarkerElement.cpp:
2831 (WebCore::SVGMarkerElement::createRenderer):
2832 * ksvg2/svg/SVGSVGElement.cpp:
2833 (WebCore::SVGSVGElement::createRenderer):
2834 (WebCore::SVGSVGElement::attributeChanged):
2835 * ksvg2/svg/SVGSVGElement.h:
2837 2006-09-27 Eric Seidel <eric@eseidel.com>
2841 Change our invalid-fill error behavior to match Opera (and soon Firefox)
2842 http://bugs.webkit.org/show_bug.cgi?id=11017
2844 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2845 (WebCore::KSVGPainterFactory::isFilled):
2846 (WebCore::KSVGPainterFactory::fillPaintServer):
2847 (WebCore::KSVGPainterFactory::isStroked):
2848 (WebCore::KSVGPainterFactory::strokePaintServer):
2850 2006-09-27 Brady Eidson <beidson@apple.com>
2854 * loader/icon/IconDatabase.cpp:
2855 (WebCore::readySQLStatement):
2857 2006-09-27 Brady Eidson <beidson@apple.com>
2861 In very specific circumstances, prepared SQLStatements can become invalid without
2862 any warning. This checks for that state and re-prepares the statement and also
2863 adds more aggressive error-checking everywhere these statements are used.
2865 * loader/icon/IconDatabase.cpp:
2866 (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
2867 (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
2868 (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
2869 (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
2870 (WebCore::IconDatabase::forgetPageURLQuery): Ditto
2871 (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
2872 (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
2873 (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
2874 (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
2875 * loader/icon/SQLStatement.cpp:
2876 (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
2877 * loader/icon/SQLStatement.h:
2879 2006-09-26 Darin Adler <darin@apple.com>
2883 - clean up options for font code path
2886 * platform/Font.cpp:
2887 (WebCore::Font::setCodePath): Added. Replaces boolean version.
2888 (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
2890 * platform/mac/WebCoreTextRenderer.mm:
2891 (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
2893 2006-09-26 John Sullivan <sullivan@apple.com>
2897 * bridge/mac/WebCoreFrameBridge.h:
2898 * bridge/mac/WebCoreFrameBridge.mm:
2899 (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
2900 Added limit parameter, passed down to Frame
2904 (WebCore::Frame::markAllMatchesForText):
2905 Added limit parameter. Stop the search if it hits limit.
2907 2006-09-26 Sean Gies <seangies@apple.com>
2909 Reviewed by Brady Eidson.
2911 * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2913 2006-09-26 Justin Garcia <justin.garcia@apple.com>
2917 <rdar://problem/4747695>
2918 Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
2920 * editing/DeleteSelectionCommand.cpp:
2921 (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
2922 to select special elements that are fully selected after expansion
2923 moves to positions that are visually distinct from the originals.
2924 * editing/InsertListCommand.cpp:
2925 (WebCore::InsertListCommand::doApply): If the content of the list
2926 item will be moved into another list, put it in a list item.
2928 2006-09-26 Geoffrey Garen <ggaren@apple.com>
2932 Temporary work-around for frame lifetime issue.
2935 (WebCore::Frame::clear):
2936 (WebCore::Frame::disconnectOwnerElement):
2938 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
2942 Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
2943 Auto-generate DOMSVGElement for the Objective-C bindings
2945 - Auto-generates DOMSVGElement.
2947 - Make SVGExceptions work like all the other ExceptionCode
2948 extensions (Range, XPath, etc.) by adding SVGExceptionOffset
2949 and SVGExceptionMax.
2951 * DerivedSources.make:
2952 * WebCore.xcodeproj/project.pbxproj:
2953 * bindings/js/kjs_binding.cpp:
2955 (KJS::setDOMException):
2956 * bindings/objc/DOMInternal.h:
2957 * bindings/objc/DOMInternal.mm:
2958 (raiseDOMException):
2959 * bindings/objc/DOMSVG.h:
2960 * bindings/objc/DOMSVGExecption.h: Added.
2962 * ksvg2/svg/SVGElement.cpp:
2963 (WebCore::SVGElement::setId):
2964 (WebCore::SVGElement::setXmlbase):
2965 * ksvg2/svg/SVGElement.h:
2966 * ksvg2/svg/SVGElement.idl:
2967 * ksvg2/svg/SVGException.h: Added.
2970 2006-09-26 Eric Seidel <eric@eseidel.com>
2974 viewbox parser does not allow <tab> as a delimiter
2975 http://bugs.webkit.org/show_bug.cgi?id=11014
2977 Test: svg/hixie/viewbox/003.xml
2979 * ksvg2/svg/svgpathparser.cpp:
2980 (WebCore::isWhitespace): new function
2981 (WebCore::skipOptionalSpaces):
2982 (WebCore::skipOptionalSpacesOrComma):
2984 2006-09-26 Eric Seidel <eric@eseidel.com>
2988 SVGDocument::createElement does not create elements in the SVG namespace
2989 http://bugs.webkit.org/show_bug.cgi?id=10932
2991 Test: svg/custom/createelement.svg
2993 * ksvg2/svg/SVGDocument.cpp:
2994 (WebCore::SVGDocument::createElement):
2995 * ksvg2/svg/SVGDocument.h:
2997 2006-09-26 Eric Seidel <eric@eseidel.com>
3001 RenderPath::nodeAtPoint does not respect stroke width
3002 http://bugs.webkit.org/show_bug.cgi?id=10829
3004 Test: svg/custom/stroke-width-click.svg
3006 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
3007 (WebCore::RenderPath::strokeContains):
3008 * kcanvas/device/quartz/QuartzSupport.h:
3009 * kcanvas/device/quartz/QuartzSupport.mm:
3011 2006-09-26 Eric Seidel <eric@eseidel.com>
3015 Bring animation back to life
3016 http://bugs.webkit.org/show_bug.cgi?id=11021
3018 Register/unregister SVGSVGElements as time containers on insertion/removal.
3019 Replace uses of DeprecatedString with String in SVGAnimationElement
3020 Various whitespace clean-up.
3022 * ksvg2/misc/KSVGTimeScheduler.cpp:
3023 (WebCore::SVGTimer::notifyAll):
3024 * ksvg2/misc/SVGDocumentExtensions.cpp:
3025 (WebCore::SVGDocumentExtensions::startAnimations):
3026 (WebCore::SVGDocumentExtensions::pauseAnimations):
3027 (WebCore::SVGDocumentExtensions::unpauseAnimations):
3028 * ksvg2/svg/SVGAnimateTransformElement.cpp:
3029 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3030 (WebCore::SVGAnimateTransformElement::parseTransformValue):
3031 * ksvg2/svg/SVGAnimateTransformElement.h:
3032 * ksvg2/svg/SVGAnimationElement.cpp:
3033 (WebCore::SVGAnimationElement::SVGAnimationElement):
3034 (WebCore::SVGAnimationElement::parseMappedAttribute):
3035 (WebCore::SVGAnimationElement::parseClockValue):
3036 (WebCore::SVGAnimationElement::targetAttribute):
3037 (WebCore::SVGAnimationElement::setTargetAttribute):
3038 (WebCore::SVGAnimationElement::attributeName):
3039 * ksvg2/svg/SVGAnimationElement.h:
3040 (WebCore::SVGAnimationElement::rendererIsNeeded):
3041 * ksvg2/svg/SVGSVGElement.cpp:
3042 (WebCore::SVGSVGElement::getScreenCTM):
3043 (WebCore::SVGSVGElement::createRenderer):
3044 (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3045 (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3046 * ksvg2/svg/SVGSVGElement.h:
3047 * ksvg2/svg/SVGSetElement.cpp:
3048 (WebCore::SVGSetElement::handleTimerEvent):
3049 * ksvg2/svg/SVGURIReference.cpp:
3050 (WebCore::SVGURIReference::getTarget):
3051 * ksvg2/svg/SVGURIReference.h:
3053 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
3055 Reviewed by mitzpettel.
3057 - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3058 No-SVG build broken since r16549
3060 Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3062 * css/cssparser.cpp:
3063 (WebCore::CSSParser::parseValue):
3064 * css/cssstyleselector.cpp:
3065 (WebCore::CSSStyleSelector::applyProperty):
3066 * page/FrameView.cpp:
3067 (WebCore::selectCursor):
3068 * platform/qt/GraphicsContextQt.cpp:
3070 2006-09-26 Anders Carlsson <acarlsson@apple.com>
3074 http://bugs.webkit.org/show_bug.cgi?id=10820
3075 Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
3077 (Originally written by Eric Seidel).
3079 * bindings/js/kjs_window.cpp:
3080 (KJS::floatFeature):
3081 * ksvg2/svg/SVGAngle.cpp:
3082 (SVGAngle::setValueAsString):
3083 * ksvg2/svg/SVGAnimationElement.cpp:
3084 (SVGAnimationElement::parseMappedAttribute):
3085 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3086 (SVGComponentTransferFunctionElement::parseMappedAttribute):
3087 * ksvg2/svg/SVGFECompositeElement.cpp:
3088 (WebCore::SVGFECompositeElement::parseMappedAttribute):
3089 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3090 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3091 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3092 (SVGFEDisplacementMapElement::parseMappedAttribute):
3093 * ksvg2/svg/SVGFELightElement.cpp:
3094 (SVGFELightElement::parseMappedAttribute):
3095 * ksvg2/svg/SVGFEOffsetElement.cpp:
3096 (WebCore::SVGFEOffsetElement::parseMappedAttribute):
3097 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3098 (SVGFESpecularLightingElement::parseMappedAttribute):
3099 * ksvg2/svg/SVGFETurbulenceElement.cpp:
3100 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3101 * ksvg2/svg/SVGStopElement.cpp:
3102 (SVGStopElement::parseMappedAttribute):
3103 * platform/AtomicString.h:
3104 (WebCore::AtomicString::toDouble):
3105 * platform/PlatformString.h:
3106 * platform/String.cpp:
3107 (WebCore::String::toDouble):
3108 * platform/StringImpl.cpp:
3109 (WebCore::StringImpl::toDouble):
3110 * platform/StringImpl.h:
3111 * rendering/DeprecatedSlider.cpp:
3112 (WebCore::DeprecatedSlider::updateFromElement):
3113 * xml/XPathGrammar.y:
3115 2006-09-25 David Harrison <harrison@apple.com>
3117 Reviewed by Tim Omernick and Tim Hatcher.
3119 <rdar://problem/4717965> Text Field text parameterized attributes should work
3120 <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
3122 * bridge/mac/WebCoreAXObject.mm:
3123 (-[WebCoreAXObject accessibilityAttributeValue:]):
3124 Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
3126 (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
3127 Cleaned up. Added text field and text area parameterzed attributes.
3129 (-[WebCoreAXObject doAXLineForTextMarker:]):
3130 Fixed to be zero-based and to deal with the first position properly.
3132 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3135 (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
3136 (-[WebCoreAXObject indexForTextMarker:]):
3137 (-[WebCoreAXObject textMarkerRangeForRange:]):
3138 (-[WebCoreAXObject rangeForTextMarkerRange:]):
3139 New utility methods.
3141 (-[WebCoreAXObject doAXLineForIndex:]):
3142 (-[WebCoreAXObject doAXRangeForLine:]):
3143 (-[WebCoreAXObject doAXStringForRange:]):
3144 (-[WebCoreAXObject doAXRangeForPosition:]):
3145 (-[WebCoreAXObject doAXRangeForIndex:]):
3146 (-[WebCoreAXObject doAXBoundsForRange:]):
3147 (-[WebCoreAXObject doAXAttributedStringForRange:]):
3148 (-[WebCoreAXObject doAXRTFForRange:]):
3149 (-[WebCoreAXObject doAXStyleRangeForIndex:]):
3150 Implement text field and text area parameterized attributes.
3152 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
3153 Added text field and text area parameterzed attributes.
3155 * rendering/RenderTextControl.h:
3156 Made indexForVisiblePosition() and visiblePositionForIndex() public.
3158 2006-09-25 Adam Roben <aroben@apple.com>
3164 * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
3165 * platform/ResourceLoader.h: Store whether a particular job
3166 has received a response within the ResourceLoader object itself, since
3167 it's possible that we will enter the InternetReadFileExA while loop
3168 twice for the same job.
3169 * platform/ResourceLoaderInternal.h: Add private instance variable to
3170 store whether we've received a response.
3171 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3172 * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
3174 * platform/win/ResourceLoaderWin.cpp:
3175 (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
3176 whether it has received a response instead of assuming it hasn't.
3177 (WebCore::ResourceLoader::setHasReceivedResponse): Added.
3178 (WebCore::ResourceLoader::hasReceivedResponse): Added.
3179 * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
3181 (ScrollBar::setProportion):
3183 2006-09-25 Brady Eidson <beidson@apple.com>
3187 Disabled IconDatabase logging by default
3189 * platform/Logging.cpp:
3192 2006-09-25 Steve Falkenburg <sfalken@apple.com>
3196 * platform/cf/ResourceLoaderCFNet.cpp:
3197 (WebCore::willCacheResponse):
3199 2006-09-25 Justin Garcia <justin.garcia@apple.com>
3203 <http://bugs.webkit.org/show_bug.cgi?id=11002>
3204 Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
3206 * editing/IndentOutdentCommand.cpp:
3207 (WebCore::IndentOutdentCommand::indentRegion): Special case
3208 an empty root editable element.
3210 2006-09-25 Brady Eidson <beidson@apple.com>
3214 Math error in SystemTimeWin
3216 * platform/win/SystemTimeWin.cpp:
3217 (WebCore::currentTime):
3219 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
3223 Whitespace cleanup; rename *job variables to *loader.
3225 * bindings/js/JSXMLHttpRequest.cpp:
3226 (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
3227 (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
3228 (KJS::JSXMLHttpRequestConstructorImp::construct):
3229 (KJS::JSXMLHttpRequest::getOwnPropertySlot):
3230 (KJS::JSXMLHttpRequest::getValueProperty):
3231 (KJS::JSXMLHttpRequest::put):
3232 (KJS::JSXMLHttpRequest::putValueProperty):
3233 (KJS::JSXMLHttpRequest::mark):
3234 (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
3235 (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
3236 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
3237 * bindings/js/JSXMLHttpRequest.h:
3238 (KJS::JSXMLHttpRequest::toBoolean):
3239 * xml/xmlhttprequest.cpp:
3240 (WebCore::XMLHttpRequest::XMLHttpRequest):
3241 (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
3242 (WebCore::XMLHttpRequest::send):
3243 (WebCore::XMLHttpRequest::abort):
3244 (WebCore::XMLHttpRequest::receivedAllData):
3245 (WebCore::XMLHttpRequest::receivedData):
3246 * xml/xmlhttprequest.h:
3249 2006-09-25 Timothy Hatcher <timothy@apple.com>
3253 - Deprecate the rest of the old-style methods that are not generated.
3254 - Add @property syntax to DOMRange.
3256 * WebCore.xcodeproj/project.pbxproj:
3257 * bindings/objc/DOM.mm:
3258 (-[DOMRange setStart:offset:]):
3259 (-[DOMRange setEnd:offset:]):
3260 (-[DOMRange compareBoundaryPoints:sourceRange:]):
3261 (-[DOMRange setStart::]):
3262 (-[DOMRange setEnd::]):
3263 (-[DOMRange compareBoundaryPoints::]):
3264 (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
3265 (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
3266 (-[DOMDocument createNodeIterator::::]):
3267 (-[DOMDocument createTreeWalker::::]):
3268 * bindings/objc/DOMCSS.h:
3269 * bindings/objc/DOMCSS.mm:
3270 (-[DOMDocument getComputedStyle:pseudoElement:]):
3271 (-[DOMDocument getComputedStyle::]):
3272 (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
3273 * bindings/objc/DOMExtensions.h:
3274 * bindings/objc/DOMHTML.h:
3275 * bindings/objc/DOMRange.h:
3276 * bindings/objc/DOMTraversal.h:
3278 2006-09-25 Eric Seidel <eric@eseidel.com>
3282 Outermost <svg> element should clip to viewport
3283 http://bugs.webkit.org/show_bug.cgi?id=11007
3285 Test: svg/custom/viewport-clip.svg
3287 * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
3289 2006-09-25 Anders Carlsson <acarlsson@apple.com>
3293 * css/MediaList.cpp:
3294 Remove unused header.
3297 (WebCore::Document::clear):
3298 Use clear instead of iterating through the list of event listeners, removing each one.
3299 (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
3301 * html/HTMLKeygenElement.cpp:
3302 (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3303 (WebCore::HTMLKeygenElement::appendFormData):
3304 Update due to changes in the SSL key generator.
3306 * ksvg2/svg/SVGAngle.cpp:
3307 Remove unused header.
3309 * ksvg2/svg/SVGAnimationElement.cpp:
3310 (SVGAnimationElement::parseMappedAttribute):
3311 Rename methods and pass Strings instead of DeprecatedStrings to
3314 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3315 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3316 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3317 * ksvg2/svg/SVGFEMergeElement.cpp:
3318 * ksvg2/svg/SVGFEOffsetElement.cpp:
3319 Remove unused headers.
3321 * ksvg2/svg/SVGHelper.cpp:
3322 (WebCore::SVGHelper::parseSeparatedList):
3323 * ksvg2/svg/SVGHelper.h:
3324 Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
3325 DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
3327 * ksvg2/svg/SVGLengthList.cpp:
3328 (WebCore::SVGLengthList::parse):
3329 * ksvg2/svg/SVGLengthList.h:
3330 Use Vector<String> instead of DeprecatedStringList.
3333 (WebCore::Cache::requestImage):
3334 (WebCore::Cache::requestStyleSheet):
3335 (WebCore::Cache::requestScript):
3336 (WebCore::Cache::requestXSLStyleSheet):
3337 (WebCore::Cache::requestXBLDocument):
3338 (WebCore::Cache::remove):
3339 (WebCore::Cache::get):
3340 Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
3342 * loader/DocLoader.cpp:
3343 (WebCore::DocLoader::needReload):
3344 * loader/DocLoader.h:
3345 Use a HashSet instead of DeprecatedStringList.
3348 Remove declarations that have no functions.
3350 * platform/SSLKeyGenerator.h:
3351 * platform/mac/SSLKeyGeneratorMac.mm:
3352 (WebCore::supportedKeySizes):
3353 (WebCore::signedPublicKeyAndChallengeString):
3354 Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
3357 2006-09-25 Dave Hyatt <hyatt@apple.com>
3359 Shunt the RenderTheme world transform adoption between
3360 Cairo and Windows into getWindowsContext and move the method
3361 out of GraphicsContextCairo and into GraphicsContextWin.
3364 * WebCore.vcproj/WebCore/WebCore.vcproj:
3365 * platform/cairo/GraphicsContextCairo.cpp:
3366 * platform/win/GraphicsContextWin.cpp: Added.
3367 (WebCore::GraphicsContext::getWindowsContext):
3368 (WebCore::GraphicsContext::releaseWindowsContext):
3369 * rendering/RenderThemeWin.cpp:
3370 (WebCore::prepareForDrawing):
3372 2006-09-24 Eric Seidel <eric@eseidel.com>
3376 <svg:a> cannot be styled with a:hover
3377 http://bugs.webkit.org/show_bug.cgi?id=11005
3379 Test: svg/hixie/cascade/002.xml
3381 * css/cssstyleselector.cpp:
3382 (WebCore::checkPseudoState):
3384 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3388 Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
3389 SVG needs Obj-C DOM bindings
3391 - Auto-generate the first 8 Objective-C SVG DOM bindings. The
3392 auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
3393 DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
3394 DOMSVGTransformList.
3396 * DerivedSources.make:
3397 * WebCore.xcodeproj/project.pbxproj:
3398 * bindings/objc/DOMInternal.h:
3399 * bindings/objc/DOMSVG.h: Added.
3400 * ksvg2/svg/SVGAngle.idl:
3401 * ksvg2/svg/SVGLength.idl:
3402 * ksvg2/svg/SVGLengthList.idl:
3403 * ksvg2/svg/SVGMatrix.idl:
3404 * ksvg2/svg/SVGPathSeg.idl:
3405 * ksvg2/svg/SVGPathSegList.idl:
3406 * ksvg2/svg/SVGTransform.idl:
3407 * ksvg2/svg/SVGTransformList.idl:
3409 2006-09-24 Rob Buis <buis@kde.org>
3411 Reviewed by eseidel.
3413 Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
3414 WebKit does not handle fallback custom cursors
3415 Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
3416 WebKit does not properly handle SVG <cursor> element
3418 Add support for svg cursor images. Also make sure hotspot
3419 settings are handled correctly. Add tests for handling of css3
3420 cursor syntax with hotspots in strict and quirks mode. Finally
3423 * WebCore.xcodeproj/project.pbxproj:
3424 * css/CSSComputedStyleDeclaration.cpp:
3425 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3426 * css/CSSCursorImageValue.cpp: Added.
3427 (WebCore::CSSCursorImageValue::CSSCursorImageValue):
3428 (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3429 * css/CSSCursorImageValue.h: Added.
3430 (WebCore::CSSCursorImageValue::hotspot):
3431 * css/cssparser.cpp:
3432 (WebCore::CSSParser::parseValue):
3433 * css/cssstyleselector.cpp:
3434 (WebCore::CSSStyleSelector::applyProperty):
3435 * ksvg2/svg/SVGCursorElement.cpp:
3436 * manual-tests/css3-cursor-fallback-quirks.html: Added.
3437 * manual-tests/css3-cursor-fallback-strict.html: Added.
3438 * manual-tests/cursorfallback.xml: Added.
3439 * page/FrameView.cpp:
3440 (WebCore::selectCursor):
3441 * platform/Cursor.h:
3442 * platform/mac/CursorMac.mm:
3443 (WebCore::createCustomCursor):
3444 (WebCore::Cursor::Cursor):
3445 * platform/qt/CursorQt.cpp:
3446 (WebCore::Cursor::Cursor):
3447 * rendering/RenderStyle.cpp:
3448 (WebCore::StyleInheritedData::StyleInheritedData):
3449 (WebCore::StyleInheritedData::operator==):
3450 (WebCore::RenderStyle::diff):
3451 (WebCore::RenderStyle::addCursor):
3452 (WebCore::RenderStyle::addSVGCursor):
3453 (WebCore::RenderStyle::setCursorList):
3454 (WebCore::RenderStyle::clearCursorList):
3455 * rendering/RenderStyle.h:
3456 (WebCore::CursorData::CursorData):
3457 (WebCore::CursorList::operator[]):
3458 (WebCore::CursorList::size):
3459 (WebCore::CursorList::append):
3460 (WebCore::RenderStyle::cursors):
3462 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3466 Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
3467 Auto-generate the internal methods interfaces for the Objective-C bindings
3469 - Auto-generate the internal method declarations into their own files
3470 named in the form DOMFooBarInternal.h for class DOMFooBar.
3472 - Remove all use of DOM_cast from code.
3474 - Assorted cleanups.
3476 * WebCore.xcodeproj/project.pbxproj:
3477 * bindings/objc/DOM.mm:
3478 (-[DOMNode _initWithNode:WebCore::]):
3479 (-[DOMNode WebCore::]):
3480 (-[DOMRange dealloc]):
3481 (-[DOMRange finalize]):
3482 (-[DOMRange _initWithRange:WebCore::]):
3483 (-[DOMRange WebCore::]):
3484 (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3485 (-[DOMNodeFilter WebCore::]):
3486 (-[DOMNodeFilter dealloc]):
3487 (-[DOMNodeFilter finalize]):
3488 (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
3489 (-[DOMNodeIterator WebCore::]):
3490 (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
3491 (-[DOMTreeWalker WebCore::]):
3492 * bindings/objc/DOMAbstractView.mm:
3493 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
3494 * bindings/objc/DOMCSS.mm:
3495 (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
3496 (-[DOMCSSRule _initWithRule:WebCore::]):
3497 (-[DOMCSSValue _initWithValue:WebCore::]):
3498 * bindings/objc/DOMEvents.mm:
3499 (-[DOMEvent _initWithEvent:WebCore::]):
3500 * bindings/objc/DOMHTMLAppletElement.mm:
3501 (-[DOMHTMLAppletElement align]):
3502 (-[DOMHTMLAppletElement setAlign:]):
3503 (-[DOMHTMLAppletElement alt]):
3504 (-[DOMHTMLAppletElement setAlt:]):
3505 (-[DOMHTMLAppletElement archive]):
3506 (-[DOMHTMLAppletElement setArchive:]):
3507 (-[DOMHTMLAppletElement code]):
3508 (-[DOMHTMLAppletElement setCode:]):
3509 (-[DOMHTMLAppletElement codeBase]):
3510 (-[DOMHTMLAppletElement setCodeBase:]):
3511 (-[DOMHTMLAppletElement height]):
3512 (-[DOMHTMLAppletElement setHeight:]):
3513 (-[DOMHTMLAppletElement hspace]):
3514 (-[DOMHTMLAppletElement setHspace:]):
3515 (-[DOMHTMLAppletElement name]):
3516 (-[DOMHTMLAppletElement setName:]):
3517 (-[DOMHTMLAppletElement object]):
3518 (-[DOMHTMLAppletElement setObject:]):
3519 (-[DOMHTMLAppletElement vspace]):
3520 (-[DOMHTMLAppletElement setVspace:]):
3521 (-[DOMHTMLAppletElement width]):
3522 (-[DOMHTMLAppletElement setWidth:]):
3523 * bindings/objc/DOMInternal.h:
3527 * bindings/objc/DOMXPath.mm:
3528 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3529 * bindings/scripts/CodeGeneratorObjC.pm:
3531 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3533 Reviewed by eseidel.
3535 Fix Qt/Linux build after Dave's Scrollbar changes.
3537 * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3538 * platform/qt/TemporaryLinkStubs.cpp:
3539 (WebCore::ScrollBar::setProportion):
3540 (WebCore::PlatformScrollBar::updateThumbPosition):
3541 (WebCore::PlatformScrollBar::updateThumbProportion):
3543 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3545 Reviewed by eseidel.
3547 Qt/Linux build system changes: enable xpath/xslt by default.
3548 Offer possibility to change all of these using 'ccmake'.
3552 2006-09-24 Dave Hyatt <hyatt@apple.com>
3554 Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
3555 Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3556 the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3558 * platform/ScrollBar.cpp:
3559 (WebCore::ScrollBar::setValue):
3560 (WebCore::ScrollBar::setProportion):
3561 * platform/ScrollBar.h:
3562 (WebCore::ScrollBar::value):
3563 * platform/mac/PlatformScrollBar.h:
3564 * platform/mac/PlatformScrollBarMac.mm:
3565 (WebCore::PlatformScrollBar::updateThumbPosition):
3566 (WebCore::PlatformScrollBar::updateThumbProportion):
3567 * platform/win/PlatformScrollBar.h:
3568 * platform/win/TemporaryLinkStubs.cpp:
3569 (PlatformScrollBar::updateThumbPosition):
3570 (PlatformScrollBar::updateThumbProportion):
3571 * rendering/RenderLayer.cpp:
3572 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3574 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
3578 http://bugs.webkit.org/show_bug.cgi?id=4872
3579 XMLHttpRequest fails to throw an exception when there is a security violation
3580 (mismatching domains)
3582 Raise an exception if there is a security violation, and also in cases required by
3583 the current draft of XHR specification.
3585 * bindings/js/JSXMLHttpRequest.cpp:
3586 (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3587 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3588 reports one, and also if there were too few arguments passed.
3590 * bindings/js/kjs_binding.cpp:
3591 (KJS::setDOMException): Added support for custom XHR exceptions.
3593 * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3594 exception code range for XHR exceptions.
3596 * xml/xmlhttprequest.cpp:
3597 (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3598 (WebCore::XMLHttpRequest::send):
3599 (WebCore::XMLHttpRequest::setRequestHeader):
3600 (WebCore::XMLHttpRequest::getStatus):
3601 (WebCore::XMLHttpRequest::getStatusText):
3602 (WebCore::XMLHttpRequest::processSyncLoadResults):
3603 (WebCore::XMLHttpRequest::receivedAllData):
3604 (WebCore::XMLHttpRequest::receivedData):
3606 2006-09-22 Steve Falkenburg <sfalken@apple.com>
3608 Reviewed by Jeff Jenkins.
3612 * platform/cf/ResourceLoaderCFNet.cpp:
3613 (WebCore::willCacheResponse):
3615 2006-09-22 Justin Garcia <justin.garcia@apple.com>
3619 <http://bugs.webkit.org/show_bug.