1 2006-10-09 Anders Carlsson <acarlsson@apple.com>
3 * bridge/win/FrameWin.h:
4 Add function declaration.
6 2006-10-09 Anders Carlsson <acarlsson@apple.com>
8 * platform/win/TemporaryLinkStubs.cpp:
9 (FrameWin::createJavaAppletWidget):
10 Try fixing the Win32 build.
12 2006-10-09 Anders Carlsson <acarlsson@apple.com>
16 Move applet widget creation to Frame and get rid of JavaAppletWidget.
17 * WebCore.xcodeproj/project.pbxproj:
18 * bridge/JavaAppletWidget.h: Removed.
19 * bridge/mac/FrameMac.h:
20 * bridge/mac/FrameMac.mm:
21 (WebCore::FrameMac::createJavaAppletWidget):
22 * bridge/mac/JavaAppletWidget.mm: Removed.
24 * rendering/RenderApplet.cpp:
25 (WebCore::RenderApplet::createWidgetIfNecessary):
27 2006-10-09 Mitz Pettel <mitz@webkit.org>
31 - http://bugs.webkit.org/show_bug.cgi?id=11220
32 Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
34 Subversion does not support resource forks and HFS metadata, so
35 the resources for this test need to be on a disk image.
37 * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
38 * manual-tests/resources/plain-text-paste.dmg: Added.
39 * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
40 * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
41 * manual-tests/resources/plain-text-paste/._4.txt: Removed.
42 * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
43 * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
44 * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
45 * manual-tests/resources/plain-text-paste/3.gif: Removed.
46 * manual-tests/resources/plain-text-paste/4.txt: Removed.
47 * manual-tests/resources/plain-text-paste/5.webloc: Removed.
49 2006-10-09 Rob Buis <buis@kde.org>
53 http://bugs.webkit.org/show_bug.cgi?id=11217
54 Cleanup svg coding style
56 Cleanup coding style in filter classes.
58 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
59 (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
60 (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
61 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
62 * ksvg2/svg/SVGFEBlendElement.cpp:
63 (WebCore::SVGFEBlendElement::SVGFEBlendElement):
64 (WebCore::SVGFEBlendElement::parseMappedAttribute):
65 (WebCore::SVGFEBlendElement::filterEffect):
66 * ksvg2/svg/SVGFEBlendElement.h:
67 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
68 (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
69 (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
70 (WebCore::SVGFEColorMatrixElement::filterEffect):
71 * ksvg2/svg/SVGFEColorMatrixElement.h:
72 * ksvg2/svg/SVGFECompositeElement.cpp:
73 (WebCore::SVGFECompositeElement::parseMappedAttribute):
74 * ksvg2/svg/SVGFECompositeElement.h:
75 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
76 (WebCore::SVGFEDisplacementMapElement::stringToChannel):
77 * ksvg2/svg/SVGFEDisplacementMapElement.h:
78 * ksvg2/svg/SVGFEFloodElement.cpp:
79 (WebCore::SVGFEFloodElement::filterEffect):
80 * ksvg2/svg/SVGFEFuncAElement.cpp:
81 (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
82 * ksvg2/svg/SVGFEFuncBElement.cpp:
83 (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
84 * ksvg2/svg/SVGFEFuncGElement.cpp:
85 (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
86 * ksvg2/svg/SVGFEFuncRElement.cpp:
87 (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
88 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
89 (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
90 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
91 (WebCore::SVGFEGaussianBlurElement::filterEffect):
92 * ksvg2/svg/SVGFEGaussianBlurElement.h:
93 * ksvg2/svg/SVGFELightElement.cpp:
94 (WebCore::SVGFELightElement::SVGFELightElement):
95 (WebCore::SVGFELightElement::parseMappedAttribute):
96 * ksvg2/svg/SVGFELightElement.h:
97 * ksvg2/svg/SVGFEMergeElement.cpp:
98 (WebCore::SVGFEMergeElement::SVGFEMergeElement):
100 2006-10-09 Rob Buis <buis@kde.org>
104 http://bugs.webkit.org/show_bug.cgi?id=11217
105 Cleanup svg coding style
107 Cleanup coding style in SVGPath* classes.
109 * ksvg2/svg/SVGPathElement.cpp:
110 (WebCore::SVGPathElement::SVGPathElement):
111 (WebCore::SVGPathElement::getPointAtLength):
112 (WebCore::SVGPathElement::createSVGPathSegClosePath):
113 (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
114 (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
115 (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
116 (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
117 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
118 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
119 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
120 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
121 (WebCore::SVGPathElement::createSVGPathSegArcAbs):
122 (WebCore::SVGPathElement::createSVGPathSegArcRel):
123 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
124 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
125 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
126 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
127 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
128 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
129 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
130 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
131 (WebCore::SVGPathElement::svgMoveTo):
132 (WebCore::SVGPathElement::svgLineTo):
133 (WebCore::SVGPathElement::svgLineToHorizontal):
134 (WebCore::SVGPathElement::svgLineToVertical):
135 (WebCore::SVGPathElement::svgCurveToCubic):
136 (WebCore::SVGPathElement::svgCurveToCubicSmooth):
137 (WebCore::SVGPathElement::svgCurveToQuadratic):
138 (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
139 (WebCore::SVGPathElement::svgArcTo):
140 (WebCore::SVGPathElement::parseMappedAttribute):
141 (WebCore::SVGPathElement::pathSegList):
142 (WebCore::SVGPathElement::normalizedPathSegList):
143 (WebCore::SVGPathElement::animatedPathSegList):
144 (WebCore::SVGPathElement::animatedNormalizedPathSegList):
145 (WebCore::SVGPathElement::toPathData):
146 * ksvg2/svg/SVGPathElement.h:
147 (WebCore::SVGPathElement::rendererIsNeeded):
148 * ksvg2/svg/SVGPathSeg.h:
149 * ksvg2/svg/SVGPathSegArc.cpp:
151 2006-10-09 Rob Buis <buis@kde.org>
155 http://bugs.webkit.org/show_bug.cgi?id=11217
156 Cleanup svg coding style
158 Cleanup coding style in svg shape classes.
160 * ksvg2/svg/SVGCircleElement.cpp:
161 (WebCore::SVGCircleElement::SVGCircleElement):
162 (WebCore::SVGCircleElement::parseMappedAttribute):
163 (WebCore::SVGCircleElement::pushAttributeContext):
164 * ksvg2/svg/SVGCircleElement.h:
165 (WebCore::SVGCircleElement::rendererIsNeeded):
166 * ksvg2/svg/SVGEllipseElement.cpp:
167 * ksvg2/svg/SVGEllipseElement.h:
168 (WebCore::SVGEllipseElement::rendererIsNeeded):
169 * ksvg2/svg/SVGLineElement.cpp:
170 (WebCore::SVGLineElement::parseMappedAttribute):
171 (WebCore::SVGLineElement::pushAttributeContext):
172 * ksvg2/svg/SVGLineElement.h:
173 (WebCore::SVGLineElement::rendererIsNeeded):
174 * ksvg2/svg/SVGPolyElement.cpp:
175 (WebCore::SVGPolyElement::SVGPolyElement):
176 (WebCore::SVGPolyElement::points):
177 (WebCore::SVGPolyElement::animatedPoints):
178 (WebCore::SVGPolyElement::parseMappedAttribute):
179 (WebCore::SVGPolyElement::notifyAttributeChange):
180 * ksvg2/svg/SVGPolyElement.h:
181 (WebCore::SVGPolyElement::rendererIsNeeded):
182 * ksvg2/svg/SVGPolygonElement.cpp:
183 (WebCore::SVGPolygonElement::SVGPolygonElement):
184 (WebCore::SVGPolygonElement::toPathData):
185 * ksvg2/svg/SVGPolygonElement.h:
186 * ksvg2/svg/SVGPolylineElement.cpp:
187 (WebCore::SVGPolylineElement::SVGPolylineElement):
188 (WebCore::SVGPolylineElement::toPathData):
189 * ksvg2/svg/SVGPolylineElement.h:
190 * ksvg2/svg/SVGRectElement.cpp:
191 (WebCore::SVGRectElement::parseMappedAttribute):
192 (WebCore::SVGRectElement::pushAttributeContext):
193 * ksvg2/svg/SVGRectElement.h:
194 (WebCore::SVGRectElement::rendererIsNeeded):
196 2006-10-08 Darin Adler <darin@apple.com>
200 - added a bit more WebCoreSystemInterface
202 wkGetNSURLResponseCalculatedExpiration
203 wkGetNSURLResponseLastModifiedDate
204 wkGetNSURLResponseMustRevalidate
206 * WebCore.exp: Added the new symbols.
207 * platform/mac/WebCoreSystemInterface.h: Ditto.
208 * platform/mac/WebCoreSystemInterface.mm: Ditto.
210 - quiet down the code generation script
212 * bindings/scripts/CodeGenerator.pm:
214 2006-10-08 Maciej Stachowiak <mjs@apple.com>
218 - more code laundering - add wkSupportsMultipartXMixedReplace
221 * platform/mac/WebCoreSystemInterface.h:
222 * platform/mac/WebCoreSystemInterface.mm:
224 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
226 Reviewed by Darin and Oliver.
228 Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
230 * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
231 (WebCore::GraphicsContext::drawConvexPolygon):
233 2006-10-08 Anders Carlsson <acarlsson@apple.com>
238 (WebCore::Frame::submitForm):
239 No need to use latin1() here.
241 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
245 Kill warnings when generating IDL files on Qt/Linux, as the
246 SOURCE_ROOT environment variable is not defined (and not needed) for us.
248 * bindings/scripts/CodeGenerator.pm:
250 2006-10-08 Maciej Stachowiak <mjs@apple.com>
254 - split didNotOpenURL: into general and page-cache-specific parts
256 * bridge/mac/WebCoreFrameBridge.h:
257 * bridge/mac/WebCoreFrameBridge.mm:
258 (-[WebCoreFrameBridge didNotOpenURL:]):
259 (-[WebCoreFrameBridge invalidatePageCache:]):
261 2006-10-08 Anders Carlsson <acarlsson@apple.com>
266 Remove DeprecatedStringList.h include.
269 (WebCore::Frame::submitForm):
270 Don't remove "attach" from mailto URLs, we don't do it anywhere else.
272 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
276 Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
277 Yet another round of Objective-C SVG DOM bindings auto-generation
279 - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
280 DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
281 DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
282 DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
283 DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
284 DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
285 DOMSVGZoomAndPan and DOMSVGZoomEvent.
287 - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
288 using the new [ConvertFromString] property.
290 - Add forward declarations for NS* types to auto-generated classes.
292 * DerivedSources.make:
293 * WebCore.xcodeproj/project.pbxproj:
294 * bindings/objc/DOMHTMLAppletElement.mm: Removed.
295 * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
296 * bindings/objc/DOMInternal.h:
297 * bindings/objc/DOMSVG.h:
298 * bindings/scripts/CodeGeneratorObjC.pm:
299 * html/HTMLAppletElement.idl:
300 * html/HTMLEmbedElement.idl:
301 * ksvg2/svg/SVGPatternElement.idl:
302 * ksvg2/svg/SVGPolygonElement.idl:
303 * ksvg2/svg/SVGPolylineElement.idl:
304 * ksvg2/svg/SVGRadialGradientElement.idl:
305 * ksvg2/svg/SVGRenderingIntent.idl:
306 * ksvg2/svg/SVGScriptElement.idl:
307 * ksvg2/svg/SVGSetElement.idl:
308 * ksvg2/svg/SVGStopElement.idl:
309 * ksvg2/svg/SVGSwitchElement.idl:
310 * ksvg2/svg/SVGSymbolElement.idl:
311 * ksvg2/svg/SVGTRefElement.idl:
312 * ksvg2/svg/SVGTSpanElement.idl:
313 * ksvg2/svg/SVGTextContentElement.idl:
314 * ksvg2/svg/SVGTextElement.idl:
315 * ksvg2/svg/SVGTextPositioningElement.idl:
316 * ksvg2/svg/SVGTitleElement.idl:
317 * ksvg2/svg/SVGUseElement.idl:
318 * ksvg2/svg/SVGViewElement.idl:
319 * ksvg2/svg/SVGZoomEvent.idl:
321 2006-10-07 Anders Carlsson <acarlsson@apple.com>
325 Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
327 (WebCore::Loader::servePendingRequests):
329 2006-10-07 Anders Carlsson <acarlsson@apple.com>
333 Convert a bunch of RefPtr<StringImpl> to String.
335 * bridge/mac/FrameMac.h:
336 * bridge/mac/FrameMac.mm:
337 (WebCore::FrameMac::didTellBridgeAboutLoad):
338 (WebCore::FrameMac::haveToldBridgeAboutLoad):
339 * dom/BeforeUnloadEvent.cpp:
340 (WebCore::BeforeUnloadEvent::storeResult):
341 * dom/BeforeUnloadEvent.h:
342 (WebCore::BeforeUnloadEvent::result):
344 (WebCore::Document::createEntityReference):
346 (WebCore::Entity::Entity):
347 (WebCore::Entity::nodeName):
348 (WebCore::Entity::toString):
350 (WebCore::Entity::publicId):
351 (WebCore::Entity::systemId):
352 (WebCore::Entity::notationName):
353 * dom/EntityReference.cpp:
354 (WebCore::EntityReference::EntityReference):
355 (WebCore::EntityReference::nodeName):
356 (WebCore::EntityReference::cloneNode):
357 (WebCore::EntityReference::toString):
358 * dom/EntityReference.h:
359 * dom/KeyboardEvent.cpp:
360 (WebCore::KeyboardEvent::KeyboardEvent):
361 (WebCore::KeyboardEvent::initKeyboardEvent):
362 * dom/KeyboardEvent.h:
363 (WebCore::KeyboardEvent::keyIdentifier):
364 * dom/MutationEvent.cpp:
365 (WebCore::MutationEvent::MutationEvent):
366 (WebCore::MutationEvent::initMutationEvent):
367 * dom/MutationEvent.h:
368 (WebCore::MutationEvent::prevValue):
369 (WebCore::MutationEvent::newValue):
370 (WebCore::MutationEvent::attrName):
372 (WebCore::Notation::Notation):
373 (WebCore::Notation::nodeName):
375 (WebCore::Notation::publicId):
376 (WebCore::Notation::systemId):
377 * dom/ProcessingInstruction.cpp:
378 (WebCore::ProcessingInstruction::ProcessingInstruction):
379 (WebCore::ProcessingInstruction::setData):
380 (WebCore::ProcessingInstruction::nodeName):
381 (WebCore::ProcessingInstruction::nodeValue):
382 (WebCore::ProcessingInstruction::cloneNode):
383 (WebCore::ProcessingInstruction::checkStyleSheet):
384 (WebCore::ProcessingInstruction::toString):
385 * dom/ProcessingInstruction.h:
386 (WebCore::ProcessingInstruction::target):
387 (WebCore::ProcessingInstruction::data):
388 (WebCore::ProcessingInstruction::localHref):
390 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
394 Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
395 10 more SVG Objective-C auto-generated bindings
397 - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
398 DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
399 DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
400 DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
402 - Auto-generate the text method for DOMRange.
404 * DerivedSources.make:
405 * WebCore.xcodeproj/project.pbxproj:
406 * bindings/objc/DOM.mm:
407 * bindings/objc/DOMExtensions.h:
408 * bindings/objc/DOMInternal.h:
409 * bindings/objc/DOMPrivate.h:
410 * bindings/objc/DOMRGBColor.mm:
411 * bindings/objc/DOMSVG.h:
412 * bindings/objc/PublicDOMInterfaces.h:
413 * bindings/scripts/CodeGeneratorObjC.pm:
415 * ksvg2/svg/SVGFilterElement.cpp:
416 * ksvg2/svg/SVGFilterElement.h:
417 * ksvg2/svg/SVGFilterElement.idl:
418 * ksvg2/svg/SVGForeignObjectElement.idl:
419 * ksvg2/svg/SVGGElement.idl:
420 * ksvg2/svg/SVGGradientElement.idl:
421 * ksvg2/svg/SVGImageElement.idl:
422 * ksvg2/svg/SVGLineElement.idl:
423 * ksvg2/svg/SVGLinearGradientElement.idl:
424 * ksvg2/svg/SVGMarkerElement.idl:
425 * ksvg2/svg/SVGMaskElement.idl:
426 * ksvg2/svg/SVGPaint.idl:
428 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
432 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
433 Auto-generate a few more Objective-C DOM interfaces
435 - Fully auto-generate DOMAbstractView and DOMRange.
437 - Auto-generate just the interface for DOMRGBColor.
439 - Add DOMRanges.h as the new top level file for Ranges
442 - Add DOMRanges.h and DOMXPath.h to DOM.mm
444 * DerivedSources.make:
445 * WebCore.xcodeproj/project.pbxproj:
446 * bindings/objc/DOM.h:
447 * bindings/objc/DOM.mm:
448 * bindings/objc/DOMAbstractView.h: Removed.
449 * bindings/objc/DOMAbstractView.mm: Removed.
450 * bindings/objc/DOMInternal.h:
451 * bindings/objc/DOMPrivate.h:
452 * bindings/objc/DOMRGBColor.h: Removed.
453 * bindings/objc/DOMRGBColor.mm:
454 * bindings/objc/DOMRange.h: Removed.
455 * bindings/objc/DOMRanges.h: Added.
456 * bindings/objc/PublicDOMInterfaces.h:
457 * bindings/scripts/CodeGeneratorObjC.pm:
460 * page/AbstractView.idl: Added.
462 2006-10-07 Andrew Wellington <proton@wiretapped.net>
466 Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
467 http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
469 Return null when there is no frame. This matches Firefox.
471 * bindings/js/kjs_html.cpp:
472 (KJS::JSHTMLDocument::getValueProperty):
474 2006-10-07 David Hyatt <hyatt@apple.com>
476 Implement scroll corner painting (a white rect fill) for overflow areas to cover up
477 scrollbar joins properly.
479 Refactor painting of scrollbars and resizers into common functions. Eliminate the
480 extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
484 * page/FrameView.cpp:
485 (WebCore::selectCursor):
486 (WebCore::FrameView::handleMouseMoveEvent):
487 * platform/mac/PlatformScrollBar.h:
488 (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
489 (WebCore::PlatformScrollbar::verticalScrollbarWidth):
490 * rendering/RenderLayer.cpp:
491 (WebCore::RenderLayer::RenderLayer):
492 (WebCore::RenderLayer::~RenderLayer):
493 (WebCore::RenderLayer::updateLayerPositions):
494 (WebCore::scrollCornerRect):
495 (WebCore::RenderLayer::positionOverflowControls):
496 (WebCore::RenderLayer::paintOverflowControls):
497 (WebCore::RenderLayer::isPointInResizeControl):
498 (WebCore::RenderLayer::paintLayer):
499 * rendering/RenderLayer.h:
501 2006-10-07 Mark Rowe <bdash@webkit.org>
505 Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
506 matching recent ResourceLoader changes.
508 * platform/gdk/FrameGdk.cpp:
509 (WebCore::FrameGdk::openURL):
510 (WebCore::FrameGdk::urlSelected):
511 * platform/gdk/PlatformScrollBar.h:
512 * platform/gdk/ResourceLoaderCurl.cpp:
513 (WebCore::ResourceLoader::start):
514 * platform/gdk/ScrollViewGdk.cpp:
515 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
516 (WebCore::ScrollView::resizeContents):
517 (WebCore::ScrollView::scrollBy):
518 (WebCore::ScrollView::hScrollbarMode):
519 (WebCore::ScrollView::vScrollbarMode):
520 (WebCore::ScrollView::suppressScrollbars):
521 (WebCore::ScrollView::setHScrollbarMode):
522 (WebCore::ScrollView::setVScrollbarMode):
523 (WebCore::ScrollView::setScrollbarsMode):
524 * platform/gdk/TemporaryLinkStubs.cpp:
525 (FrameView::passMousePressEventToScrollbar):
526 (Widget::removeFromParent):
527 (ScrollView::addChild):
528 (ScrollView::updateScrollbars):
529 (ScrollView::scrollbarUnderMouse):
530 (PlatformScrollbar::PlatformScrollbar):
531 (PlatformScrollbar::~PlatformScrollbar):
532 (PlatformScrollbar::width):
533 (PlatformScrollbar::height):
534 (PlatformScrollbar::setEnabled):
535 (PlatformScrollbar::paint):
536 (PlatformScrollbar::updateThumbPosition):
537 (PlatformScrollbar::updateThumbProportion):
538 (PlatformScrollbar::setRect):
539 (Scrollbar::Scrollbar):
540 (Scrollbar::setSteps):
542 (Scrollbar::setValue):
543 (Scrollbar::setProportion):
545 2006-10-06 Dave Hyatt <hyatt@apple.com>
547 Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
549 * page/FrameView.cpp:
550 (WebCore::FrameView::windowClipRect):
552 * platform/ScrollView.h:
553 * platform/Widget.cpp:
554 (WebCore::Widget::windowClipRect):
556 (WebCore::Widget::geometryChanged):
557 (WebCore::Widget::handleMouseMoveEvent):
558 (WebCore::Widget::handleMouseReleaseEvent):
559 * platform/mac/ScrollViewMac.mm:
560 (WebCore::ScrollView::addChild):
561 * rendering/RenderLayer.cpp:
562 (WebCore::RenderLayer::documentClipRect):
563 * rendering/RenderLayer.h:
565 2006-10-06 Steve Falkenburg <sfalken@apple.com>
569 Add another method we'll need for scrollbar dodging
571 * platform/ScrollView.h:
572 * platform/win/TemporaryLinkStubs.cpp:
573 (ScrollView::resizerOverlapsContent):
575 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
579 Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
580 Auto-generate the interfaces even for Objective-C DOM
581 bindings that need custom implementations
583 - Fully auto-generate DOMEventTarget, DOMNodeFilter and
584 DOMHTMLOptionElement.
586 - Auto-generate just the interface for DOMHTMLAppletElement,
587 DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
588 using the new IDL property ObjCCustomImplementation.
590 * DerivedSources.make:
591 * WebCore.xcodeproj/project.pbxproj:
592 * bindings/objc/DOMEventTarget.h: Removed.
593 * bindings/objc/DOMHTMLAppletElement.h: Removed.
594 * bindings/objc/DOMHTMLEmbedElement.h: Removed.
595 * bindings/objc/DOMHTMLOptionElement.h: Removed.
596 * bindings/objc/DOMHTMLOptionElement.mm: Removed.
597 * bindings/objc/DOMInternal.h:
598 * bindings/objc/DOMNodeFilter.h: Removed.
599 * bindings/objc/DOMSVGNumber.h: Removed.
600 * bindings/objc/DOMSVGPoint.h: Removed.
601 * bindings/objc/DOMSVGPoint.mm:
602 (-[DOMSVGPoint matrixTransform:]):
603 * bindings/objc/DOMSVGRect.h: Removed.
604 * bindings/objc/PublicDOMInterfaces.h:
605 * bindings/scripts/CodeGeneratorObjC.pm:
606 * dom/EventTarget.idl:
607 * html/HTMLAppletElement.idl:
608 * html/HTMLEmbedElement.idl:
609 * html/HTMLOptionElement.idl:
610 * ksvg2/svg/SVGNumber.idl:
611 * ksvg2/svg/SVGPoint.idl:
612 * ksvg2/svg/SVGRect.idl:
614 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
618 Make Qt/Linux compile again completly.
620 * platform/qt/WidgetQt.cpp:
621 (WebCore::Widget::removeFromParent):
623 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
627 Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
629 * platform/qt/PlatformScrollBar.h:
630 * platform/qt/ScrollViewQt.cpp:
631 (WebCore::ScrollView::hScrollbarMode):
632 (WebCore::ScrollView::vScrollbarMode):
633 (WebCore::ScrollView::suppressScrollbars):
634 (WebCore::ScrollView::setHScrollbarMode):
635 (WebCore::ScrollView::setVScrollbarMode):
636 (WebCore::ScrollView::setScrollbarsMode):
637 (WebCore::ScrollView::scrollbarUnderMouse):
638 * platform/qt/TemporaryLinkStubs.cpp:
639 (WebCore::Scrollbar::Scrollbar):
640 (WebCore::Scrollbar::setSteps):
641 (WebCore::Scrollbar::scroll):
642 (WebCore::Scrollbar::setValue):
643 (WebCore::Scrollbar::setProportion):
644 (WebCore::PlatformScrollbar::PlatformScrollbar):
645 (WebCore::PlatformScrollbar::~PlatformScrollbar):
646 (WebCore::PlatformScrollbar::width):
647 (WebCore::PlatformScrollbar::height):
648 (WebCore::PlatformScrollbar::setEnabled):
649 (WebCore::PlatformScrollbar::paint):
650 (WebCore::PlatformScrollbar::updateThumbPosition):
651 (WebCore::PlatformScrollbar::updateThumbProportion):
652 (WebCore::PlatformScrollbar::setRect):
653 (FrameView::passMousePressEventToScrollbar):
655 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
659 Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
660 Another round of Objective-C SVG DOM bindings auto-generation
662 - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
663 DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
664 DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
665 DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
666 DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
667 DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
668 DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
669 DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
670 DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
671 DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
672 DOMSVGFETileElement, DOMSVGFETurbulenceElement,
673 DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
675 - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
680 - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
681 in it's macro declaration and definition.
683 * DerivedSources.make:
684 * WebCore.xcodeproj/project.pbxproj:
685 * bindings/objc/DOMCSS.mm:
686 (+[DOMCSSValue _CSSValueWith:WebCore::]):
687 * bindings/objc/DOMInternal.h:
688 * bindings/objc/DOMSVG.h:
689 * bindings/objc/DOMSVGNumber.h: Added.
690 * bindings/objc/DOMSVGNumber.mm: Added.
691 (-[DOMSVGNumber dealloc]):
692 (-[DOMSVGNumber finalize]):
693 (-[DOMSVGNumber value]):
694 (-[DOMSVGNumber setValue:]):
695 (-[DOMSVGNumber _SVGNumber]):
696 (-[DOMSVGNumber _initWithFloat:]):
697 (+[DOMSVGNumber _SVGNumberWith:]):
698 * bindings/objc/DOMSVGPoint.h: Added.
699 * bindings/objc/DOMSVGPoint.mm: Added.
700 (-[DOMSVGPoint dealloc]):
701 (-[DOMSVGPoint finalize]):
703 (-[DOMSVGPoint setX:]):
705 (-[DOMSVGPoint setY:]):
706 (-[DOMSVGPoint WebCore::]):
707 (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
708 (+[DOMSVGPoint _SVGPointWith:WebCore::]):
709 * bindings/objc/DOMSVGRect.h: Added.
710 * bindings/objc/DOMSVGRect.mm: Added.
711 (-[DOMSVGRect dealloc]):
712 (-[DOMSVGRect finalize]):
714 (-[DOMSVGRect setX:]):
716 (-[DOMSVGRect setY:]):
717 (-[DOMSVGRect width]):
718 (-[DOMSVGRect setWidth:]):
719 (-[DOMSVGRect height]):
720 (-[DOMSVGRect setHeight:]):
721 (-[DOMSVGRect WebCore::]):
722 (-[DOMSVGRect _initWithFloatRect:WebCore::]):
723 (+[DOMSVGRect _SVGRectWith:WebCore::]):
724 * bindings/scripts/CodeGeneratorObjC.pm:
725 * ksvg2/svg/SVGAnimatedNumberList.idl:
726 * ksvg2/svg/SVGAnimatedRect.idl:
727 * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
728 * ksvg2/svg/SVGCursorElement.idl:
729 * ksvg2/svg/SVGFEBlendElement.idl:
730 * ksvg2/svg/SVGFEColorMatrixElement.idl:
731 * ksvg2/svg/SVGFEComponentTransferElement.idl:
732 * ksvg2/svg/SVGFECompositeElement.idl:
733 * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
734 * ksvg2/svg/SVGFEDisplacementMapElement.idl:
735 * ksvg2/svg/SVGFEDistantLightElement.idl:
736 * ksvg2/svg/SVGFEFloodElement.idl:
737 * ksvg2/svg/SVGFEFuncAElement.idl:
738 * ksvg2/svg/SVGFEFuncBElement.idl:
739 * ksvg2/svg/SVGFEFuncGElement.idl:
740 * ksvg2/svg/SVGFEFuncRElement.idl:
741 * ksvg2/svg/SVGFEGaussianBlurElement.idl:
742 * ksvg2/svg/SVGFEImageElement.idl:
743 * ksvg2/svg/SVGFEMergeElement.idl:
744 * ksvg2/svg/SVGFEMergeNodeElement.idl:
745 * ksvg2/svg/SVGFEOffsetElement.idl:
746 * ksvg2/svg/SVGFEPointLightElement.idl:
747 * ksvg2/svg/SVGFESpecularLightingElement.idl:
748 * ksvg2/svg/SVGFESpotLightElement.idl:
749 * ksvg2/svg/SVGFETileElement.idl:
750 * ksvg2/svg/SVGFETurbulenceElement.cpp:
751 * ksvg2/svg/SVGFETurbulenceElement.h:
752 * ksvg2/svg/SVGFETurbulenceElement.idl:
753 * ksvg2/svg/SVGNumberList.idl:
755 2006-10-06 Adam Roben <aroben@apple.com>
757 Backing out my previous change.
759 * WebCore.xcodeproj/project.pbxproj:
760 * page/FrameView.cpp:
761 (WebCore::FrameView::adjustViewSize):
763 2006-10-06 Adam Roben <aroben@apple.com>
767 * WebCore.xcodeproj/project.pbxproj:
768 * page/FrameView.cpp:
769 (WebCore::FrameView::windowResizerRect):
771 2006-10-06 Adam Roben <aroben@apple.com>
777 * platform/ResourceLoader.h:
778 * platform/ResourceLoaderInternal.h:
779 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
780 * platform/win/TemporaryLinkStubs.cpp:
781 (WebCore::ResourceLoader::newHTTPRequest):
783 2006-10-05 Steve Falkenburg <sfalken@apple.com>
787 Stub out some methods that we'll be able to use to dodge a window resizer.
789 * bridge/win/FrameWin.h:
791 (WebCore::Frame::windowResizerRect):
793 * platform/ScrollView.h:
794 (WebCore::ScrollView::windowResizerRect):
796 * platform/win/TemporaryLinkStubs.cpp:
797 (FrameView::windowResizerRect):
800 (FrameWin::windowResizerRect):
802 2006-10-05 Dave Hyatt <hyatt@apple.com>
804 Stub out setFrameGeometry.
806 * platform/ScrollView.h:
808 2006-10-05 Adele Peterson <adele@apple.com>
810 Reverting autoscroll fix. I need to rework this a little.
813 (WebCore::Frame::handleAutoscroll):
814 (WebCore::Frame::autoscrollTimerFired):
815 (WebCore::Frame::stopAutoscrollTimer):
817 * rendering/RenderLayer.cpp:
818 (WebCore::RenderLayer::~RenderLayer):
819 * rendering/RenderListBox.cpp:
820 (WebCore::RenderListBox::~RenderListBox):
822 2006-10-05 Alice <alice.liu@apple.com>
826 Fixed <rdar://problem/4731778>
828 * editing/CommandByName.cpp:
829 (WebCore::Frame::Command::):
830 was calling the wrong enabledFn for arrow selection and navigation
832 2006-10-05 Adele Peterson <adele@apple.com>
836 - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
837 and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
839 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
840 * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
842 * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
843 (WebCore::Frame::handleAutoscroll):
844 (WebCore::Frame::autoscrollTimerFired):
845 (WebCore::Frame::autoscrollRenderer):
846 (WebCore::Frame::setAutoscrollRenderer):
847 (WebCore::Frame::stopAutoscrollTimer):
850 2006-10-05 Don Gibson <dgibson77@gmail.com>
854 Fix win32 build bustage after ggaren's Scrollbar renaming changes.
855 Properly include PlatformScrollBar.h in WbCore.vcproj.
856 Clean up WidgetWin.cpp a bit.
858 * WebCore.vcproj/WebCore/WebCore.vcproj:
860 * platform/win/PlatformScrollBar.h:
861 * platform/win/ScrollViewWin.cpp:
862 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
863 (WebCore::ScrollView::resizeContents):
864 (WebCore::ScrollView::scrollBy):
865 (WebCore::ScrollView::hScrollbarMode):
866 (WebCore::ScrollView::vScrollbarMode):
867 (WebCore::ScrollView::suppressScrollbars):
868 (WebCore::ScrollView::setHScrollbarMode):
869 (WebCore::ScrollView::setVScrollbarMode):
870 (WebCore::ScrollView::setScrollbarsMode):
871 (WebCore::ScrollView::updateScrollbars):
872 * platform/win/TemporaryLinkStubs.cpp:
873 (FrameView::passMousePressEventToScrollbar):
874 (Widget::removeFromParent):
875 (ScrollView::scrollbarUnderMouse):
876 (PlatformScrollbar::PlatformScrollbar):
877 (PlatformScrollbar::~PlatformScrollbar):
878 (PlatformScrollbar::width):
879 (PlatformScrollbar::height):
880 (PlatformScrollbar::setEnabled):
881 (PlatformScrollbar::paint):
882 (PlatformScrollbar::updateThumbPosition):
883 (PlatformScrollbar::updateThumbProportion):
884 (PlatformScrollbar::setRect):
885 (Scrollbar::Scrollbar):
886 (Scrollbar::setSteps):
888 (Scrollbar::setValue):
889 (Scrollbar::setProportion):
890 * platform/win/WidgetWin.cpp:
891 (WebCore::WidgetPrivate::WidgetPrivate):
892 (WebCore::Widget::Widget):
893 (WebCore::Widget::setContainingWindow):
894 (WebCore::Widget::containingWindow):
896 2006-10-05 Geoffrey Garen <ggaren@apple.com>
900 * WebCore.xcodeproj/project.pbxproj:
901 * bridge/mac/BrowserExtensionMac.mm:
902 (WebCore::BrowserExtensionMac::createNewWindow):
903 * bridge/mac/FrameMac.mm:
904 (WebCore::FrameMac::createFrame):
905 * bridge/mac/FrameViewMac.mm:
906 (WebCore::FrameView::passMousePressEventToScrollbar):
907 * bridge/mac/WebCoreFrameBridge.mm:
908 (-[WebCoreFrameBridge installInFrame:]):
909 * bridge/mac/WebCoreFrameView.h:
910 * platform/ScrollBar.cpp:
912 * platform/mac/PlatformScrollBar.h:
913 * platform/mac/PlatformScrollBarMac.mm:
914 (NSControlSizeForScrollBarControlSize):
915 (-[WebCoreScrollBar initWithPlatformScrollbar:]):
916 (-[WebCoreScrollBar detachPlatformScrollbar]):
917 (-[WebCoreScrollBar scroll:]):
918 (-[WebCoreScrollBar widget]):
919 (WebCore::PlatformScrollbar::PlatformScrollbar):
920 (WebCore::PlatformScrollbar::~PlatformScrollbar):
921 (WebCore::PlatformScrollbar::updateThumbPosition):
922 (WebCore::PlatformScrollbar::updateThumbProportion):
923 (WebCore::PlatformScrollbar::scrollbarHit):
924 (WebCore::PlatformScrollbar::width):
925 (WebCore::PlatformScrollbar::height):
926 (WebCore::PlatformScrollbar::setRect):
927 (WebCore::PlatformScrollbar::setEnabled):
928 (WebCore::PlatformScrollbar::paint):
929 * platform/mac/ScrollViewMac.mm:
930 (WebCore::ScrollView::setVScrollbarMode):
931 (WebCore::ScrollView::setHScrollbarMode):
932 (WebCore::ScrollView::setScrollbarsMode):
933 (WebCore::ScrollView::vScrollbarMode):
934 (WebCore::ScrollView::hScrollbarMode):
935 (WebCore::ScrollView::suppressScrollbars):
936 (WebCore::ScrollView::scrollbarUnderMouse):
937 * platform/mac/WidgetMac.mm:
938 (WebCore::Widget::removeFromParent):
939 * rendering/RenderLayer.cpp:
940 (WebCore::RenderLayer::destroyScrollbar):
942 2006-10-05 Geoffrey Garen <ggaren@apple.com>
947 * rendering/RenderLayer.cpp:
948 (WebCore::RenderLayer::destroyScrollbar):
950 2006-10-06 Mitz Pettel <mitz@webkit.org>
952 http://bugs.webkit.org/show_bug.cgi?id=8276
953 Fix broken manual test added back in r13990.
955 Add resource forks for test resources.
957 * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
958 * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
959 * manual-tests/resources/plain-text-paste/._4.txt: Added.
960 * manual-tests/resources/plain-text-paste/._5.webloc: Added.
962 2006-10-05 David Hyatt <hyatt@apple.com>
964 Rename addClip to clip.
968 * kcanvas/RenderForeignObject.cpp:
969 (WebCore::RenderForeignObject::paint):
970 * kcanvas/RenderSVGContainer.cpp:
971 (WebCore::RenderSVGContainer::paint):
972 * kcanvas/RenderSVGImage.cpp:
973 (WebCore::RenderSVGImage::paint):
974 * platform/GraphicsContext.h:
975 * platform/cairo/GraphicsContextCairo.cpp:
976 (WebCore::GraphicsContext::clip):
977 * platform/cg/GraphicsContextCG.cpp:
978 (WebCore::GraphicsContext::savePlatformState):
979 (WebCore::GraphicsContext::restorePlatformState):
980 (WebCore::GraphicsContext::clip):
981 (WebCore::GraphicsContext::addRoundedRectClip):
982 (WebCore::GraphicsContext::addInnerRoundedRectClip):
983 (WebCore::GraphicsContext::scale):
984 (WebCore::GraphicsContext::rotate):
985 (WebCore::GraphicsContext::translate):
986 (WebCore::GraphicsContext::concatCTM):
987 * platform/cg/GraphicsContextPlatformPrivate.h:
988 (WebCore::GraphicsContextPlatformPrivate::save):
989 (WebCore::GraphicsContextPlatformPrivate::restore):
990 (WebCore::GraphicsContextPlatformPrivate::clip):
991 (WebCore::GraphicsContextPlatformPrivate::scale):
992 (WebCore::GraphicsContextPlatformPrivate::rotate):
993 (WebCore::GraphicsContextPlatformPrivate::translate):
994 (WebCore::GraphicsContextPlatformPrivate::concatCTM):
995 * platform/qt/GraphicsContextQt.cpp:
996 (WebCore::GraphicsContext::clip):
997 (WebCore::GraphicsContext::addInnerRoundedRectClip):
998 (WebCore::GraphicsContext::addRoundedRectClip):
999 * rendering/InlineFlowBox.cpp:
1000 (WebCore::InlineFlowBox::paintBackground):
1001 (WebCore::InlineFlowBox::paintBackgroundAndBorder):
1002 * rendering/InlineTextBox.cpp:
1003 (WebCore::InlineTextBox::paintSelection):
1004 (WebCore::InlineTextBox::paintTextMatchMarker):
1005 * rendering/RenderBox.cpp:
1006 (WebCore::RenderBox::paintBackgroundExtended):
1007 * rendering/RenderButton.cpp:
1008 (WebCore::RenderButton::paintObject):
1009 * rendering/RenderFileUploadControl.cpp:
1010 (WebCore::RenderFileUploadControl::paintObject):
1011 * rendering/RenderLayer.cpp:
1012 (WebCore::RenderLayer::beginTransparencyLayers):
1014 * rendering/RenderListBox.cpp:
1015 (WebCore::RenderListBox::paintObject):
1016 * rendering/RenderMenuList.cpp:
1017 (WebCore::RenderMenuList::paintObject):
1018 * rendering/RenderTableCell.cpp:
1019 (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1021 2006-10-05 Mitz Pettel <mitz@webkit.org>
1025 - http://bugs.webkit.org/show_bug.cgi?id=10386
1026 Delete RenderImageButton.* and remove references from .vcproj and .bkl files
1029 * WebCore.vcproj/WebCore/WebCore.vcproj:
1030 * WebCoreSources.bkl:
1031 * rendering/RenderImageButton.cpp: Removed.
1032 * rendering/RenderImageButton.h: Removed.
1034 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
1038 - http://bugs.webkit.org/show_bug.cgi?id=11067
1039 manual-tests/scrollbar-hittest2.html is invalid
1041 * manual-tests/scrollbar-hittest2.html:
1043 2006-10-05 David Carson <dacarson@gmail.com>
1047 http://bugs.webkit.org/show_bug.cgi?id=11152
1048 Adjust the tokenizer chunk size to be smaller for
1049 mobile devices, and also decrease the yield timer
1050 for the tokenizer so that it can resume earlier.
1052 * html/HTMLTokenizer.cpp:
1055 2006-10-05 Adam Roben <aroben@apple.com>
1057 Removing accidentally-checked-in do-nothing code.
1059 * html/HTMLInputElement.cpp:
1060 (WebCore::HTMLInputElement::defaultEventHandler):
1062 2006-10-05 David Carson <dacarson@gmail.com>
1066 http://bugs.webkit.org/show_bug.cgi?id=11158
1067 Initialize class variables
1069 * rendering/RenderLayer.cpp:
1070 (WebCore::RenderLayer::RenderLayer):
1072 2006-10-05 Don Gibson <dgibson77@gmail.com>
1074 Reviewed by Darin, landed by Adam.
1076 http://bugs.webkit.org/show_bug.cgi?id=11176
1077 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1079 * platform/win/ResourceLoaderWin.cpp:
1080 (WebCore::ResourceLoader::start):
1082 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1086 http://bugs.webkit.org/show_bug.cgi?id=10989
1087 Provide a way for embedders to implement BrowserExtensionWin
1089 * WebCore.vcproj/WebCore/WebCore.vcproj:
1090 * bridge/win/BrowserExtensionWin.cpp: Added.
1091 (BrowserExtensionWin::BrowserExtensionWin):
1092 (BrowserExtensionWin::setTypedIconURL):
1093 (BrowserExtensionWin::setIconURL):
1094 (BrowserExtensionWin::getHistoryLength):
1095 (BrowserExtensionWin::canRunModal):
1096 (BrowserExtensionWin::createNewWindow):
1097 (BrowserExtensionWin::canRunModalNow):
1098 (BrowserExtensionWin::runModal):
1099 (BrowserExtensionWin::goBackOrForward):
1100 (BrowserExtensionWin::historyURL):
1101 * bridge/win/BrowserExtensionWin.h:
1102 * bridge/win/FrameWin.cpp:
1103 (WebCore::FrameWin::createNewWindow):
1104 * bridge/win/FrameWin.h:
1105 * platform/win/TemporaryLinkStubs.cpp:
1107 2006-10-05 Geoffrey Garen <ggaren@apple.com>
1111 Fixed <rdar://problem/4766987>
1113 - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
1114 except for file names.
1116 - fixed RenderLayer to properly tear down scrollbars, removing them from
1119 * bindings/js/kjs_window.cpp:
1120 (KJS::showModalDialog):
1121 (KJS::setWindowFeature):
1122 (KJS::parseWindowFeatures):
1123 * bridge/BrowserExtension.h:
1125 (WebCore::Document::setInPageCache):
1126 * html/HTMLFrameElement.cpp:
1127 (WebCore::HTMLFrameElement::init):
1128 (WebCore::HTMLFrameElement::parseMappedAttribute):
1129 * html/HTMLFrameElement.h:
1130 (WebCore::HTMLFrameElement::scrollingMode):
1132 (WebCore::Frame::finishedParsing):
1133 (WebCore::Frame::scrollbarsVisible):
1134 * page/FrameView.cpp:
1135 (WebCore::FrameViewPrivate::FrameViewPrivate):
1136 (WebCore::FrameViewPrivate::reset):
1137 (WebCore::FrameView::~FrameView):
1138 (WebCore::FrameView::resetScrollbars):
1139 (WebCore::FrameView::clear):
1140 (WebCore::FrameView::initScrollbars):
1141 (WebCore::FrameView::applyOverflowToViewport):
1142 (WebCore::FrameView::layout):
1143 (WebCore::FrameView::handleMousePressEvent):
1144 (WebCore::selectCursor):
1145 (WebCore::FrameView::handleMouseMoveEvent):
1146 (WebCore::FrameView::setScrollbarsMode):
1147 (WebCore::FrameView::setVScrollbarMode):
1148 (WebCore::FrameView::setHScrollbarMode):
1149 (WebCore::FrameView::restoreScrollbar):
1150 (WebCore::FrameView::dispatchMouseEvent):
1151 (WebCore::FrameView::scrollbarMoved):
1153 * page/MouseEventWithHitTestResults.cpp:
1154 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1155 * page/MouseEventWithHitTestResults.h:
1156 (WebCore::MouseEventWithHitTestResults::scrollbar):
1157 * platform/ScrollBar.cpp:
1158 (WebCore::Scrollbar::Scrollbar):
1159 (WebCore::Scrollbar::setValue):
1160 (WebCore::Scrollbar::setProportion):
1161 (WebCore::Scrollbar::setSteps):
1162 (WebCore::Scrollbar::scroll):
1163 * platform/ScrollBar.h:
1165 (WebCore::ScrollbarClient::~ScrollbarClient):
1166 (WebCore::Scrollbar::~Scrollbar):
1167 (WebCore::Scrollbar::orientation):
1168 (WebCore::Scrollbar::controlSize):
1169 (WebCore::Scrollbar::hasPlatformScrollbars):
1170 (WebCore::Scrollbar::client):
1171 * platform/ScrollBarMode.h:
1173 * platform/ScrollView.h:
1174 * rendering/RenderBlock.cpp:
1175 (WebCore::RenderBlock::isPointInScrollbar):
1176 * rendering/RenderLayer.cpp:
1177 (WebCore::RenderLayer::RenderLayer):
1178 (WebCore::RenderLayer::~RenderLayer):
1179 (WebCore::RenderLayer::scrollToOffset):
1180 (WebCore::RenderLayer::horizontaScrollbarWidget):
1181 (WebCore::RenderLayer::verticalScrollbarWidget):
1182 (WebCore::RenderLayer::valueChanged):
1183 (WebCore::RenderLayer::createScrollbar):
1184 (WebCore::RenderLayer::destroyScrollbar):
1185 (WebCore::RenderLayer::setHasHorizontalScrollbar):
1186 (WebCore::RenderLayer::setHasVerticalScrollbar):
1187 (WebCore::RenderLayer::verticalScrollbarWidth):
1188 (WebCore::RenderLayer::horizontalScrollbarHeight):
1189 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1190 * rendering/RenderLayer.h:
1191 (WebCore::RenderLayer::horizontalScrollbar):
1192 (WebCore::RenderLayer::verticalScrollbar):
1193 * rendering/RenderListBox.cpp:
1194 (WebCore::RenderListBox::~RenderListBox):
1195 (WebCore::RenderListBox::calcMinMaxWidth):
1196 (WebCore::RenderListBox::isPointInScrollbar):
1197 (WebCore::RenderListBox::optionAtPoint):
1198 (WebCore::RenderListBox::valueChanged):
1199 * rendering/RenderListBox.h:
1200 * rendering/RenderObject.h:
1201 (WebCore::RenderObject::NodeInfo::scrollbar):
1202 (WebCore::RenderObject::NodeInfo::setScrollbar):
1204 2006-10-05 Don Gibson <dgibson77@gmail.com>
1208 http://bugs.webkit.org/show_bug.cgi?id=11138
1209 Incorrect mouse event generation on Windows
1211 * platform/win/MouseEventWin.cpp:
1212 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1213 (1) Set mouse button even for non-click-related messages.
1214 (2) Track clicks correctly for all buttons, not just the left button.
1216 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
1218 Reviewed and landed by ap.
1220 Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
1222 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
1223 (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
1224 (WebCore::KRenderingPaintServerLinearGradientQt::setup):
1225 (WebCore::KRenderingPaintServerRadialGradientQt::setup):
1226 (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
1227 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
1228 (WebCore::KRenderingPaintServerPatternQt::renderPath):
1229 * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
1230 (WebCore::KRenderingPaintServerQt::setPenProperties):
1231 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
1232 (WebCore::KRenderingPaintServerSolidQt::setup):
1233 (WebCore::KRenderingPaintServerSolidQt::renderPath):
1234 * kcanvas/device/qt/RenderPathQt.cpp:
1235 (WebCore::getPathStroke):
1237 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
1241 http://bugs.webkit.org/show_bug.cgi?id=11054
1242 REGRESSION: Traditional Chinese encoding in login authentication
1244 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
1245 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
1246 for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
1248 * platform/StreamingTextDecoderICU.cpp:
1249 (WebCore::TextCodecICU::registerEncodingNames):
1251 2006-10-05 Eric Seidel <eric@eseidel.com>
1256 Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1258 * WebCore.xcodeproj/project.pbxproj:
1259 * ksvg2/ecma/GlobalObject.cpp: Removed.
1260 * ksvg2/ecma/GlobalObject.h: Removed.
1262 2006-10-05 Adam Roben <aroben@apple.com>
1266 Small ResourceLoaderInternal tweak.
1268 * platform/ResourceLoaderInternal.h:
1269 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1271 2006-10-05 Eric Seidel <eric@eseidel.com>
1275 More incremental KCanvas cleanup and optimization.
1276 Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1277 Optimized dash array usage to not malloc.
1278 Also removed un-needed KSVGRenderingStyle includes.
1280 * kcanvas/KCanvasTreeDebug.cpp:
1281 (WebCore::operator<<):
1282 * kcanvas/RenderPath.cpp:
1283 (WebCore::RenderPath::nodeAtPoint):
1284 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1285 (WebCore::RenderPath::strokeBBox):
1286 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1287 (WebCore::KRenderingPaintServerGradientQuartz::setup):
1288 (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1289 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1290 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1291 (WebCore::KRenderingPaintServerSolidQuartz::setup):
1292 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1293 (WebCore::KRenderingPaintServerPatternQuartz::setup):
1294 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1295 * kcanvas/device/quartz/QuartzSupport.mm:
1296 (WebCore::applyStrokeStyleToContext):
1297 * ksvg2/css/SVGRenderStyle.h:
1298 (WebCore::SVGRenderStyle::hasStroke):
1299 (WebCore::SVGRenderStyle::hasFill):
1300 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1301 (WebCore::KSVGPainterFactory::fillPaintServer):
1302 (WebCore::KSVGPainterFactory::strokePaintServer):
1303 * ksvg2/misc/KCanvasRenderingStyle.h:
1305 2006-10-05 Maciej Stachowiak <mjs@apple.com>
1309 - changed ResourceLoader to be refcounted
1311 It keeps a ref on itself while loading as well. This makes
1312 for a much saner memory management model than the previous.
1314 * bridge/mac/WebCoreResourceLoaderImp.mm:
1315 (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1316 * dom/XMLTokenizer.cpp:
1317 (WebCore::openFunc):
1318 * loader/icon/IconLoader.cpp:
1319 (IconLoader::IconLoader):
1320 (IconLoader::~IconLoader):
1321 (IconLoader::startLoading):
1322 (IconLoader::stopLoading):
1323 (IconLoader::receivedData):
1324 * loader/icon/IconLoader.h:
1325 * loader/loader.cpp:
1326 (WebCore::Loader::servePendingRequests):
1327 * platform/ResourceLoader.cpp:
1328 (WebCore::ResourceLoader::create):
1329 (WebCore::ResourceLoader::kill):
1330 * platform/ResourceLoader.h:
1331 * platform/ResourceLoaderInternal.h:
1332 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1333 * platform/mac/ResourceLoaderMac.mm:
1334 (WebCore::ResourceLoader::start):
1335 * xml/XSLTProcessor.cpp:
1336 (WebCore::docLoaderFunc):
1337 * xml/xmlhttprequest.cpp:
1338 (WebCore::XMLHttpRequest::send):
1339 * xml/xmlhttprequest.h:
1341 2006-10-05 Eric Seidel <eric@eseidel.com>
1345 Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
1346 http://bugs.webkit.org/show_bug.cgi?id=11163
1348 No SVG performance tests yet.
1350 * kcanvas/RenderForeignObject.cpp:
1351 (WebCore::RenderForeignObject::paint):
1352 * kcanvas/RenderSVGContainer.cpp:
1353 (WebCore::RenderSVGContainer::paint):
1354 * kcanvas/RenderSVGImage.cpp:
1355 (WebCore::RenderSVGImage::paint):
1356 * kcanvas/RenderSVGText.cpp:
1357 (WebCore::RenderSVGText::paint):
1359 2006-10-05 Dave Hyatt <hyatt@apple.com>
1361 Stub out some stuff for widget focusability.
1365 * page/FrameView.cpp:
1366 (WebCore::FrameView::dispatchMouseEvent):
1367 * platform/ScrollView.h:
1368 * platform/Widget.h:
1370 2006-10-05 Adam Roben <aroben@apple.com>
1372 Reviewed by Maciej and Tim H.
1374 Copy some WebKit frame lifetime logic into WebCore -- just a step
1375 along the path to frame lifetime being handled completely in WebCore.
1377 * bridge/mac/FrameMac.mm:
1378 (WebCore::FrameMac::setView): Move platform-independent parts of this
1381 (WebCore::Frame::setView): Adding platform-independent parts of
1383 (WebCore::Frame::detachChildren): New method to accomplish what
1384 -[WebFrameBridge _detachChildren] currently does.
1385 (WebCore::Frame::clear): Call detachChildren
1386 * page/Frame.h: Add declaration for detachChildren
1388 2006-10-04 Alice Liu <alice.liu@apple.com>
1392 Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
1394 * xml/xmlhttprequest.cpp:
1395 (WebCore::XMLHttpRequest::setRequestHeader):
1396 removed exception set when the request is not open yet
1398 2006-10-04 Anders Carlsson <acarlsson@apple.com>
1400 Reviewed by John Sullivan.
1402 <rdar://problem/4654328>
1403 Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
1405 * loader/PluginDocument.cpp:
1406 (WebCore::PluginTokenizer::writeRawData):
1407 Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
1409 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
1413 http://bugs.webkit.org/show_bug.cgi?id=11130
1414 Convert "undefined" to AE missing value
1416 * bridge/mac/WebCoreFrameBridge.mm:
1417 (aeDescFromJSValue): return missing value for UndefinedType.
1419 2006-10-03 Dave Hyatt <hyatt@apple.com>
1421 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
1422 the windowToContents/contentsToWindow functions.
1426 * bridge/mac/FrameMac.mm:
1427 (WebCore::FrameMac::eventMayStartDrag):
1428 (WebCore::FrameMac::dragHysteresisExceeded):
1429 (WebCore::FrameMac::mouseDown):
1430 (WebCore::FrameMac::shouldDragAutoNode):
1431 (WebCore::FrameMac::sendContextMenuEvent):
1432 * bridge/mac/FrameViewMac.mm:
1433 (WebCore::FrameView::passMousePressEventToScrollbar):
1434 * bridge/mac/WebCoreFrameBridge.mm:
1435 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1436 * dom/EventTargetNode.cpp:
1437 (WebCore::EventTargetNode::dispatchMouseEvent):
1438 (WebCore::EventTargetNode::dispatchWheelEvent):
1440 (WebCore::Frame::selectClosestWordFromMouseEvent):
1441 (WebCore::Frame::handleMousePressEventTripleClick):
1442 (WebCore::Frame::handleMousePressEventSingleClick):
1443 (WebCore::Frame::handleMouseMoveEvent):
1444 (WebCore::Frame::handleMouseReleaseEvent):
1445 * page/FrameView.cpp:
1446 (WebCore::FrameView::handleMousePressEvent):
1447 (WebCore::FrameView::handleMouseDoubleClickEvent):
1448 (WebCore::selectCursor):
1449 (WebCore::FrameView::handleMouseMoveEvent):
1450 (WebCore::FrameView::handleMouseReleaseEvent):
1451 (WebCore::FrameView::dispatchDragEvent):
1452 (WebCore::FrameView::prepareMouseEvent):
1453 (WebCore::FrameView::handleWheelEvent):
1455 * platform/ScrollBar.cpp:
1456 (WebCore::ScrollBar::setValue):
1457 * platform/ScrollView.h:
1458 * platform/Widget.h:
1459 (WebCore::Widget::scrolled):
1460 * platform/mac/ScrollViewMac.mm:
1461 (WebCore::ScrollView::contentsToWindow):
1462 (WebCore::ScrollView::windowToContents):
1463 (WebCore::ScrollView::scrollbarUnderMouse):
1464 * platform/mac/WidgetMac.mm:
1465 * rendering/RenderLayer.cpp:
1466 (WebCore::RenderLayer::resize):
1467 (WebCore::RenderLayer::positionScrollbars):
1468 * rendering/RenderReplaced.cpp:
1469 (WebCore::RenderReplaced::shouldPaint):
1470 * rendering/RenderView.cpp:
1471 * rendering/RenderView.h:
1472 * rendering/RenderWidget.cpp:
1473 (WebCore::RenderWidget::setWidget):
1475 2006-09-26 David Smith <catfish.man@gmail.com>
1477 Reviewed by Timothy.
1479 http://bugs.webkit.org/show_bug.cgi?id=3723
1480 Add -scrollDOMRangeToVisible:
1482 No automated tests are possible as this code path isn't reachable from JavaScript.
1484 * bridge/mac/WebCoreFrameBridge.h:
1485 * bridge/mac/WebCoreFrameBridge.mm:
1486 (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
1488 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1490 Reviewed by Timothy.
1492 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1493 When contentEditable, cursor doesn't change to hand
1495 Allow the behaviour of editable links to be specified by a WebPreference
1496 The preference WebKitEditableLinkBehavior has four options:
1497 - AlwaysLive: Safari 2.0 behaviour
1498 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1499 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1500 focused, or when the shift key is pressed
1501 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1503 No layout tests, just a modification of a manual-test as it isn't possible to test
1506 * bridge/mac/WebCoreSettings.h:
1507 * bridge/mac/WebCoreSettings.mm:
1508 (-[WebCoreSettings setEditableLinkBehavior:]):
1509 (-[WebCoreSettings editableLinkBehavior]):
1510 * html/HTMLAnchorElement.cpp:
1511 (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1512 (WebCore::HTMLAnchorElement::defaultEventHandler):
1513 (WebCore::HTMLAnchorElement::setActive):
1514 * html/HTMLAnchorElement.h:
1515 * manual-tests/contenteditable-link.html:
1516 * page/FrameView.cpp:
1517 (WebCore::nodeIsNotBeingEdited):
1518 (WebCore::selectCursor):
1520 (WebCore::Settings::):
1521 (WebCore::Settings::Settings):
1522 (WebCore::Settings::editableLinkBehavior):
1523 (WebCore::Settings::setEditableLinkBehavior):
1525 2006-10-03 Beth Dakin <bdakin@apple.com>
1529 No test cases needed.
1531 Implemented a version of StringImpl::append that takes a UChar* and
1534 * platform/StringImpl.cpp:
1535 (WebCore::StringImpl::append):
1536 (WebCore::StringImpl::insert): Call new append instead of making a
1538 * platform/StringImpl.h:
1540 2006-10-03 MorganL <morganl.webkit@yahoo.com>
1544 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
1545 HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
1547 * platform/win/ResourceLoaderWin.cpp:
1548 (WebCore::ResourceLoader::onHandleCreated):
1550 2006-10-02 Geoffrey Garen <ggaren@apple.com>
1552 Feared, loathed, reviewed by Darin.
1554 More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
1555 into FRAME, plus other cleanup.
1557 No new behavior, so no new test. Layout tests pass. Basic browsing and
1558 Mail editing seem to work.
1561 (WebCore::Node::detach): Removed random commented-out code.
1562 * html/HTMLFrameElement.cpp:
1563 (WebCore::HTMLFrameElement::isURLAllowed):
1564 (1) Removed reference to FrameView, to dissociate frame loading from rendering.
1565 (2) Renamed newURL to completeURL because the difference between newURL
1566 and URLString is that newURL is a KURL that is the complete version of URLString,
1568 (WebCore::HTMLFrameElement::willRemove):
1569 (1) Removed close() call and moved close() code into willRemove(), also removing
1570 close() call from detach(), since willRemove is the well-defined place
1571 from DOM tear-down, not detach().
1572 (2) Removed manual renderer detach code because the DOM is not responsible
1573 for managing the render tree. I confirmed that this change not
1574 regress <rdar://problem/4132581>.
1575 (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
1576 lost their content frames after being removed from the DOM. That's our
1577 current behavior, but it's going to change in future rounds of refactoring.
1578 This also fixes <rdar://problem/4750835>.
1579 (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
1580 attach/detach, because the render tree should not be in charge of deciding
1582 * html/HTMLFrameElement.h:
1583 * html/HTMLIFrameElement.cpp:
1584 (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
1585 because the renderer is a renderPartObject, not a renderPart.
1586 * html/HTMLIFrameElement.h:
1588 2006-10-03 Mark Rowe <bdash@webkit.org>
1592 http://bugs.webkit.org/show_bug.cgi?id=11137
1593 Bug 11137: GdkLauncher dies with "pure virtual method called" if
1594 window is closed while page still loading
1596 * platform/gdk/FrameGdk.cpp:
1597 (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
1598 methods to be called before the FrameGdk portion of "this" is torn down.
1600 2006-10-03 Adam Roben <aroben@apple.com>
1604 Handle tab key presses in the DOM.
1606 * dom/EventTargetNode.cpp:
1607 (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
1608 * page/FrameView.cpp:
1609 (WebCore::FrameView::advanceFocus): Rename and reimplement
1610 focusNextPrevNode. Now we just call Element::focus().
1611 * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
1614 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1618 <rdar://problem/4760612>
1619 TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
1621 No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
1624 (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
1625 positions are non-null since most of it's callers would be in a bad state if the positions
1626 were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
1627 Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
1628 from entering compareBoundaryPoints and hitting the assert.
1630 2006-10-03 Adele Peterson <adele@apple.com>
1634 Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
1636 * html/HTMLSelectElement.cpp:
1637 (WebCore::HTMLSelectElement::recalcStyle):
1638 (WebCore::HTMLSelectElement::isKeyboardFocusable):
1639 (WebCore::HTMLSelectElement::isMouseFocusable):
1640 (WebCore::HTMLSelectElement::createRenderer):
1641 (WebCore::HTMLSelectElement::setRecalcListItems):
1642 (WebCore::HTMLSelectElement::notifyOptionSelected):
1643 (WebCore::HTMLSelectElement::defaultEventHandler):
1645 2006-10-04 Darin Adler <darin@apple.com>
1649 - fix http://bugs.webkit.org/show_bug.cgi?id=11132
1650 Caret disappears when you're typing
1652 * editing/SelectionController.cpp:
1653 (WebCore::SelectionController::setSelection): Remove unnecessary call to
1654 clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
1655 (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
1656 to false so we can get the old caret repaint rect. Later we need to change the
1657 design so getting the rect doesn't have a side effect of causing a layout without
1660 2006-10-03 David Harrison <harrison@apple.com>
1664 <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
1667 * fast/text/justified-text-rect.html
1669 * bridge/mac/WebCoreFrameBridge.mm:
1670 (-[WebCoreFrameBridge convertToNSRange:]):
1671 (-[WebCoreFrameBridge convertToDOMRange:]):
1672 Make the selection's root editable element (or the document itself) be
1673 the basis for NSRange conversions. This supports "shadow DOM" like
1674 that for text fields and text areas.
1676 * editing/CompositeEditCommand.cpp:
1677 (WebCore::CompositeEditCommand::moveParagraphs):
1678 Pass the document element as the scope.
1680 * editing/TextIterator.cpp:
1681 (WebCore::TextIterator::rangeFromLocationAndLength):
1682 Make the first parameter the scope.
1684 * editing/TextIterator.h:
1685 Make the first parameter of rangeFromLocationAndLength() the scope.
1687 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
1693 * CMakeLists.txt: Add counter related files.
1695 2006-10-03 Mark Rowe <bdash@webkit.org>
1699 http://bugs.webkit.org/show_bug.cgi?id=10981
1700 Linux/GDK build fixes
1702 Based on a patch by Krzysztof Kowalczyk.
1704 * WebCoreSources.bkl:
1705 * platform/gdk/FrameGdk.cpp:
1706 (WebCore::doScroll):
1707 (WebCore::FrameGdk::handleGdkEvent):
1708 * platform/gdk/PlatformScrollBar.h: Added.
1709 (WebCore::PlatformScrollBar::isWidget):
1710 * platform/gdk/ScrollViewGdk.cpp:
1711 * platform/gdk/TemporaryLinkStubs.cpp:
1712 (FrameView::passMousePressEventToScrollbar):
1713 (FrameView::passMousePressEventToSubframe):
1714 (FrameView::passMouseReleaseEventToSubframe):
1715 (FrameView::passMouseMoveEventToSubframe):
1716 (FrameView::passWheelEventToSubframe):
1718 (Widget::invalidate):
1719 (Widget::invalidateRect):
1720 (ScrollView::wheelEvent):
1721 (ScrollView::convertToContainingWindow):
1722 (ScrollView::convertFromContainingWindow):
1723 (GraphicsContext::clip):
1724 (PlatformScrollBar::PlatformScrollBar):
1725 (PlatformScrollBar::updateThumbPosition):
1726 (PlatformScrollBar::updateThumbProportion):
1727 (ScrollBar::ScrollBar):
1728 (ScrollBar::setProportion):
1729 (WebCore::supportedKeySizes):
1730 (WebCore::signedPublicKeyAndChallengeString):
1731 * platform/gdk/WheelEventGdk.cpp:
1732 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1733 * platform/gdk/WidgetGdk.cpp:
1734 (WebCore::Widget::convertToContainingWindow):
1735 (WebCore::Widget::convertFromContainingWindow):
1737 2006-10-02 Adam Roben <aroben@apple.com>
1741 Let Windows determine which mouse button is pressed.
1743 * platform/PlatformMouseEvent.h: Add message parameter to constructor.
1744 * platform/win/MouseEventWin.cpp:
1745 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
1746 parameter to determine which mouse button is pressed.
1748 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1754 * editing/SelectionController.cpp:
1755 (WebCore::SelectionController::empty):
1756 * editing/SelectionController.h:
1758 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1762 <rdar://problem/4755287>
1763 Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1765 * editing/markup.cpp:
1766 (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
1767 elements). Don't skip blocks that aren't containers (like horizontal rules).
1769 2006-10-03 Darin Adler <darin@apple.com>
1771 Reviewed by Justin Garcia.
1773 - correct mistaken code that would restart blinking every
1774 time "invalidateSelection" is called even if the caret
1777 * editing/SelectionController.h:
1778 * editing/SelectionController.cpp:
1779 (WebCore::SelectionController::setSelection): Update for name change.
1780 (WebCore::SelectionController::recomputeCaretRect): New function.
1781 Computes caret rect and does any necessary invalidation if the rect
1783 (WebCore::SelectionController::invalidateCaretRect): Renamed from
1784 needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1785 calls recomputeCaretRect as a side effect.
1788 (WebCore::Frame::invalidateSelection): Remove unneeded call to
1789 clearCaretRectIfNeeded.
1790 (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1791 (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1792 recomputeCaretRect function and not restart blinking if caret has
1793 not changed position.
1794 (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1795 are not needed since selectionLayoutChanged already checks these.
1797 * page/FramePrivate.h: Removed unused m_blinkCaret.
1799 2006-10-02 Beth Dakin <bdakin@apple.com>
1803 Build fix. Add counters to vcproj.
1805 * WebCore.vcproj/WebCore/WebCore.vcproj:
1807 2006-10-02 Brady Eidson <beidson@apple.com>
1811 If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1812 icon data out because we don't correctly check SQL error conditions.
1814 * loader/icon/IconDataCache.cpp:
1815 (WebCore::IconDataCache::writeToDatabase):
1817 2006-10-02 Steve Falkenburg <sfalken@apple.com>
1821 Added method to find out whether a layout has occurred.
1823 * page/FrameView.cpp:
1824 (WebCore::FrameView::didFirstLayout):
1827 2006-10-02 Beth Dakin <bdakin@apple.com>
1831 Initial implementation of CSS2 counters. See http://
1832 bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1834 * WebCore.xcodeproj/project.pbxproj:
1835 * css/CSSComputedStyleDeclaration.cpp:
1836 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
1837 the increment/reset list now that this is implemented.
1838 * css/CSSPrimitiveValue.cpp:
1839 (WebCore::CSSPrimitiveValue::cssText):
1841 (WebCore::Counter::Counter):
1842 (WebCore::Counter::~Counter):
1843 (WebCore::Counter::identifier):
1844 (WebCore::Counter::listStyle):
1845 (WebCore::Counter::separator):
1846 (WebCore::Counter::listStyleNumber):
1847 (WebCore::Counter::setIdentifier):
1848 (WebCore::Counter::setListStyle):
1849 (WebCore::Counter::setSeparator):
1850 * css/cssparser.cpp:
1851 (WebCore::CSSParser::addProperty): Take care of reset/increment
1852 (WebCore::CSSParser::parseValue):
1853 (WebCore::CSSParser::parseContent): content can now take counters
1854 (WebCore::CSSParser::parseCounterContent): Parse counter() and
1856 (WebCore::CSSParser::parseCounter): Parse counter-reset and
1859 * css/cssstyleselector.cpp:
1860 (WebCore::CSSStyleSelector::matchUARules):
1861 (WebCore::CSSStyleSelector::applyProperty):
1862 * platform/PlatformString.h:
1863 * platform/String.cpp:
1864 (WebCore::String::insert): Implemented a version of insert that
1865 accepts a UChar* and a length.
1866 * platform/StringImpl.cpp:
1867 (WebCore::StringImpl::insert): Same as above.
1868 * platform/StringImpl.h:
1869 * rendering/CounterListItem.h: Added.
1870 * rendering/CounterNode.cpp: Added.
1871 (WebCore::CounterNode::CounterNode):
1872 (WebCore::CounterNode::insertAfter):
1873 (WebCore::CounterNode::removeChild):
1874 (WebCore::CounterNode::remove):
1875 (WebCore::CounterNode::setUsesSeparator):
1876 (WebCore::CounterNode::recountAndGetNext):
1877 (WebCore::CounterNode::recountTree):
1878 (WebCore::CounterNode::setSelfDirty):
1879 (WebCore::CounterNode::setParentDirty):
1880 * rendering/CounterNode.h: Added.
1881 (WebCore::CounterNode::~CounterNode):
1882 (WebCore::CounterNode::parent):
1883 (WebCore::CounterNode::previousSibling):
1884 (WebCore::CounterNode::nextSibling):
1885 (WebCore::CounterNode::firstChild):
1886 (WebCore::CounterNode::lastChild):
1887 (WebCore::CounterNode::value):
1888 (WebCore::CounterNode::setValue):
1889 (WebCore::CounterNode::count):
1890 (WebCore::CounterNode::setCount):
1891 (WebCore::CounterNode::setHasSeparator):
1892 (WebCore::CounterNode::isReset):
1893 (WebCore::CounterNode::hasSeparator):
1894 (WebCore::CounterNode::willNeedLayout):
1895 (WebCore::CounterNode::setWillNeedLayout):
1896 (WebCore::CounterNode::isRoot):
1897 (WebCore::CounterNode::setRenderer):
1898 (WebCore::CounterNode::renderer):
1899 * rendering/CounterResetNode.cpp: Added.
1900 (WebCore::CounterResetNode::CounterResetNode):
1901 (WebCore::CounterResetNode::insertAfter):
1902 (WebCore::CounterResetNode::removeChild):
1903 (WebCore::CounterResetNode::recountAndGetNext):
1904 (WebCore::CounterResetNode::setParentDirty):
1905 (WebCore::CounterResetNode::updateTotal):
1906 * rendering/CounterResetNode.h: Added.
1907 (WebCore::CounterResetNode::firstChild):
1908 (WebCore::CounterResetNode::lastChild):
1909 (WebCore::CounterResetNode::isReset):
1910 (WebCore::CounterResetNode::total):
1911 * rendering/RenderContainer.cpp:
1912 (WebCore::RenderContainer::updatePseudoChildForObject): Account for
1914 * rendering/RenderCounter.cpp: Added.
1915 (WebCore::RenderCounter::RenderCounter):
1916 (WebCore::RenderCounter::layout):
1918 (WebCore::toLetterString):
1919 (WebCore::toHebrew):
1920 (WebCore::RenderCounter::convertValueToType):
1921 (WebCore::RenderCounter::calcMinMaxWidth):
1922 * rendering/RenderCounter.h: Added.
1923 (WebCore::RenderCounter::renderName):
1924 (WebCore::RenderCounter::isCounter):
1925 * rendering/RenderObject.cpp:
1926 (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
1927 maps of CounterNodes
1928 (WebCore::RenderObject::RenderObject):
1929 (WebCore::RenderObject::destroy): Destroy the maps.
1930 (WebCore::RenderObject::findCounter): Finds/creates counters.
1931 * rendering/RenderObject.h:
1932 (WebCore::RenderObject::isCounter):
1933 * rendering/RenderStyle.cpp:
1934 (WebCore::StyleVisualData::StyleVisualData):
1935 (WebCore::RenderStyle::arenaDelete):
1936 (WebCore::RenderStyle::RenderStyle):
1937 (WebCore::RenderStyle::diff):
1938 (WebCore::RenderStyle::setContent):
1939 (WebCore::ContentData::clearContent):
1940 (WebCore::RenderStyle::counterDataEquivalent):
1941 (WebCore::hasCounter):
1942 (WebCore::RenderStyle::hasCounterReset):
1943 (WebCore::RenderStyle::hasCounterIncrement):
1944 (WebCore::readCounter):
1945 (WebCore::RenderStyle::counterReset):
1946 (WebCore::RenderStyle::counterIncrement):
1947 * rendering/RenderStyle.h:
1948 (WebCore::StyleVisualData::operator==):
1949 (WebCore::CounterData::CounterData):
1950 (WebCore::CounterData::identifier):
1951 (WebCore::CounterData::listStyle):
1952 (WebCore::CounterData::separator):
1953 (WebCore::ContentData::contentCounter):
1954 (WebCore::ContentData::):
1955 (WebCore::RenderStyle::counterIncrement):
1956 (WebCore::RenderStyle::counterReset):
1957 (WebCore::RenderStyle::setCounterIncrement):
1958 (WebCore::RenderStyle::setCounterReset):
1959 (WebCore::RenderStyle::setCounterResetList):
1960 (WebCore::RenderStyle::setCounterIncrementList):
1961 (WebCore::RenderStyle::counterResetValueList):
1962 (WebCore::RenderStyle::counterIncrementValueList):
1964 2006-10-02 Adele Peterson <adele@apple.com>
1968 - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1970 There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
1971 by using "-webkit-appearance:none".
1975 2006-10-02 David Harrison <harrison@apple.com>
1977 Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1978 addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1979 Left the layout test.
1981 * rendering/bidi.cpp:
1982 (WebCore::checkMidpoints):
1984 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1986 Reviewed by eseidel. Landed by eseidel.
1990 * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1991 (WebCore::supportedKeySizes):
1993 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1995 Reviewed by eseidel & mjs. Landed by eseidel.
1997 Fix Qt/Linux build with older gcc 3.3.4.
1998 http://bugs.webkit.org/show_bug.cgi?id=11116
2000 As discussed with Maciej, the GCC_ROOT_NS_HACK
2001 can be completely removed, as well as the friendship
2002 between cacheGlobalObject & the JS* objects.
2004 * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
2005 * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
2006 (png_read_filter_row_mmx_avg):
2007 * platform/image-decoders/png/pngvcrd.c: Ditto.
2009 (png_read_filter_row_mmx_avg):
2011 2006-10-01 Maciej Stachowiak <mjs@apple.com>
2013 Rubber stamped by Alexey.
2015 - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
2019 2006-10-01 Eric Seidel <eric@webkit.org>
2023 Eliminate a few more hotspots in SVG drawing code.
2025 No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
2027 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2028 (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
2029 * platform/mac/ColorMac.mm:
2030 (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
2032 2006-10-01 Geoffrey Garen <ggaren@apple.com>
2036 More frame/iframe merging.
2038 - Removed needWidgetUpdate and related code. needWidgetUpdate is always
2039 false, so this was dead code.
2040 - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
2041 than attach(), is the correct place for setInViewSourceMode, because
2042 openURL() is the function that creates our frame.
2043 - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
2044 code that did the same thing in other places.
2045 - Made FRAME's attach() method suffuciently generic so that IFRAME could
2046 call up to it, rather than skipping its superclass and calling up directly
2048 - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
2049 - Replaced ad hoc frame loading code in FRAME::attach() with call to
2050 openURL(), the designated frame loading function.
2052 Layout tests pass. I added a layout test for viewsource mode, since I
2053 broke it in the course of writing this patch.
2055 2006-10-01 Anders Carlsson <acarlsson@apple.com>
2060 (WebCore::Document::recalcStyleSelector):
2062 Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
2065 Remove DeprecatedStringList class forward declaration.
2067 * editing/markup.cpp:
2068 Include DeprecatedStringList.h here since it's not included by Document.h anymore.
2070 * kcanvas/KCanvasTreeDebug.cpp:
2071 * kcanvas/KCanvasTreeDebug.h:
2072 Remove unused functions.
2074 * loader/loader.cpp:
2078 Fixup DeprecatedStringList.h includes.
2080 2006-09-30 David Harrison <harrison@apple.com>
2082 Reviewed by John Sullivan.
2084 <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
2086 Problem was that the decision to trim was based only on whether the character
2087 is a soft hyphen, which caused pretty much any Japanese character to go.
2088 Changed to decide based on whether the character is ignorable whitespace.
2091 * fast/text/international/wrap-CJK-001.html
2093 * rendering/bidi.cpp:
2094 (WebCore::isTrimmableChar):
2095 New. Checks whether character is whitespace that can be ignored
2096 according to the text node's style.
2097 trimmed from the end of wrapped line.
2098 (WebCore::checkMidpoints):
2099 Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
2101 2006-10-01 Anders Carlsson <acarlsson@apple.com>
2103 Reviewed by Mitz Pettel.
2105 Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
2107 * ksvg2/svg/SVGColor.cpp:
2108 (WebCore::SVGColor::setRGBColor):
2109 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2110 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2111 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2112 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2113 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
2114 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2115 (SVGFESpecularLightingElement::parseMappedAttribute):
2116 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2117 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2118 * ksvg2/svg/SVGLengthList.cpp:
2119 * ksvg2/svg/SVGNumberList.cpp:
2120 (SVGNumberList::parse):
2121 * ksvg2/svg/SVGNumberList.h:
2122 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
2123 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
2124 * ksvg2/svg/SVGStringList.cpp:
2125 (WebCore::SVGStringList::reset):
2126 * ksvg2/svg/SVGStringList.h:
2127 * ksvg2/svg/SVGTransformable.cpp:
2128 (SVGTransformable::parseTransformAttribute):
2130 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
2132 Reviewed by Eric, tweaked and landed by ap.
2137 * platform/qt/PlatformScrollBar.h:
2138 * platform/qt/TemporaryLinkStubs.cpp:
2139 (WebCore::ScrollBar::ScrollBar):
2140 (WebCore::PlatformScrollBar::PlatformScrollBar):
2141 (FrameView::passMousePressEventToSubframe):
2142 (FrameView::passMouseMoveEventToSubframe):
2143 (FrameView::passMouseReleaseEventToSubframe):
2144 (FrameView::passWheelEventToSubframe):
2145 (FrameView::passMousePressEventToScrollbar):
2146 * ksvg2/svg/SVGDocument.h:
2148 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
2152 Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
2153 REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
2155 No test case added (probably requires new DumpRenderTree functionality)
2157 * rendering/RenderImage.cpp:
2158 (WebCore::RenderImage::imageChanged): Added early return if the document is
2161 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
2165 Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
2166 REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
2168 Make sure we only break after a space (and not any other valid line-break) if
2169 the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
2170 I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
2171 twice in quick succession.
2173 * rendering/bidi.cpp:
2174 (WebCore::RenderBlock::findNextLineBreak):
2176 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
2178 Reviewed by Maciej and Darin.
2180 http://bugs.webkit.org/show_bug.cgi?id=4372
2181 JavaScript document.write page form does not submit in Safari
2183 Test: fast/forms/document-write.html
2186 (WebCore::Frame::submitForm): Don't check for parsing().
2188 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
2192 * bridge/mac/FrameViewMac.mm: Add missing #imports.
2194 2006-10-01 Dave Hyatt <hyatt@apple.com>
2196 Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
2200 * bridge/mac/FrameMac.mm:
2201 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2202 * bridge/mac/FrameViewMac.mm:
2203 (WebCore::FrameView::passMousePressEventToScrollbar):
2204 * page/FrameView.cpp:
2205 (WebCore::FrameView::handleMousePressEvent):
2206 (WebCore::FrameView::setMousePressed):
2208 * platform/win/TemporaryLinkStubs.cpp:
2209 (FrameView::passMousePressEventToScrollbar):
2211 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
2215 Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
2216 Add more SVG Objective-C DOM bindings
2218 - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
2219 DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
2220 DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
2221 DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
2222 DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
2223 DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
2225 * DerivedSources.make:
2226 * WebCore.xcodeproj/project.pbxproj:
2227 * bindings/objc/DOMInternal.h:
2228 * bindings/objc/DOMSVG.h:
2229 * bindings/scripts/CodeGeneratorObjC.pm:
2230 * ksvg2/svg/SVGAElement.idl:
2231 * ksvg2/svg/SVGAnimateColorElement.idl:
2232 * ksvg2/svg/SVGAnimateElement.idl:
2233 * ksvg2/svg/SVGAnimateTransformElement.idl:
2234 * ksvg2/svg/SVGAnimatedPathData.idl:
2235 * ksvg2/svg/SVGAnimatedPoints.idl:
2236 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
2237 * ksvg2/svg/SVGAnimationElement.idl:
2238 * ksvg2/svg/SVGCircleElement.idl:
2239 * ksvg2/svg/SVGClipPathElement.idl:
2240 * ksvg2/svg/SVGColor.idl:
2241 * ksvg2/svg/SVGCursorElement.idl:
2242 * ksvg2/svg/SVGDefsElement.idl:
2243 * ksvg2/svg/SVGDescElement.idl:
2244 * ksvg2/svg/SVGDocument.idl:
2245 * ksvg2/svg/SVGEllipseElement.idl:
2246 * ksvg2/svg/SVGPointList.idl:
2247 * ksvg2/svg/SVGPreserveAspectRatio.idl:
2248 * ksvg2/svg/SVGRect.idl:
2249 * ksvg2/svg/SVGSVGElement.idl:
2251 2006-09-30 Maciej Stachowiak <mjs@apple.com>
2257 * platform/FloatRect.h:
2258 (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2259 but more appropriate for path-type stuff.
2260 * platform/cg/PathCG.cpp:
2261 (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2263 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
2267 http://bugs.webkit.org/show_bug.cgi?id=11011
2268 External CSS is parsed as iso-8859-1 even though the main document is utf-8
2270 Test: fast/encoding/css-charset-default.xhtml
2272 * loader/CachedResourceClient.h:
2273 (WebCore::CachedResourceClient::setCSSStyleSheet):
2274 (WebCore::CachedResourceClient::setXSLStyleSheet):
2275 Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2276 takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2278 * css/CSSImportRule.cpp:
2279 (WebCore::CSSImportRule::setCSSStyleSheet):
2280 (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2281 * css/CSSImportRule.h:
2283 * css/CSSStyleSheet.cpp:
2284 (WebCore::CSSStyleSheet::CSSStyleSheet):
2285 * css/CSSStyleSheet.h:
2286 Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2287 member. Changed some String parameters to const String&.
2289 * css/StyleSheet.cpp:
2290 (WebCore::StyleSheet::StyleSheet):
2292 Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2294 * css/StyleSheetList.cpp:
2295 (WebCore::StyleSheetList::length):
2296 (WebCore::StyleSheetList::item):
2297 * css/StyleSheetList.h:
2298 Special-casing implicit stylesheets seemed to be dead code, removed.
2301 (WebCore::Document::setCSSStyleSheet):
2302 (WebCore::Document::recalcStyleSelector):
2304 Renamed setStyleSheet() to setCSSStyleSheet().
2306 * dom/ProcessingInstruction.cpp:
2307 (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2308 (WebCore::ProcessingInstruction::setCSSStyleSheet):
2309 (WebCore::ProcessingInstruction::setXSLStyleSheet):
2310 (WebCore::ProcessingInstruction::parseStyleSheet):
2311 * dom/ProcessingInstruction.h:
2313 * html/HTMLLinkElement.cpp:
2314 (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
2316 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2317 * html/HTMLLinkElement.h:
2319 * html/HTMLStyleElement.cpp:
2320 (WebCore::HTMLStyleElement::childrenChanged):
2321 * ksvg2/svg/SVGStyleElement.cpp:
2322 (WebCore::SVGStyleElement::childrenChanged):
2323 Inherit URL and charset from the document.
2326 (WebCore::Cache::requestCSSStyleSheet):
2328 Adjust for setStyleSheet() renaming.
2330 * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
2331 * loader/CachedCSSStyleSheet.cpp:
2332 (WebCore::CachedCSSStyleSheet::ref):
2333 (WebCore::CachedCSSStyleSheet::deref):
2334 (WebCore::CachedCSSStyleSheet::checkNotify):
2335 Pass the encoding to setCSSStyleSheet().
2337 * loader/CachedXSLStyleSheet.cpp:
2338 (WebCore::CachedXSLStyleSheet::ref):
2339 (WebCore::CachedXSLStyleSheet::checkNotify):
2340 * loader/DocLoader.cpp:
2341 (WebCore::DocLoader::requestCSSStyleSheet):
2342 * loader/DocLoader.h:
2344 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2345 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
2346 * xml/XSLImportRule.cpp:
2347 (WebCore::XSLImportRule::setXSLStyleSheet):
2348 (WebCore::XSLImportRule::loadSheet):
2349 * xml/XSLImportRule.h:
2350 Adjust for setStyleSheet() renaming.
2352 2006-09-30 Rob Buis <buis@kde.org>
2354 Reviewed by eseidel.
2356 http://bugs.webkit.org/show_bug.cgi?id=11096
2357 Hit testing for polylines fails
2359 Fix Path::contains so it handles filled, non-closed paths too.
2361 * platform/cg/PathCG.cpp:
2362 (WebCore::Path::contains):
2364 2006-09-30 Dave Hyatt <hyatt@apple.com>
2366 Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
2367 Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
2368 subframes while the mouse is down.
2370 Reviewed by mitzpettel
2372 * bridge/mac/FrameMac.h:
2373 * bridge/mac/FrameMac.mm:
2374 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2375 (WebCore::FrameMac::passWheelEventToWidget):
2376 * bridge/mac/FrameViewMac.mm:
2377 (WebCore::FrameView::passMousePressEventToSubframe):
2378 (WebCore::FrameView::passMouseMoveEventToSubframe):
2379 (WebCore::FrameView::passMouseReleaseEventToSubframe):
2380 (WebCore::FrameView::passWheelEventToSubframe):
2383 * page/FrameView.cpp:
2384 (WebCore::subframeForTargetNode):
2385 (WebCore::FrameView::handleMousePressEvent):
2386 (WebCore::FrameView::handleMouseDoubleClickEvent):
2387 (WebCore::FrameView::handleMouseMoveEvent):
2388 (WebCore::FrameView::handleMouseReleaseEvent):
2389 (WebCore::FrameView::handleWheelEvent):
2391 * platform/ScrollBar.h:
2392 (WebCore::ScrollBar::handleMouseMoveEvent):
2393 (WebCore::ScrollBar::handleMouseOutEvent):
2394 * platform/Widget.h:
2395 (WebCore::Widget::handleMouseMoveEvent):
2396 (WebCore::Widget::handleMouseReleaseEvent):
2397 * platform/win/TemporaryLinkStubs.cpp:
2398 (FrameView::passMousePressEventToSubframe):
2399 (FrameView::passMouseMoveEventToSubframe):
2400 (FrameView::passMouseReleaseEventToSubframe):
2401 (FrameView::passWheelEventToSubframe):
2402 (Widget::capturingMouse):
2403 (Widget::setCapturingMouse):
2404 (Widget::capturingTarget):
2405 (Widget::capturingChild):
2406 (Widget::setCapturingChild):
2407 * rendering/RenderView.cpp:
2408 (WebCore::RenderView::paintBoxDecorations):
2410 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2414 Fixes windows bustage:
2415 http://bugs.webkit.org/show_bug.cgi?id=11093
2417 * platform/win/PlatformScrollBar.h:
2418 * platform/win/TemporaryLinkStubs.cpp:
2419 (PlatformScrollBar::PlatformScrollBar):
2420 (ScrollBar::ScrollBar):
2422 2006-09-29 David Hyatt <hyatt@apple.com>
2424 Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
2425 in RenderObject::NodeInfo (and then propagating that Widget to
2426 MouseEventWithHitTestResults).
2428 This allows RenderListBox and RenderBlock to do the same thing when the
2429 mouse is over the scrollbar.
2431 Also land fix to support font-size: 0.
2433 Reviewed by mjs (scrollbar), eric (font-size)
2436 (WebCore::Document::prepareMouseEvent):
2438 (WebCore::Frame::passWidgetMouseDownEventToWidget):
2439 * page/FrameView.cpp:
2440 (WebCore::selectCursor):
2441 (WebCore::FrameView::handleMouseMoveEvent):
2442 (WebCore::FrameView::dispatchMouseEvent):
2443 * page/MouseEventWithHitTestResults.cpp:
2444 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2445 * page/MouseEventWithHitTestResults.h:
2446 (WebCore::MouseEventWithHitTestResults::scrollbar):
2447 * rendering/RenderBlock.cpp:
2448 (WebCore::RenderBlock::isPointInScrollbar):
2449 (WebCore::RenderBlock::nodeAtPoint):
2450 * rendering/RenderBlock.h:
2451 * rendering/RenderLayer.cpp:
2452 (WebCore::RenderLayer::hitTest):
2453 * rendering/RenderLayer.h:
2454 (WebCore::RenderLayer::getHiddenBehavior):
2455 * rendering/RenderListBox.cpp:
2456 (WebCore::RenderListBox::RenderListBox):
2457 (WebCore::RenderListBox::~RenderListBox):
2458 (WebCore::RenderListBox::isPointInScrollbar):
2459 * rendering/RenderListBox.h:
2460 * rendering/RenderObject.h:
2461 (WebCore::RenderObject::NodeInfo::NodeInfo):
2462 (WebCore::RenderObject::NodeInfo::scrollbar):
2463 (WebCore::RenderObject::NodeInfo::setScrollbar):
2465 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2469 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
2471 * platform/win/ScrollViewWin.cpp:
2472 (WebCore::ScrollView::convertToContainingWindow):
2473 (WebCore::ScrollView::convertFromContainingWindow):
2474 * platform/win/WidgetWin.cpp:
2475 (WebCore::Widget::convertToContainingWindow):
2476 (WebCore::Widget::convertFromContainingWindow):
2478 2006-09-29 Adele Peterson <adele@apple.com>
2480 Updated with new argument for PlatformScrollBar.
2482 * platform/win/TemporaryLinkStubs.cpp:
2483 (PlatformScrollBar::PlatformScrollBar):
2485 2006-09-29 Adele Peterson <adele@apple.com>
2489 Fixing build bustage with cast to int.
2491 * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
2493 2006-09-29 Adele Peterson <adele@apple.com>
2495 Fixing accidental include.
2497 * rendering/RenderListBox.cpp:
2499 2006-09-29 Adele Peterson <adele@apple.com>
2501 Adding RenderListBox files.
2503 * WebCore.vcproj/WebCore/WebCore.vcproj:
2505 2006-09-29 Adele Peterson <adele@apple.com>
2509 Initial implementation of engine-based list box control.
2511 * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
2513 * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
2514 * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
2515 (WebCore::FrameMac::FrameMac):
2516 (WebCore::FrameMac::handleMousePressEvent):
2517 (WebCore::FrameMac::handleMouseMoveEvent):
2518 (WebCore::FrameMac::mouseDown):
2521 (WebCore::Frame::handleMouseMoveEvent):
2522 (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
2523 (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
2524 (WebCore::Frame::autoscrollTimerFired): ditto.
2525 (WebCore::Frame::stopAutoscrollTimer): ditto.
2526 (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
2528 * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
2530 * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
2531 (WebCore::FrameViewPrivate::reset):
2532 (WebCore::FrameView::currentMousePosition):
2533 (WebCore::FrameView::handleMousePressEvent):
2534 (WebCore::FrameView::handleMouseDoubleClickEvent):
2535 (WebCore::selectCursor):
2536 (WebCore::FrameView::handleMouseMoveEvent):
2537 (WebCore::FrameView::handleMouseReleaseEvent):
2540 * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
2541 * platform/ScrollBar.h:
2543 (WebCore::ScrollBar::controlSize):
2544 * platform/mac/PlatformScrollBar.h:
2545 * platform/mac/PlatformScrollBarMac.mm:
2546 (NSControlSizeForScrollBarControlSize):
2547 (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2548 (WebCore::PlatformScrollBar::PlatformScrollBar):
2550 * rendering/RenderBlock.h:
2551 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
2552 * rendering/RenderLayer.h:
2553 * rendering/RenderObject.cpp:
2554 (WebCore::RenderObject::shouldAutoscroll):
2555 (WebCore::RenderObject::autoscroll):
2556 * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
2558 * css/html4.css: Added properties for new list boxes.
2560 * html/HTMLOptionElement.cpp:
2561 (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
2562 (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
2563 * html/HTMLOptionElement.h: Added disabled method.
2565 * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
2566 (WebCore::HTMLSelectElement::recalcStyle):
2567 (WebCore::HTMLSelectElement::lastSelectedListIndex):
2568 (WebCore::HTMLSelectElement::deselectItems):
2569 (WebCore::HTMLSelectElement::setSelectedIndex):
2570 (WebCore::HTMLSelectElement::isKeyboardFocusable):
2571 (WebCore::HTMLSelectElement::isMouseFocusable):
2572 (WebCore::HTMLSelectElement::createRenderer):
2573 (WebCore::HTMLSelectElement::recalcListItems):
2574 (WebCore::HTMLSelectElement::setRecalcListItems):
2575 (WebCore::HTMLSelectElement::reset):
2576 (WebCore::HTMLSelectElement::notifyOptionSelected):
2577 (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
2578 (WebCore::HTMLSelectElement::nextSelectableListIndex):
2579 (WebCore::HTMLSelectElement::previousSelectableListIndex):
2580 * html/HTMLSelectElement.h:
2582 * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
2583 (WebCore::RenderTheme::paint):
2584 (WebCore::RenderTheme::paintBorderOnly):
2585 (WebCore::RenderTheme::paintDecorations):
2586 (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
2587 (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
2588 (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
2589 (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
2590 (WebCore::RenderTheme::isControlStyled):
2591 (WebCore::RenderTheme::supportsFocusRing):
2592 * rendering/RenderTheme.h:
2593 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
2595 * rendering/RenderListBox.cpp: Added.
2596 (WebCore::RenderListBox::RenderListBox):
2597 (WebCore::RenderListBox::~RenderListBox):
2598 (WebCore::RenderListBox::setStyle):
2599 (WebCore::RenderListBox::updateFromElement):
2600 (WebCore::RenderListBox::calcMinMaxWidth):
2601 (WebCore::RenderListBox::size):
2602 (WebCore::RenderListBox::numItems):
2603 (WebCore::RenderListBox::calcHeight):
2604 (WebCore::RenderListBox::baselinePosition):
2605 (WebCore::RenderListBox::itemBoundingBoxRect):
2606 (WebCore::RenderListBox::paintObject):
2607 (WebCore::RenderListBox::paintScrollbar):
2608 (WebCore::RenderListBox::paintItemForeground):
2609 (WebCore::RenderListBox::paintItemBackground):
2610 (WebCore::RenderListBox::scrollBarTarget):
2611 (WebCore::RenderListBox::isPointInScrollbar):
2612 (WebCore::RenderListBox::optionAtPoint):
2613 (WebCore::RenderListBox::autoscroll):
2614 (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
2615 (WebCore::RenderListBox::scroll):
2616 (WebCore::RenderListBox::valueChanged):
2617 * rendering/RenderListBox.h: Added.
2618 (WebCore::RenderListBox::isListBox):
2619 (WebCore::RenderListBox::selectionChanged):
2620 (WebCore::RenderListBox::setSelectionChanged):
2621 (WebCore::RenderListBox::canHaveChildren):
2622 (WebCore::RenderListBox::renderName):
2623 (WebCore::RenderListBox::setOptionsChanged):
2624 (WebCore::RenderListBox::shouldAutoscroll):
2625 (WebCore::RenderListBox::listIndexIsVisible):
2627 2006-09-29 Beth Dakin <bdakin@apple.com>
2631 We had a bug where html4.css was ignoring Media Queries. In the end
2632 the problem was that we were trying to send a char* to the
2633 MediaQueryEvaluator constructor that expects a String, but the
2634 char* got interpreted as a bool, the wrong constructor was called,
2635 and the media type was never set.
2637 No test case possible since this only affects html4.css
2639 * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
2641 (WebCore::MediaQueryEvaluator):
2642 * css/MediaQueryEvaluator.h: Same.
2644 2006-09-29 Geoffrey Garen <ggaren@apple.com>
2646 Reviewed by John, Maciej.
2648 Integrated some frame and iframe code. I'm trying to fix up frame ownership
2649 and loading. Reducing the number of different code paths involved
2650 seemed like a good first step.
2652 As a side effect, I fixed a bug where FRAME elements would report their
2653 src attributes as relative, rather than compelete, URLs. (IFRAME elements
2654 had the correct complete URL behavior.)
2656 * html/HTMLFrameElement.cpp:
2657 (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
2658 (WebCore::HTMLFrameElement::openURL):
2659 (1) Removed checks that requestFrame does for us
2660 (2) Added isURLAllowed check, to have one clear bottleneck for it
2661 (3) Added viewsource check, to have one clear bottleneck for it
2662 (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
2663 method, instead of finding our content frame in our own unique way.
2664 (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
2665 since openURL does this for us now.
2666 (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
2667 This is what FF does, and it made no sense to have different behaviors
2668 for FRAME and IFRAME elements.
2669 * html/HTMLIFrameElement.cpp:
2670 (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
2672 * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
2673 HTMLFrameElement now does everything we need.
2675 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
2682 * platform/qt/ScrollViewQt.cpp:
2683 (WebCore::ScrollView::convertToContainingWindow):
2684 (WebCore::ScrollView::convertFromContainingWindow):
2685 * platform/qt/TemporaryLinkStubs.cpp:
2686 (WebCore::signedPublicKeyAndChallengeString):
2687 * platform/qt/WidgetQt.cpp:
2688 (WebCore::Widget::convertToContainingWindow):
2689 (WebCore::Widget::convertFromContainingWindow):
2691 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
2695 Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
2696 Simplify Internal methods for the auto-generated Objective-C DOM code
2698 - Auto-generate the internal methods for more Objective-C classes.
2700 * WebCore.xcodeproj/project.pbxproj:
2701 * bindings/objc/DOM.mm:
2702 * bindings/objc/DOMCSS.mm:
2703 (-[DOMStyleSheet WebCore::]):
2704 (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2705 (-[DOMCSSRule WebCore::]):
2706 (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2707 (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2708 (-[DOMCSSValue WebCore::]):
2709 (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2710 (+[DOMCSSValue _CSSValueWith:WebCore::]):
2711 * bindings/objc/DOMHTMLAppletElement.mm:
2712 (-[DOMHTMLAppletElement WebCore::]):
2713 (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
2714 * bindings/objc/DOMHTMLEmbedElement.mm:
2715 (-[DOMHTMLEmbedElement WebCore::]):
2716 (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
2717 * bindings/objc/DOMInternal.h:
2718 * bindings/objc/DOMInternal.mm:
2719 * bindings/scripts/CodeGeneratorObjC.pm:
2720 * css/CSSCharsetRule.idl:
2721 * css/CSSFontFaceRule.idl:
2722 * css/CSSImportRule.idl:
2723 * css/CSSMediaRule.idl:
2724 * css/CSSPageRule.idl:
2725 * css/CSSPrimitiveValue.idl:
2726 * css/CSSStyleRule.idl:
2727 * css/CSSStyleSheet.idl:
2728 * css/CSSUnknownRule.idl:
2729 * css/CSSValueList.idl:
2730 * dom/KeyboardEvent.idl:
2731 * dom/MouseEvent.idl:
2732 * dom/MutationEvent.idl:
2733 * dom/NodeIterator.idl:
2734 * dom/OverflowEvent.idl:
2736 * dom/WheelEvent.idl:
2738 2006-09-29 David Harrison <harrison@apple.com>
2740 Reviewed by John Sullivan.
2742 <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
2743 <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
2746 * fast/text/attributed-substring-from-range-001.html
2748 * bridge/mac/FrameMac.mm:
2749 (WebCore::FrameMac::attributedString):
2750 Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
2751 Also, add validation of the range.
2753 2006-09-29 Rob Buis <buis@kde.org>
2757 http://bugs.webkit.org/show_bug.cgi?id=10893
2758 InsertRule can not handle @import statements
2760 Allow @import as part of a css rule.
2764 2006-09-28 David Hyatt <hyatt@apple.com>
2766 Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2768 * bridge/mac/FrameMac.mm:
2769 (WebCore::FrameMac::eventMayStartDrag):
2770 (WebCore::FrameMac::dragHysteresisExceeded):
2771 (WebCore::FrameMac::mouseDown):
2772 (WebCore::FrameMac::shouldDragAutoNode):
2773 (WebCore::FrameMac::sendContextMenuEvent):
2774 * bridge/mac/WebCoreFrameBridge.mm:
2775 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2777 2006-09-28 Dave Hyatt <hyatt@apple.com>
2779 This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2780 ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2783 Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2784 the patch after review, once I realized that these new functions essentially do the same thing.)
2786 * dom/EventTargetNode.cpp:
2787 (WebCore::EventTargetNode::dispatchMouseEvent):
2788 (WebCore::EventTargetNode::dispatchWheelEvent):
2790 (WebCore::Frame::selectClosestWordFromMouseEvent):
2791 (WebCore::Frame::handleMousePressEventTripleClick):
2792 (WebCore::Frame::handleMousePressEventSingleClick):
2793 (WebCore::Frame::handleMouseMoveEvent):
2794 (WebCore::Frame::handleMouseReleaseEvent):
2795 * page/FrameView.cpp:
2796 (WebCore::FrameView::handleMousePressEvent):
2797 (WebCore::selectCursor):
2798 (WebCore::FrameView::dispatchDragEvent):
2799 (WebCore::FrameView::prepareMouseEvent):
2800 (WebCore::FrameView::handleWheelEvent):
2801 * platform/ScrollView.h:
2802 * platform/Widget.cpp:
2803 (WebCore::Widget::convertToContainingWindow):
2804 * platform/Widget.h:
2805 * platform/mac/ScrollViewMac.mm:
2806 (WebCore::ScrollView::convertToContainingWindow):
2807 (WebCore::ScrollView::convertFromContainingWindow):
2808 * platform/mac/WidgetMac.mm:
2809 (WebCore::Widget::convertToContainingWindow):
2810 (WebCore::Widget::convertFromContainingWindow):
2811 * platform/win/ScrollViewWin.cpp:
2812 (WebCore::ScrollView::convertToContainingWindow):
2813 (WebCore::ScrollView::convertFromContainingWindow):
2814 * rendering/RenderLayer.cpp:
2815 (WebCore::RenderLayer::resize):
2817 2006-09-28 Alice Liu <alice.liu@apple.com>
2819 Build fix by adding missing files for CommandByName
2821 * WebCore.xcodeproj/project.pbxproj:
2823 2006-09-28 Alice Liu <alice.liu@apple.com>
2825 Adding CommandByName files to the vcproj
2827 * WebCore.vcproj/WebCore/WebCore.vcproj:
2829 2006-09-28 Alice Liu <alice.liu@apple.com>
2831 Reviewed by Adam Roben.
2833 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.
2834 This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2835 This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2837 * editing/CommandByName.cpp: Added.
2838 Added a command class that hangs off the frame so the frame can call commands more easily.
2839 (WebCore::Frame::commandImp):
2840 (WebCore::Frame::execCopy):
2841 (WebCore::Frame::execCut):
2842 (WebCore::Frame::execDelete):
2843 (WebCore::Frame::execForwardDelete):
2844 (WebCore::Frame::execPaste):
2845 (WebCore::Frame::execMoveLeft):
2846 (WebCore::Frame::execMoveRight):
2847 (WebCore::Frame::execMoveUp):
2848 (WebCore::Frame::execMoveDown):
2849 (WebCore::Frame::execSelectAll):
2850 (WebCore::Frame::execSelectLeft):
2851 (WebCore::Frame::execSelectRight):
2852 (WebCore::Frame::execSelectUp):
2853 (WebCore::Frame::execSelectDown):
2854 (WebCore::Frame::enabled):
2855 (WebCore::Frame::enabledAnySelection):
2856 (WebCore::Frame::enabledAnyEditableSelection):
2857 (WebCore::Frame::enabledPaste):
2858 (WebCore::Frame::enabledAnyRangeSelection):
2859 (WebCore::Frame::enabledAnyEditableRangeSelection):
2860 (WebCore::Frame::createCommandDictionary):
2861 (WebCore::Frame::Command::):
2862 (WebCore:::m_frame):
2863 (WebCore::CommandByName::execCommand):
2864 * editing/CommandByName.h: Added.
2866 Added implementation of accessor for CommandByName member
2867 (WebCore::Frame::command):
2869 Added accessor for CommandByName member
2870 * page/FramePrivate.h:
2871 Added a CommandByName member
2872 (WebCore::FramePrivate::FramePrivate):
2873 * platform/PlatformMouseEvent.h:
2874 Changed constructor prototype
2875 * platform/StringImpl.cpp:
2876 Exposing getWordBreakIterator to be used elsewhere
2877 (WebCore::getWordBreakIterator):
2878 * platform/StringImpl.h:
2879 Exposing getWordBreakIterator to be used elsewhere
2880 * platform/win/MouseEventWin.cpp:
2881 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
2882 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2884 2006-09-28 Adam Roben <aroben@apple.com>
2888 Remove no-longer-used PopUpButton.
2890 * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2891 * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2893 * platform/PopUpButton.h: Removed.
2894 * platform/mac/PopUpButtonMac.mm: Removed.
2895 * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2896 * rendering/DeprecatedRenderSelect.cpp: Change #include of
2897 PopUpButton.h to ListBox.h
2899 2006-09-28 Darin Adler <darin@apple.com>
2903 - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2904 10% perf. regression (copying strings while decoding)
2906 Use Vector<UChar> instead of String when building up the decoded string in
2907 the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2908 String grows the buffer every single time that append is called. Using
2909 Vector::append instead of String::append also avoids constructing a string
2910 each time just to append and a questionable copy that is done inside the
2911 String::append function which also contributed to the slowness.
2913 * platform/PlatformString.h:
2914 * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2915 Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2917 * platform/StringImpl.h:
2918 * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2920 * platform/StreamingTextDecoder.h:
2921 * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2922 Change to use a Vector<UChar> instead of a String, since vectors have better
2923 resizing performance (they store a separate capacity).
2925 * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2926 * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2927 Change to use Vector<UChar> instead of String and then create a string at
2928 the end of the process using the new adopt function.
2930 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
2934 Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2935 Auto-generate more SVG Objective-C bindings
2937 - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
2938 DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2939 DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2940 DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2941 DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2942 DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
2943 and DOMSVGTransformable.
2945 - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2946 parent interfaces and the SVG animated classes.
2948 - Corrects CodeGenerator.pm to only skip the first parent for the main
2951 * DerivedSources.make:
2952 * WebCore.xcodeproj/project.pbxproj:
2953 * bindings/objc/DOMInternal.h:
2954 * bindings/objc/DOMSVG.h:
2955 * bindings/scripts/CodeGenerator.pm:
2956 * bindings/scripts/CodeGeneratorObjC.pm:
2957 * ksvg2/svg/SVGAnimatedAngle.idl:
2958 * ksvg2/svg/SVGAnimatedBoolean.idl:
2959 * ksvg2/svg/SVGAnimatedEnumeration.idl:
2960 * ksvg2/svg/SVGAnimatedInteger.idl:
2961 * ksvg2/svg/SVGAnimatedLength.idl:
2962 * ksvg2/svg/SVGAnimatedLengthList.idl:
2963 * ksvg2/svg/SVGAnimatedNumber.idl:
2964 * ksvg2/svg/SVGAnimatedPathData.idl:
2965 * ksvg2/svg/SVGAnimatedString.idl:
2966 * ksvg2/svg/SVGAnimatedTransformList.idl:
2967 * ksvg2/svg/SVGExternalResourcesRequired.idl:
2968 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2969 * ksvg2/svg/SVGFitToViewBox.idl:
2970 * ksvg2/svg/SVGLangSpace.idl:
2971 * ksvg2/svg/SVGLocatable.idl:
2972 * ksvg2/svg/SVGMetadataElement.idl:
2973 * ksvg2/svg/SVGStringList.idl:
2974 * ksvg2/svg/SVGStylable.idl:
2975 * ksvg2/svg/SVGStyleElement.idl:
2976 * ksvg2/svg/SVGTests.idl:
2977 * ksvg2/svg/SVGTransformable.idl:
2978 * ksvg2/svg/SVGURIReference.idl:
2979 * ksvg2/svg/SVGUnitTypes.idl:
2980 * ksvg2/svg/SVGZoomAndPan.idl:
2982 2006-09-28 Brady Eidson <beidson@apple.com>
2984 Reviewed by Mitz Pettel!!!
2986 Change the error code check for common functions from SQLResultOk to SQLResultDone
2988 * loader/icon/IconDatabase.cpp:
2989 (WebCore::IconDatabase::forgetPageURLQuery):
2990 (WebCore::IconDatabase::setIconIDForPageURLQuery):
2991 (WebCore::IconDatabase::addIconForIconURLQuery):
2993 2006-09-28 Dave Hyatt <hyatt@apple.com>
2995 Just eliminate MapWindowPoints usage and use the HWND as
2998 * platform/win/MouseEventWin.cpp:
2999 (WebCore::positionForEvent):
3000 * platform/win/ScrollViewWin.cpp:
3001 (WebCore::ScrollView::viewportToContents):
3002 (WebCore::ScrollView::contentsToViewport):
3004 2006-09-27 David Hyatt <hyatt@apple.com>
3006 Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
3007 selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
3008 scrollbars to provide hover feedback if needed.
3012 * page/FrameView.cpp:
3013 (WebCore::selectCursor):
3014 (WebCore::FrameView::handleMouseMoveEvent):
3015 * platform/ScrollBar.h:
3016 (WebCore::ScrollBar::mouseMoved):
3018 2006-09-27 MorganL <morganl.webkit@yahoo.com>
3020 Reviewed by Maciej and Adam, landed by Adam
3022 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
3023 Windows build is busted
3025 * platform/win/TemporaryLinkStubs.cpp:
3026 (ScrollView::paint):
3027 (ScrollView::themeChanged):
3029 2006-09-27 Eric Seidel <eric@eseidel.com>
3033 paths with no fill specified default to black but do not recieve paint-related mouse events
3034 http://bugs.webkit.org/show_bug.cgi?id=11069
3035 The default fill was being applied at the wrong place in the rendering chain, causing this problem.
3037 Test: svg/custom/hover-default-fill.svg
3039 * kcanvas/RenderPath.cpp:
3040 (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
3041 * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
3042 * ksvg2/misc/KCanvasRenderingStyle.cpp:
3043 (WebCore::KSVGPainterFactory::isFilled): remove null check
3044 (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
3045 (WebCore::KSVGPainterFactory::isStroked): remove null check
3046 (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
3047 * ksvg2/svg/SVGPaint.cpp:
3048 (WebCore::SVGPaint::defaultFill): added.
3049 (WebCore::SVGPaint::defaultStroke): added.
3050 * ksvg2/svg/SVGPaint.h:
3052 2006-09-27 Rob Buis <buis@kde.org>
3054 Reviewed by eseidel.
3056 http://bugs.webkit.org/show_bug.cgi?id=11015
3057 SVG handles em units incorrectly
3059 Calculate viewport coordinates at layout time, since
3060 at this point the font size is known and lengths depending
3061 on font sizes can be calculated correctly.
3063 * kcanvas/RenderSVGContainer.cpp:
3064 (WebCore::RenderSVGContainer::layout):
3065 (WebCore::RenderSVGContainer::viewport):
3066 (WebCore::RenderSVGContainer::calcViewport):
3067 * kcanvas/RenderSVGContainer.h:
3068 * ksvg2/svg/SVGLength.cpp:
3069 (WebCore::SVGLength::updateValue):
3070 * ksvg2/svg/SVGMarkerElement.cpp:
3071 (WebCore::SVGMarkerElement::createRenderer):
3072 * ksvg2/svg/SVGSVGElement.cpp:
3073 (WebCore::SVGSVGElement::createRenderer):
3074 (WebCore::SVGSVGElement::attributeChanged):
3075 * ksvg2/svg/SVGSVGElement.h:
3077 2006-09-27 Eric Seidel <eric@eseidel.com>
3081 Change our invalid-fill error behavior to match Opera (and soon Firefox)
3082 http://bugs.webkit.org/show_bug.cgi?id=11017
3084 * ksvg2/misc/KCanvasRenderingStyle.cpp:
3085 (WebCore::KSVGPainterFactory::isFilled):
3086 (WebCore::KSVGPainterFactory::fillPaintServer):
3087 (WebCore::KSVGPainterFactory::isStroked):
3088 (WebCore::KSVGPainterFactory::strokePaintServer):
3090 2006-09-27 Brady Eidson <beidson@apple.com>
3094 * loader/icon/IconDatabase.cpp:
3095 (WebCore::readySQLStatement):
3097 2006-09-27 Brady Eidson <beidson@apple.com>
3101 In very specific circumstances, prepared SQLStatements can become invalid without
3102 any warning. This checks for that state and re-prepares the statement and also
3103 adds more aggressive error-checking everywhere these statements are used.
3105 * loader/icon/IconDatabase.cpp:
3106 (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
3107 (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
3108 (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
3109 (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
3110 (WebCore::IconDatabase::forgetPageURLQuery): Ditto
3111 (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
3112 (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
3113 (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
3114 (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
3115 * loader/icon/SQLStatement.cpp:
3116 (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
3117 * loader/icon/SQLStatement.h:
3119 2006-09-26 Darin Adler <darin@apple.com>
3123 - clean up options for font code path
3126 * platform/Font.cpp:
3127 (WebCore::Font::setCodePath): Added. Replaces boolean version.
3128 (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
3130 * platform/mac/WebCoreTextRenderer.mm:
3131 (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
3133 2006-09-26 John Sullivan <sullivan@apple.com>
3137 * bridge/mac/WebCoreFrameBridge.h:
3138 * bridge/mac/WebCoreFrameBridge.mm:
3139 (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
3140 Added limit parameter, passed down to Frame
3144 (WebCore::Frame::markAllMatchesForText):
3145 Added limit parameter. Stop the search if it hits limit.
3147 2006-09-26 Sean Gies <seangies@apple.com>
3149 Reviewed by Brady Eidson.
3151 * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
3153 2006-09-26 Justin Garcia <justin.garcia@apple.com>
3157 <rdar://problem/4747695>
3158 Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
3160 * editing/DeleteSelectionCommand.cpp:
3161 (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
3162 to select special elements that are fully selected after expansion
3163 moves to positions that are visually distinct from the originals.
3164 * editing/InsertListCommand.cpp:
3165 (WebCore::InsertListCommand::doApply): If the content of the list
3166 item will be moved into another list, put it in a list item.
3168 2006-09-26 Geoffrey Garen <ggaren@apple.com>
3172 Temporary work-around for frame lifetime issue.
3175 (WebCore::Frame::clear):
3176 (WebCore::Frame::disconnectOwnerElement):
3178 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
3182 Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
3183 Auto-generate DOMSVGElement for the Objective-C bindings
3185 - Auto-generates DOMSVGElement.
3187 - Make SVGExceptions work like all the other ExceptionCode
3188 extensions (Range, XPath, etc.) by adding SVGExceptionOffset
3189 and SVGExceptionMax.
3191 * DerivedSources.make:
3192 * WebCore.xcodeproj/project.pbxproj:
3193 * bindings/js/kjs_binding.cpp:
3195 (KJS::setDOMException):
3196 * bindings/objc/DOMInternal.h:
3197 * bindings/objc/DOMInternal.mm:
3198 (raiseDOMException):
3199 * bindings/objc/DOMSVG.h:
3200 * bindings/objc/DOMSVGExecption.h: Added.
3202 * ksvg2/svg/SVGElement.cpp:
3203 (WebCore::SVGElement::setId):
3204 (WebCore::SVGElement::setXmlbase):
3205 * ksvg2/svg/SVGElement.h:
3206 * ksvg2/svg/SVGElement.idl:
3207 * ksvg2/svg/SVGException.h: Added.
3210 2006-09-26 Eric Seidel <eric@eseidel.com>
3214 viewbox parser does not allow <tab> as a delimiter
3215 http://bugs.webkit.org/show_bug.cgi?id=11014
3217 Test: svg/hixie/viewbox/003.xml
3219 * ksvg2/svg/svgpathparser.cpp:
3220 (WebCore::isWhitespace): new function
3221 (WebCore::skipOptionalSpaces):
3222 (WebCore::skipOptionalSpacesOrComma):
3224 2006-09-26 Eric Seidel <eric@eseidel.com>
3228 SVGDocument::createElement does not create elements in the SVG namespace
3229 http://bugs.webkit.org/show_bug.cgi?id=10932
3231 Test: svg/custom/createelement.svg
3233 * ksvg2/svg/SVGDocument.cpp:
3234 (WebCore::SVGDocument::createElement):
3235 * ksvg2/svg/SVGDocument.h:
3237 2006-09-26 Eric Seidel <eric@eseidel.com>
3241 RenderPath::nodeAtPoint does not respect stroke width
3242 http://bugs.webkit.org/show_bug.cgi?id=10829
3244 Test: svg/custom/stroke-width-click.svg
3246 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
3247 (WebCore::RenderPath::strokeContains):
3248 * kcanvas/device/quartz/QuartzSupport.h:
3249 * kcanvas/device/quartz/QuartzSupport.mm:
3251 2006-09-26 Eric Seidel <eric@eseidel.com>
3255 Bring animation back to life
3256 http://bugs.webkit.org/show_bug.cgi?id=11021
3258 Register/unregister SVGSVGElements as time containers on insertion/removal.
3259 Replace uses of DeprecatedString with String in SVGAnimationElement
3260 Various whitespace clean-up.
3262 * ksvg2/misc/KSVGTimeScheduler.cpp:
3263 (WebCore::SVGTimer::notifyAll):
3264 * ksvg2/misc/SVGDocumentExtensions.cpp:
3265 (WebCore::SVGDocumentExtensions::startAnimations):
3266 (WebCore::SVGDocumentExtensions::pauseAnimations):
3267 (WebCore::SVGDocumentExtensions::unpauseAnimations):
3268 * ksvg2/svg/SVGAnimateTransformElement.cpp:
3269 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3270 (WebCore::SVGAnimateTransformElement::parseTransformValue):
3271 * ksvg2/svg/SVGAnimateTransformElement.h:
3272 * ksvg2/svg/SVGAnimationElement.cpp:
3273 (WebCore::SVGAnimationElement::SVGAnimationElement):
3274 (WebCore::SVGAnimationElement::parseMappedAttribute):
3275 (WebCore::SVGAnimationElement::parseClockValue):
3276 (WebCore::SVGAnimationElement::targetAttribute):
3277 (WebCore::SVGAnimationElement::setTargetAttribute):
3278 (WebCore::SVGAnimationElement::attributeName):
3279 * ksvg2/svg/SVGAnimationElement.h:
3280 (WebCore::SVGAnimationElement::rendererIsNeeded):
3281 * ksvg2/svg/SVGSVGElement.cpp:
3282 (WebCore::SVGSVGElement::getScreenCTM):
3283 (WebCore::SVGSVGElement::createRenderer):
3284 (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3285 (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3286 * ksvg2/svg/SVGSVGElement.h:
3287 * ksvg2/svg/SVGSetElement.cpp:
3288 (WebCore::SVGSetElement::handleTimerEvent):
3289 * ksvg2/svg/SVGURIReference.cpp:
3290 (WebCore::SVGURIReference::getTarget):
3291 * ksvg2/svg/SVGURIReference.h:
3293 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
3295 Reviewed by mitzpettel.
3297 - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3298 No-SVG build broken since r16549
3300 Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3302 * css/cssparser.cpp:
3303 (WebCore::CSSParser::parseValue):
3304 * css/cssstyleselector.cpp:
3305 (WebCore::CSSStyleSelector::applyProperty):
3306 * page/FrameView.cpp:
3307 (WebCore::selectCursor):
3308 * platform/qt/GraphicsContextQt.cpp:
3310 2006-09-26 Anders Carlsson <acarlsson@apple.com>
3314 http://bugs.webkit.org/show_bug.cgi?id=10820
3315 Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
3317 (Originally written by Eric Seidel).
3319 * bindings/js/kjs_window.cpp:
3320 (KJS::floatFeature):
3321 * ksvg2/svg/SVGAngle.cpp:
3322 (SVGAngle::setValueAsString):
3323 * ksvg2/svg/SVGAnimationElement.cpp:
3324 (SVGAnimationElement::parseMappedAttribute):
3325 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3326 (SVGComponentTransferFunctionElement::parseMappedAttribute):
3327 * ksvg2/svg/SVGFECompositeElement.cpp:
3328 (WebCore::SVGFECompositeElement::parseMappedAttribute):
3329 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3330 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3331 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3332 (SVGFEDisplacementMapElement::parseMappedAttribute):
3333 * ksvg2/svg/SVGFELightElement.cpp:
3334 (SVGFELightElement::parseMappedAttribute):
3335 * ksvg2/svg/SVGFEOffsetElement.cpp:
3336 (WebCore::SVGFEOffsetElement::parseMappedAttribute):
3337 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3338 (SVGFESpecularLightingElement::parseMappedAttribute):
3339 * ksvg2/svg/SVGFETurbulenceElement.cpp:
3340 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3341 * ksvg2/svg/SVGStopElement.cpp:
3342 (SVGStopElement::parseMappedAttribute):
3343 * platform/AtomicString.h:
3344 (WebCore::AtomicString::toDouble):
3345 * platform/PlatformString.h:
3346 * platform/String.cpp:
3347 (WebCore::String::toDouble):
3348 * platform/StringImpl.cpp:
3349 (WebCore::StringImpl::toDouble):
3350 * platform/StringImpl.h:
3351 * rendering/DeprecatedSlider.cpp:
3352 (WebCore::DeprecatedSlider::updateFromElement):
3353 * xml/XPathGrammar.y:
3355 2006-09-25 David Harrison <harrison@apple.com>
3357 Reviewed by Tim Omernick and Tim Hatcher.
3359 <rdar://problem/4717965> Text Field text parameterized attributes should work
3360 <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
3362 * bridge/mac/WebCoreAXObject.mm:
3363 (-[WebCoreAXObject accessibilityAttributeValue:]):
3364 Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
3366 (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
3367 Cleaned up. Added text field and text area parameterzed attributes.
3369 (-[WebCoreAXObject doAXLineForTextMarker:]):
3370 Fixed to be zero-based and to deal with the first position properly.
3372 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3375 (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
3376 (-[WebCoreAXObject indexForTextMarker:]):
3377 (-[WebCoreAXObject textMarkerRangeForRange:]):
3378 (-[WebCoreAXObject rangeForTextMarkerRange:]):
3379 New utility methods.
3381 (-[WebCoreAXObject doAXLineForIndex:]):
3382 (-[WebCoreAXObject doAXRangeForLine:]):
3383 (-[WebCoreAXObject doAXStringForRange:]):
3384 (-[WebCoreAXObject doAXRangeForPosition:]):
3385 (-[WebCoreAXObject doAXRangeForIndex:]):
3386 (-[WebCoreAXObject doAXBoundsForRange:]):
3387 (-[WebCoreAXObject doAXAttributedStringForRange:]):
3388 (-[WebCoreAXObject doAXRTFForRange:]):
3389 (-[WebCoreAXObject doAXStyleRangeForIndex:]):
3390 Implement text field and text area parameterized attributes.
3392 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
3393 Added text field and text area parameterzed attributes.
3395 * rendering/RenderTextControl.h:
3396 Made indexForVisiblePosition() and visiblePositionForIndex() public.
3398 2006-09-25 Adam Roben <aroben@apple.com>
3404 * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
3405 * platform/ResourceLoader.h: Store whether a particular job
3406 has received a response within the ResourceLoader object itself, since
3407 it's possible that we will enter the InternetReadFileExA while loop
3408 twice for the same job.
3409 * platform/ResourceLoaderInternal.h: Add private instance variable to
3410 store whether we've received a response.
3411 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3412 * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
3414 * platform/win/ResourceLoaderWin.cpp:
3415 (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
3416 whether it has received a response instead of assuming it hasn't.
3417 (WebCore::ResourceLoader::setHasReceivedResponse): Added.
3418 (WebCore::ResourceLoader::hasReceivedResponse): Added.
3419 * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
3421 (ScrollBar::setProportion):
3423 2006-09-25 Brady Eidson <beidson@apple.com>
3427 Disabled IconDatabase logging by default
3429 * platform/Logging.cpp:
3432 2006-09-25 Steve Falkenburg <sfalken@apple.com>
3436 * platform/cf/ResourceLoaderCFNet.cpp:
3437 (WebCore::willCacheResponse):
3439 2006-09-25 Justin Garcia <justin.garcia@apple.com>
3443 <http://bugs.webkit.org/show_bug.cgi?id=11002>
3444 Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
3446 * editing/IndentOutdentCommand.cpp:
3447 (WebCore::IndentOutdentCommand::indentRegion): Special case
3448 an empty root editable element.
3450 2006-09-25 Brady Eidson <beidson@apple.com>
3454 Math error in SystemTimeWin
3456 * platform/win/SystemTimeWin.cpp:
3457 (WebCore::currentTime):
3459 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
3463 Whitespace cleanup; rename *job variables to *loader.
3465 * bindings/js/JSXMLHttpRequest.cpp:
3466 (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
3467 (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
3468 (KJS::JSXMLHttpRequestConstructorImp::construct):
3469 (KJS::JSXMLHttpRequest::getOwnPropertySlot):
3470 (KJS::JSXMLHttpRequest::getValueProperty):
3471 (KJS::JSXMLHttpRequest::put):
3472 (KJS::JSXMLHttpRequest::putValueProperty):
3473 (KJS::JSXMLHttpRequest::mark):
3474 (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
3475 (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
3476 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
3477 * bindings/js/JSXMLHttpRequest.h:
3478 (KJS::JSXMLHttpRequest::toBoolean):
3479 * xml/xmlhttprequest.cpp:
3480 (WebCore::XMLHttpRequest::XMLHttpRequest):
3481 (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
3482 (WebCore::XMLHttpRequest::send):
3483 (WebCore::XMLHttpRequest::abort):
3484 (WebCore::XMLHttpRequest::receivedAllData):
3485 (WebCore::XMLHttpRequest::receivedData):
3486 * xml/xmlhttprequest.h:
3489 2006-09-25 Timothy Hatcher <timothy@apple.com>
3493 - Deprecate the rest of the old-style methods that are not generated.
3494 - Add @property syntax to DOMRange.
3496 * WebCore.xcodeproj/project.pbxproj:
3497 * bindings/objc/DOM.mm:
3498 (-[DOMRange setStart:offset:]):
3499 (-[DOMRange setEnd:offset:]):
3500 (-[DOMRange compareBoundaryPoints:sourceRange:]):
3501 (-[DOMRange setStart::]):
3502 (-[DOMRange setEnd::]):
3503 (-[DOMRange compareBoundaryPoints::]):
3504 (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
3505 (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
3506 (-[DOMDocument createNodeIterator::::]):
3507 (-[DOMDocument createTreeWalker::::]):
3508 * bindings/objc/DOMCSS.h:
3509 * bindings/objc/DOMCSS.mm:
3510 (-[DOMDocument getComputedStyle:pseudoElement:]):
3511 (-[DOMDocument getComputedStyle::]):
3512 (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
3513 * bindings/objc/DOMExtensions.h:
3514 * bindings/objc/DOMHTML.h:
3515 * bindings/objc/DOMRange.h:
3516 * bindings/objc/DOMTraversal.h:
3518 2006-09-25 Eric Seidel <eric@eseidel.com>
3522 Outermost <svg> element should clip to viewport
3523 http://bugs.webkit.org/show_bug.cgi?id=11007
3525 Test: svg/custom/viewport-clip.svg
3527 * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
3529 2006-09-25 Anders Carlsson <acarlsson@apple.com>
3533 * css/MediaList.cpp:
3534 Remove unused header.
3537 (WebCore::Document::clear):
3538 Use clear instead of iterating through the list of event listeners, removing each one.
3539 (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
3541 * html/HTMLKeygenElement.cpp:
3542 (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3543 (WebCore::HTMLKeygenElement::appendFormData):
3544 Update due to changes in the SSL key generator.
3546 * ksvg2/svg/SVGAngle.cpp:
3547 Remove unused header.
3549 * ksvg2/svg/SVGAnimationElement.cpp:
3550 (SVGAnimationElement::parseMappedAttribute):
3551 Rename methods and pass Strings instead of DeprecatedStrings to
3554 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3555 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3556 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3557 * ksvg2/svg/SVGFEMergeElement.cpp:
3558 * ksvg2/svg/SVGFEOffsetElement.cpp:
3559 Remove unused headers.
3561 * ksvg2/svg/SVGHelper.cpp:
3562 (WebCore::SVGHelper::parseSeparatedList):
3563 * ksvg2/svg/SVGHelper.h:
3564 Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
3565 DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
3567 * ksvg2/svg/SVGLengthList.cpp:
3568 (WebCore::SVGLengthList::parse):
3569 * ksvg2/svg/SVGLengthList.h:
3570 Use Vector<String> instead of DeprecatedStringList.
3573 (WebCore::Cache::requestImage):
3574 (WebCore::Cache::requestStyleSheet):
3575 (WebCore::Cache::requestScript):
3576 (WebCore::Cache::requestXSLStyleSheet):
3577 (WebCore::Cache::requestXBLDocument):
3578 (WebCore::Cache::remove):
3579 (WebCore::Cache::get):
3580 Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
3582 * loader/DocLoader.cpp:
3583 (WebCore::DocLoader::needReload):
3584 * loader/DocLoader.h:
3585 Use a HashSet instead of DeprecatedStringList.
3588 Remove declarations that have no functions.
3590 * platform/SSLKeyGenerator.h:
3591 * platform/mac/SSLKeyGeneratorMac.mm:
3592 (WebCore::supportedKeySizes):
3593 (WebCore::signedPublicKeyAndChallengeString):
3594 Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
3597 2006-09-25 Dave Hyatt <hyatt@apple.com>
3599 Shunt the RenderTheme world transform adoption between
3600 Cairo and Windows into getWindowsContext and move the method
3601 out of GraphicsContextCairo and into GraphicsContextWin.
3604 * WebCore.vcproj/WebCore/WebCore.vcproj:
3605 * platform/cairo/GraphicsContextCairo.cpp:
3606 * platform/win/GraphicsContextWin.cpp: Added.
3607 (WebCore::GraphicsContext::getWindowsContext):
3608 (WebCore::GraphicsContext::releaseWindowsContext):
3609 * rendering/RenderThemeWin.cpp:
3610 (WebCore::prepareForDrawing):
3612 2006-09-24 Eric Seidel <eric@eseidel.com>
3616 <svg:a> cannot be styled with a:hover
3617 http://bugs.webkit.org/show_bug.cgi?id=11005
3619 Test: svg/hixie/cascade/002.xml
3621 * css/cssstyleselector.cpp:
3622 (WebCore::checkPseudoState):
3624 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3628 Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
3629 SVG needs Obj-C DOM bindings
3631 - Auto-generate the first 8 Objective-C SVG DOM bindings. The
3632 auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
3633 DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
3634 DOMSVGTransformList.
3636 * DerivedSources.make:
3637 * WebCore.xcodeproj/project.pbxproj:
3638 * bindings/objc/DOMInternal.h:
3639 * bindings/objc/DOMSVG.h: Added.
3640 * ksvg2/svg/SVGAngle.idl:
3641 * ksvg2/svg/SVGLength.idl:
3642 * ksvg2/svg/SVGLengthList.idl:
3643 * ksvg2/svg/SVGMatrix.idl:
3644 * ksvg2/svg/SVGPathSeg.idl:
3645 * ksvg2/svg/SVGPathSegList.idl:
3646 * ksvg2/svg/SVGTransform.idl:
3647 * ksvg2/svg/SVGTransformList.idl:
3649 2006-09-24 Rob Buis <buis@kde.org>
3651 Reviewed by eseidel.
3653 Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
3654 WebKit does not handle fallback custom cursors
3655 Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
3656 WebKit does not properly handle SVG <cursor> element
3658 Add support for svg cursor images. Also make sure hotspot
3659 settings are handled correctly. Add tests for handling of css3
3660 cursor syntax with hotspots in strict and quirks mode. Finally
3663 * WebCore.xcodeproj/project.pbxproj:
3664 * css/CSSComputedStyleDeclaration.cpp:
3665 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3666 * css/CSSCursorImageValue.cpp: Added.
3667 (WebCore::CSSCursorImageValue::CSSCursorImageValue):
3668 (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3669 * css/CSSCursorImageValue.h: Added.
3670 (WebCore::CSSCursorImageValue::hotspot):
3671 * css/cssparser.cpp:
3672 (WebCore::CSSParser::parseValue):
3673 * css/cssstyleselector.cpp:
3674 (WebCore::CSSStyleSelector::applyProperty):
3675 * ksvg2/svg/SVGCursorElement.cpp:
3676 * manual-tests/css3-cursor-fallback-quirks.html: Added.
3677 * manual-tests/css3-cursor-fallback-strict.html: Added.
3678 * manual-tests/cursorfallback.xml: Added.
3679 * page/FrameView.cpp:
3680 (WebCore::selectCursor):
3681 * platform/Cursor.h:
3682 * platform/mac/CursorMac.mm:
3683 (WebCore::createCustomCursor):
3684 (WebCore::Cursor::Cursor):
3685 * platform/qt/CursorQt.cpp:
3686 (WebCore::Cursor::Cursor):
3687 * rendering/RenderStyle.cpp:
3688 (WebCore::StyleInheritedData::StyleInheritedData):
3689 (WebCore::StyleInheritedData::operator==):
3690 (WebCore::RenderStyle::diff):
3691 (WebCore::RenderStyle::addCursor):
3692 (WebCore::RenderStyle::addSVGCursor):
3693 (WebCore::RenderStyle::setCursorList):
3694 (WebCore::RenderStyle::clearCursorList):
3695 * rendering/RenderStyle.h:
3696 (WebCore::CursorData::CursorData):
3697 (WebCore::CursorList::operator[]):
3698 (WebCore::CursorList::size):
3699 (WebCore::CursorList::append):
3700 (WebCore::RenderStyle::cursors):
3702 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3706 Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
3707 Auto-generate the internal methods interfaces for the Objective-C bindings
3709 - Auto-generate the internal method declarations into their own files
3710 named in the form DOMFooBarInternal.h for class DOMFooBar.
3712 - Remove all use of DOM_cast from code.
3714 - Assorted cleanups.
3716 * WebCore.xcodeproj/project.pbxproj:
3717 * bindings/objc/DOM.mm:
3718 (-[DOMNode _initWithNode:WebCore::]):
3719 (-[DOMNode WebCore::]):
3720 (-[DOMRange dealloc]):
3721 (-[DOMRange finalize]):
3722 (-[DOMRange _initWithRange:WebCore::]):
3723 (-[DOMRange WebCore::]):
3724 (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3725 (-[DOMNodeFilter WebCore::]):
3726 (-[DOMNodeFilter dealloc]):
3727 (-[DOMNodeFilter finalize]):
3728 (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
3729 (-[DOMNodeIterator WebCore::]):
3730 (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
3731 (-[DOMTreeWalker WebCore::]):
3732 * bindings/objc/DOMAbstractView.mm:
3733 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
3734 * bindings/objc/DOMCSS.mm:
3735 (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
3736 (-[DOMCSSRule _initWithRule:WebCore::]):
3737 (-[DOMCSSValue _initWithValue:WebCore::]):
3738 * bindings/objc/DOMEvents.mm:
3739 (-[DOMEvent _initWithEvent:WebCore::]):
3740 * bindings/objc/DOMHTMLAppletElement.mm:
3741 (-[DOMHTMLAppletElement align]):
3742 (-[DOMHTMLAppletElement setAlign:]):
3743 (-[DOMHTMLAppletElement alt]):
3744 (-[DOMHTMLAppletElement setAlt:]):
3745 (-[DOMHTMLAppletElement archive]):
3746 (-[DOMHTMLAppletElement setArchive:]):
3747 (-[DOMHTMLAppletElement code]):
3748 (-[DOMHTMLAppletElement setCode:]):
3749 (-[DOMHTMLAppletElement codeBase]):
3750 (-[DOMHTMLAppletElement setCodeBase:]):
3751 (-[DOMHTMLAppletElement height]):
3752 (-[DOMHTMLAppletElement setHeight:]):
3753 (-[DOMHTMLAppletElement hspace]):
3754 (-[DOMHTMLAppletElement setHspace:]):
3755 (-[DOMHTMLAppletElement name]):
3756 (-[DOMHTMLAppletElement setName:]):
3757 (-[DOMHTMLAppletElement object]):
3758 (-[DOMHTMLAppletElement setObject:]):
3759 (-[DOMHTMLAppletElement vspace]):
3760 (-[DOMHTMLAppletElement setVspace:]):
3761 (-[DOMHTMLAppletElement width]):
3762 (-[DOMHTMLAppletElement setWidth:]):
3763 * bindings/objc/DOMInternal.h:
3767 * bindings/objc/DOMXPath.mm:
3768 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3769 * bindings/scripts/CodeGeneratorObjC.pm:
3771 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3773 Reviewed by eseidel.
3775 Fix Qt/Linux build after Dave's Scrollbar changes.
3777 * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3778 * platform/qt/TemporaryLinkStubs.cpp:
3779 (WebCore::ScrollBar::setProportion):
3780 (WebCore::PlatformScrollBar::updateThumbPosition):
3781 (WebCore::PlatformScrollBar::updateThumbProportion):
3783 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3785 Reviewed by eseidel.
3787 Qt/Linux build system changes: enable xpath/xslt by default.
3788 Offer possibility to change all of these using 'ccmake'.
3792 2006-09-24 Dave Hyatt <hyatt@apple.com>
3794 Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
3795 Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3796 the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3798 * platform/ScrollBar.cpp:
3799 (WebCore::ScrollBar::setValue):
3800 (WebCore::ScrollBar::setProportion):
3801 * platform/ScrollBar.h:
3802 (WebCore::ScrollBar::value):
3803 * platform/mac/PlatformScrollBar.h:
3804 * platform/mac/PlatformScrollBarMac.mm:
3805 (WebCore::PlatformScrollBar::updateThumbPosition):
3806 (WebCore::PlatformScrollBar::updateThumbProportion):
3807 * platform/win/PlatformScrollBar.h:
3808 * platform/win/TemporaryLinkStubs.cpp:
3809 (PlatformScrollBar::updateThumbPosition):
3810 (PlatformScrollBar::updateThumbProportion):
3811 * rendering/RenderLayer.cpp:
3812 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3814 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
3818 http://bugs.webkit.org/show_bug.cgi?id=4872
3819 XMLHttpRequest fails to throw an exception when there is a security violation
3820 (mismatching domains)
3822 Raise an exception if there is a security violation, and also in cases required by
3823 the current draft of XHR specification.
3825 * bindings/js/JSXMLHttpRequest.cpp:
3826 (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3827 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3828 reports one, and also if there were too few arguments passed.
3830 * bindings/js/kjs_binding.cpp:
3831 (KJS::setDOMException): Added support for custom XHR exceptions.
3833 * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3834 exception code range for XHR exceptions.
3836 * xml/xmlhttprequest.cpp:
3837 (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3838 (WebCore::XMLHttpRequest::send):
3839 (WebCore::XMLHttpRequest::setRequestHeader):
3840 (WebCore::XMLHttpRequest::getStatus):
3841 (WebCore::XMLHttpRequest::getStatusText):
3842 (WebCore::XMLHttpRequest::processSyncLoadResults):
3843 (WebCore::XMLHttpRequest::receivedAllData):
3844 (WebCore::XMLHttpRequest::receivedData):
3846 2006-09-22 Steve Falkenburg <sfalken@apple.com>
3848 Reviewed by Jeff Jenkins.
3852 * platform/cf/ResourceLoaderCFNet.cpp:
3853 (WebCore::willCacheResponse):
3855 2006-09-22 Justin Garcia <justin.garcia@apple.com>
3859 <http://bugs.webkit.org/show_bug.cgi?id=8029>
3860 Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3863 (WebCore::Document::clearSelectionIfNeeded):
3865 (WebCore::Element::contains):
3867 (WebCore::Node::traverseNextNode):
3868 (WebCore::Node::traverseNextSibling):
3869 (WebCore::Node::traversePreviousNodePostOrder):
3870 (WebCore::Node::checkAddChild):
3871 (WebCore::Node::isDescendantOf):
3873 * dom/NodeIterator.cpp:
3874 (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3875 * editing/ApplyStyleCommand.cpp:
3876 (WebCore::ApplyStyleCommand::applyBlockStyle):
3877 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3878 (WebCore::ApplyStyleCommand::applyInlineStyle):
3879 (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3880 * editing/CompositeEditCommand.cpp:
3881 (WebCore::CompositeEditCommand::mergeIdenticalElements):
3882 (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3883 * editing/DeleteSelectionCommand.cpp:
3884 (WebCore::updatePositionForNodeRemoval):
3885 (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3886 (WebCore::DeleteSelectionCommand::mergeParagraphs):
3887 * editing/FormatBlockCommand.cpp:
3888 (WebCore::FormatBlockCommand::doApply):
3889 * editing/IndentOutdentCommand.cpp:
3890 (WebCore::enclosingListOrBlockquote):
3891 * editing/Selection.cpp:
3892 (WebCore::Selection::validate):
3893 * editing/SelectionController.cpp:
3894 (WebCore::SelectionController::nodeWillBeRemoved):
3895 * editing/TextIterator.cpp:
3896 (WebCore::SimplifiedBackwardsTextIterator::advance):
3897 * editing/VisiblePosition.cpp:
3898 (WebCore::VisiblePosition::next):
3899 (WebCore::VisiblePosition::previous):
3900 (WebCore::VisiblePosition::canonicalPosition):
3901 (WebCore::isFirstVisiblePositionInNode):
3902 (WebCore::isLastVisiblePositionInNode):
3903 * editing/htmlediting.cpp:
3904 (WebCore::firstEditablePositionAfterPositionInRoot):
3905 (WebCore::lastEditablePositionBeforePositionInRoot):
3906 (WebCore::enclosingNodeWithTag):
3907 (WebCore::enclosingList):
3908 (WebCore::enclosingListChild):
3909 * editing/markup.cpp:
3910 (WebCore::createMarkup):
3912 2006-09-22 Timothy Hatcher <timothy@apple.com>
3916 - Added @property syntax to non-generated headers
3917 inside #ifndef BUILDING_ON_TIGER.
3918 - Changed the DOMEventTarget protocol to have have new versions
3919 of addEventListener and removeEventListener with named parameters.
3920 These old style methods can be removed once Mail changes to use
3921 the new methods <rdar://problem/4746649>.
3923 * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3924 * bindings/objc/DOM.mm:
3925 (-[DOMNode addEventListener:listener:useCapture:]):
3926 (-[DOMNode addEventListener:::]): call the new method
3927 (-[DOMNode removeEventListener:listener:useCapture:]):
3928 (-[DOMNode removeEventListener:::]): call the new method
3929 * bindings/objc/DOMAbstractView.h:
3930 * bindings/objc/DOMEventTarget.h:
3931 * bindings/objc/DOMHTMLAppletElement.h:
3932 * bindings/objc/DOMHTMLEmbedElement.h:
3933 * bindings/objc/DOMHTMLOptionElement.h:
3934 * bindings/objc/DOMObject.h:
3935 * bindings/objc/DOMRGBColor.h:
3937 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3941 Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3943 * platform/qt/FrameQt.cpp:
3944 * platform/qt/GraphicsContextQt.cpp:
3945 (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3946 (WebCore::GraphicsContext::origin):
3947 * platform/qt/PlatformScrollBar.h: Added.
3948 (WebCore::PlatformScrollBar::isWidget):
3949 * platform/qt/WidgetQt.cpp:
3950 (WebCore::Widget::invalidate):
3951 (WebCore::Widget::invalidateRect):
3953 2006-09-22 Dave Hyatt <hyatt@apple.com>
3955 Super-minor tweaks to the systemFont function on Mac.
3956 Set the generic family to None rather than to Serif, and
3957 don't waste time setting the computed size, since that is
3958 set from the specified size over in CSSStyleSelector anyway.
3960 * rendering/RenderThemeMac.mm:
3961 (WebCore::RenderThemeMac::systemFont):
3963 2006-09-22 Timothy Hatcher <timothy@apple.com>
3967 Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3968 take floats. There was already an implicit conversion to float/double
3969 when calling CGContextTranslateCTM or cairo_translate.
3971 * platform/GraphicsContext.h:
3972 * platform/cairo/GraphicsContextCairo.cpp:
3973 (WebCore::GraphicsContext::translate):
3974 * platform/cg/GraphicsContextCG.cpp:
3975 (WebCore::GraphicsContext::translate):
3977 2006-09-22 Brady Eidson <beidson@apple.com>
3981 Add redirect and other cleanup to ResourceLoaderWin.cpp
3982 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
3983 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
3985 * WebCore.xcodeproj/project.pbxproj:
3986 * platform/ResourceLoader.h:
3987 * platform/win/ResourceLoaderWin.cpp:
3988 (WebCore::ResourceLoaderWndProc):
3989 (WebCore::initializeOffScreenResourceLoaderWindow):
3990 (WebCore::ResourceLoader::onHandleCreated):
3991 (WebCore::ResourceLoader::onRequestRedirected):
3992 (WebCore::ResourceLoader::onRequestComplete):
3993 (WebCore::transferJobStatusCallback):
3995 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
3999 http://bugs.webkit.org/show_bug.cgi?id=10803
4000 REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
4002 * page/FrameView.cpp:
4003 (WebCore::FrameView::hoverTimerFired): Use the current event.
4005 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
4009 Fix (last) svg memory leak.
4011 * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
4012 (SVGTransformable::parseTransformAttribute):
4014 2006-09-22 Eric Seidel <eric@eseidel.com>
4016 No review necessary, just removing a dead file.
4018 Remove unused file (added previously by mistake) to make room for real implementation.
4020 * platform/mac/BitmapImageMac.mm: Removed.
4022 2006-09-22 Dave Hyatt <hyatt@apple.com>
4024 Move PlatformScrollBar.h down into the platforms.
4026 Reviewed by andersca
4028 * platform/PlatformScrollBar.h: Removed.
4029 * platform/win/PlatformScrollBar.h: Added.
4030 * platform/mac/PlatformScrollBar.h: Added.
4032 2006-09-22 Dave Hyatt <hyatt@apple.com>
4034 Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
4035 any widget subsystems that don't have any underlying native objects backing the widgets.
4039 * platform/Widget.h:
4040 * platform/mac/WidgetMac.mm:
4041 (WebCore::Widget::invalidate):
4042 (WebCore::Widget::invalidateRect):
4043 * platform/win/TemporaryLinkStubs.cpp:
4044 (Widget::invalidate):
4045 (Widget::invalidateRect):
4047 2006-09-22 Rob Buis <buis@kd.org>
4049 Reviewed by eseidel.
4051 http://bugs.webkit.org/show_bug.cgi?id=10901
4052 Merge build fixes from unity
4056 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4058 Reviewed by eseidel.
4060 http://bugs.webkit.org/show_bug.cgi?id=10977
4061 SVGDocument does not expose 'rootElement' property
4063 Enable 'rootElement' property.
4065 * ksvg2/svg/SVGDocument.idl:
4067 2006-09-21 Steve Falkenburg <sfalken@apple.com>
4071 * platform/ResourceLoaderInternal.h:
4073 2006-09-21 Geoffrey Garen <ggaren@apple.com>
4075 build fixed. band happy.
4077 * platform/cg/GraphicsContextCG.cpp:
4078 (WebCore::GraphicsContext::translate):
4079 * platform/mac/WidgetMac.mm:
4081 2006-09-21 Geoffrey Garen <ggaren@apple.com>
4085 Some Widget refactoring.
4087 * WebCore.vcproj/WebCore/WebCore.vcproj:
4088 * bridge/mac/FrameMac.mm:
4089 * bridge/win/FrameWin.cpp:
4090 (WebCore::FrameWin::runJavaScriptAlert):
4091 (WebCore::FrameWin::runJavaScriptConfirm):
4092 * bridge/win/PageWin.cpp:
4093 (WebCore::Page::Page):
4094 (WebCore::rootWindowForFrame):
4095 * html/CanvasRenderingContext2D.cpp:
4096 (WebCore::CanvasRenderingContext2D::translate):
4097 * page/FrameView.cpp:
4098 (WebCore::FrameView::isFrameView):
4100 (WebCore::Page::setInstanceHandle):
4101 (WebCore::Page::instanceHandle):
4102 * platform/GraphicsContext.h:
4103 * platform/ScrollView.h:
4104 * platform/Widget.h:
4105 * platform/cairo/GraphicsContextCairo.cpp:
4106 (WebCore::GraphicsContext::translate):
4107 (WebCore::GraphicsContext::origin):
4108 * platform/mac/WidgetMac.mm:
4109 (WebCore::Widget::clearFocus):
4110 * platform/win/ResourceLoaderWin.cpp:
4111 (WebCore::initializeOffScreenResourceLoaderWindow):
4112 * platform/win/ScreenWin.cpp:
4113 (WebCore::monitorInfo):
4114 * platform/win/ScrollViewWin.cpp:
4115 (WebCore::ScrollView::updateContents):
4116 (WebCore::ScrollView::visibleWidth):
4117 (WebCore::ScrollView::visibleHeight):
4118 (WebCore::ScrollView::visibleContentRect):
4119 (WebCore::ScrollView::viewportToContents):
4120 (WebCore::ScrollView::contentsToViewport):
4121 (WebCore::ScrollView::scrollBy):
4122 (WebCore::ScrollView::updateScrollInfo):
4123 (WebCore::ScrollView::updateScrollBars):
4124 * platform/win/SharedTimerWin.cpp:
4125 (WebCore::initializeOffScreenTimerWindow):
4126 * platform/win/TemporaryLinkStubs.cpp:
4127 (FrameView::updateBorder):
4128 (ScrollView::paint):
4129 (GraphicsContext::clip):
4130 * platform/win/WidgetWin.cpp:
4131 (WebCore::Widget::Widget):
4132 (WebCore::Widget::parentWindow):
4133 (WebCore::Widget::setParentWindow):
4134 (WebCore::Widget::frameGeometry):
4135 (WebCore::Widget::hasFocus):
4136 (WebCore::Widget::setFocus):
4137 (WebCore::Widget::show):
4138 (WebCore::Widget::hide):
4139 (WebCore::Widget::setFrameGeometry):
4141 2006-09-22 Anders Carlsson <acarlsson@apple.com>
4145 * platform/TextEncoding.cpp:
4146 (WebCore::TextEncoding::backslashAsCurrencySymbol):
4147 Add comment clarifying why backslashAsCurrencySymbol is needed.
4149 2006-09-21 Sean Gies <seangies@apple.com>
4151 Reviewed by Adam Roben.
4153 Add utility functions to get and release HDC from GraphicsContext.
4155 * platform/GraphicsContext.h: Add utilities to get and release HDC.
4156 * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
4157 * rendering/RenderThemeWin.cpp: Switch to new utilities.
4159 2006-09-21 Justin Garcia <justin.garcia@apple.com>
4163 <rdar://problem/4426622>
4164 Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
4166 * editing/htmlediting.cpp:
4167 (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
4168 aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
4169 Got rid of uses of DepricatedString.
4171 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4173 Reviewed by eseidel.
4175 Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
4178 (WebCore::Frame::endIfNotLoading):
4180 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4182 Reviewed by eseidel.
4187 * kcanvas/device/qt/KCanvasClipperQt.h:
4188 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
4189 * platform/qt/FrameQt.cpp:
4190 (WebCore::FrameQt::isLoadTypeReload):
4191 (WebCore::FrameQt::originalRequestURL):
4192 * platform/qt/FrameQt.h:
4193 * platform/qt/GraphicsContextQt.cpp:
4194 (WebCore::GraphicsContext::concatCTM):
4195 * platform/qt/ScrollViewQt.cpp:
4196 (WebCore::ScrollView::wheelEvent):
4197 * platform/qt/TemporaryLinkStubs.cpp:
4198 (WebCore::IconDatabase::setIconURLForPageURL):
4200 2006-09-20 Justin Garcia <justin.garcia@apple.com>
4204 <http://bugs.webkit.org/show_bug.cgi?id=7165>
4205 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
4207 * editing/MoveSelectionCommand.cpp:
4208 (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
4209 to the position-to-move-to's document, not the fragment's document. The
4210 fragment's document is the document used to create the fragment and is irrelavant.
4212 === Safari-521.27 ===
4214 2006-09-21 Brady Eidson <beidson@apple.com>
4218 When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
4219 This fixes Spinneret so it won't crash on its first load!
4222 (WebCore::Frame::endIfNotLoading):
4224 2006-09-21 Brady Eidson <beidson@apple.com>
4228 * platform/win/TemporaryLinkStubs.cpp:
4229 (ScrollView::wheelEvent):
4231 2006-09-20 Rob Buis <buis@kde.org>
4233 Reviewed by eseidel.
4235 http://bugs.webkit.org/show_bug.cgi?id=10946
4236 new marker code draws end-marker in wrong place
4238 Keep track of the start of the subpath so we can handle
4239 closeTo/moveTo correctly.
4241 * kcanvas/RenderPath.cpp:
4242 (WebCore::DrawMarkersData::DrawMarkersData):
4243 (WebCore::updateMarkerDataForElement):
4245 2006-09-21 David Hyatt <hyatt@apple.com>
4247 Wheel scrolling prep for Win32.
4249 WARNING: NO TEST CASES ADDED OR CHANGED
4251 * platform/PlatformWheelEvent.h:
4252 * platform/ScrollBar.h:
4253 * platform/ScrollView.h:
4254 * platform/mac/ScrollViewMac.mm:
4255 (WebCore::ScrollView::wheelEvent):
4256 * rendering/RenderLayer.cpp:
4258 2006-09-20 Timothy Hatcher <timothy@apple.com>
4262 Bug 10917: REGRESSION (r16027): iFrame transparency broken
4263 http://bugs.webkit.org/show_bug.cgi?id=10917
4265 Don't paint the base background color if we transparent.
4267 * rendering/RenderBox.cpp:
4268 (WebCore::RenderBox::paintBackgroundExtended):
4270 2006-09-20 Adam Roben <aroben@apple.com>
4272 Reviewed by andersca.
4274 * platform/FileChooser.h: Remove no-longer-necessary namespace std
4276 2006-09-20 Eric Seidel <eric@eseidel.com>
4280 Cleanup style in KCanvas.
4281 Remove extra white-space, unneeded arguments, etc.
4283 * WebCore.xcodeproj/project.pbxproj:
4284 * kcanvas/KCanvasClipper.cpp:
4285 (WebCore::operator<<):
4286 (WebCore::KCanvasClipper::externalRepresentation):
4287 * kcanvas/KCanvasClipper.h:
4288 * kcanvas/KCanvasFilters.cpp: