1 2006-10-08 Maciej Stachowiak <mjs@apple.com>
5 - split didNotOpenURL: into general and page-cache-specific parts
7 * bridge/mac/WebCoreFrameBridge.h:
8 * bridge/mac/WebCoreFrameBridge.mm:
9 (-[WebCoreFrameBridge didNotOpenURL:]):
10 (-[WebCoreFrameBridge invalidatePageCache:]):
12 2006-10-08 Anders Carlsson <acarlsson@apple.com>
17 Remove DeprecatedStringList.h include.
20 (WebCore::Frame::submitForm):
21 Don't remove "attach" from mailto URLs, we don't do it anywhere else.
23 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
27 Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
28 Yet another round of Objective-C SVG DOM bindings auto-generation
30 - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
31 DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
32 DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
33 DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
34 DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
35 DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
36 DOMSVGZoomAndPan and DOMSVGZoomEvent.
38 - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
39 using the new [ConvertFromString] property.
41 - Add forward declarations for NS* types to auto-generated classes.
43 * DerivedSources.make:
44 * WebCore.xcodeproj/project.pbxproj:
45 * bindings/objc/DOMHTMLAppletElement.mm: Removed.
46 * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
47 * bindings/objc/DOMInternal.h:
48 * bindings/objc/DOMSVG.h:
49 * bindings/scripts/CodeGeneratorObjC.pm:
50 * html/HTMLAppletElement.idl:
51 * html/HTMLEmbedElement.idl:
52 * ksvg2/svg/SVGPatternElement.idl:
53 * ksvg2/svg/SVGPolygonElement.idl:
54 * ksvg2/svg/SVGPolylineElement.idl:
55 * ksvg2/svg/SVGRadialGradientElement.idl:
56 * ksvg2/svg/SVGRenderingIntent.idl:
57 * ksvg2/svg/SVGScriptElement.idl:
58 * ksvg2/svg/SVGSetElement.idl:
59 * ksvg2/svg/SVGStopElement.idl:
60 * ksvg2/svg/SVGSwitchElement.idl:
61 * ksvg2/svg/SVGSymbolElement.idl:
62 * ksvg2/svg/SVGTRefElement.idl:
63 * ksvg2/svg/SVGTSpanElement.idl:
64 * ksvg2/svg/SVGTextContentElement.idl:
65 * ksvg2/svg/SVGTextElement.idl:
66 * ksvg2/svg/SVGTextPositioningElement.idl:
67 * ksvg2/svg/SVGTitleElement.idl:
68 * ksvg2/svg/SVGUseElement.idl:
69 * ksvg2/svg/SVGViewElement.idl:
70 * ksvg2/svg/SVGZoomEvent.idl:
72 2006-10-07 Anders Carlsson <acarlsson@apple.com>
76 Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
78 (WebCore::Loader::servePendingRequests):
80 2006-10-07 Anders Carlsson <acarlsson@apple.com>
84 Convert a bunch of RefPtr<StringImpl> to String.
86 * bridge/mac/FrameMac.h:
87 * bridge/mac/FrameMac.mm:
88 (WebCore::FrameMac::didTellBridgeAboutLoad):
89 (WebCore::FrameMac::haveToldBridgeAboutLoad):
90 * dom/BeforeUnloadEvent.cpp:
91 (WebCore::BeforeUnloadEvent::storeResult):
92 * dom/BeforeUnloadEvent.h:
93 (WebCore::BeforeUnloadEvent::result):
95 (WebCore::Document::createEntityReference):
97 (WebCore::Entity::Entity):
98 (WebCore::Entity::nodeName):
99 (WebCore::Entity::toString):
101 (WebCore::Entity::publicId):
102 (WebCore::Entity::systemId):
103 (WebCore::Entity::notationName):
104 * dom/EntityReference.cpp:
105 (WebCore::EntityReference::EntityReference):
106 (WebCore::EntityReference::nodeName):
107 (WebCore::EntityReference::cloneNode):
108 (WebCore::EntityReference::toString):
109 * dom/EntityReference.h:
110 * dom/KeyboardEvent.cpp:
111 (WebCore::KeyboardEvent::KeyboardEvent):
112 (WebCore::KeyboardEvent::initKeyboardEvent):
113 * dom/KeyboardEvent.h:
114 (WebCore::KeyboardEvent::keyIdentifier):
115 * dom/MutationEvent.cpp:
116 (WebCore::MutationEvent::MutationEvent):
117 (WebCore::MutationEvent::initMutationEvent):
118 * dom/MutationEvent.h:
119 (WebCore::MutationEvent::prevValue):
120 (WebCore::MutationEvent::newValue):
121 (WebCore::MutationEvent::attrName):
123 (WebCore::Notation::Notation):
124 (WebCore::Notation::nodeName):
126 (WebCore::Notation::publicId):
127 (WebCore::Notation::systemId):
128 * dom/ProcessingInstruction.cpp:
129 (WebCore::ProcessingInstruction::ProcessingInstruction):
130 (WebCore::ProcessingInstruction::setData):
131 (WebCore::ProcessingInstruction::nodeName):
132 (WebCore::ProcessingInstruction::nodeValue):
133 (WebCore::ProcessingInstruction::cloneNode):
134 (WebCore::ProcessingInstruction::checkStyleSheet):
135 (WebCore::ProcessingInstruction::toString):
136 * dom/ProcessingInstruction.h:
137 (WebCore::ProcessingInstruction::target):
138 (WebCore::ProcessingInstruction::data):
139 (WebCore::ProcessingInstruction::localHref):
141 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
145 Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
146 10 more SVG Objective-C auto-generated bindings
148 - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
149 DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
150 DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
151 DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
153 - Auto-generate the text method for DOMRange.
155 * DerivedSources.make:
156 * WebCore.xcodeproj/project.pbxproj:
157 * bindings/objc/DOM.mm:
158 * bindings/objc/DOMExtensions.h:
159 * bindings/objc/DOMInternal.h:
160 * bindings/objc/DOMPrivate.h:
161 * bindings/objc/DOMRGBColor.mm:
162 * bindings/objc/DOMSVG.h:
163 * bindings/objc/PublicDOMInterfaces.h:
164 * bindings/scripts/CodeGeneratorObjC.pm:
166 * ksvg2/svg/SVGFilterElement.cpp:
167 * ksvg2/svg/SVGFilterElement.h:
168 * ksvg2/svg/SVGFilterElement.idl:
169 * ksvg2/svg/SVGForeignObjectElement.idl:
170 * ksvg2/svg/SVGGElement.idl:
171 * ksvg2/svg/SVGGradientElement.idl:
172 * ksvg2/svg/SVGImageElement.idl:
173 * ksvg2/svg/SVGLineElement.idl:
174 * ksvg2/svg/SVGLinearGradientElement.idl:
175 * ksvg2/svg/SVGMarkerElement.idl:
176 * ksvg2/svg/SVGMaskElement.idl:
177 * ksvg2/svg/SVGPaint.idl:
179 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
183 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
184 Auto-generate a few more Objective-C DOM interfaces
186 - Fully auto-generate DOMAbstractView and DOMRange.
188 - Auto-generate just the interface for DOMRGBColor.
190 - Add DOMRanges.h as the new top level file for Ranges
193 - Add DOMRanges.h and DOMXPath.h to DOM.mm
195 * DerivedSources.make:
196 * WebCore.xcodeproj/project.pbxproj:
197 * bindings/objc/DOM.h:
198 * bindings/objc/DOM.mm:
199 * bindings/objc/DOMAbstractView.h: Removed.
200 * bindings/objc/DOMAbstractView.mm: Removed.
201 * bindings/objc/DOMInternal.h:
202 * bindings/objc/DOMPrivate.h:
203 * bindings/objc/DOMRGBColor.h: Removed.
204 * bindings/objc/DOMRGBColor.mm:
205 * bindings/objc/DOMRange.h: Removed.
206 * bindings/objc/DOMRanges.h: Added.
207 * bindings/objc/PublicDOMInterfaces.h:
208 * bindings/scripts/CodeGeneratorObjC.pm:
211 * page/AbstractView.idl: Added.
213 2006-10-07 Andrew Wellington <proton@wiretapped.net>
217 Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
218 http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
220 Return null when there is no frame. This matches Firefox.
222 * bindings/js/kjs_html.cpp:
223 (KJS::JSHTMLDocument::getValueProperty):
225 2006-10-07 David Hyatt <hyatt@apple.com>
227 Implement scroll corner painting (a white rect fill) for overflow areas to cover up
228 scrollbar joins properly.
230 Refactor painting of scrollbars and resizers into common functions. Eliminate the
231 extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
235 * page/FrameView.cpp:
236 (WebCore::selectCursor):
237 (WebCore::FrameView::handleMouseMoveEvent):
238 * platform/mac/PlatformScrollBar.h:
239 (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
240 (WebCore::PlatformScrollbar::verticalScrollbarWidth):
241 * rendering/RenderLayer.cpp:
242 (WebCore::RenderLayer::RenderLayer):
243 (WebCore::RenderLayer::~RenderLayer):
244 (WebCore::RenderLayer::updateLayerPositions):
245 (WebCore::scrollCornerRect):
246 (WebCore::RenderLayer::positionOverflowControls):
247 (WebCore::RenderLayer::paintOverflowControls):
248 (WebCore::RenderLayer::isPointInResizeControl):
249 (WebCore::RenderLayer::paintLayer):
250 * rendering/RenderLayer.h:
252 2006-10-07 Mark Rowe <bdash@webkit.org>
256 Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
257 matching recent ResourceLoader changes.
259 * platform/gdk/FrameGdk.cpp:
260 (WebCore::FrameGdk::openURL):
261 (WebCore::FrameGdk::urlSelected):
262 * platform/gdk/PlatformScrollBar.h:
263 * platform/gdk/ResourceLoaderCurl.cpp:
264 (WebCore::ResourceLoader::start):
265 * platform/gdk/ScrollViewGdk.cpp:
266 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
267 (WebCore::ScrollView::resizeContents):
268 (WebCore::ScrollView::scrollBy):
269 (WebCore::ScrollView::hScrollbarMode):
270 (WebCore::ScrollView::vScrollbarMode):
271 (WebCore::ScrollView::suppressScrollbars):
272 (WebCore::ScrollView::setHScrollbarMode):
273 (WebCore::ScrollView::setVScrollbarMode):
274 (WebCore::ScrollView::setScrollbarsMode):
275 * platform/gdk/TemporaryLinkStubs.cpp:
276 (FrameView::passMousePressEventToScrollbar):
277 (Widget::removeFromParent):
278 (ScrollView::addChild):
279 (ScrollView::updateScrollbars):
280 (ScrollView::scrollbarUnderMouse):
281 (PlatformScrollbar::PlatformScrollbar):
282 (PlatformScrollbar::~PlatformScrollbar):
283 (PlatformScrollbar::width):
284 (PlatformScrollbar::height):
285 (PlatformScrollbar::setEnabled):
286 (PlatformScrollbar::paint):
287 (PlatformScrollbar::updateThumbPosition):
288 (PlatformScrollbar::updateThumbProportion):
289 (PlatformScrollbar::setRect):
290 (Scrollbar::Scrollbar):
291 (Scrollbar::setSteps):
293 (Scrollbar::setValue):
294 (Scrollbar::setProportion):
296 2006-10-06 Dave Hyatt <hyatt@apple.com>
298 Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
300 * page/FrameView.cpp:
301 (WebCore::FrameView::windowClipRect):
303 * platform/ScrollView.h:
304 * platform/Widget.cpp:
305 (WebCore::Widget::windowClipRect):
307 (WebCore::Widget::geometryChanged):
308 (WebCore::Widget::handleMouseMoveEvent):
309 (WebCore::Widget::handleMouseReleaseEvent):
310 * platform/mac/ScrollViewMac.mm:
311 (WebCore::ScrollView::addChild):
312 * rendering/RenderLayer.cpp:
313 (WebCore::RenderLayer::documentClipRect):
314 * rendering/RenderLayer.h:
316 2006-10-06 Steve Falkenburg <sfalken@apple.com>
320 Add another method we'll need for scrollbar dodging
322 * platform/ScrollView.h:
323 * platform/win/TemporaryLinkStubs.cpp:
324 (ScrollView::resizerOverlapsContent):
326 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
330 Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
331 Auto-generate the interfaces even for Objective-C DOM
332 bindings that need custom implementations
334 - Fully auto-generate DOMEventTarget, DOMNodeFilter and
335 DOMHTMLOptionElement.
337 - Auto-generate just the interface for DOMHTMLAppletElement,
338 DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
339 using the new IDL property ObjCCustomImplementation.
341 * DerivedSources.make:
342 * WebCore.xcodeproj/project.pbxproj:
343 * bindings/objc/DOMEventTarget.h: Removed.
344 * bindings/objc/DOMHTMLAppletElement.h: Removed.
345 * bindings/objc/DOMHTMLEmbedElement.h: Removed.
346 * bindings/objc/DOMHTMLOptionElement.h: Removed.
347 * bindings/objc/DOMHTMLOptionElement.mm: Removed.
348 * bindings/objc/DOMInternal.h:
349 * bindings/objc/DOMNodeFilter.h: Removed.
350 * bindings/objc/DOMSVGNumber.h: Removed.
351 * bindings/objc/DOMSVGPoint.h: Removed.
352 * bindings/objc/DOMSVGPoint.mm:
353 (-[DOMSVGPoint matrixTransform:]):
354 * bindings/objc/DOMSVGRect.h: Removed.
355 * bindings/objc/PublicDOMInterfaces.h:
356 * bindings/scripts/CodeGeneratorObjC.pm:
357 * dom/EventTarget.idl:
358 * html/HTMLAppletElement.idl:
359 * html/HTMLEmbedElement.idl:
360 * html/HTMLOptionElement.idl:
361 * ksvg2/svg/SVGNumber.idl:
362 * ksvg2/svg/SVGPoint.idl:
363 * ksvg2/svg/SVGRect.idl:
365 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
369 Make Qt/Linux compile again completly.
371 * platform/qt/WidgetQt.cpp:
372 (WebCore::Widget::removeFromParent):
374 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
378 Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
380 * platform/qt/PlatformScrollBar.h:
381 * platform/qt/ScrollViewQt.cpp:
382 (WebCore::ScrollView::hScrollbarMode):
383 (WebCore::ScrollView::vScrollbarMode):
384 (WebCore::ScrollView::suppressScrollbars):
385 (WebCore::ScrollView::setHScrollbarMode):
386 (WebCore::ScrollView::setVScrollbarMode):
387 (WebCore::ScrollView::setScrollbarsMode):
388 (WebCore::ScrollView::scrollbarUnderMouse):
389 * platform/qt/TemporaryLinkStubs.cpp:
390 (WebCore::Scrollbar::Scrollbar):
391 (WebCore::Scrollbar::setSteps):
392 (WebCore::Scrollbar::scroll):
393 (WebCore::Scrollbar::setValue):
394 (WebCore::Scrollbar::setProportion):
395 (WebCore::PlatformScrollbar::PlatformScrollbar):
396 (WebCore::PlatformScrollbar::~PlatformScrollbar):
397 (WebCore::PlatformScrollbar::width):
398 (WebCore::PlatformScrollbar::height):
399 (WebCore::PlatformScrollbar::setEnabled):
400 (WebCore::PlatformScrollbar::paint):
401 (WebCore::PlatformScrollbar::updateThumbPosition):
402 (WebCore::PlatformScrollbar::updateThumbProportion):
403 (WebCore::PlatformScrollbar::setRect):
404 (FrameView::passMousePressEventToScrollbar):
406 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
410 Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
411 Another round of Objective-C SVG DOM bindings auto-generation
413 - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
414 DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
415 DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
416 DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
417 DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
418 DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
419 DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
420 DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
421 DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
422 DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
423 DOMSVGFETileElement, DOMSVGFETurbulenceElement,
424 DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
426 - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
431 - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
432 in it's macro declaration and definition.
434 * DerivedSources.make:
435 * WebCore.xcodeproj/project.pbxproj:
436 * bindings/objc/DOMCSS.mm:
437 (+[DOMCSSValue _CSSValueWith:WebCore::]):
438 * bindings/objc/DOMInternal.h:
439 * bindings/objc/DOMSVG.h:
440 * bindings/objc/DOMSVGNumber.h: Added.
441 * bindings/objc/DOMSVGNumber.mm: Added.
442 (-[DOMSVGNumber dealloc]):
443 (-[DOMSVGNumber finalize]):
444 (-[DOMSVGNumber value]):
445 (-[DOMSVGNumber setValue:]):
446 (-[DOMSVGNumber _SVGNumber]):
447 (-[DOMSVGNumber _initWithFloat:]):
448 (+[DOMSVGNumber _SVGNumberWith:]):
449 * bindings/objc/DOMSVGPoint.h: Added.
450 * bindings/objc/DOMSVGPoint.mm: Added.
451 (-[DOMSVGPoint dealloc]):
452 (-[DOMSVGPoint finalize]):
454 (-[DOMSVGPoint setX:]):
456 (-[DOMSVGPoint setY:]):
457 (-[DOMSVGPoint WebCore::]):
458 (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
459 (+[DOMSVGPoint _SVGPointWith:WebCore::]):
460 * bindings/objc/DOMSVGRect.h: Added.
461 * bindings/objc/DOMSVGRect.mm: Added.
462 (-[DOMSVGRect dealloc]):
463 (-[DOMSVGRect finalize]):
465 (-[DOMSVGRect setX:]):
467 (-[DOMSVGRect setY:]):
468 (-[DOMSVGRect width]):
469 (-[DOMSVGRect setWidth:]):
470 (-[DOMSVGRect height]):
471 (-[DOMSVGRect setHeight:]):
472 (-[DOMSVGRect WebCore::]):
473 (-[DOMSVGRect _initWithFloatRect:WebCore::]):
474 (+[DOMSVGRect _SVGRectWith:WebCore::]):
475 * bindings/scripts/CodeGeneratorObjC.pm:
476 * ksvg2/svg/SVGAnimatedNumberList.idl:
477 * ksvg2/svg/SVGAnimatedRect.idl:
478 * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
479 * ksvg2/svg/SVGCursorElement.idl:
480 * ksvg2/svg/SVGFEBlendElement.idl:
481 * ksvg2/svg/SVGFEColorMatrixElement.idl:
482 * ksvg2/svg/SVGFEComponentTransferElement.idl:
483 * ksvg2/svg/SVGFECompositeElement.idl:
484 * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
485 * ksvg2/svg/SVGFEDisplacementMapElement.idl:
486 * ksvg2/svg/SVGFEDistantLightElement.idl:
487 * ksvg2/svg/SVGFEFloodElement.idl:
488 * ksvg2/svg/SVGFEFuncAElement.idl:
489 * ksvg2/svg/SVGFEFuncBElement.idl:
490 * ksvg2/svg/SVGFEFuncGElement.idl:
491 * ksvg2/svg/SVGFEFuncRElement.idl:
492 * ksvg2/svg/SVGFEGaussianBlurElement.idl:
493 * ksvg2/svg/SVGFEImageElement.idl:
494 * ksvg2/svg/SVGFEMergeElement.idl:
495 * ksvg2/svg/SVGFEMergeNodeElement.idl:
496 * ksvg2/svg/SVGFEOffsetElement.idl:
497 * ksvg2/svg/SVGFEPointLightElement.idl:
498 * ksvg2/svg/SVGFESpecularLightingElement.idl:
499 * ksvg2/svg/SVGFESpotLightElement.idl:
500 * ksvg2/svg/SVGFETileElement.idl:
501 * ksvg2/svg/SVGFETurbulenceElement.cpp:
502 * ksvg2/svg/SVGFETurbulenceElement.h:
503 * ksvg2/svg/SVGFETurbulenceElement.idl:
504 * ksvg2/svg/SVGNumberList.idl:
506 2006-10-06 Adam Roben <aroben@apple.com>
508 Backing out my previous change.
510 * WebCore.xcodeproj/project.pbxproj:
511 * page/FrameView.cpp:
512 (WebCore::FrameView::adjustViewSize):
514 2006-10-06 Adam Roben <aroben@apple.com>
518 * WebCore.xcodeproj/project.pbxproj:
519 * page/FrameView.cpp:
520 (WebCore::FrameView::windowResizerRect):
522 2006-10-06 Adam Roben <aroben@apple.com>
528 * platform/ResourceLoader.h:
529 * platform/ResourceLoaderInternal.h:
530 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
531 * platform/win/TemporaryLinkStubs.cpp:
532 (WebCore::ResourceLoader::newHTTPRequest):
534 2006-10-05 Steve Falkenburg <sfalken@apple.com>
538 Stub out some methods that we'll be able to use to dodge a window resizer.
540 * bridge/win/FrameWin.h:
542 (WebCore::Frame::windowResizerRect):
544 * platform/ScrollView.h:
545 (WebCore::ScrollView::windowResizerRect):
547 * platform/win/TemporaryLinkStubs.cpp:
548 (FrameView::windowResizerRect):
551 (FrameWin::windowResizerRect):
553 2006-10-05 Dave Hyatt <hyatt@apple.com>
555 Stub out setFrameGeometry.
557 * platform/ScrollView.h:
559 2006-10-05 Adele Peterson <adele@apple.com>
561 Reverting autoscroll fix. I need to rework this a little.
564 (WebCore::Frame::handleAutoscroll):
565 (WebCore::Frame::autoscrollTimerFired):
566 (WebCore::Frame::stopAutoscrollTimer):
568 * rendering/RenderLayer.cpp:
569 (WebCore::RenderLayer::~RenderLayer):
570 * rendering/RenderListBox.cpp:
571 (WebCore::RenderListBox::~RenderListBox):
573 2006-10-05 Alice <alice.liu@apple.com>
577 Fixed <rdar://problem/4731778>
579 * editing/CommandByName.cpp:
580 (WebCore::Frame::Command::):
581 was calling the wrong enabledFn for arrow selection and navigation
583 2006-10-05 Adele Peterson <adele@apple.com>
587 - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
588 and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
590 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
591 * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
593 * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
594 (WebCore::Frame::handleAutoscroll):
595 (WebCore::Frame::autoscrollTimerFired):
596 (WebCore::Frame::autoscrollRenderer):
597 (WebCore::Frame::setAutoscrollRenderer):
598 (WebCore::Frame::stopAutoscrollTimer):
601 2006-10-05 Don Gibson <dgibson77@gmail.com>
605 Fix win32 build bustage after ggaren's Scrollbar renaming changes.
606 Properly include PlatformScrollBar.h in WbCore.vcproj.
607 Clean up WidgetWin.cpp a bit.
609 * WebCore.vcproj/WebCore/WebCore.vcproj:
611 * platform/win/PlatformScrollBar.h:
612 * platform/win/ScrollViewWin.cpp:
613 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
614 (WebCore::ScrollView::resizeContents):
615 (WebCore::ScrollView::scrollBy):
616 (WebCore::ScrollView::hScrollbarMode):
617 (WebCore::ScrollView::vScrollbarMode):
618 (WebCore::ScrollView::suppressScrollbars):
619 (WebCore::ScrollView::setHScrollbarMode):
620 (WebCore::ScrollView::setVScrollbarMode):
621 (WebCore::ScrollView::setScrollbarsMode):
622 (WebCore::ScrollView::updateScrollbars):
623 * platform/win/TemporaryLinkStubs.cpp:
624 (FrameView::passMousePressEventToScrollbar):
625 (Widget::removeFromParent):
626 (ScrollView::scrollbarUnderMouse):
627 (PlatformScrollbar::PlatformScrollbar):
628 (PlatformScrollbar::~PlatformScrollbar):
629 (PlatformScrollbar::width):
630 (PlatformScrollbar::height):
631 (PlatformScrollbar::setEnabled):
632 (PlatformScrollbar::paint):
633 (PlatformScrollbar::updateThumbPosition):
634 (PlatformScrollbar::updateThumbProportion):
635 (PlatformScrollbar::setRect):
636 (Scrollbar::Scrollbar):
637 (Scrollbar::setSteps):
639 (Scrollbar::setValue):
640 (Scrollbar::setProportion):
641 * platform/win/WidgetWin.cpp:
642 (WebCore::WidgetPrivate::WidgetPrivate):
643 (WebCore::Widget::Widget):
644 (WebCore::Widget::setContainingWindow):
645 (WebCore::Widget::containingWindow):
647 2006-10-05 Geoffrey Garen <ggaren@apple.com>
651 * WebCore.xcodeproj/project.pbxproj:
652 * bridge/mac/BrowserExtensionMac.mm:
653 (WebCore::BrowserExtensionMac::createNewWindow):
654 * bridge/mac/FrameMac.mm:
655 (WebCore::FrameMac::createFrame):
656 * bridge/mac/FrameViewMac.mm:
657 (WebCore::FrameView::passMousePressEventToScrollbar):
658 * bridge/mac/WebCoreFrameBridge.mm:
659 (-[WebCoreFrameBridge installInFrame:]):
660 * bridge/mac/WebCoreFrameView.h:
661 * platform/ScrollBar.cpp:
663 * platform/mac/PlatformScrollBar.h:
664 * platform/mac/PlatformScrollBarMac.mm:
665 (NSControlSizeForScrollBarControlSize):
666 (-[WebCoreScrollBar initWithPlatformScrollbar:]):
667 (-[WebCoreScrollBar detachPlatformScrollbar]):
668 (-[WebCoreScrollBar scroll:]):
669 (-[WebCoreScrollBar widget]):
670 (WebCore::PlatformScrollbar::PlatformScrollbar):
671 (WebCore::PlatformScrollbar::~PlatformScrollbar):
672 (WebCore::PlatformScrollbar::updateThumbPosition):
673 (WebCore::PlatformScrollbar::updateThumbProportion):
674 (WebCore::PlatformScrollbar::scrollbarHit):
675 (WebCore::PlatformScrollbar::width):
676 (WebCore::PlatformScrollbar::height):
677 (WebCore::PlatformScrollbar::setRect):
678 (WebCore::PlatformScrollbar::setEnabled):
679 (WebCore::PlatformScrollbar::paint):
680 * platform/mac/ScrollViewMac.mm:
681 (WebCore::ScrollView::setVScrollbarMode):
682 (WebCore::ScrollView::setHScrollbarMode):
683 (WebCore::ScrollView::setScrollbarsMode):
684 (WebCore::ScrollView::vScrollbarMode):
685 (WebCore::ScrollView::hScrollbarMode):
686 (WebCore::ScrollView::suppressScrollbars):
687 (WebCore::ScrollView::scrollbarUnderMouse):
688 * platform/mac/WidgetMac.mm:
689 (WebCore::Widget::removeFromParent):
690 * rendering/RenderLayer.cpp:
691 (WebCore::RenderLayer::destroyScrollbar):
693 2006-10-05 Geoffrey Garen <ggaren@apple.com>
698 * rendering/RenderLayer.cpp:
699 (WebCore::RenderLayer::destroyScrollbar):
701 2006-10-06 Mitz Pettel <mitz@webkit.org>
703 http://bugs.webkit.org/show_bug.cgi?id=8276
704 Fix broken manual test added back in r13990.
706 Add resource forks for test resources.
708 * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
709 * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
710 * manual-tests/resources/plain-text-paste/._4.txt: Added.
711 * manual-tests/resources/plain-text-paste/._5.webloc: Added.
713 2006-10-05 David Hyatt <hyatt@apple.com>
715 Rename addClip to clip.
719 * kcanvas/RenderForeignObject.cpp:
720 (WebCore::RenderForeignObject::paint):
721 * kcanvas/RenderSVGContainer.cpp:
722 (WebCore::RenderSVGContainer::paint):
723 * kcanvas/RenderSVGImage.cpp:
724 (WebCore::RenderSVGImage::paint):
725 * platform/GraphicsContext.h:
726 * platform/cairo/GraphicsContextCairo.cpp:
727 (WebCore::GraphicsContext::clip):
728 * platform/cg/GraphicsContextCG.cpp:
729 (WebCore::GraphicsContext::savePlatformState):
730 (WebCore::GraphicsContext::restorePlatformState):
731 (WebCore::GraphicsContext::clip):
732 (WebCore::GraphicsContext::addRoundedRectClip):
733 (WebCore::GraphicsContext::addInnerRoundedRectClip):
734 (WebCore::GraphicsContext::scale):
735 (WebCore::GraphicsContext::rotate):
736 (WebCore::GraphicsContext::translate):
737 (WebCore::GraphicsContext::concatCTM):
738 * platform/cg/GraphicsContextPlatformPrivate.h:
739 (WebCore::GraphicsContextPlatformPrivate::save):
740 (WebCore::GraphicsContextPlatformPrivate::restore):
741 (WebCore::GraphicsContextPlatformPrivate::clip):
742 (WebCore::GraphicsContextPlatformPrivate::scale):
743 (WebCore::GraphicsContextPlatformPrivate::rotate):
744 (WebCore::GraphicsContextPlatformPrivate::translate):
745 (WebCore::GraphicsContextPlatformPrivate::concatCTM):
746 * platform/qt/GraphicsContextQt.cpp:
747 (WebCore::GraphicsContext::clip):
748 (WebCore::GraphicsContext::addInnerRoundedRectClip):
749 (WebCore::GraphicsContext::addRoundedRectClip):
750 * rendering/InlineFlowBox.cpp:
751 (WebCore::InlineFlowBox::paintBackground):
752 (WebCore::InlineFlowBox::paintBackgroundAndBorder):
753 * rendering/InlineTextBox.cpp:
754 (WebCore::InlineTextBox::paintSelection):
755 (WebCore::InlineTextBox::paintTextMatchMarker):
756 * rendering/RenderBox.cpp:
757 (WebCore::RenderBox::paintBackgroundExtended):
758 * rendering/RenderButton.cpp:
759 (WebCore::RenderButton::paintObject):
760 * rendering/RenderFileUploadControl.cpp:
761 (WebCore::RenderFileUploadControl::paintObject):
762 * rendering/RenderLayer.cpp:
763 (WebCore::RenderLayer::beginTransparencyLayers):
765 * rendering/RenderListBox.cpp:
766 (WebCore::RenderListBox::paintObject):
767 * rendering/RenderMenuList.cpp:
768 (WebCore::RenderMenuList::paintObject):
769 * rendering/RenderTableCell.cpp:
770 (WebCore::RenderTableCell::paintBackgroundsBehindCell):
772 2006-10-05 Mitz Pettel <mitz@webkit.org>
776 - http://bugs.webkit.org/show_bug.cgi?id=10386
777 Delete RenderImageButton.* and remove references from .vcproj and .bkl files
780 * WebCore.vcproj/WebCore/WebCore.vcproj:
781 * WebCoreSources.bkl:
782 * rendering/RenderImageButton.cpp: Removed.
783 * rendering/RenderImageButton.h: Removed.
785 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
789 - http://bugs.webkit.org/show_bug.cgi?id=11067
790 manual-tests/scrollbar-hittest2.html is invalid
792 * manual-tests/scrollbar-hittest2.html:
794 2006-10-05 David Carson <dacarson@gmail.com>
798 http://bugs.webkit.org/show_bug.cgi?id=11152
799 Adjust the tokenizer chunk size to be smaller for
800 mobile devices, and also decrease the yield timer
801 for the tokenizer so that it can resume earlier.
803 * html/HTMLTokenizer.cpp:
806 2006-10-05 Adam Roben <aroben@apple.com>
808 Removing accidentally-checked-in do-nothing code.
810 * html/HTMLInputElement.cpp:
811 (WebCore::HTMLInputElement::defaultEventHandler):
813 2006-10-05 David Carson <dacarson@gmail.com>
817 http://bugs.webkit.org/show_bug.cgi?id=11158
818 Initialize class variables
820 * rendering/RenderLayer.cpp:
821 (WebCore::RenderLayer::RenderLayer):
823 2006-10-05 Don Gibson <dgibson77@gmail.com>
825 Reviewed by Darin, landed by Adam.
827 http://bugs.webkit.org/show_bug.cgi?id=11176
828 Fix win32 build, adapt to Maciej's ResourceLoader changes.
830 * platform/win/ResourceLoaderWin.cpp:
831 (WebCore::ResourceLoader::start):
833 2006-10-05 Marvin Decker <marv.decker@gmail.com>
837 http://bugs.webkit.org/show_bug.cgi?id=10989
838 Provide a way for embedders to implement BrowserExtensionWin
840 * WebCore.vcproj/WebCore/WebCore.vcproj:
841 * bridge/win/BrowserExtensionWin.cpp: Added.
842 (BrowserExtensionWin::BrowserExtensionWin):
843 (BrowserExtensionWin::setTypedIconURL):
844 (BrowserExtensionWin::setIconURL):
845 (BrowserExtensionWin::getHistoryLength):
846 (BrowserExtensionWin::canRunModal):
847 (BrowserExtensionWin::createNewWindow):
848 (BrowserExtensionWin::canRunModalNow):
849 (BrowserExtensionWin::runModal):
850 (BrowserExtensionWin::goBackOrForward):
851 (BrowserExtensionWin::historyURL):
852 * bridge/win/BrowserExtensionWin.h:
853 * bridge/win/FrameWin.cpp:
854 (WebCore::FrameWin::createNewWindow):
855 * bridge/win/FrameWin.h:
856 * platform/win/TemporaryLinkStubs.cpp:
858 2006-10-05 Geoffrey Garen <ggaren@apple.com>
862 Fixed <rdar://problem/4766987>
864 - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
865 except for file names.
867 - fixed RenderLayer to properly tear down scrollbars, removing them from
870 * bindings/js/kjs_window.cpp:
871 (KJS::showModalDialog):
872 (KJS::setWindowFeature):
873 (KJS::parseWindowFeatures):
874 * bridge/BrowserExtension.h:
876 (WebCore::Document::setInPageCache):
877 * html/HTMLFrameElement.cpp:
878 (WebCore::HTMLFrameElement::init):
879 (WebCore::HTMLFrameElement::parseMappedAttribute):
880 * html/HTMLFrameElement.h:
881 (WebCore::HTMLFrameElement::scrollingMode):
883 (WebCore::Frame::finishedParsing):
884 (WebCore::Frame::scrollbarsVisible):
885 * page/FrameView.cpp:
886 (WebCore::FrameViewPrivate::FrameViewPrivate):
887 (WebCore::FrameViewPrivate::reset):
888 (WebCore::FrameView::~FrameView):
889 (WebCore::FrameView::resetScrollbars):
890 (WebCore::FrameView::clear):
891 (WebCore::FrameView::initScrollbars):
892 (WebCore::FrameView::applyOverflowToViewport):
893 (WebCore::FrameView::layout):
894 (WebCore::FrameView::handleMousePressEvent):
895 (WebCore::selectCursor):
896 (WebCore::FrameView::handleMouseMoveEvent):
897 (WebCore::FrameView::setScrollbarsMode):
898 (WebCore::FrameView::setVScrollbarMode):
899 (WebCore::FrameView::setHScrollbarMode):
900 (WebCore::FrameView::restoreScrollbar):
901 (WebCore::FrameView::dispatchMouseEvent):
902 (WebCore::FrameView::scrollbarMoved):
904 * page/MouseEventWithHitTestResults.cpp:
905 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
906 * page/MouseEventWithHitTestResults.h:
907 (WebCore::MouseEventWithHitTestResults::scrollbar):
908 * platform/ScrollBar.cpp:
909 (WebCore::Scrollbar::Scrollbar):
910 (WebCore::Scrollbar::setValue):
911 (WebCore::Scrollbar::setProportion):
912 (WebCore::Scrollbar::setSteps):
913 (WebCore::Scrollbar::scroll):
914 * platform/ScrollBar.h:
916 (WebCore::ScrollbarClient::~ScrollbarClient):
917 (WebCore::Scrollbar::~Scrollbar):
918 (WebCore::Scrollbar::orientation):
919 (WebCore::Scrollbar::controlSize):
920 (WebCore::Scrollbar::hasPlatformScrollbars):
921 (WebCore::Scrollbar::client):
922 * platform/ScrollBarMode.h:
924 * platform/ScrollView.h:
925 * rendering/RenderBlock.cpp:
926 (WebCore::RenderBlock::isPointInScrollbar):
927 * rendering/RenderLayer.cpp:
928 (WebCore::RenderLayer::RenderLayer):
929 (WebCore::RenderLayer::~RenderLayer):
930 (WebCore::RenderLayer::scrollToOffset):
931 (WebCore::RenderLayer::horizontaScrollbarWidget):
932 (WebCore::RenderLayer::verticalScrollbarWidget):
933 (WebCore::RenderLayer::valueChanged):
934 (WebCore::RenderLayer::createScrollbar):
935 (WebCore::RenderLayer::destroyScrollbar):
936 (WebCore::RenderLayer::setHasHorizontalScrollbar):
937 (WebCore::RenderLayer::setHasVerticalScrollbar):
938 (WebCore::RenderLayer::verticalScrollbarWidth):
939 (WebCore::RenderLayer::horizontalScrollbarHeight):
940 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
941 * rendering/RenderLayer.h:
942 (WebCore::RenderLayer::horizontalScrollbar):
943 (WebCore::RenderLayer::verticalScrollbar):
944 * rendering/RenderListBox.cpp:
945 (WebCore::RenderListBox::~RenderListBox):
946 (WebCore::RenderListBox::calcMinMaxWidth):
947 (WebCore::RenderListBox::isPointInScrollbar):
948 (WebCore::RenderListBox::optionAtPoint):
949 (WebCore::RenderListBox::valueChanged):
950 * rendering/RenderListBox.h:
951 * rendering/RenderObject.h:
952 (WebCore::RenderObject::NodeInfo::scrollbar):
953 (WebCore::RenderObject::NodeInfo::setScrollbar):
955 2006-10-05 Don Gibson <dgibson77@gmail.com>
959 http://bugs.webkit.org/show_bug.cgi?id=11138
960 Incorrect mouse event generation on Windows
962 * platform/win/MouseEventWin.cpp:
963 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
964 (1) Set mouse button even for non-click-related messages.
965 (2) Track clicks correctly for all buttons, not just the left button.
967 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
969 Reviewed and landed by ap.
971 Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
973 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
974 (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
975 (WebCore::KRenderingPaintServerLinearGradientQt::setup):
976 (WebCore::KRenderingPaintServerRadialGradientQt::setup):
977 (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
978 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
979 (WebCore::KRenderingPaintServerPatternQt::renderPath):
980 * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
981 (WebCore::KRenderingPaintServerQt::setPenProperties):
982 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
983 (WebCore::KRenderingPaintServerSolidQt::setup):
984 (WebCore::KRenderingPaintServerSolidQt::renderPath):
985 * kcanvas/device/qt/RenderPathQt.cpp:
986 (WebCore::getPathStroke):
988 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
992 http://bugs.webkit.org/show_bug.cgi?id=11054
993 REGRESSION: Traditional Chinese encoding in login authentication
995 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
996 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
997 for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
999 * platform/StreamingTextDecoderICU.cpp:
1000 (WebCore::TextCodecICU::registerEncodingNames):
1002 2006-10-05 Eric Seidel <eric@eseidel.com>
1007 Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1009 * WebCore.xcodeproj/project.pbxproj:
1010 * ksvg2/ecma/GlobalObject.cpp: Removed.
1011 * ksvg2/ecma/GlobalObject.h: Removed.
1013 2006-10-05 Adam Roben <aroben@apple.com>
1017 Small ResourceLoaderInternal tweak.
1019 * platform/ResourceLoaderInternal.h:
1020 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1022 2006-10-05 Eric Seidel <eric@eseidel.com>
1026 More incremental KCanvas cleanup and optimization.
1027 Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1028 Optimized dash array usage to not malloc.
1029 Also removed un-needed KSVGRenderingStyle includes.
1031 * kcanvas/KCanvasTreeDebug.cpp:
1032 (WebCore::operator<<):
1033 * kcanvas/RenderPath.cpp:
1034 (WebCore::RenderPath::nodeAtPoint):
1035 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1036 (WebCore::RenderPath::strokeBBox):
1037 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1038 (WebCore::KRenderingPaintServerGradientQuartz::setup):
1039 (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1040 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1041 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1042 (WebCore::KRenderingPaintServerSolidQuartz::setup):
1043 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1044 (WebCore::KRenderingPaintServerPatternQuartz::setup):
1045 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1046 * kcanvas/device/quartz/QuartzSupport.mm:
1047 (WebCore::applyStrokeStyleToContext):
1048 * ksvg2/css/SVGRenderStyle.h:
1049 (WebCore::SVGRenderStyle::hasStroke):
1050 (WebCore::SVGRenderStyle::hasFill):
1051 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1052 (WebCore::KSVGPainterFactory::fillPaintServer):
1053 (WebCore::KSVGPainterFactory::strokePaintServer):
1054 * ksvg2/misc/KCanvasRenderingStyle.h:
1056 2006-10-05 Maciej Stachowiak <mjs@apple.com>
1060 - changed ResourceLoader to be refcounted
1062 It keeps a ref on itself while loading as well. This makes
1063 for a much saner memory management model than the previous.
1065 * bridge/mac/WebCoreResourceLoaderImp.mm:
1066 (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1067 * dom/XMLTokenizer.cpp:
1068 (WebCore::openFunc):
1069 * loader/icon/IconLoader.cpp:
1070 (IconLoader::IconLoader):
1071 (IconLoader::~IconLoader):
1072 (IconLoader::startLoading):
1073 (IconLoader::stopLoading):
1074 (IconLoader::receivedData):
1075 * loader/icon/IconLoader.h:
1076 * loader/loader.cpp:
1077 (WebCore::Loader::servePendingRequests):
1078 * platform/ResourceLoader.cpp:
1079 (WebCore::ResourceLoader::create):
1080 (WebCore::ResourceLoader::kill):
1081 * platform/ResourceLoader.h:
1082 * platform/ResourceLoaderInternal.h:
1083 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1084 * platform/mac/ResourceLoaderMac.mm:
1085 (WebCore::ResourceLoader::start):
1086 * xml/XSLTProcessor.cpp:
1087 (WebCore::docLoaderFunc):
1088 * xml/xmlhttprequest.cpp:
1089 (WebCore::XMLHttpRequest::send):
1090 * xml/xmlhttprequest.h:
1092 2006-10-05 Eric Seidel <eric@eseidel.com>
1096 Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
1097 http://bugs.webkit.org/show_bug.cgi?id=11163
1099 No SVG performance tests yet.
1101 * kcanvas/RenderForeignObject.cpp:
1102 (WebCore::RenderForeignObject::paint):
1103 * kcanvas/RenderSVGContainer.cpp:
1104 (WebCore::RenderSVGContainer::paint):
1105 * kcanvas/RenderSVGImage.cpp:
1106 (WebCore::RenderSVGImage::paint):
1107 * kcanvas/RenderSVGText.cpp:
1108 (WebCore::RenderSVGText::paint):
1110 2006-10-05 Dave Hyatt <hyatt@apple.com>
1112 Stub out some stuff for widget focusability.
1116 * page/FrameView.cpp:
1117 (WebCore::FrameView::dispatchMouseEvent):
1118 * platform/ScrollView.h:
1119 * platform/Widget.h:
1121 2006-10-05 Adam Roben <aroben@apple.com>
1123 Reviewed by Maciej and Tim H.
1125 Copy some WebKit frame lifetime logic into WebCore -- just a step
1126 along the path to frame lifetime being handled completely in WebCore.
1128 * bridge/mac/FrameMac.mm:
1129 (WebCore::FrameMac::setView): Move platform-independent parts of this
1132 (WebCore::Frame::setView): Adding platform-independent parts of
1134 (WebCore::Frame::detachChildren): New method to accomplish what
1135 -[WebFrameBridge _detachChildren] currently does.
1136 (WebCore::Frame::clear): Call detachChildren
1137 * page/Frame.h: Add declaration for detachChildren
1139 2006-10-04 Alice Liu <alice.liu@apple.com>
1143 Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
1145 * xml/xmlhttprequest.cpp:
1146 (WebCore::XMLHttpRequest::setRequestHeader):
1147 removed exception set when the request is not open yet
1149 2006-10-04 Anders Carlsson <acarlsson@apple.com>
1151 Reviewed by John Sullivan.
1153 <rdar://problem/4654328>
1154 Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
1156 * loader/PluginDocument.cpp:
1157 (WebCore::PluginTokenizer::writeRawData):
1158 Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
1160 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
1164 http://bugs.webkit.org/show_bug.cgi?id=11130
1165 Convert "undefined" to AE missing value
1167 * bridge/mac/WebCoreFrameBridge.mm:
1168 (aeDescFromJSValue): return missing value for UndefinedType.
1170 2006-10-03 Dave Hyatt <hyatt@apple.com>
1172 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
1173 the windowToContents/contentsToWindow functions.
1177 * bridge/mac/FrameMac.mm:
1178 (WebCore::FrameMac::eventMayStartDrag):
1179 (WebCore::FrameMac::dragHysteresisExceeded):
1180 (WebCore::FrameMac::mouseDown):
1181 (WebCore::FrameMac::shouldDragAutoNode):
1182 (WebCore::FrameMac::sendContextMenuEvent):
1183 * bridge/mac/FrameViewMac.mm:
1184 (WebCore::FrameView::passMousePressEventToScrollbar):
1185 * bridge/mac/WebCoreFrameBridge.mm:
1186 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1187 * dom/EventTargetNode.cpp:
1188 (WebCore::EventTargetNode::dispatchMouseEvent):
1189 (WebCore::EventTargetNode::dispatchWheelEvent):
1191 (WebCore::Frame::selectClosestWordFromMouseEvent):
1192 (WebCore::Frame::handleMousePressEventTripleClick):
1193 (WebCore::Frame::handleMousePressEventSingleClick):
1194 (WebCore::Frame::handleMouseMoveEvent):
1195 (WebCore::Frame::handleMouseReleaseEvent):
1196 * page/FrameView.cpp:
1197 (WebCore::FrameView::handleMousePressEvent):
1198 (WebCore::FrameView::handleMouseDoubleClickEvent):
1199 (WebCore::selectCursor):
1200 (WebCore::FrameView::handleMouseMoveEvent):
1201 (WebCore::FrameView::handleMouseReleaseEvent):
1202 (WebCore::FrameView::dispatchDragEvent):
1203 (WebCore::FrameView::prepareMouseEvent):
1204 (WebCore::FrameView::handleWheelEvent):
1206 * platform/ScrollBar.cpp:
1207 (WebCore::ScrollBar::setValue):
1208 * platform/ScrollView.h:
1209 * platform/Widget.h:
1210 (WebCore::Widget::scrolled):
1211 * platform/mac/ScrollViewMac.mm:
1212 (WebCore::ScrollView::contentsToWindow):
1213 (WebCore::ScrollView::windowToContents):
1214 (WebCore::ScrollView::scrollbarUnderMouse):
1215 * platform/mac/WidgetMac.mm:
1216 * rendering/RenderLayer.cpp:
1217 (WebCore::RenderLayer::resize):
1218 (WebCore::RenderLayer::positionScrollbars):
1219 * rendering/RenderReplaced.cpp:
1220 (WebCore::RenderReplaced::shouldPaint):
1221 * rendering/RenderView.cpp:
1222 * rendering/RenderView.h:
1223 * rendering/RenderWidget.cpp:
1224 (WebCore::RenderWidget::setWidget):
1226 2006-09-26 David Smith <catfish.man@gmail.com>
1228 Reviewed by Timothy.
1230 http://bugs.webkit.org/show_bug.cgi?id=3723
1231 Add -scrollDOMRangeToVisible:
1233 No automated tests are possible as this code path isn't reachable from JavaScript.
1235 * bridge/mac/WebCoreFrameBridge.h:
1236 * bridge/mac/WebCoreFrameBridge.mm:
1237 (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
1239 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1241 Reviewed by Timothy.
1243 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1244 When contentEditable, cursor doesn't change to hand
1246 Allow the behaviour of editable links to be specified by a WebPreference
1247 The preference WebKitEditableLinkBehavior has four options:
1248 - AlwaysLive: Safari 2.0 behaviour
1249 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1250 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1251 focused, or when the shift key is pressed
1252 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1254 No layout tests, just a modification of a manual-test as it isn't possible to test
1257 * bridge/mac/WebCoreSettings.h:
1258 * bridge/mac/WebCoreSettings.mm:
1259 (-[WebCoreSettings setEditableLinkBehavior:]):
1260 (-[WebCoreSettings editableLinkBehavior]):
1261 * html/HTMLAnchorElement.cpp:
1262 (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1263 (WebCore::HTMLAnchorElement::defaultEventHandler):
1264 (WebCore::HTMLAnchorElement::setActive):
1265 * html/HTMLAnchorElement.h:
1266 * manual-tests/contenteditable-link.html:
1267 * page/FrameView.cpp:
1268 (WebCore::nodeIsNotBeingEdited):
1269 (WebCore::selectCursor):
1271 (WebCore::Settings::):
1272 (WebCore::Settings::Settings):
1273 (WebCore::Settings::editableLinkBehavior):
1274 (WebCore::Settings::setEditableLinkBehavior):
1276 2006-10-03 Beth Dakin <bdakin@apple.com>
1280 No test cases needed.
1282 Implemented a version of StringImpl::append that takes a UChar* and
1285 * platform/StringImpl.cpp:
1286 (WebCore::StringImpl::append):
1287 (WebCore::StringImpl::insert): Call new append instead of making a
1289 * platform/StringImpl.h:
1291 2006-10-03 MorganL <morganl.webkit@yahoo.com>
1295 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
1296 HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
1298 * platform/win/ResourceLoaderWin.cpp:
1299 (WebCore::ResourceLoader::onHandleCreated):
1301 2006-10-02 Geoffrey Garen <ggaren@apple.com>
1303 Feared, loathed, reviewed by Darin.
1305 More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
1306 into FRAME, plus other cleanup.
1308 No new behavior, so no new test. Layout tests pass. Basic browsing and
1309 Mail editing seem to work.
1312 (WebCore::Node::detach): Removed random commented-out code.
1313 * html/HTMLFrameElement.cpp:
1314 (WebCore::HTMLFrameElement::isURLAllowed):
1315 (1) Removed reference to FrameView, to dissociate frame loading from rendering.
1316 (2) Renamed newURL to completeURL because the difference between newURL
1317 and URLString is that newURL is a KURL that is the complete version of URLString,
1319 (WebCore::HTMLFrameElement::willRemove):
1320 (1) Removed close() call and moved close() code into willRemove(), also removing
1321 close() call from detach(), since willRemove is the well-defined place
1322 from DOM tear-down, not detach().
1323 (2) Removed manual renderer detach code because the DOM is not responsible
1324 for managing the render tree. I confirmed that this change not
1325 regress <rdar://problem/4132581>.
1326 (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
1327 lost their content frames after being removed from the DOM. That's our
1328 current behavior, but it's going to change in future rounds of refactoring.
1329 This also fixes <rdar://problem/4750835>.
1330 (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
1331 attach/detach, because the render tree should not be in charge of deciding
1333 * html/HTMLFrameElement.h:
1334 * html/HTMLIFrameElement.cpp:
1335 (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
1336 because the renderer is a renderPartObject, not a renderPart.
1337 * html/HTMLIFrameElement.h:
1339 2006-10-03 Mark Rowe <bdash@webkit.org>
1343 http://bugs.webkit.org/show_bug.cgi?id=11137
1344 Bug 11137: GdkLauncher dies with "pure virtual method called" if
1345 window is closed while page still loading
1347 * platform/gdk/FrameGdk.cpp:
1348 (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
1349 methods to be called before the FrameGdk portion of "this" is torn down.
1351 2006-10-03 Adam Roben <aroben@apple.com>
1355 Handle tab key presses in the DOM.
1357 * dom/EventTargetNode.cpp:
1358 (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
1359 * page/FrameView.cpp:
1360 (WebCore::FrameView::advanceFocus): Rename and reimplement
1361 focusNextPrevNode. Now we just call Element::focus().
1362 * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
1365 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1369 <rdar://problem/4760612>
1370 TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
1372 No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
1375 (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
1376 positions are non-null since most of it's callers would be in a bad state if the positions
1377 were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
1378 Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
1379 from entering compareBoundaryPoints and hitting the assert.
1381 2006-10-03 Adele Peterson <adele@apple.com>
1385 Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
1387 * html/HTMLSelectElement.cpp:
1388 (WebCore::HTMLSelectElement::recalcStyle):
1389 (WebCore::HTMLSelectElement::isKeyboardFocusable):
1390 (WebCore::HTMLSelectElement::isMouseFocusable):
1391 (WebCore::HTMLSelectElement::createRenderer):
1392 (WebCore::HTMLSelectElement::setRecalcListItems):
1393 (WebCore::HTMLSelectElement::notifyOptionSelected):
1394 (WebCore::HTMLSelectElement::defaultEventHandler):
1396 2006-10-04 Darin Adler <darin@apple.com>
1400 - fix http://bugs.webkit.org/show_bug.cgi?id=11132
1401 Caret disappears when you're typing
1403 * editing/SelectionController.cpp:
1404 (WebCore::SelectionController::setSelection): Remove unnecessary call to
1405 clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
1406 (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
1407 to false so we can get the old caret repaint rect. Later we need to change the
1408 design so getting the rect doesn't have a side effect of causing a layout without
1411 2006-10-03 David Harrison <harrison@apple.com>
1415 <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
1418 * fast/text/justified-text-rect.html
1420 * bridge/mac/WebCoreFrameBridge.mm:
1421 (-[WebCoreFrameBridge convertToNSRange:]):
1422 (-[WebCoreFrameBridge convertToDOMRange:]):
1423 Make the selection's root editable element (or the document itself) be
1424 the basis for NSRange conversions. This supports "shadow DOM" like
1425 that for text fields and text areas.
1427 * editing/CompositeEditCommand.cpp:
1428 (WebCore::CompositeEditCommand::moveParagraphs):
1429 Pass the document element as the scope.
1431 * editing/TextIterator.cpp:
1432 (WebCore::TextIterator::rangeFromLocationAndLength):
1433 Make the first parameter the scope.
1435 * editing/TextIterator.h:
1436 Make the first parameter of rangeFromLocationAndLength() the scope.
1438 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
1444 * CMakeLists.txt: Add counter related files.
1446 2006-10-03 Mark Rowe <bdash@webkit.org>
1450 http://bugs.webkit.org/show_bug.cgi?id=10981
1451 Linux/GDK build fixes
1453 Based on a patch by Krzysztof Kowalczyk.
1455 * WebCoreSources.bkl:
1456 * platform/gdk/FrameGdk.cpp:
1457 (WebCore::doScroll):
1458 (WebCore::FrameGdk::handleGdkEvent):
1459 * platform/gdk/PlatformScrollBar.h: Added.
1460 (WebCore::PlatformScrollBar::isWidget):
1461 * platform/gdk/ScrollViewGdk.cpp:
1462 * platform/gdk/TemporaryLinkStubs.cpp:
1463 (FrameView::passMousePressEventToScrollbar):
1464 (FrameView::passMousePressEventToSubframe):
1465 (FrameView::passMouseReleaseEventToSubframe):
1466 (FrameView::passMouseMoveEventToSubframe):
1467 (FrameView::passWheelEventToSubframe):
1469 (Widget::invalidate):
1470 (Widget::invalidateRect):
1471 (ScrollView::wheelEvent):
1472 (ScrollView::convertToContainingWindow):
1473 (ScrollView::convertFromContainingWindow):
1474 (GraphicsContext::clip):
1475 (PlatformScrollBar::PlatformScrollBar):
1476 (PlatformScrollBar::updateThumbPosition):
1477 (PlatformScrollBar::updateThumbProportion):
1478 (ScrollBar::ScrollBar):
1479 (ScrollBar::setProportion):
1480 (WebCore::supportedKeySizes):
1481 (WebCore::signedPublicKeyAndChallengeString):
1482 * platform/gdk/WheelEventGdk.cpp:
1483 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1484 * platform/gdk/WidgetGdk.cpp:
1485 (WebCore::Widget::convertToContainingWindow):
1486 (WebCore::Widget::convertFromContainingWindow):
1488 2006-10-02 Adam Roben <aroben@apple.com>
1492 Let Windows determine which mouse button is pressed.
1494 * platform/PlatformMouseEvent.h: Add message parameter to constructor.
1495 * platform/win/MouseEventWin.cpp:
1496 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
1497 parameter to determine which mouse button is pressed.
1499 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1505 * editing/SelectionController.cpp:
1506 (WebCore::SelectionController::empty):
1507 * editing/SelectionController.h:
1509 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1513 <rdar://problem/4755287>
1514 Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1516 * editing/markup.cpp:
1517 (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
1518 elements). Don't skip blocks that aren't containers (like horizontal rules).
1520 2006-10-03 Darin Adler <darin@apple.com>
1522 Reviewed by Justin Garcia.
1524 - correct mistaken code that would restart blinking every
1525 time "invalidateSelection" is called even if the caret
1528 * editing/SelectionController.h:
1529 * editing/SelectionController.cpp:
1530 (WebCore::SelectionController::setSelection): Update for name change.
1531 (WebCore::SelectionController::recomputeCaretRect): New function.
1532 Computes caret rect and does any necessary invalidation if the rect
1534 (WebCore::SelectionController::invalidateCaretRect): Renamed from
1535 needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1536 calls recomputeCaretRect as a side effect.
1539 (WebCore::Frame::invalidateSelection): Remove unneeded call to
1540 clearCaretRectIfNeeded.
1541 (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1542 (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1543 recomputeCaretRect function and not restart blinking if caret has
1544 not changed position.
1545 (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1546 are not needed since selectionLayoutChanged already checks these.
1548 * page/FramePrivate.h: Removed unused m_blinkCaret.
1550 2006-10-02 Beth Dakin <bdakin@apple.com>
1554 Build fix. Add counters to vcproj.
1556 * WebCore.vcproj/WebCore/WebCore.vcproj:
1558 2006-10-02 Brady Eidson <beidson@apple.com>
1562 If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1563 icon data out because we don't correctly check SQL error conditions.
1565 * loader/icon/IconDataCache.cpp:
1566 (WebCore::IconDataCache::writeToDatabase):
1568 2006-10-02 Steve Falkenburg <sfalken@apple.com>
1572 Added method to find out whether a layout has occurred.
1574 * page/FrameView.cpp:
1575 (WebCore::FrameView::didFirstLayout):
1578 2006-10-02 Beth Dakin <bdakin@apple.com>
1582 Initial implementation of CSS2 counters. See http://
1583 bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1585 * WebCore.xcodeproj/project.pbxproj:
1586 * css/CSSComputedStyleDeclaration.cpp:
1587 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
1588 the increment/reset list now that this is implemented.
1589 * css/CSSPrimitiveValue.cpp:
1590 (WebCore::CSSPrimitiveValue::cssText):
1592 (WebCore::Counter::Counter):
1593 (WebCore::Counter::~Counter):
1594 (WebCore::Counter::identifier):
1595 (WebCore::Counter::listStyle):
1596 (WebCore::Counter::separator):
1597 (WebCore::Counter::listStyleNumber):
1598 (WebCore::Counter::setIdentifier):
1599 (WebCore::Counter::setListStyle):
1600 (WebCore::Counter::setSeparator):
1601 * css/cssparser.cpp:
1602 (WebCore::CSSParser::addProperty): Take care of reset/increment
1603 (WebCore::CSSParser::parseValue):
1604 (WebCore::CSSParser::parseContent): content can now take counters
1605 (WebCore::CSSParser::parseCounterContent): Parse counter() and
1607 (WebCore::CSSParser::parseCounter): Parse counter-reset and
1610 * css/cssstyleselector.cpp:
1611 (WebCore::CSSStyleSelector::matchUARules):
1612 (WebCore::CSSStyleSelector::applyProperty):
1613 * platform/PlatformString.h:
1614 * platform/String.cpp:
1615 (WebCore::String::insert): Implemented a version of insert that
1616 accepts a UChar* and a length.
1617 * platform/StringImpl.cpp:
1618 (WebCore::StringImpl::insert): Same as above.
1619 * platform/StringImpl.h:
1620 * rendering/CounterListItem.h: Added.
1621 * rendering/CounterNode.cpp: Added.
1622 (WebCore::CounterNode::CounterNode):
1623 (WebCore::CounterNode::insertAfter):
1624 (WebCore::CounterNode::removeChild):
1625 (WebCore::CounterNode::remove):
1626 (WebCore::CounterNode::setUsesSeparator):
1627 (WebCore::CounterNode::recountAndGetNext):
1628 (WebCore::CounterNode::recountTree):
1629 (WebCore::CounterNode::setSelfDirty):
1630 (WebCore::CounterNode::setParentDirty):
1631 * rendering/CounterNode.h: Added.
1632 (WebCore::CounterNode::~CounterNode):
1633 (WebCore::CounterNode::parent):
1634 (WebCore::CounterNode::previousSibling):
1635 (WebCore::CounterNode::nextSibling):
1636 (WebCore::CounterNode::firstChild):
1637 (WebCore::CounterNode::lastChild):
1638 (WebCore::CounterNode::value):
1639 (WebCore::CounterNode::setValue):
1640 (WebCore::CounterNode::count):
1641 (WebCore::CounterNode::setCount):
1642 (WebCore::CounterNode::setHasSeparator):
1643 (WebCore::CounterNode::isReset):
1644 (WebCore::CounterNode::hasSeparator):
1645 (WebCore::CounterNode::willNeedLayout):
1646 (WebCore::CounterNode::setWillNeedLayout):
1647 (WebCore::CounterNode::isRoot):
1648 (WebCore::CounterNode::setRenderer):
1649 (WebCore::CounterNode::renderer):
1650 * rendering/CounterResetNode.cpp: Added.
1651 (WebCore::CounterResetNode::CounterResetNode):
1652 (WebCore::CounterResetNode::insertAfter):
1653 (WebCore::CounterResetNode::removeChild):
1654 (WebCore::CounterResetNode::recountAndGetNext):
1655 (WebCore::CounterResetNode::setParentDirty):
1656 (WebCore::CounterResetNode::updateTotal):
1657 * rendering/CounterResetNode.h: Added.
1658 (WebCore::CounterResetNode::firstChild):
1659 (WebCore::CounterResetNode::lastChild):
1660 (WebCore::CounterResetNode::isReset):
1661 (WebCore::CounterResetNode::total):
1662 * rendering/RenderContainer.cpp:
1663 (WebCore::RenderContainer::updatePseudoChildForObject): Account for
1665 * rendering/RenderCounter.cpp: Added.
1666 (WebCore::RenderCounter::RenderCounter):
1667 (WebCore::RenderCounter::layout):
1669 (WebCore::toLetterString):
1670 (WebCore::toHebrew):
1671 (WebCore::RenderCounter::convertValueToType):
1672 (WebCore::RenderCounter::calcMinMaxWidth):
1673 * rendering/RenderCounter.h: Added.
1674 (WebCore::RenderCounter::renderName):
1675 (WebCore::RenderCounter::isCounter):
1676 * rendering/RenderObject.cpp:
1677 (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
1678 maps of CounterNodes
1679 (WebCore::RenderObject::RenderObject):
1680 (WebCore::RenderObject::destroy): Destroy the maps.
1681 (WebCore::RenderObject::findCounter): Finds/creates counters.
1682 * rendering/RenderObject.h:
1683 (WebCore::RenderObject::isCounter):
1684 * rendering/RenderStyle.cpp:
1685 (WebCore::StyleVisualData::StyleVisualData):
1686 (WebCore::RenderStyle::arenaDelete):
1687 (WebCore::RenderStyle::RenderStyle):
1688 (WebCore::RenderStyle::diff):
1689 (WebCore::RenderStyle::setContent):
1690 (WebCore::ContentData::clearContent):
1691 (WebCore::RenderStyle::counterDataEquivalent):
1692 (WebCore::hasCounter):
1693 (WebCore::RenderStyle::hasCounterReset):
1694 (WebCore::RenderStyle::hasCounterIncrement):
1695 (WebCore::readCounter):
1696 (WebCore::RenderStyle::counterReset):
1697 (WebCore::RenderStyle::counterIncrement):
1698 * rendering/RenderStyle.h:
1699 (WebCore::StyleVisualData::operator==):
1700 (WebCore::CounterData::CounterData):
1701 (WebCore::CounterData::identifier):
1702 (WebCore::CounterData::listStyle):
1703 (WebCore::CounterData::separator):
1704 (WebCore::ContentData::contentCounter):
1705 (WebCore::ContentData::):
1706 (WebCore::RenderStyle::counterIncrement):
1707 (WebCore::RenderStyle::counterReset):
1708 (WebCore::RenderStyle::setCounterIncrement):
1709 (WebCore::RenderStyle::setCounterReset):
1710 (WebCore::RenderStyle::setCounterResetList):
1711 (WebCore::RenderStyle::setCounterIncrementList):
1712 (WebCore::RenderStyle::counterResetValueList):
1713 (WebCore::RenderStyle::counterIncrementValueList):
1715 2006-10-02 Adele Peterson <adele@apple.com>
1719 - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1721 There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
1722 by using "-webkit-appearance:none".
1726 2006-10-02 David Harrison <harrison@apple.com>
1728 Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1729 addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1730 Left the layout test.
1732 * rendering/bidi.cpp:
1733 (WebCore::checkMidpoints):
1735 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1737 Reviewed by eseidel. Landed by eseidel.
1741 * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1742 (WebCore::supportedKeySizes):
1744 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1746 Reviewed by eseidel & mjs. Landed by eseidel.
1748 Fix Qt/Linux build with older gcc 3.3.4.
1749 http://bugs.webkit.org/show_bug.cgi?id=11116
1751 As discussed with Maciej, the GCC_ROOT_NS_HACK
1752 can be completely removed, as well as the friendship
1753 between cacheGlobalObject & the JS* objects.
1755 * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
1756 * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
1757 (png_read_filter_row_mmx_avg):
1758 * platform/image-decoders/png/pngvcrd.c: Ditto.
1760 (png_read_filter_row_mmx_avg):
1762 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1764 Rubber stamped by Alexey.
1766 - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
1770 2006-10-01 Eric Seidel <eric@webkit.org>
1774 Eliminate a few more hotspots in SVG drawing code.
1776 No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
1778 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1779 (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
1780 * platform/mac/ColorMac.mm:
1781 (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
1783 2006-10-01 Geoffrey Garen <ggaren@apple.com>
1787 More frame/iframe merging.
1789 - Removed needWidgetUpdate and related code. needWidgetUpdate is always
1790 false, so this was dead code.
1791 - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
1792 than attach(), is the correct place for setInViewSourceMode, because
1793 openURL() is the function that creates our frame.
1794 - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
1795 code that did the same thing in other places.
1796 - Made FRAME's attach() method suffuciently generic so that IFRAME could
1797 call up to it, rather than skipping its superclass and calling up directly
1799 - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
1800 - Replaced ad hoc frame loading code in FRAME::attach() with call to
1801 openURL(), the designated frame loading function.
1803 Layout tests pass. I added a layout test for viewsource mode, since I
1804 broke it in the course of writing this patch.
1806 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1811 (WebCore::Document::recalcStyleSelector):
1813 Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
1816 Remove DeprecatedStringList class forward declaration.
1818 * editing/markup.cpp:
1819 Include DeprecatedStringList.h here since it's not included by Document.h anymore.
1821 * kcanvas/KCanvasTreeDebug.cpp:
1822 * kcanvas/KCanvasTreeDebug.h:
1823 Remove unused functions.
1825 * loader/loader.cpp:
1829 Fixup DeprecatedStringList.h includes.
1831 2006-09-30 David Harrison <harrison@apple.com>
1833 Reviewed by John Sullivan.
1835 <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
1837 Problem was that the decision to trim was based only on whether the character
1838 is a soft hyphen, which caused pretty much any Japanese character to go.
1839 Changed to decide based on whether the character is ignorable whitespace.
1842 * fast/text/international/wrap-CJK-001.html
1844 * rendering/bidi.cpp:
1845 (WebCore::isTrimmableChar):
1846 New. Checks whether character is whitespace that can be ignored
1847 according to the text node's style.
1848 trimmed from the end of wrapped line.
1849 (WebCore::checkMidpoints):
1850 Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
1852 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1854 Reviewed by Mitz Pettel.
1856 Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
1858 * ksvg2/svg/SVGColor.cpp:
1859 (WebCore::SVGColor::setRGBColor):
1860 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1861 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1862 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1863 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1864 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1865 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1866 (SVGFESpecularLightingElement::parseMappedAttribute):
1867 * ksvg2/svg/SVGFETurbulenceElement.cpp:
1868 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1869 * ksvg2/svg/SVGLengthList.cpp:
1870 * ksvg2/svg/SVGNumberList.cpp:
1871 (SVGNumberList::parse):
1872 * ksvg2/svg/SVGNumberList.h:
1873 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1874 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
1875 * ksvg2/svg/SVGStringList.cpp:
1876 (WebCore::SVGStringList::reset):
1877 * ksvg2/svg/SVGStringList.h:
1878 * ksvg2/svg/SVGTransformable.cpp:
1879 (SVGTransformable::parseTransformAttribute):
1881 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
1883 Reviewed by Eric, tweaked and landed by ap.
1888 * platform/qt/PlatformScrollBar.h:
1889 * platform/qt/TemporaryLinkStubs.cpp:
1890 (WebCore::ScrollBar::ScrollBar):
1891 (WebCore::PlatformScrollBar::PlatformScrollBar):
1892 (FrameView::passMousePressEventToSubframe):
1893 (FrameView::passMouseMoveEventToSubframe):
1894 (FrameView::passMouseReleaseEventToSubframe):
1895 (FrameView::passWheelEventToSubframe):
1896 (FrameView::passMousePressEventToScrollbar):
1897 * ksvg2/svg/SVGDocument.h:
1899 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
1903 Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
1904 REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
1906 No test case added (probably requires new DumpRenderTree functionality)
1908 * rendering/RenderImage.cpp:
1909 (WebCore::RenderImage::imageChanged): Added early return if the document is
1912 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
1916 Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
1917 REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
1919 Make sure we only break after a space (and not any other valid line-break) if
1920 the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
1921 I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
1922 twice in quick succession.
1924 * rendering/bidi.cpp:
1925 (WebCore::RenderBlock::findNextLineBreak):
1927 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1929 Reviewed by Maciej and Darin.
1931 http://bugs.webkit.org/show_bug.cgi?id=4372
1932 JavaScript document.write page form does not submit in Safari
1934 Test: fast/forms/document-write.html
1937 (WebCore::Frame::submitForm): Don't check for parsing().
1939 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1943 * bridge/mac/FrameViewMac.mm: Add missing #imports.
1945 2006-10-01 Dave Hyatt <hyatt@apple.com>
1947 Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
1951 * bridge/mac/FrameMac.mm:
1952 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1953 * bridge/mac/FrameViewMac.mm:
1954 (WebCore::FrameView::passMousePressEventToScrollbar):
1955 * page/FrameView.cpp:
1956 (WebCore::FrameView::handleMousePressEvent):
1957 (WebCore::FrameView::setMousePressed):
1959 * platform/win/TemporaryLinkStubs.cpp:
1960 (FrameView::passMousePressEventToScrollbar):
1962 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
1966 Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
1967 Add more SVG Objective-C DOM bindings
1969 - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
1970 DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
1971 DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
1972 DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
1973 DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
1974 DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
1976 * DerivedSources.make:
1977 * WebCore.xcodeproj/project.pbxproj:
1978 * bindings/objc/DOMInternal.h:
1979 * bindings/objc/DOMSVG.h:
1980 * bindings/scripts/CodeGeneratorObjC.pm:
1981 * ksvg2/svg/SVGAElement.idl:
1982 * ksvg2/svg/SVGAnimateColorElement.idl:
1983 * ksvg2/svg/SVGAnimateElement.idl:
1984 * ksvg2/svg/SVGAnimateTransformElement.idl:
1985 * ksvg2/svg/SVGAnimatedPathData.idl:
1986 * ksvg2/svg/SVGAnimatedPoints.idl:
1987 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
1988 * ksvg2/svg/SVGAnimationElement.idl:
1989 * ksvg2/svg/SVGCircleElement.idl:
1990 * ksvg2/svg/SVGClipPathElement.idl:
1991 * ksvg2/svg/SVGColor.idl:
1992 * ksvg2/svg/SVGCursorElement.idl:
1993 * ksvg2/svg/SVGDefsElement.idl:
1994 * ksvg2/svg/SVGDescElement.idl:
1995 * ksvg2/svg/SVGDocument.idl:
1996 * ksvg2/svg/SVGEllipseElement.idl:
1997 * ksvg2/svg/SVGPointList.idl:
1998 * ksvg2/svg/SVGPreserveAspectRatio.idl:
1999 * ksvg2/svg/SVGRect.idl:
2000 * ksvg2/svg/SVGSVGElement.idl:
2002 2006-09-30 Maciej Stachowiak <mjs@apple.com>
2008 * platform/FloatRect.h:
2009 (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2010 but more appropriate for path-type stuff.
2011 * platform/cg/PathCG.cpp:
2012 (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2014 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
2018 http://bugs.webkit.org/show_bug.cgi?id=11011
2019 External CSS is parsed as iso-8859-1 even though the main document is utf-8
2021 Test: fast/encoding/css-charset-default.xhtml
2023 * loader/CachedResourceClient.h:
2024 (WebCore::CachedResourceClient::setCSSStyleSheet):
2025 (WebCore::CachedResourceClient::setXSLStyleSheet):
2026 Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2027 takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2029 * css/CSSImportRule.cpp:
2030 (WebCore::CSSImportRule::setCSSStyleSheet):
2031 (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2032 * css/CSSImportRule.h:
2034 * css/CSSStyleSheet.cpp:
2035 (WebCore::CSSStyleSheet::CSSStyleSheet):
2036 * css/CSSStyleSheet.h:
2037 Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2038 member. Changed some String parameters to const String&.
2040 * css/StyleSheet.cpp:
2041 (WebCore::StyleSheet::StyleSheet):
2043 Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2045 * css/StyleSheetList.cpp:
2046 (WebCore::StyleSheetList::length):
2047 (WebCore::StyleSheetList::item):
2048 * css/StyleSheetList.h:
2049 Special-casing implicit stylesheets seemed to be dead code, removed.
2052 (WebCore::Document::setCSSStyleSheet):
2053 (WebCore::Document::recalcStyleSelector):
2055 Renamed setStyleSheet() to setCSSStyleSheet().
2057 * dom/ProcessingInstruction.cpp:
2058 (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2059 (WebCore::ProcessingInstruction::setCSSStyleSheet):
2060 (WebCore::ProcessingInstruction::setXSLStyleSheet):
2061 (WebCore::ProcessingInstruction::parseStyleSheet):
2062 * dom/ProcessingInstruction.h:
2064 * html/HTMLLinkElement.cpp:
2065 (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
2067 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2068 * html/HTMLLinkElement.h:
2070 * html/HTMLStyleElement.cpp:
2071 (WebCore::HTMLStyleElement::childrenChanged):
2072 * ksvg2/svg/SVGStyleElement.cpp:
2073 (WebCore::SVGStyleElement::childrenChanged):
2074 Inherit URL and charset from the document.
2077 (WebCore::Cache::requestCSSStyleSheet):
2079 Adjust for setStyleSheet() renaming.
2081 * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
2082 * loader/CachedCSSStyleSheet.cpp:
2083 (WebCore::CachedCSSStyleSheet::ref):
2084 (WebCore::CachedCSSStyleSheet::deref):
2085 (WebCore::CachedCSSStyleSheet::checkNotify):
2086 Pass the encoding to setCSSStyleSheet().
2088 * loader/CachedXSLStyleSheet.cpp:
2089 (WebCore::CachedXSLStyleSheet::ref):
2090 (WebCore::CachedXSLStyleSheet::checkNotify):
2091 * loader/DocLoader.cpp:
2092 (WebCore::DocLoader::requestCSSStyleSheet):
2093 * loader/DocLoader.h:
2095 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2096 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
2097 * xml/XSLImportRule.cpp:
2098 (WebCore::XSLImportRule::setXSLStyleSheet):
2099 (WebCore::XSLImportRule::loadSheet):
2100 * xml/XSLImportRule.h:
2101 Adjust for setStyleSheet() renaming.
2103 2006-09-30 Rob Buis <buis@kde.org>
2105 Reviewed by eseidel.
2107 http://bugs.webkit.org/show_bug.cgi?id=11096
2108 Hit testing for polylines fails
2110 Fix Path::contains so it handles filled, non-closed paths too.
2112 * platform/cg/PathCG.cpp:
2113 (WebCore::Path::contains):
2115 2006-09-30 Dave Hyatt <hyatt@apple.com>
2117 Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
2118 Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
2119 subframes while the mouse is down.
2121 Reviewed by mitzpettel
2123 * bridge/mac/FrameMac.h:
2124 * bridge/mac/FrameMac.mm:
2125 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2126 (WebCore::FrameMac::passWheelEventToWidget):
2127 * bridge/mac/FrameViewMac.mm:
2128 (WebCore::FrameView::passMousePressEventToSubframe):
2129 (WebCore::FrameView::passMouseMoveEventToSubframe):
2130 (WebCore::FrameView::passMouseReleaseEventToSubframe):
2131 (WebCore::FrameView::passWheelEventToSubframe):
2134 * page/FrameView.cpp:
2135 (WebCore::subframeForTargetNode):
2136 (WebCore::FrameView::handleMousePressEvent):
2137 (WebCore::FrameView::handleMouseDoubleClickEvent):
2138 (WebCore::FrameView::handleMouseMoveEvent):
2139 (WebCore::FrameView::handleMouseReleaseEvent):
2140 (WebCore::FrameView::handleWheelEvent):
2142 * platform/ScrollBar.h:
2143 (WebCore::ScrollBar::handleMouseMoveEvent):
2144 (WebCore::ScrollBar::handleMouseOutEvent):
2145 * platform/Widget.h:
2146 (WebCore::Widget::handleMouseMoveEvent):
2147 (WebCore::Widget::handleMouseReleaseEvent):
2148 * platform/win/TemporaryLinkStubs.cpp:
2149 (FrameView::passMousePressEventToSubframe):
2150 (FrameView::passMouseMoveEventToSubframe):
2151 (FrameView::passMouseReleaseEventToSubframe):
2152 (FrameView::passWheelEventToSubframe):
2153 (Widget::capturingMouse):
2154 (Widget::setCapturingMouse):
2155 (Widget::capturingTarget):
2156 (Widget::capturingChild):
2157 (Widget::setCapturingChild):
2158 * rendering/RenderView.cpp:
2159 (WebCore::RenderView::paintBoxDecorations):
2161 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2165 Fixes windows bustage:
2166 http://bugs.webkit.org/show_bug.cgi?id=11093
2168 * platform/win/PlatformScrollBar.h:
2169 * platform/win/TemporaryLinkStubs.cpp:
2170 (PlatformScrollBar::PlatformScrollBar):
2171 (ScrollBar::ScrollBar):
2173 2006-09-29 David Hyatt <hyatt@apple.com>
2175 Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
2176 in RenderObject::NodeInfo (and then propagating that Widget to
2177 MouseEventWithHitTestResults).
2179 This allows RenderListBox and RenderBlock to do the same thing when the
2180 mouse is over the scrollbar.
2182 Also land fix to support font-size: 0.
2184 Reviewed by mjs (scrollbar), eric (font-size)
2187 (WebCore::Document::prepareMouseEvent):
2189 (WebCore::Frame::passWidgetMouseDownEventToWidget):
2190 * page/FrameView.cpp:
2191 (WebCore::selectCursor):
2192 (WebCore::FrameView::handleMouseMoveEvent):
2193 (WebCore::FrameView::dispatchMouseEvent):
2194 * page/MouseEventWithHitTestResults.cpp:
2195 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2196 * page/MouseEventWithHitTestResults.h:
2197 (WebCore::MouseEventWithHitTestResults::scrollbar):
2198 * rendering/RenderBlock.cpp:
2199 (WebCore::RenderBlock::isPointInScrollbar):
2200 (WebCore::RenderBlock::nodeAtPoint):
2201 * rendering/RenderBlock.h:
2202 * rendering/RenderLayer.cpp:
2203 (WebCore::RenderLayer::hitTest):
2204 * rendering/RenderLayer.h:
2205 (WebCore::RenderLayer::getHiddenBehavior):
2206 * rendering/RenderListBox.cpp:
2207 (WebCore::RenderListBox::RenderListBox):
2208 (WebCore::RenderListBox::~RenderListBox):
2209 (WebCore::RenderListBox::isPointInScrollbar):
2210 * rendering/RenderListBox.h:
2211 * rendering/RenderObject.h:
2212 (WebCore::RenderObject::NodeInfo::NodeInfo):
2213 (WebCore::RenderObject::NodeInfo::scrollbar):
2214 (WebCore::RenderObject::NodeInfo::setScrollbar):
2216 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2220 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
2222 * platform/win/ScrollViewWin.cpp:
2223 (WebCore::ScrollView::convertToContainingWindow):
2224 (WebCore::ScrollView::convertFromContainingWindow):
2225 * platform/win/WidgetWin.cpp:
2226 (WebCore::Widget::convertToContainingWindow):
2227 (WebCore::Widget::convertFromContainingWindow):
2229 2006-09-29 Adele Peterson <adele@apple.com>
2231 Updated with new argument for PlatformScrollBar.
2233 * platform/win/TemporaryLinkStubs.cpp:
2234 (PlatformScrollBar::PlatformScrollBar):
2236 2006-09-29 Adele Peterson <adele@apple.com>
2240 Fixing build bustage with cast to int.
2242 * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
2244 2006-09-29 Adele Peterson <adele@apple.com>
2246 Fixing accidental include.
2248 * rendering/RenderListBox.cpp:
2250 2006-09-29 Adele Peterson <adele@apple.com>
2252 Adding RenderListBox files.
2254 * WebCore.vcproj/WebCore/WebCore.vcproj:
2256 2006-09-29 Adele Peterson <adele@apple.com>
2260 Initial implementation of engine-based list box control.
2262 * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
2264 * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
2265 * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
2266 (WebCore::FrameMac::FrameMac):
2267 (WebCore::FrameMac::handleMousePressEvent):
2268 (WebCore::FrameMac::handleMouseMoveEvent):
2269 (WebCore::FrameMac::mouseDown):
2272 (WebCore::Frame::handleMouseMoveEvent):
2273 (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
2274 (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
2275 (WebCore::Frame::autoscrollTimerFired): ditto.
2276 (WebCore::Frame::stopAutoscrollTimer): ditto.
2277 (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
2279 * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
2281 * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
2282 (WebCore::FrameViewPrivate::reset):
2283 (WebCore::FrameView::currentMousePosition):
2284 (WebCore::FrameView::handleMousePressEvent):
2285 (WebCore::FrameView::handleMouseDoubleClickEvent):
2286 (WebCore::selectCursor):
2287 (WebCore::FrameView::handleMouseMoveEvent):
2288 (WebCore::FrameView::handleMouseReleaseEvent):
2291 * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
2292 * platform/ScrollBar.h:
2294 (WebCore::ScrollBar::controlSize):
2295 * platform/mac/PlatformScrollBar.h:
2296 * platform/mac/PlatformScrollBarMac.mm:
2297 (NSControlSizeForScrollBarControlSize):
2298 (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2299 (WebCore::PlatformScrollBar::PlatformScrollBar):
2301 * rendering/RenderBlock.h:
2302 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
2303 * rendering/RenderLayer.h:
2304 * rendering/RenderObject.cpp:
2305 (WebCore::RenderObject::shouldAutoscroll):
2306 (WebCore::RenderObject::autoscroll):
2307 * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
2309 * css/html4.css: Added properties for new list boxes.
2311 * html/HTMLOptionElement.cpp:
2312 (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
2313 (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
2314 * html/HTMLOptionElement.h: Added disabled method.
2316 * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
2317 (WebCore::HTMLSelectElement::recalcStyle):
2318 (WebCore::HTMLSelectElement::lastSelectedListIndex):
2319 (WebCore::HTMLSelectElement::deselectItems):
2320 (WebCore::HTMLSelectElement::setSelectedIndex):
2321 (WebCore::HTMLSelectElement::isKeyboardFocusable):
2322 (WebCore::HTMLSelectElement::isMouseFocusable):
2323 (WebCore::HTMLSelectElement::createRenderer):
2324 (WebCore::HTMLSelectElement::recalcListItems):
2325 (WebCore::HTMLSelectElement::setRecalcListItems):
2326 (WebCore::HTMLSelectElement::reset):
2327 (WebCore::HTMLSelectElement::notifyOptionSelected):
2328 (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
2329 (WebCore::HTMLSelectElement::nextSelectableListIndex):
2330 (WebCore::HTMLSelectElement::previousSelectableListIndex):
2331 * html/HTMLSelectElement.h:
2333 * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
2334 (WebCore::RenderTheme::paint):
2335 (WebCore::RenderTheme::paintBorderOnly):
2336 (WebCore::RenderTheme::paintDecorations):
2337 (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
2338 (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
2339 (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
2340 (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
2341 (WebCore::RenderTheme::isControlStyled):
2342 (WebCore::RenderTheme::supportsFocusRing):
2343 * rendering/RenderTheme.h:
2344 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
2346 * rendering/RenderListBox.cpp: Added.
2347 (WebCore::RenderListBox::RenderListBox):
2348 (WebCore::RenderListBox::~RenderListBox):
2349 (WebCore::RenderListBox::setStyle):
2350 (WebCore::RenderListBox::updateFromElement):
2351 (WebCore::RenderListBox::calcMinMaxWidth):
2352 (WebCore::RenderListBox::size):
2353 (WebCore::RenderListBox::numItems):
2354 (WebCore::RenderListBox::calcHeight):
2355 (WebCore::RenderListBox::baselinePosition):
2356 (WebCore::RenderListBox::itemBoundingBoxRect):
2357 (WebCore::RenderListBox::paintObject):
2358 (WebCore::RenderListBox::paintScrollbar):
2359 (WebCore::RenderListBox::paintItemForeground):
2360 (WebCore::RenderListBox::paintItemBackground):
2361 (WebCore::RenderListBox::scrollBarTarget):
2362 (WebCore::RenderListBox::isPointInScrollbar):
2363 (WebCore::RenderListBox::optionAtPoint):
2364 (WebCore::RenderListBox::autoscroll):
2365 (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
2366 (WebCore::RenderListBox::scroll):
2367 (WebCore::RenderListBox::valueChanged):
2368 * rendering/RenderListBox.h: Added.
2369 (WebCore::RenderListBox::isListBox):
2370 (WebCore::RenderListBox::selectionChanged):
2371 (WebCore::RenderListBox::setSelectionChanged):
2372 (WebCore::RenderListBox::canHaveChildren):
2373 (WebCore::RenderListBox::renderName):
2374 (WebCore::RenderListBox::setOptionsChanged):
2375 (WebCore::RenderListBox::shouldAutoscroll):
2376 (WebCore::RenderListBox::listIndexIsVisible):
2378 2006-09-29 Beth Dakin <bdakin@apple.com>
2382 We had a bug where html4.css was ignoring Media Queries. In the end
2383 the problem was that we were trying to send a char* to the
2384 MediaQueryEvaluator constructor that expects a String, but the
2385 char* got interpreted as a bool, the wrong constructor was called,
2386 and the media type was never set.
2388 No test case possible since this only affects html4.css
2390 * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
2392 (WebCore::MediaQueryEvaluator):
2393 * css/MediaQueryEvaluator.h: Same.
2395 2006-09-29 Geoffrey Garen <ggaren@apple.com>
2397 Reviewed by John, Maciej.
2399 Integrated some frame and iframe code. I'm trying to fix up frame ownership
2400 and loading. Reducing the number of different code paths involved
2401 seemed like a good first step.
2403 As a side effect, I fixed a bug where FRAME elements would report their
2404 src attributes as relative, rather than compelete, URLs. (IFRAME elements
2405 had the correct complete URL behavior.)
2407 * html/HTMLFrameElement.cpp:
2408 (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
2409 (WebCore::HTMLFrameElement::openURL):
2410 (1) Removed checks that requestFrame does for us
2411 (2) Added isURLAllowed check, to have one clear bottleneck for it
2412 (3) Added viewsource check, to have one clear bottleneck for it
2413 (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
2414 method, instead of finding our content frame in our own unique way.
2415 (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
2416 since openURL does this for us now.
2417 (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
2418 This is what FF does, and it made no sense to have different behaviors
2419 for FRAME and IFRAME elements.
2420 * html/HTMLIFrameElement.cpp:
2421 (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
2423 * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
2424 HTMLFrameElement now does everything we need.
2426 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
2433 * platform/qt/ScrollViewQt.cpp:
2434 (WebCore::ScrollView::convertToContainingWindow):
2435 (WebCore::ScrollView::convertFromContainingWindow):
2436 * platform/qt/TemporaryLinkStubs.cpp:
2437 (WebCore::signedPublicKeyAndChallengeString):
2438 * platform/qt/WidgetQt.cpp:
2439 (WebCore::Widget::convertToContainingWindow):
2440 (WebCore::Widget::convertFromContainingWindow):
2442 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
2446 Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
2447 Simplify Internal methods for the auto-generated Objective-C DOM code
2449 - Auto-generate the internal methods for more Objective-C classes.
2451 * WebCore.xcodeproj/project.pbxproj:
2452 * bindings/objc/DOM.mm:
2453 * bindings/objc/DOMCSS.mm:
2454 (-[DOMStyleSheet WebCore::]):
2455 (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2456 (-[DOMCSSRule WebCore::]):
2457 (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2458 (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2459 (-[DOMCSSValue WebCore::]):
2460 (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2461 (+[DOMCSSValue _CSSValueWith:WebCore::]):
2462 * bindings/objc/DOMHTMLAppletElement.mm:
2463 (-[DOMHTMLAppletElement WebCore::]):
2464 (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
2465 * bindings/objc/DOMHTMLEmbedElement.mm:
2466 (-[DOMHTMLEmbedElement WebCore::]):
2467 (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
2468 * bindings/objc/DOMInternal.h:
2469 * bindings/objc/DOMInternal.mm:
2470 * bindings/scripts/CodeGeneratorObjC.pm:
2471 * css/CSSCharsetRule.idl:
2472 * css/CSSFontFaceRule.idl:
2473 * css/CSSImportRule.idl:
2474 * css/CSSMediaRule.idl:
2475 * css/CSSPageRule.idl:
2476 * css/CSSPrimitiveValue.idl:
2477 * css/CSSStyleRule.idl:
2478 * css/CSSStyleSheet.idl:
2479 * css/CSSUnknownRule.idl:
2480 * css/CSSValueList.idl:
2481 * dom/KeyboardEvent.idl:
2482 * dom/MouseEvent.idl:
2483 * dom/MutationEvent.idl:
2484 * dom/NodeIterator.idl:
2485 * dom/OverflowEvent.idl:
2487 * dom/WheelEvent.idl:
2489 2006-09-29 David Harrison <harrison@apple.com>
2491 Reviewed by John Sullivan.
2493 <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
2494 <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
2497 * fast/text/attributed-substring-from-range-001.html
2499 * bridge/mac/FrameMac.mm:
2500 (WebCore::FrameMac::attributedString):
2501 Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
2502 Also, add validation of the range.
2504 2006-09-29 Rob Buis <buis@kde.org>
2508 http://bugs.webkit.org/show_bug.cgi?id=10893
2509 InsertRule can not handle @import statements
2511 Allow @import as part of a css rule.
2515 2006-09-28 David Hyatt <hyatt@apple.com>
2517 Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2519 * bridge/mac/FrameMac.mm:
2520 (WebCore::FrameMac::eventMayStartDrag):
2521 (WebCore::FrameMac::dragHysteresisExceeded):
2522 (WebCore::FrameMac::mouseDown):
2523 (WebCore::FrameMac::shouldDragAutoNode):
2524 (WebCore::FrameMac::sendContextMenuEvent):
2525 * bridge/mac/WebCoreFrameBridge.mm:
2526 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2528 2006-09-28 Dave Hyatt <hyatt@apple.com>
2530 This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2531 ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2534 Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2535 the patch after review, once I realized that these new functions essentially do the same thing.)
2537 * dom/EventTargetNode.cpp:
2538 (WebCore::EventTargetNode::dispatchMouseEvent):
2539 (WebCore::EventTargetNode::dispatchWheelEvent):
2541 (WebCore::Frame::selectClosestWordFromMouseEvent):
2542 (WebCore::Frame::handleMousePressEventTripleClick):
2543 (WebCore::Frame::handleMousePressEventSingleClick):
2544 (WebCore::Frame::handleMouseMoveEvent):
2545 (WebCore::Frame::handleMouseReleaseEvent):
2546 * page/FrameView.cpp:
2547 (WebCore::FrameView::handleMousePressEvent):
2548 (WebCore::selectCursor):
2549 (WebCore::FrameView::dispatchDragEvent):
2550 (WebCore::FrameView::prepareMouseEvent):
2551 (WebCore::FrameView::handleWheelEvent):
2552 * platform/ScrollView.h:
2553 * platform/Widget.cpp:
2554 (WebCore::Widget::convertToContainingWindow):
2555 * platform/Widget.h:
2556 * platform/mac/ScrollViewMac.mm:
2557 (WebCore::ScrollView::convertToContainingWindow):
2558 (WebCore::ScrollView::convertFromContainingWindow):
2559 * platform/mac/WidgetMac.mm:
2560 (WebCore::Widget::convertToContainingWindow):
2561 (WebCore::Widget::convertFromContainingWindow):
2562 * platform/win/ScrollViewWin.cpp:
2563 (WebCore::ScrollView::convertToContainingWindow):
2564 (WebCore::ScrollView::convertFromContainingWindow):
2565 * rendering/RenderLayer.cpp:
2566 (WebCore::RenderLayer::resize):
2568 2006-09-28 Alice Liu <alice.liu@apple.com>
2570 Build fix by adding missing files for CommandByName
2572 * WebCore.xcodeproj/project.pbxproj:
2574 2006-09-28 Alice Liu <alice.liu@apple.com>
2576 Adding CommandByName files to the vcproj
2578 * WebCore.vcproj/WebCore/WebCore.vcproj:
2580 2006-09-28 Alice Liu <alice.liu@apple.com>
2582 Reviewed by Adam Roben.
2584 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.
2585 This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2586 This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2588 * editing/CommandByName.cpp: Added.
2589 Added a command class that hangs off the frame so the frame can call commands more easily.
2590 (WebCore::Frame::commandImp):
2591 (WebCore::Frame::execCopy):
2592 (WebCore::Frame::execCut):
2593 (WebCore::Frame::execDelete):
2594 (WebCore::Frame::execForwardDelete):
2595 (WebCore::Frame::execPaste):
2596 (WebCore::Frame::execMoveLeft):
2597 (WebCore::Frame::execMoveRight):
2598 (WebCore::Frame::execMoveUp):
2599 (WebCore::Frame::execMoveDown):
2600 (WebCore::Frame::execSelectAll):
2601 (WebCore::Frame::execSelectLeft):
2602 (WebCore::Frame::execSelectRight):
2603 (WebCore::Frame::execSelectUp):
2604 (WebCore::Frame::execSelectDown):
2605 (WebCore::Frame::enabled):
2606 (WebCore::Frame::enabledAnySelection):
2607 (WebCore::Frame::enabledAnyEditableSelection):
2608 (WebCore::Frame::enabledPaste):
2609 (WebCore::Frame::enabledAnyRangeSelection):
2610 (WebCore::Frame::enabledAnyEditableRangeSelection):
2611 (WebCore::Frame::createCommandDictionary):
2612 (WebCore::Frame::Command::):
2613 (WebCore:::m_frame):
2614 (WebCore::CommandByName::execCommand):
2615 * editing/CommandByName.h: Added.
2617 Added implementation of accessor for CommandByName member
2618 (WebCore::Frame::command):
2620 Added accessor for CommandByName member
2621 * page/FramePrivate.h:
2622 Added a CommandByName member
2623 (WebCore::FramePrivate::FramePrivate):
2624 * platform/PlatformMouseEvent.h:
2625 Changed constructor prototype
2626 * platform/StringImpl.cpp:
2627 Exposing getWordBreakIterator to be used elsewhere
2628 (WebCore::getWordBreakIterator):
2629 * platform/StringImpl.h:
2630 Exposing getWordBreakIterator to be used elsewhere
2631 * platform/win/MouseEventWin.cpp:
2632 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
2633 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2635 2006-09-28 Adam Roben <aroben@apple.com>
2639 Remove no-longer-used PopUpButton.
2641 * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2642 * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2644 * platform/PopUpButton.h: Removed.
2645 * platform/mac/PopUpButtonMac.mm: Removed.
2646 * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2647 * rendering/DeprecatedRenderSelect.cpp: Change #include of
2648 PopUpButton.h to ListBox.h
2650 2006-09-28 Darin Adler <darin@apple.com>
2654 - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2655 10% perf. regression (copying strings while decoding)
2657 Use Vector<UChar> instead of String when building up the decoded string in
2658 the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2659 String grows the buffer every single time that append is called. Using
2660 Vector::append instead of String::append also avoids constructing a string
2661 each time just to append and a questionable copy that is done inside the
2662 String::append function which also contributed to the slowness.
2664 * platform/PlatformString.h:
2665 * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2666 Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2668 * platform/StringImpl.h:
2669 * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2671 * platform/StreamingTextDecoder.h:
2672 * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2673 Change to use a Vector<UChar> instead of a String, since vectors have better
2674 resizing performance (they store a separate capacity).
2676 * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2677 * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2678 Change to use Vector<UChar> instead of String and then create a string at
2679 the end of the process using the new adopt function.
2681 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
2685 Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2686 Auto-generate more SVG Objective-C bindings
2688 - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
2689 DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2690 DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2691 DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2692 DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2693 DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
2694 and DOMSVGTransformable.
2696 - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2697 parent interfaces and the SVG animated classes.
2699 - Corrects CodeGenerator.pm to only skip the first parent for the main
2702 * DerivedSources.make:
2703 * WebCore.xcodeproj/project.pbxproj:
2704 * bindings/objc/DOMInternal.h:
2705 * bindings/objc/DOMSVG.h:
2706 * bindings/scripts/CodeGenerator.pm:
2707 * bindings/scripts/CodeGeneratorObjC.pm:
2708 * ksvg2/svg/SVGAnimatedAngle.idl:
2709 * ksvg2/svg/SVGAnimatedBoolean.idl:
2710 * ksvg2/svg/SVGAnimatedEnumeration.idl:
2711 * ksvg2/svg/SVGAnimatedInteger.idl:
2712 * ksvg2/svg/SVGAnimatedLength.idl:
2713 * ksvg2/svg/SVGAnimatedLengthList.idl:
2714 * ksvg2/svg/SVGAnimatedNumber.idl:
2715 * ksvg2/svg/SVGAnimatedPathData.idl:
2716 * ksvg2/svg/SVGAnimatedString.idl:
2717 * ksvg2/svg/SVGAnimatedTransformList.idl:
2718 * ksvg2/svg/SVGExternalResourcesRequired.idl:
2719 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2720 * ksvg2/svg/SVGFitToViewBox.idl:
2721 * ksvg2/svg/SVGLangSpace.idl:
2722 * ksvg2/svg/SVGLocatable.idl:
2723 * ksvg2/svg/SVGMetadataElement.idl:
2724 * ksvg2/svg/SVGStringList.idl:
2725 * ksvg2/svg/SVGStylable.idl:
2726 * ksvg2/svg/SVGStyleElement.idl:
2727 * ksvg2/svg/SVGTests.idl:
2728 * ksvg2/svg/SVGTransformable.idl:
2729 * ksvg2/svg/SVGURIReference.idl:
2730 * ksvg2/svg/SVGUnitTypes.idl:
2731 * ksvg2/svg/SVGZoomAndPan.idl:
2733 2006-09-28 Brady Eidson <beidson@apple.com>
2735 Reviewed by Mitz Pettel!!!
2737 Change the error code check for common functions from SQLResultOk to SQLResultDone
2739 * loader/icon/IconDatabase.cpp:
2740 (WebCore::IconDatabase::forgetPageURLQuery):
2741 (WebCore::IconDatabase::setIconIDForPageURLQuery):
2742 (WebCore::IconDatabase::addIconForIconURLQuery):
2744 2006-09-28 Dave Hyatt <hyatt@apple.com>
2746 Just eliminate MapWindowPoints usage and use the HWND as
2749 * platform/win/MouseEventWin.cpp:
2750 (WebCore::positionForEvent):
2751 * platform/win/ScrollViewWin.cpp:
2752 (WebCore::ScrollView::viewportToContents):
2753 (WebCore::ScrollView::contentsToViewport):
2755 2006-09-27 David Hyatt <hyatt@apple.com>
2757 Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
2758 selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
2759 scrollbars to provide hover feedback if needed.
2763 * page/FrameView.cpp:
2764 (WebCore::selectCursor):
2765 (WebCore::FrameView::handleMouseMoveEvent):
2766 * platform/ScrollBar.h:
2767 (WebCore::ScrollBar::mouseMoved):
2769 2006-09-27 MorganL <morganl.webkit@yahoo.com>
2771 Reviewed by Maciej and Adam, landed by Adam
2773 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
2774 Windows build is busted
2776 * platform/win/TemporaryLinkStubs.cpp:
2777 (ScrollView::paint):
2778 (ScrollView::themeChanged):
2780 2006-09-27 Eric Seidel <eric@eseidel.com>
2784 paths with no fill specified default to black but do not recieve paint-related mouse events
2785 http://bugs.webkit.org/show_bug.cgi?id=11069
2786 The default fill was being applied at the wrong place in the rendering chain, causing this problem.
2788 Test: svg/custom/hover-default-fill.svg
2790 * kcanvas/RenderPath.cpp:
2791 (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
2792 * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
2793 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2794 (WebCore::KSVGPainterFactory::isFilled): remove null check
2795 (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
2796 (WebCore::KSVGPainterFactory::isStroked): remove null check
2797 (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
2798 * ksvg2/svg/SVGPaint.cpp:
2799 (WebCore::SVGPaint::defaultFill): added.
2800 (WebCore::SVGPaint::defaultStroke): added.
2801 * ksvg2/svg/SVGPaint.h:
2803 2006-09-27 Rob Buis <buis@kde.org>
2805 Reviewed by eseidel.
2807 http://bugs.webkit.org/show_bug.cgi?id=11015
2808 SVG handles em units incorrectly
2810 Calculate viewport coordinates at layout time, since
2811 at this point the font size is known and lengths depending
2812 on font sizes can be calculated correctly.
2814 * kcanvas/RenderSVGContainer.cpp:
2815 (WebCore::RenderSVGContainer::layout):
2816 (WebCore::RenderSVGContainer::viewport):
2817 (WebCore::RenderSVGContainer::calcViewport):
2818 * kcanvas/RenderSVGContainer.h:
2819 * ksvg2/svg/SVGLength.cpp:
2820 (WebCore::SVGLength::updateValue):
2821 * ksvg2/svg/SVGMarkerElement.cpp:
2822 (WebCore::SVGMarkerElement::createRenderer):
2823 * ksvg2/svg/SVGSVGElement.cpp:
2824 (WebCore::SVGSVGElement::createRenderer):
2825 (WebCore::SVGSVGElement::attributeChanged):
2826 * ksvg2/svg/SVGSVGElement.h:
2828 2006-09-27 Eric Seidel <eric@eseidel.com>
2832 Change our invalid-fill error behavior to match Opera (and soon Firefox)
2833 http://bugs.webkit.org/show_bug.cgi?id=11017
2835 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2836 (WebCore::KSVGPainterFactory::isFilled):
2837 (WebCore::KSVGPainterFactory::fillPaintServer):
2838 (WebCore::KSVGPainterFactory::isStroked):
2839 (WebCore::KSVGPainterFactory::strokePaintServer):
2841 2006-09-27 Brady Eidson <beidson@apple.com>
2845 * loader/icon/IconDatabase.cpp:
2846 (WebCore::readySQLStatement):
2848 2006-09-27 Brady Eidson <beidson@apple.com>
2852 In very specific circumstances, prepared SQLStatements can become invalid without
2853 any warning. This checks for that state and re-prepares the statement and also
2854 adds more aggressive error-checking everywhere these statements are used.
2856 * loader/icon/IconDatabase.cpp:
2857 (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
2858 (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
2859 (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
2860 (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
2861 (WebCore::IconDatabase::forgetPageURLQuery): Ditto
2862 (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
2863 (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
2864 (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
2865 (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
2866 * loader/icon/SQLStatement.cpp:
2867 (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
2868 * loader/icon/SQLStatement.h:
2870 2006-09-26 Darin Adler <darin@apple.com>
2874 - clean up options for font code path
2877 * platform/Font.cpp:
2878 (WebCore::Font::setCodePath): Added. Replaces boolean version.
2879 (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
2881 * platform/mac/WebCoreTextRenderer.mm:
2882 (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
2884 2006-09-26 John Sullivan <sullivan@apple.com>
2888 * bridge/mac/WebCoreFrameBridge.h:
2889 * bridge/mac/WebCoreFrameBridge.mm:
2890 (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
2891 Added limit parameter, passed down to Frame
2895 (WebCore::Frame::markAllMatchesForText):
2896 Added limit parameter. Stop the search if it hits limit.
2898 2006-09-26 Sean Gies <seangies@apple.com>
2900 Reviewed by Brady Eidson.
2902 * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2904 2006-09-26 Justin Garcia <justin.garcia@apple.com>
2908 <rdar://problem/4747695>
2909 Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
2911 * editing/DeleteSelectionCommand.cpp:
2912 (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
2913 to select special elements that are fully selected after expansion
2914 moves to positions that are visually distinct from the originals.
2915 * editing/InsertListCommand.cpp:
2916 (WebCore::InsertListCommand::doApply): If the content of the list
2917 item will be moved into another list, put it in a list item.
2919 2006-09-26 Geoffrey Garen <ggaren@apple.com>
2923 Temporary work-around for frame lifetime issue.
2926 (WebCore::Frame::clear):
2927 (WebCore::Frame::disconnectOwnerElement):
2929 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
2933 Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
2934 Auto-generate DOMSVGElement for the Objective-C bindings
2936 - Auto-generates DOMSVGElement.
2938 - Make SVGExceptions work like all the other ExceptionCode
2939 extensions (Range, XPath, etc.) by adding SVGExceptionOffset
2940 and SVGExceptionMax.
2942 * DerivedSources.make:
2943 * WebCore.xcodeproj/project.pbxproj:
2944 * bindings/js/kjs_binding.cpp:
2946 (KJS::setDOMException):
2947 * bindings/objc/DOMInternal.h:
2948 * bindings/objc/DOMInternal.mm:
2949 (raiseDOMException):
2950 * bindings/objc/DOMSVG.h:
2951 * bindings/objc/DOMSVGExecption.h: Added.
2953 * ksvg2/svg/SVGElement.cpp:
2954 (WebCore::SVGElement::setId):
2955 (WebCore::SVGElement::setXmlbase):
2956 * ksvg2/svg/SVGElement.h:
2957 * ksvg2/svg/SVGElement.idl:
2958 * ksvg2/svg/SVGException.h: Added.
2961 2006-09-26 Eric Seidel <eric@eseidel.com>
2965 viewbox parser does not allow <tab> as a delimiter
2966 http://bugs.webkit.org/show_bug.cgi?id=11014
2968 Test: svg/hixie/viewbox/003.xml
2970 * ksvg2/svg/svgpathparser.cpp:
2971 (WebCore::isWhitespace): new function
2972 (WebCore::skipOptionalSpaces):
2973 (WebCore::skipOptionalSpacesOrComma):
2975 2006-09-26 Eric Seidel <eric@eseidel.com>
2979 SVGDocument::createElement does not create elements in the SVG namespace
2980 http://bugs.webkit.org/show_bug.cgi?id=10932
2982 Test: svg/custom/createelement.svg
2984 * ksvg2/svg/SVGDocument.cpp:
2985 (WebCore::SVGDocument::createElement):
2986 * ksvg2/svg/SVGDocument.h:
2988 2006-09-26 Eric Seidel <eric@eseidel.com>
2992 RenderPath::nodeAtPoint does not respect stroke width
2993 http://bugs.webkit.org/show_bug.cgi?id=10829
2995 Test: svg/custom/stroke-width-click.svg
2997 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2998 (WebCore::RenderPath::strokeContains):
2999 * kcanvas/device/quartz/QuartzSupport.h:
3000 * kcanvas/device/quartz/QuartzSupport.mm:
3002 2006-09-26 Eric Seidel <eric@eseidel.com>
3006 Bring animation back to life
3007 http://bugs.webkit.org/show_bug.cgi?id=11021
3009 Register/unregister SVGSVGElements as time containers on insertion/removal.
3010 Replace uses of DeprecatedString with String in SVGAnimationElement
3011 Various whitespace clean-up.
3013 * ksvg2/misc/KSVGTimeScheduler.cpp:
3014 (WebCore::SVGTimer::notifyAll):
3015 * ksvg2/misc/SVGDocumentExtensions.cpp:
3016 (WebCore::SVGDocumentExtensions::startAnimations):
3017 (WebCore::SVGDocumentExtensions::pauseAnimations):
3018 (WebCore::SVGDocumentExtensions::unpauseAnimations):
3019 * ksvg2/svg/SVGAnimateTransformElement.cpp:
3020 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3021 (WebCore::SVGAnimateTransformElement::parseTransformValue):
3022 * ksvg2/svg/SVGAnimateTransformElement.h:
3023 * ksvg2/svg/SVGAnimationElement.cpp:
3024 (WebCore::SVGAnimationElement::SVGAnimationElement):
3025 (WebCore::SVGAnimationElement::parseMappedAttribute):
3026 (WebCore::SVGAnimationElement::parseClockValue):
3027 (WebCore::SVGAnimationElement::targetAttribute):
3028 (WebCore::SVGAnimationElement::setTargetAttribute):
3029 (WebCore::SVGAnimationElement::attributeName):
3030 * ksvg2/svg/SVGAnimationElement.h:
3031 (WebCore::SVGAnimationElement::rendererIsNeeded):
3032 * ksvg2/svg/SVGSVGElement.cpp:
3033 (WebCore::SVGSVGElement::getScreenCTM):
3034 (WebCore::SVGSVGElement::createRenderer):
3035 (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3036 (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3037 * ksvg2/svg/SVGSVGElement.h:
3038 * ksvg2/svg/SVGSetElement.cpp:
3039 (WebCore::SVGSetElement::handleTimerEvent):
3040 * ksvg2/svg/SVGURIReference.cpp:
3041 (WebCore::SVGURIReference::getTarget):
3042 * ksvg2/svg/SVGURIReference.h:
3044 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
3046 Reviewed by mitzpettel.
3048 - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3049 No-SVG build broken since r16549
3051 Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3053 * css/cssparser.cpp:
3054 (WebCore::CSSParser::parseValue):
3055 * css/cssstyleselector.cpp:
3056 (WebCore::CSSStyleSelector::applyProperty):
3057 * page/FrameView.cpp:
3058 (WebCore::selectCursor):
3059 * platform/qt/GraphicsContextQt.cpp:
3061 2006-09-26 Anders Carlsson <acarlsson@apple.com>
3065 http://bugs.webkit.org/show_bug.cgi?id=10820
3066 Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
3068 (Originally written by Eric Seidel).
3070 * bindings/js/kjs_window.cpp:
3071 (KJS::floatFeature):
3072 * ksvg2/svg/SVGAngle.cpp:
3073 (SVGAngle::setValueAsString):
3074 * ksvg2/svg/SVGAnimationElement.cpp:
3075 (SVGAnimationElement::parseMappedAttribute):
3076 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3077 (SVGComponentTransferFunctionElement::parseMappedAttribute):
3078 * ksvg2/svg/SVGFECompositeElement.cpp:
3079 (WebCore::SVGFECompositeElement::parseMappedAttribute):
3080 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3081 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3082 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3083 (SVGFEDisplacementMapElement::parseMappedAttribute):
3084 * ksvg2/svg/SVGFELightElement.cpp:
3085 (SVGFELightElement::parseMappedAttribute):
3086 * ksvg2/svg/SVGFEOffsetElement.cpp:
3087 (WebCore::SVGFEOffsetElement::parseMappedAttribute):
3088 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3089 (SVGFESpecularLightingElement::parseMappedAttribute):
3090 * ksvg2/svg/SVGFETurbulenceElement.cpp:
3091 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3092 * ksvg2/svg/SVGStopElement.cpp:
3093 (SVGStopElement::parseMappedAttribute):
3094 * platform/AtomicString.h:
3095 (WebCore::AtomicString::toDouble):
3096 * platform/PlatformString.h:
3097 * platform/String.cpp:
3098 (WebCore::String::toDouble):
3099 * platform/StringImpl.cpp:
3100 (WebCore::StringImpl::toDouble):
3101 * platform/StringImpl.h:
3102 * rendering/DeprecatedSlider.cpp:
3103 (WebCore::DeprecatedSlider::updateFromElement):
3104 * xml/XPathGrammar.y:
3106 2006-09-25 David Harrison <harrison@apple.com>
3108 Reviewed by Tim Omernick and Tim Hatcher.
3110 <rdar://problem/4717965> Text Field text parameterized attributes should work
3111 <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
3113 * bridge/mac/WebCoreAXObject.mm:
3114 (-[WebCoreAXObject accessibilityAttributeValue:]):
3115 Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
3117 (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
3118 Cleaned up. Added text field and text area parameterzed attributes.
3120 (-[WebCoreAXObject doAXLineForTextMarker:]):
3121 Fixed to be zero-based and to deal with the first position properly.
3123 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3126 (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
3127 (-[WebCoreAXObject indexForTextMarker:]):
3128 (-[WebCoreAXObject textMarkerRangeForRange:]):
3129 (-[WebCoreAXObject rangeForTextMarkerRange:]):
3130 New utility methods.
3132 (-[WebCoreAXObject doAXLineForIndex:]):
3133 (-[WebCoreAXObject doAXRangeForLine:]):
3134 (-[WebCoreAXObject doAXStringForRange:]):
3135 (-[WebCoreAXObject doAXRangeForPosition:]):
3136 (-[WebCoreAXObject doAXRangeForIndex:]):
3137 (-[WebCoreAXObject doAXBoundsForRange:]):
3138 (-[WebCoreAXObject doAXAttributedStringForRange:]):
3139 (-[WebCoreAXObject doAXRTFForRange:]):
3140 (-[WebCoreAXObject doAXStyleRangeForIndex:]):
3141 Implement text field and text area parameterized attributes.
3143 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
3144 Added text field and text area parameterzed attributes.
3146 * rendering/RenderTextControl.h:
3147 Made indexForVisiblePosition() and visiblePositionForIndex() public.
3149 2006-09-25 Adam Roben <aroben@apple.com>
3155 * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
3156 * platform/ResourceLoader.h: Store whether a particular job
3157 has received a response within the ResourceLoader object itself, since
3158 it's possible that we will enter the InternetReadFileExA while loop
3159 twice for the same job.
3160 * platform/ResourceLoaderInternal.h: Add private instance variable to
3161 store whether we've received a response.
3162 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3163 * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
3165 * platform/win/ResourceLoaderWin.cpp:
3166 (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
3167 whether it has received a response instead of assuming it hasn't.
3168 (WebCore::ResourceLoader::setHasReceivedResponse): Added.
3169 (WebCore::ResourceLoader::hasReceivedResponse): Added.
3170 * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
3172 (ScrollBar::setProportion):
3174 2006-09-25 Brady Eidson <beidson@apple.com>
3178 Disabled IconDatabase logging by default
3180 * platform/Logging.cpp:
3183 2006-09-25 Steve Falkenburg <sfalken@apple.com>
3187 * platform/cf/ResourceLoaderCFNet.cpp:
3188 (WebCore::willCacheResponse):
3190 2006-09-25 Justin Garcia <justin.garcia@apple.com>
3194 <http://bugs.webkit.org/show_bug.cgi?id=11002>
3195 Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
3197 * editing/IndentOutdentCommand.cpp:
3198 (WebCore::IndentOutdentCommand::indentRegion): Special case
3199 an empty root editable element.
3201 2006-09-25 Brady Eidson <beidson@apple.com>
3205 Math error in SystemTimeWin
3207 * platform/win/SystemTimeWin.cpp:
3208 (WebCore::currentTime):
3210 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
3214 Whitespace cleanup; rename *job variables to *loader.
3216 * bindings/js/JSXMLHttpRequest.cpp:
3217 (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
3218 (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
3219 (KJS::JSXMLHttpRequestConstructorImp::construct):
3220 (KJS::JSXMLHttpRequest::getOwnPropertySlot):
3221 (KJS::JSXMLHttpRequest::getValueProperty):
3222 (KJS::JSXMLHttpRequest::put):
3223 (KJS::JSXMLHttpRequest::putValueProperty):
3224 (KJS::JSXMLHttpRequest::mark):
3225 (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
3226 (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
3227 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
3228 * bindings/js/JSXMLHttpRequest.h:
3229 (KJS::JSXMLHttpRequest::toBoolean):
3230 * xml/xmlhttprequest.cpp:
3231 (WebCore::XMLHttpRequest::XMLHttpRequest):
3232 (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
3233 (WebCore::XMLHttpRequest::send):
3234 (WebCore::XMLHttpRequest::abort):
3235 (WebCore::XMLHttpRequest::receivedAllData):
3236 (WebCore::XMLHttpRequest::receivedData):
3237 * xml/xmlhttprequest.h:
3240 2006-09-25 Timothy Hatcher <timothy@apple.com>
3244 - Deprecate the rest of the old-style methods that are not generated.
3245 - Add @property syntax to DOMRange.
3247 * WebCore.xcodeproj/project.pbxproj:
3248 * bindings/objc/DOM.mm:
3249 (-[DOMRange setStart:offset:]):
3250 (-[DOMRange setEnd:offset:]):
3251 (-[DOMRange compareBoundaryPoints:sourceRange:]):
3252 (-[DOMRange setStart::]):
3253 (-[DOMRange setEnd::]):
3254 (-[DOMRange compareBoundaryPoints::]):
3255 (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
3256 (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
3257 (-[DOMDocument createNodeIterator::::]):
3258 (-[DOMDocument createTreeWalker::::]):
3259 * bindings/objc/DOMCSS.h:
3260 * bindings/objc/DOMCSS.mm:
3261 (-[DOMDocument getComputedStyle:pseudoElement:]):
3262 (-[DOMDocument getComputedStyle::]):
3263 (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
3264 * bindings/objc/DOMExtensions.h:
3265 * bindings/objc/DOMHTML.h:
3266 * bindings/objc/DOMRange.h:
3267 * bindings/objc/DOMTraversal.h:
3269 2006-09-25 Eric Seidel <eric@eseidel.com>
3273 Outermost <svg> element should clip to viewport
3274 http://bugs.webkit.org/show_bug.cgi?id=11007
3276 Test: svg/custom/viewport-clip.svg
3278 * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
3280 2006-09-25 Anders Carlsson <acarlsson@apple.com>
3284 * css/MediaList.cpp:
3285 Remove unused header.
3288 (WebCore::Document::clear):
3289 Use clear instead of iterating through the list of event listeners, removing each one.
3290 (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
3292 * html/HTMLKeygenElement.cpp:
3293 (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3294 (WebCore::HTMLKeygenElement::appendFormData):
3295 Update due to changes in the SSL key generator.
3297 * ksvg2/svg/SVGAngle.cpp:
3298 Remove unused header.
3300 * ksvg2/svg/SVGAnimationElement.cpp:
3301 (SVGAnimationElement::parseMappedAttribute):
3302 Rename methods and pass Strings instead of DeprecatedStrings to
3305 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3306 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3307 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3308 * ksvg2/svg/SVGFEMergeElement.cpp:
3309 * ksvg2/svg/SVGFEOffsetElement.cpp:
3310 Remove unused headers.
3312 * ksvg2/svg/SVGHelper.cpp:
3313 (WebCore::SVGHelper::parseSeparatedList):
3314 * ksvg2/svg/SVGHelper.h:
3315 Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
3316 DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
3318 * ksvg2/svg/SVGLengthList.cpp:
3319 (WebCore::SVGLengthList::parse):
3320 * ksvg2/svg/SVGLengthList.h:
3321 Use Vector<String> instead of DeprecatedStringList.
3324 (WebCore::Cache::requestImage):
3325 (WebCore::Cache::requestStyleSheet):
3326 (WebCore::Cache::requestScript):
3327 (WebCore::Cache::requestXSLStyleSheet):
3328 (WebCore::Cache::requestXBLDocument):
3329 (WebCore::Cache::remove):
3330 (WebCore::Cache::get):
3331 Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
3333 * loader/DocLoader.cpp:
3334 (WebCore::DocLoader::needReload):
3335 * loader/DocLoader.h:
3336 Use a HashSet instead of DeprecatedStringList.
3339 Remove declarations that have no functions.
3341 * platform/SSLKeyGenerator.h:
3342 * platform/mac/SSLKeyGeneratorMac.mm:
3343 (WebCore::supportedKeySizes):
3344 (WebCore::signedPublicKeyAndChallengeString):
3345 Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
3348 2006-09-25 Dave Hyatt <hyatt@apple.com>
3350 Shunt the RenderTheme world transform adoption between
3351 Cairo and Windows into getWindowsContext and move the method
3352 out of GraphicsContextCairo and into GraphicsContextWin.
3355 * WebCore.vcproj/WebCore/WebCore.vcproj:
3356 * platform/cairo/GraphicsContextCairo.cpp:
3357 * platform/win/GraphicsContextWin.cpp: Added.
3358 (WebCore::GraphicsContext::getWindowsContext):
3359 (WebCore::GraphicsContext::releaseWindowsContext):
3360 * rendering/RenderThemeWin.cpp:
3361 (WebCore::prepareForDrawing):
3363 2006-09-24 Eric Seidel <eric@eseidel.com>
3367 <svg:a> cannot be styled with a:hover
3368 http://bugs.webkit.org/show_bug.cgi?id=11005
3370 Test: svg/hixie/cascade/002.xml
3372 * css/cssstyleselector.cpp:
3373 (WebCore::checkPseudoState):
3375 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3379 Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
3380 SVG needs Obj-C DOM bindings
3382 - Auto-generate the first 8 Objective-C SVG DOM bindings. The
3383 auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
3384 DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
3385 DOMSVGTransformList.
3387 * DerivedSources.make:
3388 * WebCore.xcodeproj/project.pbxproj:
3389 * bindings/objc/DOMInternal.h:
3390 * bindings/objc/DOMSVG.h: Added.
3391 * ksvg2/svg/SVGAngle.idl:
3392 * ksvg2/svg/SVGLength.idl:
3393 * ksvg2/svg/SVGLengthList.idl:
3394 * ksvg2/svg/SVGMatrix.idl:
3395 * ksvg2/svg/SVGPathSeg.idl:
3396 * ksvg2/svg/SVGPathSegList.idl:
3397 * ksvg2/svg/SVGTransform.idl:
3398 * ksvg2/svg/SVGTransformList.idl:
3400 2006-09-24 Rob Buis <buis@kde.org>
3402 Reviewed by eseidel.
3404 Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
3405 WebKit does not handle fallback custom cursors
3406 Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
3407 WebKit does not properly handle SVG <cursor> element
3409 Add support for svg cursor images. Also make sure hotspot
3410 settings are handled correctly. Add tests for handling of css3
3411 cursor syntax with hotspots in strict and quirks mode. Finally
3414 * WebCore.xcodeproj/project.pbxproj:
3415 * css/CSSComputedStyleDeclaration.cpp:
3416 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3417 * css/CSSCursorImageValue.cpp: Added.
3418 (WebCore::CSSCursorImageValue::CSSCursorImageValue):
3419 (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3420 * css/CSSCursorImageValue.h: Added.
3421 (WebCore::CSSCursorImageValue::hotspot):
3422 * css/cssparser.cpp:
3423 (WebCore::CSSParser::parseValue):
3424 * css/cssstyleselector.cpp:
3425 (WebCore::CSSStyleSelector::applyProperty):
3426 * ksvg2/svg/SVGCursorElement.cpp:
3427 * manual-tests/css3-cursor-fallback-quirks.html: Added.
3428 * manual-tests/css3-cursor-fallback-strict.html: Added.
3429 * manual-tests/cursorfallback.xml: Added.
3430 * page/FrameView.cpp:
3431 (WebCore::selectCursor):
3432 * platform/Cursor.h:
3433 * platform/mac/CursorMac.mm:
3434 (WebCore::createCustomCursor):
3435 (WebCore::Cursor::Cursor):
3436 * platform/qt/CursorQt.cpp:
3437 (WebCore::Cursor::Cursor):
3438 * rendering/RenderStyle.cpp:
3439 (WebCore::StyleInheritedData::StyleInheritedData):
3440 (WebCore::StyleInheritedData::operator==):
3441 (WebCore::RenderStyle::diff):
3442 (WebCore::RenderStyle::addCursor):
3443 (WebCore::RenderStyle::addSVGCursor):
3444 (WebCore::RenderStyle::setCursorList):
3445 (WebCore::RenderStyle::clearCursorList):
3446 * rendering/RenderStyle.h:
3447 (WebCore::CursorData::CursorData):
3448 (WebCore::CursorList::operator[]):
3449 (WebCore::CursorList::size):
3450 (WebCore::CursorList::append):
3451 (WebCore::RenderStyle::cursors):
3453 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3457 Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
3458 Auto-generate the internal methods interfaces for the Objective-C bindings
3460 - Auto-generate the internal method declarations into their own files
3461 named in the form DOMFooBarInternal.h for class DOMFooBar.
3463 - Remove all use of DOM_cast from code.
3465 - Assorted cleanups.
3467 * WebCore.xcodeproj/project.pbxproj:
3468 * bindings/objc/DOM.mm:
3469 (-[DOMNode _initWithNode:WebCore::]):
3470 (-[DOMNode WebCore::]):
3471 (-[DOMRange dealloc]):
3472 (-[DOMRange finalize]):
3473 (-[DOMRange _initWithRange:WebCore::]):
3474 (-[DOMRange WebCore::]):
3475 (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3476 (-[DOMNodeFilter WebCore::]):
3477 (-[DOMNodeFilter dealloc]):
3478 (-[DOMNodeFilter finalize]):
3479 (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
3480 (-[DOMNodeIterator WebCore::]):
3481 (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
3482 (-[DOMTreeWalker WebCore::]):
3483 * bindings/objc/DOMAbstractView.mm:
3484 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
3485 * bindings/objc/DOMCSS.mm:
3486 (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
3487 (-[DOMCSSRule _initWithRule:WebCore::]):
3488 (-[DOMCSSValue _initWithValue:WebCore::]):
3489 * bindings/objc/DOMEvents.mm:
3490 (-[DOMEvent _initWithEvent:WebCore::]):
3491 * bindings/objc/DOMHTMLAppletElement.mm:
3492 (-[DOMHTMLAppletElement align]):
3493 (-[DOMHTMLAppletElement setAlign:]):
3494 (-[DOMHTMLAppletElement alt]):
3495 (-[DOMHTMLAppletElement setAlt:]):
3496 (-[DOMHTMLAppletElement archive]):
3497 (-[DOMHTMLAppletElement setArchive:]):
3498 (-[DOMHTMLAppletElement code]):
3499 (-[DOMHTMLAppletElement setCode:]):
3500 (-[DOMHTMLAppletElement codeBase]):
3501 (-[DOMHTMLAppletElement setCodeBase:]):
3502 (-[DOMHTMLAppletElement height]):
3503 (-[DOMHTMLAppletElement setHeight:]):
3504 (-[DOMHTMLAppletElement hspace]):
3505 (-[DOMHTMLAppletElement setHspace:]):
3506 (-[DOMHTMLAppletElement name]):
3507 (-[DOMHTMLAppletElement setName:]):
3508 (-[DOMHTMLAppletElement object]):
3509 (-[DOMHTMLAppletElement setObject:]):
3510 (-[DOMHTMLAppletElement vspace]):
3511 (-[DOMHTMLAppletElement setVspace:]):
3512 (-[DOMHTMLAppletElement width]):
3513 (-[DOMHTMLAppletElement setWidth:]):
3514 * bindings/objc/DOMInternal.h:
3518 * bindings/objc/DOMXPath.mm:
3519 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3520 * bindings/scripts/CodeGeneratorObjC.pm:
3522 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3524 Reviewed by eseidel.
3526 Fix Qt/Linux build after Dave's Scrollbar changes.
3528 * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3529 * platform/qt/TemporaryLinkStubs.cpp:
3530 (WebCore::ScrollBar::setProportion):
3531 (WebCore::PlatformScrollBar::updateThumbPosition):
3532 (WebCore::PlatformScrollBar::updateThumbProportion):
3534 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3536 Reviewed by eseidel.
3538 Qt/Linux build system changes: enable xpath/xslt by default.
3539 Offer possibility to change all of these using 'ccmake'.
3543 2006-09-24 Dave Hyatt <hyatt@apple.com>
3545 Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
3546 Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3547 the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3549 * platform/ScrollBar.cpp:
3550 (WebCore::ScrollBar::setValue):
3551 (WebCore::ScrollBar::setProportion):
3552 * platform/ScrollBar.h:
3553 (WebCore::ScrollBar::value):
3554 * platform/mac/PlatformScrollBar.h:
3555 * platform/mac/PlatformScrollBarMac.mm:
3556 (WebCore::PlatformScrollBar::updateThumbPosition):
3557 (WebCore::PlatformScrollBar::updateThumbProportion):
3558 * platform/win/PlatformScrollBar.h:
3559 * platform/win/TemporaryLinkStubs.cpp:
3560 (PlatformScrollBar::updateThumbPosition):
3561 (PlatformScrollBar::updateThumbProportion):
3562 * rendering/RenderLayer.cpp:
3563 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3565 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
3569 http://bugs.webkit.org/show_bug.cgi?id=4872
3570 XMLHttpRequest fails to throw an exception when there is a security violation
3571 (mismatching domains)
3573 Raise an exception if there is a security violation, and also in cases required by
3574 the current draft of XHR specification.
3576 * bindings/js/JSXMLHttpRequest.cpp:
3577 (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3578 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3579 reports one, and also if there were too few arguments passed.
3581 * bindings/js/kjs_binding.cpp:
3582 (KJS::setDOMException): Added support for custom XHR exceptions.
3584 * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3585 exception code range for XHR exceptions.
3587 * xml/xmlhttprequest.cpp:
3588 (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3589 (WebCore::XMLHttpRequest::send):
3590 (WebCore::XMLHttpRequest::setRequestHeader):
3591 (WebCore::XMLHttpRequest::getStatus):
3592 (WebCore::XMLHttpRequest::getStatusText):
3593 (WebCore::XMLHttpRequest::processSyncLoadResults):
3594 (WebCore::XMLHttpRequest::receivedAllData):
3595 (WebCore::XMLHttpRequest::receivedData):
3597 2006-09-22 Steve Falkenburg <sfalken@apple.com>
3599 Reviewed by Jeff Jenkins.
3603 * platform/cf/ResourceLoaderCFNet.cpp:
3604 (WebCore::willCacheResponse):
3606 2006-09-22 Justin Garcia <justin.garcia@apple.com>
3610 <http://bugs.webkit.org/show_bug.cgi?id=8029>
3611 Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3614 (WebCore::Document::clearSelectionIfNeeded):
3616 (WebCore::Element::contains):
3618 (WebCore::Node::traverseNextNode):
3619 (WebCore::Node::traverseNextSibling):
3620 (WebCore::Node::traversePreviousNodePostOrder):
3621 (WebCore::Node::checkAddChild):
3622 (WebCore::Node::isDescendantOf):
3624 * dom/NodeIterator.cpp:
3625 (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3626 * editing/ApplyStyleCommand.cpp:
3627 (WebCore::ApplyStyleCommand::applyBlockStyle):
3628 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3629 (WebCore::ApplyStyleCommand::applyInlineStyle):
3630 (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3631 * editing/CompositeEditCommand.cpp:
3632 (WebCore::CompositeEditCommand::mergeIdenticalElements):
3633 (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3634 * editing/DeleteSelectionCommand.cpp:
3635 (WebCore::updatePositionForNodeRemoval):
3636 (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3637 (WebCore::DeleteSelectionCommand::mergeParagraphs):
3638 * editing/FormatBlockCommand.cpp:
3639 (WebCore::FormatBlockCommand::doApply):
3640 * editing/IndentOutdentCommand.cpp:
3641 (WebCore::enclosingListOrBlockquote):
3642 * editing/Selection.cpp:
3643 (WebCore::Selection::validate):
3644 * editing/SelectionController.cpp:
3645 (WebCore::SelectionController::nodeWillBeRemoved):
3646 * editing/TextIterator.cpp:
3647 (WebCore::SimplifiedBackwardsTextIterator::advance):
3648 * editing/VisiblePosition.cpp:
3649 (WebCore::VisiblePosition::next):
3650 (WebCore::VisiblePosition::previous):
3651 (WebCore::VisiblePosition::canonicalPosition):
3652 (WebCore::isFirstVisiblePositionInNode):
3653 (WebCore::isLastVisiblePositionInNode):
3654 * editing/htmlediting.cpp:
3655 (WebCore::firstEditablePositionAfterPositionInRoot):
3656 (WebCore::lastEditablePositionBeforePositionInRoot):
3657 (WebCore::enclosingNodeWithTag):
3658 (WebCore::enclosingList):
3659 (WebCore::enclosingListChild):
3660 * editing/markup.cpp:
3661 (WebCore::createMarkup):
3663 2006-09-22 Timothy Hatcher <timothy@apple.com>
3667 - Added @property syntax to non-generated headers
3668 inside #ifndef BUILDING_ON_TIGER.
3669 - Changed the DOMEventTarget protocol to have have new versions
3670 of addEventListener and removeEventListener with named parameters.
3671 These old style methods can be removed once Mail changes to use
3672 the new methods <rdar://problem/4746649>.
3674 * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3675 * bindings/objc/DOM.mm:
3676 (-[DOMNode addEventListener:listener:useCapture:]):
3677 (-[DOMNode addEventListener:::]): call the new method
3678 (-[DOMNode removeEventListener:listener:useCapture:]):
3679 (-[DOMNode removeEventListener:::]): call the new method
3680 * bindings/objc/DOMAbstractView.h:
3681 * bindings/objc/DOMEventTarget.h:
3682 * bindings/objc/DOMHTMLAppletElement.h:
3683 * bindings/objc/DOMHTMLEmbedElement.h:
3684 * bindings/objc/DOMHTMLOptionElement.h:
3685 * bindings/objc/DOMObject.h:
3686 * bindings/objc/DOMRGBColor.h:
3688 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3692 Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3694 * platform/qt/FrameQt.cpp:
3695 * platform/qt/GraphicsContextQt.cpp:
3696 (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3697 (WebCore::GraphicsContext::origin):
3698 * platform/qt/PlatformScrollBar.h: Added.
3699 (WebCore::PlatformScrollBar::isWidget):
3700 * platform/qt/WidgetQt.cpp:
3701 (WebCore::Widget::invalidate):
3702 (WebCore::Widget::invalidateRect):
3704 2006-09-22 Dave Hyatt <hyatt@apple.com>
3706 Super-minor tweaks to the systemFont function on Mac.
3707 Set the generic family to None rather than to Serif, and
3708 don't waste time setting the computed size, since that is
3709 set from the specified size over in CSSStyleSelector anyway.
3711 * rendering/RenderThemeMac.mm:
3712 (WebCore::RenderThemeMac::systemFont):
3714 2006-09-22 Timothy Hatcher <timothy@apple.com>
3718 Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3719 take floats. There was already an implicit conversion to float/double
3720 when calling CGContextTranslateCTM or cairo_translate.
3722 * platform/GraphicsContext.h:
3723 * platform/cairo/GraphicsContextCairo.cpp:
3724 (WebCore::GraphicsContext::translate):
3725 * platform/cg/GraphicsContextCG.cpp:
3726 (WebCore::GraphicsContext::translate):
3728 2006-09-22 Brady Eidson <beidson@apple.com>
3732 Add redirect and other cleanup to ResourceLoaderWin.cpp
3733 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
3734 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
3736 * WebCore.xcodeproj/project.pbxproj:
3737 * platform/ResourceLoader.h:
3738 * platform/win/ResourceLoaderWin.cpp:
3739 (WebCore::ResourceLoaderWndProc):
3740 (WebCore::initializeOffScreenResourceLoaderWindow):
3741 (WebCore::ResourceLoader::onHandleCreated):
3742 (WebCore::ResourceLoader::onRequestRedirected):
3743 (WebCore::ResourceLoader::onRequestComplete):
3744 (WebCore::transferJobStatusCallback):
3746 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
3750 http://bugs.webkit.org/show_bug.cgi?id=10803
3751 REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
3753 * page/FrameView.cpp:
3754 (WebCore::FrameView::hoverTimerFired): Use the current event.
3756 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3760 Fix (last) svg memory leak.
3762 * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
3763 (SVGTransformable::parseTransformAttribute):
3765 2006-09-22 Eric Seidel <eric@eseidel.com>
3767 No review necessary, just removing a dead file.
3769 Remove unused file (added previously by mistake) to make room for real implementation.
3771 * platform/mac/BitmapImageMac.mm: Removed.
3773 2006-09-22 Dave Hyatt <hyatt@apple.com>
3775 Move PlatformScrollBar.h down into the platforms.
3777 Reviewed by andersca
3779 * platform/PlatformScrollBar.h: Removed.
3780 * platform/win/PlatformScrollBar.h: Added.
3781 * platform/mac/PlatformScrollBar.h: Added.
3783 2006-09-22 Dave Hyatt <hyatt@apple.com>
3785 Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
3786 any widget subsystems that don't have any underlying native objects backing the widgets.
3790 * platform/Widget.h:
3791 * platform/mac/WidgetMac.mm:
3792 (WebCore::Widget::invalidate):
3793 (WebCore::Widget::invalidateRect):
3794 * platform/win/TemporaryLinkStubs.cpp:
3795 (Widget::invalidate):
3796 (Widget::invalidateRect):
3798 2006-09-22 Rob Buis <buis@kd.org>
3800 Reviewed by eseidel.
3802 http://bugs.webkit.org/show_bug.cgi?id=10901
3803 Merge build fixes from unity
3807 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3809 Reviewed by eseidel.
3811 http://bugs.webkit.org/show_bug.cgi?id=10977
3812 SVGDocument does not expose 'rootElement' property
3814 Enable 'rootElement' property.
3816 * ksvg2/svg/SVGDocument.idl:
3818 2006-09-21 Steve Falkenburg <sfalken@apple.com>
3822 * platform/ResourceLoaderInternal.h:
3824 2006-09-21 Geoffrey Garen <ggaren@apple.com>
3826 build fixed. band happy.
3828 * platform/cg/GraphicsContextCG.cpp:
3829 (WebCore::GraphicsContext::translate):
3830 * platform/mac/WidgetMac.mm:
3832 2006-09-21 Geoffrey Garen <ggaren@apple.com>
3836 Some Widget refactoring.
3838 * WebCore.vcproj/WebCore/WebCore.vcproj:
3839 * bridge/mac/FrameMac.mm:
3840 * bridge/win/FrameWin.cpp:
3841 (WebCore::FrameWin::runJavaScriptAlert):
3842 (WebCore::FrameWin::runJavaScriptConfirm):
3843 * bridge/win/PageWin.cpp:
3844 (WebCore::Page::Page):
3845 (WebCore::rootWindowForFrame):
3846 * html/CanvasRenderingContext2D.cpp:
3847 (WebCore::CanvasRenderingContext2D::translate):
3848 * page/FrameView.cpp:
3849 (WebCore::FrameView::isFrameView):
3851 (WebCore::Page::setInstanceHandle):
3852 (WebCore::Page::instanceHandle):
3853 * platform/GraphicsContext.h:
3854 * platform/ScrollView.h:
3855 * platform/Widget.h:
3856 * platform/cairo/GraphicsContextCairo.cpp:
3857 (WebCore::GraphicsContext::translate):
3858 (WebCore::GraphicsContext::origin):
3859 * platform/mac/WidgetMac.mm:
3860 (WebCore::Widget::clearFocus):
3861 * platform/win/ResourceLoaderWin.cpp:
3862 (WebCore::initializeOffScreenResourceLoaderWindow):
3863 * platform/win/ScreenWin.cpp:
3864 (WebCore::monitorInfo):
3865 * platform/win/ScrollViewWin.cpp:
3866 (WebCore::ScrollView::updateContents):
3867 (WebCore::ScrollView::visibleWidth):
3868 (WebCore::ScrollView::visibleHeight):
3869 (WebCore::ScrollView::visibleContentRect):
3870 (WebCore::ScrollView::viewportToContents):
3871 (WebCore::ScrollView::contentsToViewport):
3872 (WebCore::ScrollView::scrollBy):
3873 (WebCore::ScrollView::updateScrollInfo):
3874 (WebCore::ScrollView::updateScrollBars):
3875 * platform/win/SharedTimerWin.cpp:
3876 (WebCore::initializeOffScreenTimerWindow):
3877 * platform/win/TemporaryLinkStubs.cpp:
3878 (FrameView::updateBorder):
3879 (ScrollView::paint):
3880 (GraphicsContext::clip):
3881 * platform/win/WidgetWin.cpp:
3882 (WebCore::Widget::Widget):
3883 (WebCore::Widget::parentWindow):
3884 (WebCore::Widget::setParentWindow):
3885 (WebCore::Widget::frameGeometry):
3886 (WebCore::Widget::hasFocus):
3887 (WebCore::Widget::setFocus):
3888 (WebCore::Widget::show):
3889 (WebCore::Widget::hide):
3890 (WebCore::Widget::setFrameGeometry):
3892 2006-09-22 Anders Carlsson <acarlsson@apple.com>
3896 * platform/TextEncoding.cpp:
3897 (WebCore::TextEncoding::backslashAsCurrencySymbol):
3898 Add comment clarifying why backslashAsCurrencySymbol is needed.
3900 2006-09-21 Sean Gies <seangies@apple.com>
3902 Reviewed by Adam Roben.
3904 Add utility functions to get and release HDC from GraphicsContext.
3906 * platform/GraphicsContext.h: Add utilities to get and release HDC.
3907 * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
3908 * rendering/RenderThemeWin.cpp: Switch to new utilities.
3910 2006-09-21 Justin Garcia <justin.garcia@apple.com>
3914 <rdar://problem/4426622>
3915 Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
3917 * editing/htmlediting.cpp:
3918 (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
3919 aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
3920 Got rid of uses of DepricatedString.
3922 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3924 Reviewed by eseidel.
3926 Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
3929 (WebCore::Frame::endIfNotLoading):
3931 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3933 Reviewed by eseidel.
3938 * kcanvas/device/qt/KCanvasClipperQt.h:
3939 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
3940 * platform/qt/FrameQt.cpp:
3941 (WebCore::FrameQt::isLoadTypeReload):
3942 (WebCore::FrameQt::originalRequestURL):
3943 * platform/qt/FrameQt.h:
3944 * platform/qt/GraphicsContextQt.cpp:
3945 (WebCore::GraphicsContext::concatCTM):
3946 * platform/qt/ScrollViewQt.cpp:
3947 (WebCore::ScrollView::wheelEvent):
3948 * platform/qt/TemporaryLinkStubs.cpp:
3949 (WebCore::IconDatabase::setIconURLForPageURL):
3951 2006-09-20 Justin Garcia <justin.garcia@apple.com>
3955 <http://bugs.webkit.org/show_bug.cgi?id=7165>
3956 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
3958 * editing/MoveSelectionCommand.cpp:
3959 (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
3960 to the position-to-move-to's document, not the fragment's document. The
3961 fragment's document is the document used to create the fragment and is irrelavant.
3963 === Safari-521.27 ===
3965 2006-09-21 Brady Eidson <beidson@apple.com>
3969 When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
3970 This fixes Spinneret so it won't crash on its first load!
3973 (WebCore::Frame::endIfNotLoading):
3975 2006-09-21 Brady Eidson <beidson@apple.com>
3979 * platform/win/TemporaryLinkStubs.cpp:
3980 (ScrollView::wheelEvent):
3982 2006-09-20 Rob Buis <buis@kde.org>
3984 Reviewed by eseidel.
3986 http://bugs.webkit.org/show_bug.cgi?id=10946
3987 new marker code draws end-marker in wrong place
3989 Keep track of the start of the subpath so we can handle
3990 closeTo/moveTo correctly.
3992 * kcanvas/RenderPath.cpp:
3993 (WebCore::DrawMarkersData::DrawMarkersData):
3994 (WebCore::updateMarkerDataForElement):
3996 2006-09-21 David Hyatt <hyatt@apple.com>
3998 Wheel scrolling prep for Win32.
4000 WARNING: NO TEST CASES ADDED OR CHANGED
4002 * platform/PlatformWheelEvent.h:
4003 * platform/ScrollBar.h:
4004 * platform/ScrollView.h:
4005 * platform/mac/ScrollViewMac.mm:
4006 (WebCore::ScrollView::wheelEvent):
4007 * rendering/RenderLayer.cpp:
4009 2006-09-20 Timothy Hatcher <timothy@apple.com>
4013 Bug 10917: REGRESSION (r16027): iFrame transparency broken
4014 http://bugs.webkit.org/show_bug.cgi?id=10917
4016 Don't paint the base background color if we transparent.
4018 * rendering/RenderBox.cpp:
4019 (WebCore::RenderBox::paintBackgroundExtended):
4021 2006-09-20 Adam Roben <aroben@apple.com>
4023 Reviewed by andersca.
4025 * platform/FileChooser.h: Remove no-longer-necessary namespace std
4027 2006-09-20 Eric Seidel <eric@eseidel.com>
4031 Cleanup style in KCanvas.
4032 Remove extra white-space, unneeded arguments, etc.
4034 * WebCore.xcodeproj/project.pbxproj:
4035 * kcanvas/KCanvasClipper.cpp:
4036 (WebCore::operator<<):
4037 (WebCore::KCanvasClipper::externalRepresentation):
4038 * kcanvas/KCanvasClipper.h:
4039 * kcanvas/KCanvasFilters.cpp:
4040 (WebCore::KCanvasFilter::externalRepresentation):
4041 (WebCore::operator<<):
4042 (WebCore::KCanvasFilterEffect::externalRepresentation):
4043 (WebCore::KCPointLightSource::externalRepresentation):
4044 (WebCore::KCSpotLightSource::externalRepresentation):
4045 (WebCore::KCDistantLightSource::externalRepresentation):
4046 (WebCore::KCanvasFEBlend::externalRepresentation):
4047 (WebCore::KCanvasFEColorMatrix::externalRepresentation):
4048 (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
4049 (WebCore::KCanvasFEComposite::externalRepresentation):
4050 (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
4051 (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
4052 (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
4053 (WebCore::KCanvasFEFlood::externalRepresentation):
4054 (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
4055 (WebCore::KCanvasFEImage::externalRepresentation):
4056 (WebCore::KCanvasFEMerge::externalRepresentation):
4057 (WebCore::KCanvasFEMorphology::externalRepresentation):
4058 (WebCore::KCanvasFEOffset::externalRepresentation):
4059 (WebCore::KCanvasFESpecularLighting::externalRepresentation):
4060 (WebCore::KCanvasFETile::externalRepresentation):
4061 (WebCore::KCanvasFETurbulence::externalRepresentation):
4062 * kcanvas/KCanvasFilters.h:
4063 (WebCore::KCanvasFEDiffuseLighting::lightSource):
4064 (WebCore::KCanvasFESpecularLighting::lightSource):
4065 * kcanvas/KCanvasImage.h:
4066 * kcanvas/KCanvasMarker.cpp:
4067 (WebCore::KCanvasMarker::externalRepresentation):
4068 * kcanvas/KCanvasMarker.h:
4069 * kcanvas/KCanvasResource.cpp:
4070 (WebCore::operator<<):
4071 * kcanvas/KCanvasResource.h:
4072 * kcanvas/KCanvasTreeDebug.cpp:
4073 (WebCore::operator<<):
4074 (WebCore::writeIndent):
4075 (WebCore::writeStyle):
4077 (WebCore::writeRenderResources):
4078 * kcanvas/KCanvasTreeDebug.h:
4079 (WebCore::operator<<):
4080 * kcanvas/RenderForeignObject.cpp:
4081 (WebCore::RenderForeignObject::paint):
4082 * kcanvas/RenderPath.cpp:
4083 (WebCore::RenderPath::paint):
4084 (WebCore::drawStartAndMidMarkers):
4085 * kcanvas/RenderSVGContainer.cpp:
4086 (WebCore::RenderSVGContainer::paint):
4087 * kcanvas/RenderSVGImage.cpp:
4088 (WebCore::RenderSVGImage::translateForAttributes):
4089 * kcanvas/RenderSVGImage.h:
4090 * kcanvas/device/KRenderingDevice.cpp:
4091 (WebCore::KRenderingDevice::currentContext):
4092 (WebCore::KRenderingDevice::popContext):
4093 (WebCore::KRenderingDevice::pushContext):
4094 * kcanvas/device/KRenderingDevice.h:
4095 * kcanvas/device/KRenderingFillPainter.h:
4096 * kcanvas/device/KRenderingPaintServer.h:
4097 (WebCore::KRenderingPaintServer::KRenderingPaintServer):
4098 (WebCore::KRenderingPaintServer::activeClient):
4099 (WebCore::KRenderingPaintServer::setActiveClient):
4100 * kcanvas/device/KRenderingPaintServerGradient.cpp:
4101 (WebCore::operator<<):
4102 (WebCore::KRenderingPaintServerGradient::externalRepresentation):
4103 (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
4104 (WebCore::KRenderingPaintServerGradient::listener):
4105 (WebCore::KRenderingPaintServerGradient::setListener):
4106 (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
4107 * kcanvas/device/KRenderingPaintServerGradient.h:
4108 * kcanvas/device/KRenderingPaintServerPattern.cpp:
4109 (WebCore::KRenderingPaintServerPattern::tile):
4110 (WebCore::KRenderingPaintServerPattern::setTile):
4111 (WebCore::KRenderingPaintServerPattern::listener):
4112 (WebCore::KRenderingPaintServerPattern::setListener):
4113 (WebCore::KRenderingPaintServerPattern::externalRepresentation):
4114 * kcanvas/device/KRenderingPaintServerPattern.h:
4115 * kcanvas/device/KRenderingPaintServerSolid.cpp:
4116 (WebCore::KRenderingPaintServerSolid::externalRepresentation):
4117 * kcanvas/device/KRenderingPaintServerSolid.h:
4118 * kcanvas/device/KRenderingStrokePainter.cpp:
4119 (WebCore::KRenderingStrokePainter::strokeMiterLimit):
4120 (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
4121 * kcanvas/device/KRenderingStrokePainter.h:
4122 * kcanvas/device/quartz/KCanvasFilterQuartz.h:
4123 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
4124 (WebCore::KCanvasFilterQuartz::prepareFilter):
4125 * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
4126 * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
4127 (WebCore::KCanvasMaskerQuartz::applyMask):
4128 * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
4129 (WebCore::KCanvasImageQuartz::init):
4130 * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
4131 (WebCore::KCanvasClipperQuartz::applyClip):
4132 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
4133 * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
4134 (WebCore::KRenderingDeviceQuartz::quartzContext):
4135 (WebCore::KRenderingDeviceQuartz::contextForImage):
4136 (WebCore::KRenderingDeviceQuartz::createPaintServer):
4137 (WebCore::KRenderingDeviceQuartz::createResource):
4138 (WebCore::KRenderingDeviceQuartz::createFilterEffect):
4139 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
4140 (WebCore::CGShadingRefForLinearGradient):
4141 (WebCore::CGShadingRefForRadialGradient):
4142 (WebCore::KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
4143 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
4144 * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
4145 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
4146 (WebCore::KRenderingPaintServerQuartzHelper::strokePath):
4147 (WebCore::KRenderingPaintServerQuartzHelper::clipToStrokePath):
4148 (WebCore::KRenderingPaintServerQuartzHelper::fillPath):
4149 (WebCore::KRenderingPaintServerQuartzHelper::clipToFillPath):
4150 (WebCore::KRenderingPaintServerSolidQuartz::draw):
4151 (WebCore::KRenderingPaintServerSolidQuartz::setup):
4152 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
4153 (WebCore::KRenderingPaintServerPatternQuartz::setup):
4154 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
4155 (WebCore::KRenderingPaintServerPatternQuartz::teardown):
4156 * kcanvas/device/quartz/QuartzSupport.h:
4157 * kcanvas/device/quartz/QuartzSupport.mm:
4158 (WebCore::applyStrokeStyleToContext):
4160 2006-09-20 Anders Carlsson <acarlsson@apple.com>
4162 Reviewed by Dave Hyatt.
4164 * dom/WheelEvent.cpp:
4165 (WebCore::WheelEvent::WheelEvent):
4166 Use lroundf instead of lround since deltas are floats.
4168 2006-09-20 Julien Palmas <julien.palmas@gmail.com>
4170 Reviewed by eseidel. Landed by eseidel.
4172 Test: svg/custom/pattern-y-offset.svg
4174 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
4175 (WebCore::KRenderingPaintServerPatternQuartz::setup):
4177 2006-09-20 David Hyatt <hyatt@apple.com>
4179 Add a new wheelEvent method to ScrollView. Platforms that wish
4180 to handle the wheel event for the scroll view themselves can then
4181 do so there. (Mac lets the underlying NSScrollView do it for now.)
4183 * page/FrameView.cpp:
4184 (WebCore::FrameView::handleWheelEvent):
4185 * platform/ScrollView.h:
4186 (WebCore::ScrollView::wheelEvent):
4188 2006-09-20 Brady Eidson <beidson@apple.com>
4190 Reviewed by Tim Omernick
4192 Part of fixing a crash Tim O showed me that I missed in a release build.
4193 WebKit should be able to call through the bridge to WebCore no matter what -
4194 Replace the _iconDB member with calls to IconDatabase::sharedIconDatabase()
4196 * bridge/mac/WebCoreIconDatabaseBridge.h:
4197 * bridge/mac/WebCoreIconDatabaseBridge.mm:
4198 (-[WebCoreIconDatabaseBridge closeSharedDatabase]):
4199 (-[WebCoreIconDatabaseBridge isOpen]):
4200 (-[WebCoreIconDatabaseBridge removeAllIcons]):
4201 (-[WebCoreIconDatabaseBridge _isEmpty]):
4202 (-[WebCoreIconDatabaseBridge isIconExpiredForIconURL:]):
4203 (-[WebCoreIconDatabaseBridge setPrivateBrowsingEnabled:]):
4204 (-[WebCoreIconDatabaseBridge privateBrowsingEnabled]):
4205 (-[WebCoreIconDatabaseBridge iconForPageURL:withSize:]):
4206 (-[WebCoreIconDatabaseBridge iconURLForPageURL:]):
4207 (-[WebCoreIconDatabaseBridge defaultIconWithSize:]):
4208 (-[WebCoreIconDatabaseBridge retainIconForURL:]):
4209 (-[WebCoreIconDatabaseBridge releaseIconForURL:]):
4210 (-[WebCoreIconDatabaseBridge _setIconData:forIconURL:]):
4211 (-[WebCoreIconDatabaseBridge _setHaveNoIconForIconURL:]):
4212 (-[WebCoreIconDatabaseBridge _setIconURL:forPageURL:]):
4213 (-[WebCoreIconDatabaseBridge _hasEntryForIconURL:]):
4214 (-[WebCoreIconDatabaseBridge _setEnabled:]):
4215 (-[WebCoreIconDatabaseBridge _isEnabled]):
4217 2006-09-20 Anders Carlsson <acarlsson@apple.com>
4221 Add String::split which returns a Vector of Strings and use it instead of
4222 DeprecatedStringList.
4224 * bindings/js/kjs_events.cpp:
4225 (KJS::Clipboard::getValueProperty):
4226 * bindings/js/kjs_window.cpp:
4227 (KJS::parseModalDialogFeatures):
4228 * css/MediaList.cpp:
4229 (WebCore::MediaList::setMediaText):
4231 * html/HTMLFormElement.cpp:
4232 (WebCore::HTMLFormElement::formData):
4233 * html/HTMLLinkElement.cpp:
4234 (WebCore::HTMLLinkElement::tokenizeRelAttribute):
4235 * platform/PlatformString.h:
4236 * platform/String.cpp:
4237 (WebCore::String::split):
4238 * platform/StringImpl.cpp:
4239 * platform/StringImpl.h:
4240 * platform/mac/ClipboardMac.h:
4241 * platform/mac/ClipboardMac.mm:
4242 (WebCore::ClipboardMac::types):
4244 2006-09-20 Justin Garcia <justin.garcia@apple.com>
4246 Reviewed by harrison
4248 * css/cssstyleselector.cpp:
4249 (WebCore::CSSStyleSelector::adjustRenderStyle): Don't call
4250 HTMLElement::isContentEditable just to check the Frame's editability, since
4251 it calls updateRenderering, which can get us into infinite recursion.
4253 2006-09-20 Brady Eidson <beidson@apple.com>
4257 Cleaned up my last patch alot, and made the WebCore icon database disabled by default
4259 * loader/icon/IconDatabase.cpp:
4260 (WebCore::IconDatabase::IconDatabase): Disabled by default
4261 (WebCore::IconDatabase::removeAllIcons): Respect just isOpen() (disabled database will always be closed)
4262 (WebCore::IconDatabase::setPrivateBrowsingEnabled): Ditto
4263 (WebCore::IconDatabase::iconForPageURL): Ditto
4264 (WebCore::IconDatabase::isIconExpiredForIconURL): Ditto
4265 (WebCore::IconDatabase::iconURLForPageURL): Ditto
4266 (WebCore::IconDatabase::retainIconForPageURL): Ditto
4267 (WebCore::IconDatabase::releaseIconForPageURL): Ditto
4268 (WebCore::IconDatabase::setIconDataForIconURL): Ditto
4269 (WebCore::IconDatabase::setIconURLForPageURL): Ditto
4270 (WebCore::IconDatabase::hasEntryForIconURL): Ditto
4271 (WebCore::IconDatabase::setEnabled): Fixed a big bug here!
4273 2006-09-20 Adam Roben <aroben@apple.com>
4277 Fixes http://bugs.webkit.org/show_bug.cgi?id=10935
4278 REGRESSION: file upload control with direction:rtl or text-align:right