1 2006-10-09 Nikolas Zimmermann <zimmermann@kde.org>
5 Fix for Qt/Linux build, based on fixes to the Win32 build in r16928 and r16929.
7 * platform/qt/FrameQt.cpp:
8 (WebCore::FrameQt::createJavaAppletWidget):
9 * platform/qt/FrameQt.h:
10 * platform/qt/TemporaryLinkStubs.cpp:
12 2006-10-09 Brady Eidson <beidson@apple.com>
16 Tiny changes to help reorganize WebFrameLoader code in WebKit
18 * bridge/mac/WebCoreIconDatabaseBridge.h: Added "createInstance"
19 * bridge/mac/WebCoreIconDatabaseBridge.mm:
20 (+[WebCoreIconDatabaseBridge sharedInstance]): Added, uses createInstance from WebKit side
22 2006-10-09 Adam Roben <aroben@apple.com>
26 Remove redundant call to Frame::cancelAndClear from ~Frame, since it's
27 already called frome ~FrameMac.
30 (WebCore::Frame::~Frame):
32 2006-10-09 Anders Carlsson <acarlsson@apple.com>
34 * bridge/win/FrameWin.h:
35 Add function declaration.
37 2006-10-09 Anders Carlsson <acarlsson@apple.com>
39 * platform/win/TemporaryLinkStubs.cpp:
40 (FrameWin::createJavaAppletWidget):
41 Try fixing the Win32 build.
43 2006-10-09 Anders Carlsson <acarlsson@apple.com>
47 Move applet widget creation to Frame and get rid of JavaAppletWidget.
48 * WebCore.xcodeproj/project.pbxproj:
49 * bridge/JavaAppletWidget.h: Removed.
50 * bridge/mac/FrameMac.h:
51 * bridge/mac/FrameMac.mm:
52 (WebCore::FrameMac::createJavaAppletWidget):
53 * bridge/mac/JavaAppletWidget.mm: Removed.
55 * rendering/RenderApplet.cpp:
56 (WebCore::RenderApplet::createWidgetIfNecessary):
58 2006-10-09 Mitz Pettel <mitz@webkit.org>
62 - http://bugs.webkit.org/show_bug.cgi?id=11220
63 Fix manual test for http://bugs.webkit.org/show_bug.cgi?id=8276
65 Subversion does not support resource forks and HFS metadata, so
66 the resources for this test need to be on a disk image.
68 * manual-tests/plain-text-paste.html: Changed instructions to refer to the disk image.
69 * manual-tests/resources/plain-text-paste.dmg: Added.
70 * manual-tests/resources/plain-text-paste/._1.textClipping: Removed.
71 * manual-tests/resources/plain-text-paste/._2.textClipping: Removed.
72 * manual-tests/resources/plain-text-paste/._4.txt: Removed.
73 * manual-tests/resources/plain-text-paste/._5.webloc: Removed.
74 * manual-tests/resources/plain-text-paste/1.textClipping: Removed.
75 * manual-tests/resources/plain-text-paste/2.textClipping: Removed.
76 * manual-tests/resources/plain-text-paste/3.gif: Removed.
77 * manual-tests/resources/plain-text-paste/4.txt: Removed.
78 * manual-tests/resources/plain-text-paste/5.webloc: Removed.
80 2006-10-09 Rob Buis <buis@kde.org>
84 http://bugs.webkit.org/show_bug.cgi?id=11217
85 Cleanup svg coding style
87 Cleanup coding style in filter classes.
89 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
90 (WebCore::SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
91 (WebCore::SVGComponentTransferFunctionElement::parseMappedAttribute):
92 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
93 * ksvg2/svg/SVGFEBlendElement.cpp:
94 (WebCore::SVGFEBlendElement::SVGFEBlendElement):
95 (WebCore::SVGFEBlendElement::parseMappedAttribute):
96 (WebCore::SVGFEBlendElement::filterEffect):
97 * ksvg2/svg/SVGFEBlendElement.h:
98 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
99 (WebCore::SVGFEColorMatrixElement::SVGFEColorMatrixElement):
100 (WebCore::SVGFEColorMatrixElement::parseMappedAttribute):
101 (WebCore::SVGFEColorMatrixElement::filterEffect):
102 * ksvg2/svg/SVGFEColorMatrixElement.h:
103 * ksvg2/svg/SVGFECompositeElement.cpp:
104 (WebCore::SVGFECompositeElement::parseMappedAttribute):
105 * ksvg2/svg/SVGFECompositeElement.h:
106 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
107 (WebCore::SVGFEDisplacementMapElement::stringToChannel):
108 * ksvg2/svg/SVGFEDisplacementMapElement.h:
109 * ksvg2/svg/SVGFEFloodElement.cpp:
110 (WebCore::SVGFEFloodElement::filterEffect):
111 * ksvg2/svg/SVGFEFuncAElement.cpp:
112 (WebCore::SVGFEFuncAElement::SVGFEFuncAElement):
113 * ksvg2/svg/SVGFEFuncBElement.cpp:
114 (WebCore::SVGFEFuncBElement::SVGFEFuncBElement):
115 * ksvg2/svg/SVGFEFuncGElement.cpp:
116 (WebCore::SVGFEFuncGElement::SVGFEFuncGElement):
117 * ksvg2/svg/SVGFEFuncRElement.cpp:
118 (WebCore::SVGFEFuncRElement::SVGFEFuncRElement):
119 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
120 (WebCore::SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
121 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
122 (WebCore::SVGFEGaussianBlurElement::filterEffect):
123 * ksvg2/svg/SVGFEGaussianBlurElement.h:
124 * ksvg2/svg/SVGFELightElement.cpp:
125 (WebCore::SVGFELightElement::SVGFELightElement):
126 (WebCore::SVGFELightElement::parseMappedAttribute):
127 * ksvg2/svg/SVGFELightElement.h:
128 * ksvg2/svg/SVGFEMergeElement.cpp:
129 (WebCore::SVGFEMergeElement::SVGFEMergeElement):
131 2006-10-09 Rob Buis <buis@kde.org>
135 http://bugs.webkit.org/show_bug.cgi?id=11217
136 Cleanup svg coding style
138 Cleanup coding style in SVGPath* classes.
140 * ksvg2/svg/SVGPathElement.cpp:
141 (WebCore::SVGPathElement::SVGPathElement):
142 (WebCore::SVGPathElement::getPointAtLength):
143 (WebCore::SVGPathElement::createSVGPathSegClosePath):
144 (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
145 (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
146 (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
147 (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
148 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
149 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
150 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
151 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
152 (WebCore::SVGPathElement::createSVGPathSegArcAbs):
153 (WebCore::SVGPathElement::createSVGPathSegArcRel):
154 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
155 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
156 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
157 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
158 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
159 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
160 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
161 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
162 (WebCore::SVGPathElement::svgMoveTo):
163 (WebCore::SVGPathElement::svgLineTo):
164 (WebCore::SVGPathElement::svgLineToHorizontal):
165 (WebCore::SVGPathElement::svgLineToVertical):
166 (WebCore::SVGPathElement::svgCurveToCubic):
167 (WebCore::SVGPathElement::svgCurveToCubicSmooth):
168 (WebCore::SVGPathElement::svgCurveToQuadratic):
169 (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
170 (WebCore::SVGPathElement::svgArcTo):
171 (WebCore::SVGPathElement::parseMappedAttribute):
172 (WebCore::SVGPathElement::pathSegList):
173 (WebCore::SVGPathElement::normalizedPathSegList):
174 (WebCore::SVGPathElement::animatedPathSegList):
175 (WebCore::SVGPathElement::animatedNormalizedPathSegList):
176 (WebCore::SVGPathElement::toPathData):
177 * ksvg2/svg/SVGPathElement.h:
178 (WebCore::SVGPathElement::rendererIsNeeded):
179 * ksvg2/svg/SVGPathSeg.h:
180 * ksvg2/svg/SVGPathSegArc.cpp:
182 2006-10-09 Rob Buis <buis@kde.org>
186 http://bugs.webkit.org/show_bug.cgi?id=11217
187 Cleanup svg coding style
189 Cleanup coding style in svg shape classes.
191 * ksvg2/svg/SVGCircleElement.cpp:
192 (WebCore::SVGCircleElement::SVGCircleElement):
193 (WebCore::SVGCircleElement::parseMappedAttribute):
194 (WebCore::SVGCircleElement::pushAttributeContext):
195 * ksvg2/svg/SVGCircleElement.h:
196 (WebCore::SVGCircleElement::rendererIsNeeded):
197 * ksvg2/svg/SVGEllipseElement.cpp:
198 * ksvg2/svg/SVGEllipseElement.h:
199 (WebCore::SVGEllipseElement::rendererIsNeeded):
200 * ksvg2/svg/SVGLineElement.cpp:
201 (WebCore::SVGLineElement::parseMappedAttribute):
202 (WebCore::SVGLineElement::pushAttributeContext):
203 * ksvg2/svg/SVGLineElement.h:
204 (WebCore::SVGLineElement::rendererIsNeeded):
205 * ksvg2/svg/SVGPolyElement.cpp:
206 (WebCore::SVGPolyElement::SVGPolyElement):
207 (WebCore::SVGPolyElement::points):
208 (WebCore::SVGPolyElement::animatedPoints):
209 (WebCore::SVGPolyElement::parseMappedAttribute):
210 (WebCore::SVGPolyElement::notifyAttributeChange):
211 * ksvg2/svg/SVGPolyElement.h:
212 (WebCore::SVGPolyElement::rendererIsNeeded):
213 * ksvg2/svg/SVGPolygonElement.cpp:
214 (WebCore::SVGPolygonElement::SVGPolygonElement):
215 (WebCore::SVGPolygonElement::toPathData):
216 * ksvg2/svg/SVGPolygonElement.h:
217 * ksvg2/svg/SVGPolylineElement.cpp:
218 (WebCore::SVGPolylineElement::SVGPolylineElement):
219 (WebCore::SVGPolylineElement::toPathData):
220 * ksvg2/svg/SVGPolylineElement.h:
221 * ksvg2/svg/SVGRectElement.cpp:
222 (WebCore::SVGRectElement::parseMappedAttribute):
223 (WebCore::SVGRectElement::pushAttributeContext):
224 * ksvg2/svg/SVGRectElement.h:
225 (WebCore::SVGRectElement::rendererIsNeeded):
227 2006-10-08 Darin Adler <darin@apple.com>
231 - added a bit more WebCoreSystemInterface
233 wkGetNSURLResponseCalculatedExpiration
234 wkGetNSURLResponseLastModifiedDate
235 wkGetNSURLResponseMustRevalidate
237 * WebCore.exp: Added the new symbols.
238 * platform/mac/WebCoreSystemInterface.h: Ditto.
239 * platform/mac/WebCoreSystemInterface.mm: Ditto.
241 - quiet down the code generation script
243 * bindings/scripts/CodeGenerator.pm:
245 2006-10-08 Maciej Stachowiak <mjs@apple.com>
249 - more code laundering - add wkSupportsMultipartXMixedReplace
252 * platform/mac/WebCoreSystemInterface.h:
253 * platform/mac/WebCoreSystemInterface.mm:
255 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
257 Reviewed by Darin and Oliver.
259 Fix artefacts when drawing polygons, most noticeable when painting <hr> elements.
261 * platform/qt/GraphicsContextQt.cpp: Fix wrong operator<< usage.
262 (WebCore::GraphicsContext::drawConvexPolygon):
264 2006-10-08 Anders Carlsson <acarlsson@apple.com>
269 (WebCore::Frame::submitForm):
270 No need to use latin1() here.
272 2006-10-08 Nikolas Zimmermann <zimmermann@kde.org>
276 Kill warnings when generating IDL files on Qt/Linux, as the
277 SOURCE_ROOT environment variable is not defined (and not needed) for us.
279 * bindings/scripts/CodeGenerator.pm:
281 2006-10-08 Maciej Stachowiak <mjs@apple.com>
285 - split didNotOpenURL: into general and page-cache-specific parts
287 * bridge/mac/WebCoreFrameBridge.h:
288 * bridge/mac/WebCoreFrameBridge.mm:
289 (-[WebCoreFrameBridge didNotOpenURL:]):
290 (-[WebCoreFrameBridge invalidatePageCache:]):
292 2006-10-08 Anders Carlsson <acarlsson@apple.com>
297 Remove DeprecatedStringList.h include.
300 (WebCore::Frame::submitForm):
301 Don't remove "attach" from mailto URLs, we don't do it anywhere else.
303 2006-10-08 Sam Weinig <sam.weinig@gmail.com>
307 Patch for http://bugs.webkit.org/show_bug.cgi?id=11215
308 Yet another round of Objective-C SVG DOM bindings auto-generation
310 - Auto-generate DOMSVGPatternElement, DOMSVGPointList, DOMSVGPolygonElement,
311 DOMSVGPolylineElement, DOMSVGRadialGradientElement, DOMSVGRenderingIntent,
312 DOMSVGScriptElement, DOMSVGSetElement, DOMSVGStopElement, DOMSVGSwitchElement,
313 DOMSVGSymbolElement, DOMSVGTRefElement, DOMSVGTSpanElement,
314 DOMSVGTextContentElement, DOMSVGTextElement, DOMSVGTextPositioningElement,
315 DOMSVGTitleElement, DOMSVGUnitTypes, DOMSVGUseElement, DOMSVGViewElement,
316 DOMSVGZoomAndPan and DOMSVGZoomEvent.
318 - Auto-generate the implementations of DOMHTMLAppletElement and DOMHTMLEmbedElement
319 using the new [ConvertFromString] property.
321 - Add forward declarations for NS* types to auto-generated classes.
323 * DerivedSources.make:
324 * WebCore.xcodeproj/project.pbxproj:
325 * bindings/objc/DOMHTMLAppletElement.mm: Removed.
326 * bindings/objc/DOMHTMLEmbedElement.mm: Removed.
327 * bindings/objc/DOMInternal.h:
328 * bindings/objc/DOMSVG.h:
329 * bindings/scripts/CodeGeneratorObjC.pm:
330 * html/HTMLAppletElement.idl:
331 * html/HTMLEmbedElement.idl:
332 * ksvg2/svg/SVGPatternElement.idl:
333 * ksvg2/svg/SVGPolygonElement.idl:
334 * ksvg2/svg/SVGPolylineElement.idl:
335 * ksvg2/svg/SVGRadialGradientElement.idl:
336 * ksvg2/svg/SVGRenderingIntent.idl:
337 * ksvg2/svg/SVGScriptElement.idl:
338 * ksvg2/svg/SVGSetElement.idl:
339 * ksvg2/svg/SVGStopElement.idl:
340 * ksvg2/svg/SVGSwitchElement.idl:
341 * ksvg2/svg/SVGSymbolElement.idl:
342 * ksvg2/svg/SVGTRefElement.idl:
343 * ksvg2/svg/SVGTSpanElement.idl:
344 * ksvg2/svg/SVGTextContentElement.idl:
345 * ksvg2/svg/SVGTextElement.idl:
346 * ksvg2/svg/SVGTextPositioningElement.idl:
347 * ksvg2/svg/SVGTitleElement.idl:
348 * ksvg2/svg/SVGUseElement.idl:
349 * ksvg2/svg/SVGViewElement.idl:
350 * ksvg2/svg/SVGZoomEvent.idl:
352 2006-10-07 Anders Carlsson <acarlsson@apple.com>
356 Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
358 (WebCore::Loader::servePendingRequests):
360 2006-10-07 Anders Carlsson <acarlsson@apple.com>
364 Convert a bunch of RefPtr<StringImpl> to String.
366 * bridge/mac/FrameMac.h:
367 * bridge/mac/FrameMac.mm:
368 (WebCore::FrameMac::didTellBridgeAboutLoad):
369 (WebCore::FrameMac::haveToldBridgeAboutLoad):
370 * dom/BeforeUnloadEvent.cpp:
371 (WebCore::BeforeUnloadEvent::storeResult):
372 * dom/BeforeUnloadEvent.h:
373 (WebCore::BeforeUnloadEvent::result):
375 (WebCore::Document::createEntityReference):
377 (WebCore::Entity::Entity):
378 (WebCore::Entity::nodeName):
379 (WebCore::Entity::toString):
381 (WebCore::Entity::publicId):
382 (WebCore::Entity::systemId):
383 (WebCore::Entity::notationName):
384 * dom/EntityReference.cpp:
385 (WebCore::EntityReference::EntityReference):
386 (WebCore::EntityReference::nodeName):
387 (WebCore::EntityReference::cloneNode):
388 (WebCore::EntityReference::toString):
389 * dom/EntityReference.h:
390 * dom/KeyboardEvent.cpp:
391 (WebCore::KeyboardEvent::KeyboardEvent):
392 (WebCore::KeyboardEvent::initKeyboardEvent):
393 * dom/KeyboardEvent.h:
394 (WebCore::KeyboardEvent::keyIdentifier):
395 * dom/MutationEvent.cpp:
396 (WebCore::MutationEvent::MutationEvent):
397 (WebCore::MutationEvent::initMutationEvent):
398 * dom/MutationEvent.h:
399 (WebCore::MutationEvent::prevValue):
400 (WebCore::MutationEvent::newValue):
401 (WebCore::MutationEvent::attrName):
403 (WebCore::Notation::Notation):
404 (WebCore::Notation::nodeName):
406 (WebCore::Notation::publicId):
407 (WebCore::Notation::systemId):
408 * dom/ProcessingInstruction.cpp:
409 (WebCore::ProcessingInstruction::ProcessingInstruction):
410 (WebCore::ProcessingInstruction::setData):
411 (WebCore::ProcessingInstruction::nodeName):
412 (WebCore::ProcessingInstruction::nodeValue):
413 (WebCore::ProcessingInstruction::cloneNode):
414 (WebCore::ProcessingInstruction::checkStyleSheet):
415 (WebCore::ProcessingInstruction::toString):
416 * dom/ProcessingInstruction.h:
417 (WebCore::ProcessingInstruction::target):
418 (WebCore::ProcessingInstruction::data):
419 (WebCore::ProcessingInstruction::localHref):
421 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
425 Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
426 10 more SVG Objective-C auto-generated bindings
428 - Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
429 DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
430 DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
431 DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
433 - Auto-generate the text method for DOMRange.
435 * DerivedSources.make:
436 * WebCore.xcodeproj/project.pbxproj:
437 * bindings/objc/DOM.mm:
438 * bindings/objc/DOMExtensions.h:
439 * bindings/objc/DOMInternal.h:
440 * bindings/objc/DOMPrivate.h:
441 * bindings/objc/DOMRGBColor.mm:
442 * bindings/objc/DOMSVG.h:
443 * bindings/objc/PublicDOMInterfaces.h:
444 * bindings/scripts/CodeGeneratorObjC.pm:
446 * ksvg2/svg/SVGFilterElement.cpp:
447 * ksvg2/svg/SVGFilterElement.h:
448 * ksvg2/svg/SVGFilterElement.idl:
449 * ksvg2/svg/SVGForeignObjectElement.idl:
450 * ksvg2/svg/SVGGElement.idl:
451 * ksvg2/svg/SVGGradientElement.idl:
452 * ksvg2/svg/SVGImageElement.idl:
453 * ksvg2/svg/SVGLineElement.idl:
454 * ksvg2/svg/SVGLinearGradientElement.idl:
455 * ksvg2/svg/SVGMarkerElement.idl:
456 * ksvg2/svg/SVGMaskElement.idl:
457 * ksvg2/svg/SVGPaint.idl:
459 2006-10-07 Sam Weinig <sam.weinig@gmail.com>
463 Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
464 Auto-generate a few more Objective-C DOM interfaces
466 - Fully auto-generate DOMAbstractView and DOMRange.
468 - Auto-generate just the interface for DOMRGBColor.
470 - Add DOMRanges.h as the new top level file for Ranges
473 - Add DOMRanges.h and DOMXPath.h to DOM.mm
475 * DerivedSources.make:
476 * WebCore.xcodeproj/project.pbxproj:
477 * bindings/objc/DOM.h:
478 * bindings/objc/DOM.mm:
479 * bindings/objc/DOMAbstractView.h: Removed.
480 * bindings/objc/DOMAbstractView.mm: Removed.
481 * bindings/objc/DOMInternal.h:
482 * bindings/objc/DOMPrivate.h:
483 * bindings/objc/DOMRGBColor.h: Removed.
484 * bindings/objc/DOMRGBColor.mm:
485 * bindings/objc/DOMRange.h: Removed.
486 * bindings/objc/DOMRanges.h: Added.
487 * bindings/objc/PublicDOMInterfaces.h:
488 * bindings/scripts/CodeGeneratorObjC.pm:
491 * page/AbstractView.idl: Added.
493 2006-10-07 Andrew Wellington <proton@wiretapped.net>
497 Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
498 http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
500 Return null when there is no frame. This matches Firefox.
502 * bindings/js/kjs_html.cpp:
503 (KJS::JSHTMLDocument::getValueProperty):
505 2006-10-07 David Hyatt <hyatt@apple.com>
507 Implement scroll corner painting (a white rect fill) for overflow areas to cover up
508 scrollbar joins properly.
510 Refactor painting of scrollbars and resizers into common functions. Eliminate the
511 extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
515 * page/FrameView.cpp:
516 (WebCore::selectCursor):
517 (WebCore::FrameView::handleMouseMoveEvent):
518 * platform/mac/PlatformScrollBar.h:
519 (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
520 (WebCore::PlatformScrollbar::verticalScrollbarWidth):
521 * rendering/RenderLayer.cpp:
522 (WebCore::RenderLayer::RenderLayer):
523 (WebCore::RenderLayer::~RenderLayer):
524 (WebCore::RenderLayer::updateLayerPositions):
525 (WebCore::scrollCornerRect):
526 (WebCore::RenderLayer::positionOverflowControls):
527 (WebCore::RenderLayer::paintOverflowControls):
528 (WebCore::RenderLayer::isPointInResizeControl):
529 (WebCore::RenderLayer::paintLayer):
530 * rendering/RenderLayer.h:
532 2006-10-07 Mark Rowe <bdash@webkit.org>
536 Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
537 matching recent ResourceLoader changes.
539 * platform/gdk/FrameGdk.cpp:
540 (WebCore::FrameGdk::openURL):
541 (WebCore::FrameGdk::urlSelected):
542 * platform/gdk/PlatformScrollBar.h:
543 * platform/gdk/ResourceLoaderCurl.cpp:
544 (WebCore::ResourceLoader::start):
545 * platform/gdk/ScrollViewGdk.cpp:
546 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
547 (WebCore::ScrollView::resizeContents):
548 (WebCore::ScrollView::scrollBy):
549 (WebCore::ScrollView::hScrollbarMode):
550 (WebCore::ScrollView::vScrollbarMode):
551 (WebCore::ScrollView::suppressScrollbars):
552 (WebCore::ScrollView::setHScrollbarMode):
553 (WebCore::ScrollView::setVScrollbarMode):
554 (WebCore::ScrollView::setScrollbarsMode):
555 * platform/gdk/TemporaryLinkStubs.cpp:
556 (FrameView::passMousePressEventToScrollbar):
557 (Widget::removeFromParent):
558 (ScrollView::addChild):
559 (ScrollView::updateScrollbars):
560 (ScrollView::scrollbarUnderMouse):
561 (PlatformScrollbar::PlatformScrollbar):
562 (PlatformScrollbar::~PlatformScrollbar):
563 (PlatformScrollbar::width):
564 (PlatformScrollbar::height):
565 (PlatformScrollbar::setEnabled):
566 (PlatformScrollbar::paint):
567 (PlatformScrollbar::updateThumbPosition):
568 (PlatformScrollbar::updateThumbProportion):
569 (PlatformScrollbar::setRect):
570 (Scrollbar::Scrollbar):
571 (Scrollbar::setSteps):
573 (Scrollbar::setValue):
574 (Scrollbar::setProportion):
576 2006-10-06 Dave Hyatt <hyatt@apple.com>
578 Implement a new method for obtaining accurate clip rectangles that can be used by plugins to properly clip.
580 * page/FrameView.cpp:
581 (WebCore::FrameView::windowClipRect):
583 * platform/ScrollView.h:
584 * platform/Widget.cpp:
585 (WebCore::Widget::windowClipRect):
587 (WebCore::Widget::geometryChanged):
588 (WebCore::Widget::handleMouseMoveEvent):
589 (WebCore::Widget::handleMouseReleaseEvent):
590 * platform/mac/ScrollViewMac.mm:
591 (WebCore::ScrollView::addChild):
592 * rendering/RenderLayer.cpp:
593 (WebCore::RenderLayer::documentClipRect):
594 * rendering/RenderLayer.h:
596 2006-10-06 Steve Falkenburg <sfalken@apple.com>
600 Add another method we'll need for scrollbar dodging
602 * platform/ScrollView.h:
603 * platform/win/TemporaryLinkStubs.cpp:
604 (ScrollView::resizerOverlapsContent):
606 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
610 Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
611 Auto-generate the interfaces even for Objective-C DOM
612 bindings that need custom implementations
614 - Fully auto-generate DOMEventTarget, DOMNodeFilter and
615 DOMHTMLOptionElement.
617 - Auto-generate just the interface for DOMHTMLAppletElement,
618 DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
619 using the new IDL property ObjCCustomImplementation.
621 * DerivedSources.make:
622 * WebCore.xcodeproj/project.pbxproj:
623 * bindings/objc/DOMEventTarget.h: Removed.
624 * bindings/objc/DOMHTMLAppletElement.h: Removed.
625 * bindings/objc/DOMHTMLEmbedElement.h: Removed.
626 * bindings/objc/DOMHTMLOptionElement.h: Removed.
627 * bindings/objc/DOMHTMLOptionElement.mm: Removed.
628 * bindings/objc/DOMInternal.h:
629 * bindings/objc/DOMNodeFilter.h: Removed.
630 * bindings/objc/DOMSVGNumber.h: Removed.
631 * bindings/objc/DOMSVGPoint.h: Removed.
632 * bindings/objc/DOMSVGPoint.mm:
633 (-[DOMSVGPoint matrixTransform:]):
634 * bindings/objc/DOMSVGRect.h: Removed.
635 * bindings/objc/PublicDOMInterfaces.h:
636 * bindings/scripts/CodeGeneratorObjC.pm:
637 * dom/EventTarget.idl:
638 * html/HTMLAppletElement.idl:
639 * html/HTMLEmbedElement.idl:
640 * html/HTMLOptionElement.idl:
641 * ksvg2/svg/SVGNumber.idl:
642 * ksvg2/svg/SVGPoint.idl:
643 * ksvg2/svg/SVGRect.idl:
645 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
649 Make Qt/Linux compile again completly.
651 * platform/qt/WidgetQt.cpp:
652 (WebCore::Widget::removeFromParent):
654 2006-10-06 Nikolas Zimmermann <zimmermann@kde.org>
658 Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
660 * platform/qt/PlatformScrollBar.h:
661 * platform/qt/ScrollViewQt.cpp:
662 (WebCore::ScrollView::hScrollbarMode):
663 (WebCore::ScrollView::vScrollbarMode):
664 (WebCore::ScrollView::suppressScrollbars):
665 (WebCore::ScrollView::setHScrollbarMode):
666 (WebCore::ScrollView::setVScrollbarMode):
667 (WebCore::ScrollView::setScrollbarsMode):
668 (WebCore::ScrollView::scrollbarUnderMouse):
669 * platform/qt/TemporaryLinkStubs.cpp:
670 (WebCore::Scrollbar::Scrollbar):
671 (WebCore::Scrollbar::setSteps):
672 (WebCore::Scrollbar::scroll):
673 (WebCore::Scrollbar::setValue):
674 (WebCore::Scrollbar::setProportion):
675 (WebCore::PlatformScrollbar::PlatformScrollbar):
676 (WebCore::PlatformScrollbar::~PlatformScrollbar):
677 (WebCore::PlatformScrollbar::width):
678 (WebCore::PlatformScrollbar::height):
679 (WebCore::PlatformScrollbar::setEnabled):
680 (WebCore::PlatformScrollbar::paint):
681 (WebCore::PlatformScrollbar::updateThumbPosition):
682 (WebCore::PlatformScrollbar::updateThumbProportion):
683 (WebCore::PlatformScrollbar::setRect):
684 (FrameView::passMousePressEventToScrollbar):
686 2006-10-06 Sam Weinig <sam.weinig@gmail.com>
690 Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
691 Another round of Objective-C SVG DOM bindings auto-generation
693 - Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
694 DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
695 DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
696 DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
697 DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
698 DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
699 DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
700 DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
701 DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
702 DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
703 DOMSVGFETileElement, DOMSVGFETurbulenceElement,
704 DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
706 - Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
711 - Make numOctaves in SVGFETurbulenceElement use a long instead of an int
712 in it's macro declaration and definition.
714 * DerivedSources.make:
715 * WebCore.xcodeproj/project.pbxproj:
716 * bindings/objc/DOMCSS.mm:
717 (+[DOMCSSValue _CSSValueWith:WebCore::]):
718 * bindings/objc/DOMInternal.h:
719 * bindings/objc/DOMSVG.h:
720 * bindings/objc/DOMSVGNumber.h: Added.
721 * bindings/objc/DOMSVGNumber.mm: Added.
722 (-[DOMSVGNumber dealloc]):
723 (-[DOMSVGNumber finalize]):
724 (-[DOMSVGNumber value]):
725 (-[DOMSVGNumber setValue:]):
726 (-[DOMSVGNumber _SVGNumber]):
727 (-[DOMSVGNumber _initWithFloat:]):
728 (+[DOMSVGNumber _SVGNumberWith:]):
729 * bindings/objc/DOMSVGPoint.h: Added.
730 * bindings/objc/DOMSVGPoint.mm: Added.
731 (-[DOMSVGPoint dealloc]):
732 (-[DOMSVGPoint finalize]):
734 (-[DOMSVGPoint setX:]):
736 (-[DOMSVGPoint setY:]):
737 (-[DOMSVGPoint WebCore::]):
738 (-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
739 (+[DOMSVGPoint _SVGPointWith:WebCore::]):
740 * bindings/objc/DOMSVGRect.h: Added.
741 * bindings/objc/DOMSVGRect.mm: Added.
742 (-[DOMSVGRect dealloc]):
743 (-[DOMSVGRect finalize]):
745 (-[DOMSVGRect setX:]):
747 (-[DOMSVGRect setY:]):
748 (-[DOMSVGRect width]):
749 (-[DOMSVGRect setWidth:]):
750 (-[DOMSVGRect height]):
751 (-[DOMSVGRect setHeight:]):
752 (-[DOMSVGRect WebCore::]):
753 (-[DOMSVGRect _initWithFloatRect:WebCore::]):
754 (+[DOMSVGRect _SVGRectWith:WebCore::]):
755 * bindings/scripts/CodeGeneratorObjC.pm:
756 * ksvg2/svg/SVGAnimatedNumberList.idl:
757 * ksvg2/svg/SVGAnimatedRect.idl:
758 * ksvg2/svg/SVGComponentTransferFunctionElement.idl:
759 * ksvg2/svg/SVGCursorElement.idl:
760 * ksvg2/svg/SVGFEBlendElement.idl:
761 * ksvg2/svg/SVGFEColorMatrixElement.idl:
762 * ksvg2/svg/SVGFEComponentTransferElement.idl:
763 * ksvg2/svg/SVGFECompositeElement.idl:
764 * ksvg2/svg/SVGFEDiffuseLightingElement.idl:
765 * ksvg2/svg/SVGFEDisplacementMapElement.idl:
766 * ksvg2/svg/SVGFEDistantLightElement.idl:
767 * ksvg2/svg/SVGFEFloodElement.idl:
768 * ksvg2/svg/SVGFEFuncAElement.idl:
769 * ksvg2/svg/SVGFEFuncBElement.idl:
770 * ksvg2/svg/SVGFEFuncGElement.idl:
771 * ksvg2/svg/SVGFEFuncRElement.idl:
772 * ksvg2/svg/SVGFEGaussianBlurElement.idl:
773 * ksvg2/svg/SVGFEImageElement.idl:
774 * ksvg2/svg/SVGFEMergeElement.idl:
775 * ksvg2/svg/SVGFEMergeNodeElement.idl:
776 * ksvg2/svg/SVGFEOffsetElement.idl:
777 * ksvg2/svg/SVGFEPointLightElement.idl:
778 * ksvg2/svg/SVGFESpecularLightingElement.idl:
779 * ksvg2/svg/SVGFESpotLightElement.idl:
780 * ksvg2/svg/SVGFETileElement.idl:
781 * ksvg2/svg/SVGFETurbulenceElement.cpp:
782 * ksvg2/svg/SVGFETurbulenceElement.h:
783 * ksvg2/svg/SVGFETurbulenceElement.idl:
784 * ksvg2/svg/SVGNumberList.idl:
786 2006-10-06 Adam Roben <aroben@apple.com>
788 Backing out my previous change.
790 * WebCore.xcodeproj/project.pbxproj:
791 * page/FrameView.cpp:
792 (WebCore::FrameView::adjustViewSize):
794 2006-10-06 Adam Roben <aroben@apple.com>
798 * WebCore.xcodeproj/project.pbxproj:
799 * page/FrameView.cpp:
800 (WebCore::FrameView::windowResizerRect):
802 2006-10-06 Adam Roben <aroben@apple.com>
808 * platform/ResourceLoader.h:
809 * platform/ResourceLoaderInternal.h:
810 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
811 * platform/win/TemporaryLinkStubs.cpp:
812 (WebCore::ResourceLoader::newHTTPRequest):
814 2006-10-05 Steve Falkenburg <sfalken@apple.com>
818 Stub out some methods that we'll be able to use to dodge a window resizer.
820 * bridge/win/FrameWin.h:
822 (WebCore::Frame::windowResizerRect):
824 * platform/ScrollView.h:
825 (WebCore::ScrollView::windowResizerRect):
827 * platform/win/TemporaryLinkStubs.cpp:
828 (FrameView::windowResizerRect):
831 (FrameWin::windowResizerRect):
833 2006-10-05 Dave Hyatt <hyatt@apple.com>
835 Stub out setFrameGeometry.
837 * platform/ScrollView.h:
839 2006-10-05 Adele Peterson <adele@apple.com>
841 Reverting autoscroll fix. I need to rework this a little.
844 (WebCore::Frame::handleAutoscroll):
845 (WebCore::Frame::autoscrollTimerFired):
846 (WebCore::Frame::stopAutoscrollTimer):
848 * rendering/RenderLayer.cpp:
849 (WebCore::RenderLayer::~RenderLayer):
850 * rendering/RenderListBox.cpp:
851 (WebCore::RenderListBox::~RenderListBox):
853 2006-10-05 Alice <alice.liu@apple.com>
857 Fixed <rdar://problem/4731778>
859 * editing/CommandByName.cpp:
860 (WebCore::Frame::Command::):
861 was calling the wrong enabledFn for arrow selection and navigation
863 2006-10-05 Adele Peterson <adele@apple.com>
867 - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
868 and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
870 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
871 * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
873 * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
874 (WebCore::Frame::handleAutoscroll):
875 (WebCore::Frame::autoscrollTimerFired):
876 (WebCore::Frame::autoscrollRenderer):
877 (WebCore::Frame::setAutoscrollRenderer):
878 (WebCore::Frame::stopAutoscrollTimer):
881 2006-10-05 Don Gibson <dgibson77@gmail.com>
885 Fix win32 build bustage after ggaren's Scrollbar renaming changes.
886 Properly include PlatformScrollBar.h in WbCore.vcproj.
887 Clean up WidgetWin.cpp a bit.
889 * WebCore.vcproj/WebCore/WebCore.vcproj:
891 * platform/win/PlatformScrollBar.h:
892 * platform/win/ScrollViewWin.cpp:
893 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
894 (WebCore::ScrollView::resizeContents):
895 (WebCore::ScrollView::scrollBy):
896 (WebCore::ScrollView::hScrollbarMode):
897 (WebCore::ScrollView::vScrollbarMode):
898 (WebCore::ScrollView::suppressScrollbars):
899 (WebCore::ScrollView::setHScrollbarMode):
900 (WebCore::ScrollView::setVScrollbarMode):
901 (WebCore::ScrollView::setScrollbarsMode):
902 (WebCore::ScrollView::updateScrollbars):
903 * platform/win/TemporaryLinkStubs.cpp:
904 (FrameView::passMousePressEventToScrollbar):
905 (Widget::removeFromParent):
906 (ScrollView::scrollbarUnderMouse):
907 (PlatformScrollbar::PlatformScrollbar):
908 (PlatformScrollbar::~PlatformScrollbar):
909 (PlatformScrollbar::width):
910 (PlatformScrollbar::height):
911 (PlatformScrollbar::setEnabled):
912 (PlatformScrollbar::paint):
913 (PlatformScrollbar::updateThumbPosition):
914 (PlatformScrollbar::updateThumbProportion):
915 (PlatformScrollbar::setRect):
916 (Scrollbar::Scrollbar):
917 (Scrollbar::setSteps):
919 (Scrollbar::setValue):
920 (Scrollbar::setProportion):
921 * platform/win/WidgetWin.cpp:
922 (WebCore::WidgetPrivate::WidgetPrivate):
923 (WebCore::Widget::Widget):
924 (WebCore::Widget::setContainingWindow):
925 (WebCore::Widget::containingWindow):
927 2006-10-05 Geoffrey Garen <ggaren@apple.com>
931 * WebCore.xcodeproj/project.pbxproj:
932 * bridge/mac/BrowserExtensionMac.mm:
933 (WebCore::BrowserExtensionMac::createNewWindow):
934 * bridge/mac/FrameMac.mm:
935 (WebCore::FrameMac::createFrame):
936 * bridge/mac/FrameViewMac.mm:
937 (WebCore::FrameView::passMousePressEventToScrollbar):
938 * bridge/mac/WebCoreFrameBridge.mm:
939 (-[WebCoreFrameBridge installInFrame:]):
940 * bridge/mac/WebCoreFrameView.h:
941 * platform/ScrollBar.cpp:
943 * platform/mac/PlatformScrollBar.h:
944 * platform/mac/PlatformScrollBarMac.mm:
945 (NSControlSizeForScrollBarControlSize):
946 (-[WebCoreScrollBar initWithPlatformScrollbar:]):
947 (-[WebCoreScrollBar detachPlatformScrollbar]):
948 (-[WebCoreScrollBar scroll:]):
949 (-[WebCoreScrollBar widget]):
950 (WebCore::PlatformScrollbar::PlatformScrollbar):
951 (WebCore::PlatformScrollbar::~PlatformScrollbar):
952 (WebCore::PlatformScrollbar::updateThumbPosition):
953 (WebCore::PlatformScrollbar::updateThumbProportion):
954 (WebCore::PlatformScrollbar::scrollbarHit):
955 (WebCore::PlatformScrollbar::width):
956 (WebCore::PlatformScrollbar::height):
957 (WebCore::PlatformScrollbar::setRect):
958 (WebCore::PlatformScrollbar::setEnabled):
959 (WebCore::PlatformScrollbar::paint):
960 * platform/mac/ScrollViewMac.mm:
961 (WebCore::ScrollView::setVScrollbarMode):
962 (WebCore::ScrollView::setHScrollbarMode):
963 (WebCore::ScrollView::setScrollbarsMode):
964 (WebCore::ScrollView::vScrollbarMode):
965 (WebCore::ScrollView::hScrollbarMode):
966 (WebCore::ScrollView::suppressScrollbars):
967 (WebCore::ScrollView::scrollbarUnderMouse):
968 * platform/mac/WidgetMac.mm:
969 (WebCore::Widget::removeFromParent):
970 * rendering/RenderLayer.cpp:
971 (WebCore::RenderLayer::destroyScrollbar):
973 2006-10-05 Geoffrey Garen <ggaren@apple.com>
978 * rendering/RenderLayer.cpp:
979 (WebCore::RenderLayer::destroyScrollbar):
981 2006-10-06 Mitz Pettel <mitz@webkit.org>
983 http://bugs.webkit.org/show_bug.cgi?id=8276
984 Fix broken manual test added back in r13990.
986 Add resource forks for test resources.
988 * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
989 * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
990 * manual-tests/resources/plain-text-paste/._4.txt: Added.
991 * manual-tests/resources/plain-text-paste/._5.webloc: Added.
993 2006-10-05 David Hyatt <hyatt@apple.com>
995 Rename addClip to clip.
999 * kcanvas/RenderForeignObject.cpp:
1000 (WebCore::RenderForeignObject::paint):
1001 * kcanvas/RenderSVGContainer.cpp:
1002 (WebCore::RenderSVGContainer::paint):
1003 * kcanvas/RenderSVGImage.cpp:
1004 (WebCore::RenderSVGImage::paint):
1005 * platform/GraphicsContext.h:
1006 * platform/cairo/GraphicsContextCairo.cpp:
1007 (WebCore::GraphicsContext::clip):
1008 * platform/cg/GraphicsContextCG.cpp:
1009 (WebCore::GraphicsContext::savePlatformState):
1010 (WebCore::GraphicsContext::restorePlatformState):
1011 (WebCore::GraphicsContext::clip):
1012 (WebCore::GraphicsContext::addRoundedRectClip):
1013 (WebCore::GraphicsContext::addInnerRoundedRectClip):
1014 (WebCore::GraphicsContext::scale):
1015 (WebCore::GraphicsContext::rotate):
1016 (WebCore::GraphicsContext::translate):
1017 (WebCore::GraphicsContext::concatCTM):
1018 * platform/cg/GraphicsContextPlatformPrivate.h:
1019 (WebCore::GraphicsContextPlatformPrivate::save):
1020 (WebCore::GraphicsContextPlatformPrivate::restore):
1021 (WebCore::GraphicsContextPlatformPrivate::clip):
1022 (WebCore::GraphicsContextPlatformPrivate::scale):
1023 (WebCore::GraphicsContextPlatformPrivate::rotate):
1024 (WebCore::GraphicsContextPlatformPrivate::translate):
1025 (WebCore::GraphicsContextPlatformPrivate::concatCTM):
1026 * platform/qt/GraphicsContextQt.cpp:
1027 (WebCore::GraphicsContext::clip):
1028 (WebCore::GraphicsContext::addInnerRoundedRectClip):
1029 (WebCore::GraphicsContext::addRoundedRectClip):
1030 * rendering/InlineFlowBox.cpp:
1031 (WebCore::InlineFlowBox::paintBackground):
1032 (WebCore::InlineFlowBox::paintBackgroundAndBorder):
1033 * rendering/InlineTextBox.cpp:
1034 (WebCore::InlineTextBox::paintSelection):
1035 (WebCore::InlineTextBox::paintTextMatchMarker):
1036 * rendering/RenderBox.cpp:
1037 (WebCore::RenderBox::paintBackgroundExtended):
1038 * rendering/RenderButton.cpp:
1039 (WebCore::RenderButton::paintObject):
1040 * rendering/RenderFileUploadControl.cpp:
1041 (WebCore::RenderFileUploadControl::paintObject):
1042 * rendering/RenderLayer.cpp:
1043 (WebCore::RenderLayer::beginTransparencyLayers):
1045 * rendering/RenderListBox.cpp:
1046 (WebCore::RenderListBox::paintObject):
1047 * rendering/RenderMenuList.cpp:
1048 (WebCore::RenderMenuList::paintObject):
1049 * rendering/RenderTableCell.cpp:
1050 (WebCore::RenderTableCell::paintBackgroundsBehindCell):
1052 2006-10-05 Mitz Pettel <mitz@webkit.org>
1056 - http://bugs.webkit.org/show_bug.cgi?id=10386
1057 Delete RenderImageButton.* and remove references from .vcproj and .bkl files
1060 * WebCore.vcproj/WebCore/WebCore.vcproj:
1061 * WebCoreSources.bkl:
1062 * rendering/RenderImageButton.cpp: Removed.
1063 * rendering/RenderImageButton.h: Removed.
1065 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
1069 - http://bugs.webkit.org/show_bug.cgi?id=11067
1070 manual-tests/scrollbar-hittest2.html is invalid
1072 * manual-tests/scrollbar-hittest2.html:
1074 2006-10-05 David Carson <dacarson@gmail.com>
1078 http://bugs.webkit.org/show_bug.cgi?id=11152
1079 Adjust the tokenizer chunk size to be smaller for
1080 mobile devices, and also decrease the yield timer
1081 for the tokenizer so that it can resume earlier.
1083 * html/HTMLTokenizer.cpp:
1086 2006-10-05 Adam Roben <aroben@apple.com>
1088 Removing accidentally-checked-in do-nothing code.
1090 * html/HTMLInputElement.cpp:
1091 (WebCore::HTMLInputElement::defaultEventHandler):
1093 2006-10-05 David Carson <dacarson@gmail.com>
1097 http://bugs.webkit.org/show_bug.cgi?id=11158
1098 Initialize class variables
1100 * rendering/RenderLayer.cpp:
1101 (WebCore::RenderLayer::RenderLayer):
1103 2006-10-05 Don Gibson <dgibson77@gmail.com>
1105 Reviewed by Darin, landed by Adam.
1107 http://bugs.webkit.org/show_bug.cgi?id=11176
1108 Fix win32 build, adapt to Maciej's ResourceLoader changes.
1110 * platform/win/ResourceLoaderWin.cpp:
1111 (WebCore::ResourceLoader::start):
1113 2006-10-05 Marvin Decker <marv.decker@gmail.com>
1117 http://bugs.webkit.org/show_bug.cgi?id=10989
1118 Provide a way for embedders to implement BrowserExtensionWin
1120 * WebCore.vcproj/WebCore/WebCore.vcproj:
1121 * bridge/win/BrowserExtensionWin.cpp: Added.
1122 (BrowserExtensionWin::BrowserExtensionWin):
1123 (BrowserExtensionWin::setTypedIconURL):
1124 (BrowserExtensionWin::setIconURL):
1125 (BrowserExtensionWin::getHistoryLength):
1126 (BrowserExtensionWin::canRunModal):
1127 (BrowserExtensionWin::createNewWindow):
1128 (BrowserExtensionWin::canRunModalNow):
1129 (BrowserExtensionWin::runModal):
1130 (BrowserExtensionWin::goBackOrForward):
1131 (BrowserExtensionWin::historyURL):
1132 * bridge/win/BrowserExtensionWin.h:
1133 * bridge/win/FrameWin.cpp:
1134 (WebCore::FrameWin::createNewWindow):
1135 * bridge/win/FrameWin.h:
1136 * platform/win/TemporaryLinkStubs.cpp:
1138 2006-10-05 Geoffrey Garen <ggaren@apple.com>
1142 Fixed <rdar://problem/4766987>
1144 - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
1145 except for file names.
1147 - fixed RenderLayer to properly tear down scrollbars, removing them from
1150 * bindings/js/kjs_window.cpp:
1151 (KJS::showModalDialog):
1152 (KJS::setWindowFeature):
1153 (KJS::parseWindowFeatures):
1154 * bridge/BrowserExtension.h:
1156 (WebCore::Document::setInPageCache):
1157 * html/HTMLFrameElement.cpp:
1158 (WebCore::HTMLFrameElement::init):
1159 (WebCore::HTMLFrameElement::parseMappedAttribute):
1160 * html/HTMLFrameElement.h:
1161 (WebCore::HTMLFrameElement::scrollingMode):
1163 (WebCore::Frame::finishedParsing):
1164 (WebCore::Frame::scrollbarsVisible):
1165 * page/FrameView.cpp:
1166 (WebCore::FrameViewPrivate::FrameViewPrivate):
1167 (WebCore::FrameViewPrivate::reset):
1168 (WebCore::FrameView::~FrameView):
1169 (WebCore::FrameView::resetScrollbars):
1170 (WebCore::FrameView::clear):
1171 (WebCore::FrameView::initScrollbars):
1172 (WebCore::FrameView::applyOverflowToViewport):
1173 (WebCore::FrameView::layout):
1174 (WebCore::FrameView::handleMousePressEvent):
1175 (WebCore::selectCursor):
1176 (WebCore::FrameView::handleMouseMoveEvent):
1177 (WebCore::FrameView::setScrollbarsMode):
1178 (WebCore::FrameView::setVScrollbarMode):
1179 (WebCore::FrameView::setHScrollbarMode):
1180 (WebCore::FrameView::restoreScrollbar):
1181 (WebCore::FrameView::dispatchMouseEvent):
1182 (WebCore::FrameView::scrollbarMoved):
1184 * page/MouseEventWithHitTestResults.cpp:
1185 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1186 * page/MouseEventWithHitTestResults.h:
1187 (WebCore::MouseEventWithHitTestResults::scrollbar):
1188 * platform/ScrollBar.cpp:
1189 (WebCore::Scrollbar::Scrollbar):
1190 (WebCore::Scrollbar::setValue):
1191 (WebCore::Scrollbar::setProportion):
1192 (WebCore::Scrollbar::setSteps):
1193 (WebCore::Scrollbar::scroll):
1194 * platform/ScrollBar.h:
1196 (WebCore::ScrollbarClient::~ScrollbarClient):
1197 (WebCore::Scrollbar::~Scrollbar):
1198 (WebCore::Scrollbar::orientation):
1199 (WebCore::Scrollbar::controlSize):
1200 (WebCore::Scrollbar::hasPlatformScrollbars):
1201 (WebCore::Scrollbar::client):
1202 * platform/ScrollBarMode.h:
1204 * platform/ScrollView.h:
1205 * rendering/RenderBlock.cpp:
1206 (WebCore::RenderBlock::isPointInScrollbar):
1207 * rendering/RenderLayer.cpp:
1208 (WebCore::RenderLayer::RenderLayer):
1209 (WebCore::RenderLayer::~RenderLayer):
1210 (WebCore::RenderLayer::scrollToOffset):
1211 (WebCore::RenderLayer::horizontaScrollbarWidget):
1212 (WebCore::RenderLayer::verticalScrollbarWidget):
1213 (WebCore::RenderLayer::valueChanged):
1214 (WebCore::RenderLayer::createScrollbar):
1215 (WebCore::RenderLayer::destroyScrollbar):
1216 (WebCore::RenderLayer::setHasHorizontalScrollbar):
1217 (WebCore::RenderLayer::setHasVerticalScrollbar):
1218 (WebCore::RenderLayer::verticalScrollbarWidth):
1219 (WebCore::RenderLayer::horizontalScrollbarHeight):
1220 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
1221 * rendering/RenderLayer.h:
1222 (WebCore::RenderLayer::horizontalScrollbar):
1223 (WebCore::RenderLayer::verticalScrollbar):
1224 * rendering/RenderListBox.cpp:
1225 (WebCore::RenderListBox::~RenderListBox):
1226 (WebCore::RenderListBox::calcMinMaxWidth):
1227 (WebCore::RenderListBox::isPointInScrollbar):
1228 (WebCore::RenderListBox::optionAtPoint):
1229 (WebCore::RenderListBox::valueChanged):
1230 * rendering/RenderListBox.h:
1231 * rendering/RenderObject.h:
1232 (WebCore::RenderObject::NodeInfo::scrollbar):
1233 (WebCore::RenderObject::NodeInfo::setScrollbar):
1235 2006-10-05 Don Gibson <dgibson77@gmail.com>
1239 http://bugs.webkit.org/show_bug.cgi?id=11138
1240 Incorrect mouse event generation on Windows
1242 * platform/win/MouseEventWin.cpp:
1243 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1244 (1) Set mouse button even for non-click-related messages.
1245 (2) Track clicks correctly for all buttons, not just the left button.
1247 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
1249 Reviewed and landed by ap.
1251 Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
1253 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
1254 (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
1255 (WebCore::KRenderingPaintServerLinearGradientQt::setup):
1256 (WebCore::KRenderingPaintServerRadialGradientQt::setup):
1257 (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
1258 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
1259 (WebCore::KRenderingPaintServerPatternQt::renderPath):
1260 * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
1261 (WebCore::KRenderingPaintServerQt::setPenProperties):
1262 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
1263 (WebCore::KRenderingPaintServerSolidQt::setup):
1264 (WebCore::KRenderingPaintServerSolidQt::renderPath):
1265 * kcanvas/device/qt/RenderPathQt.cpp:
1266 (WebCore::getPathStroke):
1268 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
1272 http://bugs.webkit.org/show_bug.cgi?id=11054
1273 REGRESSION: Traditional Chinese encoding in login authentication
1275 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
1276 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
1277 for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
1279 * platform/StreamingTextDecoderICU.cpp:
1280 (WebCore::TextCodecICU::registerEncodingNames):
1282 2006-10-05 Eric Seidel <eric@eseidel.com>
1287 Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
1289 * WebCore.xcodeproj/project.pbxproj:
1290 * ksvg2/ecma/GlobalObject.cpp: Removed.
1291 * ksvg2/ecma/GlobalObject.h: Removed.
1293 2006-10-05 Adam Roben <aroben@apple.com>
1297 Small ResourceLoaderInternal tweak.
1299 * platform/ResourceLoaderInternal.h:
1300 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1302 2006-10-05 Eric Seidel <eric@eseidel.com>
1306 More incremental KCanvas cleanup and optimization.
1307 Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
1308 Optimized dash array usage to not malloc.
1309 Also removed un-needed KSVGRenderingStyle includes.
1311 * kcanvas/KCanvasTreeDebug.cpp:
1312 (WebCore::operator<<):
1313 * kcanvas/RenderPath.cpp:
1314 (WebCore::RenderPath::nodeAtPoint):
1315 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
1316 (WebCore::RenderPath::strokeBBox):
1317 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
1318 (WebCore::KRenderingPaintServerGradientQuartz::setup):
1319 (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
1320 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
1321 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1322 (WebCore::KRenderingPaintServerSolidQuartz::setup):
1323 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
1324 (WebCore::KRenderingPaintServerPatternQuartz::setup):
1325 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
1326 * kcanvas/device/quartz/QuartzSupport.mm:
1327 (WebCore::applyStrokeStyleToContext):
1328 * ksvg2/css/SVGRenderStyle.h:
1329 (WebCore::SVGRenderStyle::hasStroke):
1330 (WebCore::SVGRenderStyle::hasFill):
1331 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1332 (WebCore::KSVGPainterFactory::fillPaintServer):
1333 (WebCore::KSVGPainterFactory::strokePaintServer):
1334 * ksvg2/misc/KCanvasRenderingStyle.h:
1336 2006-10-05 Maciej Stachowiak <mjs@apple.com>
1340 - changed ResourceLoader to be refcounted
1342 It keeps a ref on itself while loading as well. This makes
1343 for a much saner memory management model than the previous.
1345 * bridge/mac/WebCoreResourceLoaderImp.mm:
1346 (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
1347 * dom/XMLTokenizer.cpp:
1348 (WebCore::openFunc):
1349 * loader/icon/IconLoader.cpp:
1350 (IconLoader::IconLoader):
1351 (IconLoader::~IconLoader):
1352 (IconLoader::startLoading):
1353 (IconLoader::stopLoading):
1354 (IconLoader::receivedData):
1355 * loader/icon/IconLoader.h:
1356 * loader/loader.cpp:
1357 (WebCore::Loader::servePendingRequests):
1358 * platform/ResourceLoader.cpp:
1359 (WebCore::ResourceLoader::create):
1360 (WebCore::ResourceLoader::kill):
1361 * platform/ResourceLoader.h:
1362 * platform/ResourceLoaderInternal.h:
1363 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
1364 * platform/mac/ResourceLoaderMac.mm:
1365 (WebCore::ResourceLoader::start):
1366 * xml/XSLTProcessor.cpp:
1367 (WebCore::docLoaderFunc):
1368 * xml/xmlhttprequest.cpp:
1369 (WebCore::XMLHttpRequest::send):
1370 * xml/xmlhttprequest.h:
1372 2006-10-05 Eric Seidel <eric@eseidel.com>
1376 Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
1377 http://bugs.webkit.org/show_bug.cgi?id=11163
1379 No SVG performance tests yet.
1381 * kcanvas/RenderForeignObject.cpp:
1382 (WebCore::RenderForeignObject::paint):
1383 * kcanvas/RenderSVGContainer.cpp:
1384 (WebCore::RenderSVGContainer::paint):
1385 * kcanvas/RenderSVGImage.cpp:
1386 (WebCore::RenderSVGImage::paint):
1387 * kcanvas/RenderSVGText.cpp:
1388 (WebCore::RenderSVGText::paint):
1390 2006-10-05 Dave Hyatt <hyatt@apple.com>
1392 Stub out some stuff for widget focusability.
1396 * page/FrameView.cpp:
1397 (WebCore::FrameView::dispatchMouseEvent):
1398 * platform/ScrollView.h:
1399 * platform/Widget.h:
1401 2006-10-05 Adam Roben <aroben@apple.com>
1403 Reviewed by Maciej and Tim H.
1405 Copy some WebKit frame lifetime logic into WebCore -- just a step
1406 along the path to frame lifetime being handled completely in WebCore.
1408 * bridge/mac/FrameMac.mm:
1409 (WebCore::FrameMac::setView): Move platform-independent parts of this
1412 (WebCore::Frame::setView): Adding platform-independent parts of
1414 (WebCore::Frame::detachChildren): New method to accomplish what
1415 -[WebFrameBridge _detachChildren] currently does.
1416 (WebCore::Frame::clear): Call detachChildren
1417 * page/Frame.h: Add declaration for detachChildren
1419 2006-10-04 Alice Liu <alice.liu@apple.com>
1423 Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
1425 * xml/xmlhttprequest.cpp:
1426 (WebCore::XMLHttpRequest::setRequestHeader):
1427 removed exception set when the request is not open yet
1429 2006-10-04 Anders Carlsson <acarlsson@apple.com>
1431 Reviewed by John Sullivan.
1433 <rdar://problem/4654328>
1434 Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
1436 * loader/PluginDocument.cpp:
1437 (WebCore::PluginTokenizer::writeRawData):
1438 Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
1440 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
1444 http://bugs.webkit.org/show_bug.cgi?id=11130
1445 Convert "undefined" to AE missing value
1447 * bridge/mac/WebCoreFrameBridge.mm:
1448 (aeDescFromJSValue): return missing value for UndefinedType.
1450 2006-10-03 Dave Hyatt <hyatt@apple.com>
1452 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
1453 the windowToContents/contentsToWindow functions.
1457 * bridge/mac/FrameMac.mm:
1458 (WebCore::FrameMac::eventMayStartDrag):
1459 (WebCore::FrameMac::dragHysteresisExceeded):
1460 (WebCore::FrameMac::mouseDown):
1461 (WebCore::FrameMac::shouldDragAutoNode):
1462 (WebCore::FrameMac::sendContextMenuEvent):
1463 * bridge/mac/FrameViewMac.mm:
1464 (WebCore::FrameView::passMousePressEventToScrollbar):
1465 * bridge/mac/WebCoreFrameBridge.mm:
1466 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1467 * dom/EventTargetNode.cpp:
1468 (WebCore::EventTargetNode::dispatchMouseEvent):
1469 (WebCore::EventTargetNode::dispatchWheelEvent):
1471 (WebCore::Frame::selectClosestWordFromMouseEvent):
1472 (WebCore::Frame::handleMousePressEventTripleClick):
1473 (WebCore::Frame::handleMousePressEventSingleClick):
1474 (WebCore::Frame::handleMouseMoveEvent):
1475 (WebCore::Frame::handleMouseReleaseEvent):
1476 * page/FrameView.cpp:
1477 (WebCore::FrameView::handleMousePressEvent):
1478 (WebCore::FrameView::handleMouseDoubleClickEvent):
1479 (WebCore::selectCursor):
1480 (WebCore::FrameView::handleMouseMoveEvent):
1481 (WebCore::FrameView::handleMouseReleaseEvent):
1482 (WebCore::FrameView::dispatchDragEvent):
1483 (WebCore::FrameView::prepareMouseEvent):
1484 (WebCore::FrameView::handleWheelEvent):
1486 * platform/ScrollBar.cpp:
1487 (WebCore::ScrollBar::setValue):
1488 * platform/ScrollView.h:
1489 * platform/Widget.h:
1490 (WebCore::Widget::scrolled):
1491 * platform/mac/ScrollViewMac.mm:
1492 (WebCore::ScrollView::contentsToWindow):
1493 (WebCore::ScrollView::windowToContents):
1494 (WebCore::ScrollView::scrollbarUnderMouse):
1495 * platform/mac/WidgetMac.mm:
1496 * rendering/RenderLayer.cpp:
1497 (WebCore::RenderLayer::resize):
1498 (WebCore::RenderLayer::positionScrollbars):
1499 * rendering/RenderReplaced.cpp:
1500 (WebCore::RenderReplaced::shouldPaint):
1501 * rendering/RenderView.cpp:
1502 * rendering/RenderView.h:
1503 * rendering/RenderWidget.cpp:
1504 (WebCore::RenderWidget::setWidget):
1506 2006-09-26 David Smith <catfish.man@gmail.com>
1508 Reviewed by Timothy.
1510 http://bugs.webkit.org/show_bug.cgi?id=3723
1511 Add -scrollDOMRangeToVisible:
1513 No automated tests are possible as this code path isn't reachable from JavaScript.
1515 * bridge/mac/WebCoreFrameBridge.h:
1516 * bridge/mac/WebCoreFrameBridge.mm:
1517 (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
1519 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
1521 Reviewed by Timothy.
1523 <http://bugs.webkit.org/show_bug.cgi?id=10338>
1524 When contentEditable, cursor doesn't change to hand
1526 Allow the behaviour of editable links to be specified by a WebPreference
1527 The preference WebKitEditableLinkBehavior has four options:
1528 - AlwaysLive: Safari 2.0 behaviour
1529 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
1530 - LiveWhenNotFocused: Editable links are live only when their editable block is not
1531 focused, or when the shift key is pressed
1532 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
1534 No layout tests, just a modification of a manual-test as it isn't possible to test
1537 * bridge/mac/WebCoreSettings.h:
1538 * bridge/mac/WebCoreSettings.mm:
1539 (-[WebCoreSettings setEditableLinkBehavior:]):
1540 (-[WebCoreSettings editableLinkBehavior]):
1541 * html/HTMLAnchorElement.cpp:
1542 (WebCore::HTMLAnchorElement::HTMLAnchorElement):
1543 (WebCore::HTMLAnchorElement::defaultEventHandler):
1544 (WebCore::HTMLAnchorElement::setActive):
1545 * html/HTMLAnchorElement.h:
1546 * manual-tests/contenteditable-link.html:
1547 * page/FrameView.cpp:
1548 (WebCore::nodeIsNotBeingEdited):
1549 (WebCore::selectCursor):
1551 (WebCore::Settings::):
1552 (WebCore::Settings::Settings):
1553 (WebCore::Settings::editableLinkBehavior):
1554 (WebCore::Settings::setEditableLinkBehavior):
1556 2006-10-03 Beth Dakin <bdakin@apple.com>
1560 No test cases needed.
1562 Implemented a version of StringImpl::append that takes a UChar* and
1565 * platform/StringImpl.cpp:
1566 (WebCore::StringImpl::append):
1567 (WebCore::StringImpl::insert): Call new append instead of making a
1569 * platform/StringImpl.h:
1571 2006-10-03 MorganL <morganl.webkit@yahoo.com>
1575 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
1576 HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
1578 * platform/win/ResourceLoaderWin.cpp:
1579 (WebCore::ResourceLoader::onHandleCreated):
1581 2006-10-02 Geoffrey Garen <ggaren@apple.com>
1583 Feared, loathed, reviewed by Darin.
1585 More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
1586 into FRAME, plus other cleanup.
1588 No new behavior, so no new test. Layout tests pass. Basic browsing and
1589 Mail editing seem to work.
1592 (WebCore::Node::detach): Removed random commented-out code.
1593 * html/HTMLFrameElement.cpp:
1594 (WebCore::HTMLFrameElement::isURLAllowed):
1595 (1) Removed reference to FrameView, to dissociate frame loading from rendering.
1596 (2) Renamed newURL to completeURL because the difference between newURL
1597 and URLString is that newURL is a KURL that is the complete version of URLString,
1599 (WebCore::HTMLFrameElement::willRemove):
1600 (1) Removed close() call and moved close() code into willRemove(), also removing
1601 close() call from detach(), since willRemove is the well-defined place
1602 from DOM tear-down, not detach().
1603 (2) Removed manual renderer detach code because the DOM is not responsible
1604 for managing the render tree. I confirmed that this change not
1605 regress <rdar://problem/4132581>.
1606 (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
1607 lost their content frames after being removed from the DOM. That's our
1608 current behavior, but it's going to change in future rounds of refactoring.
1609 This also fixes <rdar://problem/4750835>.
1610 (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
1611 attach/detach, because the render tree should not be in charge of deciding
1613 * html/HTMLFrameElement.h:
1614 * html/HTMLIFrameElement.cpp:
1615 (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
1616 because the renderer is a renderPartObject, not a renderPart.
1617 * html/HTMLIFrameElement.h:
1619 2006-10-03 Mark Rowe <bdash@webkit.org>
1623 http://bugs.webkit.org/show_bug.cgi?id=11137
1624 Bug 11137: GdkLauncher dies with "pure virtual method called" if
1625 window is closed while page still loading
1627 * platform/gdk/FrameGdk.cpp:
1628 (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
1629 methods to be called before the FrameGdk portion of "this" is torn down.
1631 2006-10-03 Adam Roben <aroben@apple.com>
1635 Handle tab key presses in the DOM.
1637 * dom/EventTargetNode.cpp:
1638 (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
1639 * page/FrameView.cpp:
1640 (WebCore::FrameView::advanceFocus): Rename and reimplement
1641 focusNextPrevNode. Now we just call Element::focus().
1642 * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
1645 2006-10-03 Justin Garcia <justin.garcia@apple.com>
1649 <rdar://problem/4760612>
1650 TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
1652 No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
1655 (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
1656 positions are non-null since most of it's callers would be in a bad state if the positions
1657 were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
1658 Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
1659 from entering compareBoundaryPoints and hitting the assert.
1661 2006-10-03 Adele Peterson <adele@apple.com>
1665 Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
1667 * html/HTMLSelectElement.cpp:
1668 (WebCore::HTMLSelectElement::recalcStyle):
1669 (WebCore::HTMLSelectElement::isKeyboardFocusable):
1670 (WebCore::HTMLSelectElement::isMouseFocusable):
1671 (WebCore::HTMLSelectElement::createRenderer):
1672 (WebCore::HTMLSelectElement::setRecalcListItems):
1673 (WebCore::HTMLSelectElement::notifyOptionSelected):
1674 (WebCore::HTMLSelectElement::defaultEventHandler):
1676 2006-10-04 Darin Adler <darin@apple.com>
1680 - fix http://bugs.webkit.org/show_bug.cgi?id=11132
1681 Caret disappears when you're typing
1683 * editing/SelectionController.cpp:
1684 (WebCore::SelectionController::setSelection): Remove unnecessary call to
1685 clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
1686 (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
1687 to false so we can get the old caret repaint rect. Later we need to change the
1688 design so getting the rect doesn't have a side effect of causing a layout without
1691 2006-10-03 David Harrison <harrison@apple.com>
1695 <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
1698 * fast/text/justified-text-rect.html
1700 * bridge/mac/WebCoreFrameBridge.mm:
1701 (-[WebCoreFrameBridge convertToNSRange:]):
1702 (-[WebCoreFrameBridge convertToDOMRange:]):
1703 Make the selection's root editable element (or the document itself) be
1704 the basis for NSRange conversions. This supports "shadow DOM" like
1705 that for text fields and text areas.
1707 * editing/CompositeEditCommand.cpp:
1708 (WebCore::CompositeEditCommand::moveParagraphs):
1709 Pass the document element as the scope.
1711 * editing/TextIterator.cpp:
1712 (WebCore::TextIterator::rangeFromLocationAndLength):
1713 Make the first parameter the scope.
1715 * editing/TextIterator.h:
1716 Make the first parameter of rangeFromLocationAndLength() the scope.
1718 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
1724 * CMakeLists.txt: Add counter related files.
1726 2006-10-03 Mark Rowe <bdash@webkit.org>
1730 http://bugs.webkit.org/show_bug.cgi?id=10981
1731 Linux/GDK build fixes
1733 Based on a patch by Krzysztof Kowalczyk.
1735 * WebCoreSources.bkl:
1736 * platform/gdk/FrameGdk.cpp:
1737 (WebCore::doScroll):
1738 (WebCore::FrameGdk::handleGdkEvent):
1739 * platform/gdk/PlatformScrollBar.h: Added.
1740 (WebCore::PlatformScrollBar::isWidget):
1741 * platform/gdk/ScrollViewGdk.cpp:
1742 * platform/gdk/TemporaryLinkStubs.cpp:
1743 (FrameView::passMousePressEventToScrollbar):
1744 (FrameView::passMousePressEventToSubframe):
1745 (FrameView::passMouseReleaseEventToSubframe):
1746 (FrameView::passMouseMoveEventToSubframe):
1747 (FrameView::passWheelEventToSubframe):
1749 (Widget::invalidate):
1750 (Widget::invalidateRect):
1751 (ScrollView::wheelEvent):
1752 (ScrollView::convertToContainingWindow):
1753 (ScrollView::convertFromContainingWindow):
1754 (GraphicsContext::clip):
1755 (PlatformScrollBar::PlatformScrollBar):
1756 (PlatformScrollBar::updateThumbPosition):
1757 (PlatformScrollBar::updateThumbProportion):
1758 (ScrollBar::ScrollBar):
1759 (ScrollBar::setProportion):
1760 (WebCore::supportedKeySizes):
1761 (WebCore::signedPublicKeyAndChallengeString):
1762 * platform/gdk/WheelEventGdk.cpp:
1763 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1764 * platform/gdk/WidgetGdk.cpp:
1765 (WebCore::Widget::convertToContainingWindow):
1766 (WebCore::Widget::convertFromContainingWindow):
1768 2006-10-02 Adam Roben <aroben@apple.com>
1772 Let Windows determine which mouse button is pressed.
1774 * platform/PlatformMouseEvent.h: Add message parameter to constructor.
1775 * platform/win/MouseEventWin.cpp:
1776 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
1777 parameter to determine which mouse button is pressed.
1779 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1785 * editing/SelectionController.cpp:
1786 (WebCore::SelectionController::empty):
1787 * editing/SelectionController.h:
1789 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1793 <rdar://problem/4755287>
1794 Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1796 * editing/markup.cpp:
1797 (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
1798 elements). Don't skip blocks that aren't containers (like horizontal rules).
1800 2006-10-03 Darin Adler <darin@apple.com>
1802 Reviewed by Justin Garcia.
1804 - correct mistaken code that would restart blinking every
1805 time "invalidateSelection" is called even if the caret
1808 * editing/SelectionController.h:
1809 * editing/SelectionController.cpp:
1810 (WebCore::SelectionController::setSelection): Update for name change.
1811 (WebCore::SelectionController::recomputeCaretRect): New function.
1812 Computes caret rect and does any necessary invalidation if the rect
1814 (WebCore::SelectionController::invalidateCaretRect): Renamed from
1815 needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1816 calls recomputeCaretRect as a side effect.
1819 (WebCore::Frame::invalidateSelection): Remove unneeded call to
1820 clearCaretRectIfNeeded.
1821 (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1822 (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1823 recomputeCaretRect function and not restart blinking if caret has
1824 not changed position.
1825 (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1826 are not needed since selectionLayoutChanged already checks these.
1828 * page/FramePrivate.h: Removed unused m_blinkCaret.
1830 2006-10-02 Beth Dakin <bdakin@apple.com>
1834 Build fix. Add counters to vcproj.
1836 * WebCore.vcproj/WebCore/WebCore.vcproj:
1838 2006-10-02 Brady Eidson <beidson@apple.com>
1842 If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1843 icon data out because we don't correctly check SQL error conditions.
1845 * loader/icon/IconDataCache.cpp:
1846 (WebCore::IconDataCache::writeToDatabase):
1848 2006-10-02 Steve Falkenburg <sfalken@apple.com>
1852 Added method to find out whether a layout has occurred.
1854 * page/FrameView.cpp:
1855 (WebCore::FrameView::didFirstLayout):
1858 2006-10-02 Beth Dakin <bdakin@apple.com>
1862 Initial implementation of CSS2 counters. See http://
1863 bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1865 * WebCore.xcodeproj/project.pbxproj:
1866 * css/CSSComputedStyleDeclaration.cpp:
1867 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
1868 the increment/reset list now that this is implemented.
1869 * css/CSSPrimitiveValue.cpp:
1870 (WebCore::CSSPrimitiveValue::cssText):
1872 (WebCore::Counter::Counter):
1873 (WebCore::Counter::~Counter):
1874 (WebCore::Counter::identifier):
1875 (WebCore::Counter::listStyle):
1876 (WebCore::Counter::separator):
1877 (WebCore::Counter::listStyleNumber):
1878 (WebCore::Counter::setIdentifier):
1879 (WebCore::Counter::setListStyle):
1880 (WebCore::Counter::setSeparator):
1881 * css/cssparser.cpp:
1882 (WebCore::CSSParser::addProperty): Take care of reset/increment
1883 (WebCore::CSSParser::parseValue):
1884 (WebCore::CSSParser::parseContent): content can now take counters
1885 (WebCore::CSSParser::parseCounterContent): Parse counter() and
1887 (WebCore::CSSParser::parseCounter): Parse counter-reset and
1890 * css/cssstyleselector.cpp:
1891 (WebCore::CSSStyleSelector::matchUARules):
1892 (WebCore::CSSStyleSelector::applyProperty):
1893 * platform/PlatformString.h:
1894 * platform/String.cpp:
1895 (WebCore::String::insert): Implemented a version of insert that
1896 accepts a UChar* and a length.
1897 * platform/StringImpl.cpp:
1898 (WebCore::StringImpl::insert): Same as above.
1899 * platform/StringImpl.h:
1900 * rendering/CounterListItem.h: Added.
1901 * rendering/CounterNode.cpp: Added.
1902 (WebCore::CounterNode::CounterNode):
1903 (WebCore::CounterNode::insertAfter):
1904 (WebCore::CounterNode::removeChild):
1905 (WebCore::CounterNode::remove):
1906 (WebCore::CounterNode::setUsesSeparator):
1907 (WebCore::CounterNode::recountAndGetNext):
1908 (WebCore::CounterNode::recountTree):
1909 (WebCore::CounterNode::setSelfDirty):
1910 (WebCore::CounterNode::setParentDirty):
1911 * rendering/CounterNode.h: Added.
1912 (WebCore::CounterNode::~CounterNode):
1913 (WebCore::CounterNode::parent):
1914 (WebCore::CounterNode::previousSibling):
1915 (WebCore::CounterNode::nextSibling):
1916 (WebCore::CounterNode::firstChild):
1917 (WebCore::CounterNode::lastChild):
1918 (WebCore::CounterNode::value):
1919 (WebCore::CounterNode::setValue):
1920 (WebCore::CounterNode::count):
1921 (WebCore::CounterNode::setCount):
1922 (WebCore::CounterNode::setHasSeparator):
1923 (WebCore::CounterNode::isReset):
1924 (WebCore::CounterNode::hasSeparator):
1925 (WebCore::CounterNode::willNeedLayout):
1926 (WebCore::CounterNode::setWillNeedLayout):
1927 (WebCore::CounterNode::isRoot):
1928 (WebCore::CounterNode::setRenderer):
1929 (WebCore::CounterNode::renderer):
1930 * rendering/CounterResetNode.cpp: Added.
1931 (WebCore::CounterResetNode::CounterResetNode):
1932 (WebCore::CounterResetNode::insertAfter):
1933 (WebCore::CounterResetNode::removeChild):
1934 (WebCore::CounterResetNode::recountAndGetNext):
1935 (WebCore::CounterResetNode::setParentDirty):
1936 (WebCore::CounterResetNode::updateTotal):
1937 * rendering/CounterResetNode.h: Added.
1938 (WebCore::CounterResetNode::firstChild):
1939 (WebCore::CounterResetNode::lastChild):
1940 (WebCore::CounterResetNode::isReset):
1941 (WebCore::CounterResetNode::total):
1942 * rendering/RenderContainer.cpp:
1943 (WebCore::RenderContainer::updatePseudoChildForObject): Account for
1945 * rendering/RenderCounter.cpp: Added.
1946 (WebCore::RenderCounter::RenderCounter):
1947 (WebCore::RenderCounter::layout):
1949 (WebCore::toLetterString):
1950 (WebCore::toHebrew):
1951 (WebCore::RenderCounter::convertValueToType):
1952 (WebCore::RenderCounter::calcMinMaxWidth):
1953 * rendering/RenderCounter.h: Added.
1954 (WebCore::RenderCounter::renderName):
1955 (WebCore::RenderCounter::isCounter):
1956 * rendering/RenderObject.cpp:
1957 (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
1958 maps of CounterNodes
1959 (WebCore::RenderObject::RenderObject):
1960 (WebCore::RenderObject::destroy): Destroy the maps.
1961 (WebCore::RenderObject::findCounter): Finds/creates counters.
1962 * rendering/RenderObject.h:
1963 (WebCore::RenderObject::isCounter):
1964 * rendering/RenderStyle.cpp:
1965 (WebCore::StyleVisualData::StyleVisualData):
1966 (WebCore::RenderStyle::arenaDelete):
1967 (WebCore::RenderStyle::RenderStyle):
1968 (WebCore::RenderStyle::diff):
1969 (WebCore::RenderStyle::setContent):
1970 (WebCore::ContentData::clearContent):
1971 (WebCore::RenderStyle::counterDataEquivalent):
1972 (WebCore::hasCounter):
1973 (WebCore::RenderStyle::hasCounterReset):
1974 (WebCore::RenderStyle::hasCounterIncrement):
1975 (WebCore::readCounter):
1976 (WebCore::RenderStyle::counterReset):
1977 (WebCore::RenderStyle::counterIncrement):
1978 * rendering/RenderStyle.h:
1979 (WebCore::StyleVisualData::operator==):
1980 (WebCore::CounterData::CounterData):
1981 (WebCore::CounterData::identifier):
1982 (WebCore::CounterData::listStyle):
1983 (WebCore::CounterData::separator):
1984 (WebCore::ContentData::contentCounter):
1985 (WebCore::ContentData::):
1986 (WebCore::RenderStyle::counterIncrement):
1987 (WebCore::RenderStyle::counterReset):
1988 (WebCore::RenderStyle::setCounterIncrement):
1989 (WebCore::RenderStyle::setCounterReset):
1990 (WebCore::RenderStyle::setCounterResetList):
1991 (WebCore::RenderStyle::setCounterIncrementList):
1992 (WebCore::RenderStyle::counterResetValueList):
1993 (WebCore::RenderStyle::counterIncrementValueList):
1995 2006-10-02 Adele Peterson <adele@apple.com>
1999 - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
2001 There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
2002 by using "-webkit-appearance:none".
2006 2006-10-02 David Harrison <harrison@apple.com>
2008 Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
2009 addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
2010 Left the layout test.
2012 * rendering/bidi.cpp:
2013 (WebCore::checkMidpoints):
2015 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
2017 Reviewed by eseidel. Landed by eseidel.
2021 * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
2022 (WebCore::supportedKeySizes):
2024 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
2026 Reviewed by eseidel & mjs. Landed by eseidel.
2028 Fix Qt/Linux build with older gcc 3.3.4.
2029 http://bugs.webkit.org/show_bug.cgi?id=11116
2031 As discussed with Maciej, the GCC_ROOT_NS_HACK
2032 can be completely removed, as well as the friendship
2033 between cacheGlobalObject & the JS* objects.
2035 * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
2036 * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
2037 (png_read_filter_row_mmx_avg):
2038 * platform/image-decoders/png/pngvcrd.c: Ditto.
2040 (png_read_filter_row_mmx_avg):
2042 2006-10-01 Maciej Stachowiak <mjs@apple.com>
2044 Rubber stamped by Alexey.
2046 - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
2050 2006-10-01 Eric Seidel <eric@webkit.org>
2054 Eliminate a few more hotspots in SVG drawing code.
2056 No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
2058 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
2059 (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
2060 * platform/mac/ColorMac.mm:
2061 (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
2063 2006-10-01 Geoffrey Garen <ggaren@apple.com>
2067 More frame/iframe merging.
2069 - Removed needWidgetUpdate and related code. needWidgetUpdate is always
2070 false, so this was dead code.
2071 - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
2072 than attach(), is the correct place for setInViewSourceMode, because
2073 openURL() is the function that creates our frame.
2074 - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
2075 code that did the same thing in other places.
2076 - Made FRAME's attach() method suffuciently generic so that IFRAME could
2077 call up to it, rather than skipping its superclass and calling up directly
2079 - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
2080 - Replaced ad hoc frame loading code in FRAME::attach() with call to
2081 openURL(), the designated frame loading function.
2083 Layout tests pass. I added a layout test for viewsource mode, since I
2084 broke it in the course of writing this patch.
2086 2006-10-01 Anders Carlsson <acarlsson@apple.com>
2091 (WebCore::Document::recalcStyleSelector):
2093 Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
2096 Remove DeprecatedStringList class forward declaration.
2098 * editing/markup.cpp:
2099 Include DeprecatedStringList.h here since it's not included by Document.h anymore.
2101 * kcanvas/KCanvasTreeDebug.cpp:
2102 * kcanvas/KCanvasTreeDebug.h:
2103 Remove unused functions.
2105 * loader/loader.cpp:
2109 Fixup DeprecatedStringList.h includes.
2111 2006-09-30 David Harrison <harrison@apple.com>
2113 Reviewed by John Sullivan.
2115 <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
2117 Problem was that the decision to trim was based only on whether the character
2118 is a soft hyphen, which caused pretty much any Japanese character to go.
2119 Changed to decide based on whether the character is ignorable whitespace.
2122 * fast/text/international/wrap-CJK-001.html
2124 * rendering/bidi.cpp:
2125 (WebCore::isTrimmableChar):
2126 New. Checks whether character is whitespace that can be ignored
2127 according to the text node's style.
2128 trimmed from the end of wrapped line.
2129 (WebCore::checkMidpoints):
2130 Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
2132 2006-10-01 Anders Carlsson <acarlsson@apple.com>
2134 Reviewed by Mitz Pettel.
2136 Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
2138 * ksvg2/svg/SVGColor.cpp:
2139 (WebCore::SVGColor::setRGBColor):
2140 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2141 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2142 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2143 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2144 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
2145 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2146 (SVGFESpecularLightingElement::parseMappedAttribute):
2147 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2148 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2149 * ksvg2/svg/SVGLengthList.cpp:
2150 * ksvg2/svg/SVGNumberList.cpp:
2151 (SVGNumberList::parse):
2152 * ksvg2/svg/SVGNumberList.h:
2153 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
2154 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
2155 * ksvg2/svg/SVGStringList.cpp:
2156 (WebCore::SVGStringList::reset):
2157 * ksvg2/svg/SVGStringList.h:
2158 * ksvg2/svg/SVGTransformable.cpp:
2159 (SVGTransformable::parseTransformAttribute):
2161 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
2163 Reviewed by Eric, tweaked and landed by ap.
2168 * platform/qt/PlatformScrollBar.h:
2169 * platform/qt/TemporaryLinkStubs.cpp:
2170 (WebCore::ScrollBar::ScrollBar):
2171 (WebCore::PlatformScrollBar::PlatformScrollBar):
2172 (FrameView::passMousePressEventToSubframe):
2173 (FrameView::passMouseMoveEventToSubframe):
2174 (FrameView::passMouseReleaseEventToSubframe):
2175 (FrameView::passWheelEventToSubframe):
2176 (FrameView::passMousePressEventToScrollbar):
2177 * ksvg2/svg/SVGDocument.h:
2179 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
2183 Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
2184 REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
2186 No test case added (probably requires new DumpRenderTree functionality)
2188 * rendering/RenderImage.cpp:
2189 (WebCore::RenderImage::imageChanged): Added early return if the document is
2192 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
2196 Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
2197 REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
2199 Make sure we only break after a space (and not any other valid line-break) if
2200 the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
2201 I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
2202 twice in quick succession.
2204 * rendering/bidi.cpp:
2205 (WebCore::RenderBlock::findNextLineBreak):
2207 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
2209 Reviewed by Maciej and Darin.
2211 http://bugs.webkit.org/show_bug.cgi?id=4372
2212 JavaScript document.write page form does not submit in Safari
2214 Test: fast/forms/document-write.html
2217 (WebCore::Frame::submitForm): Don't check for parsing().
2219 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
2223 * bridge/mac/FrameViewMac.mm: Add missing #imports.
2225 2006-10-01 Dave Hyatt <hyatt@apple.com>
2227 Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
2231 * bridge/mac/FrameMac.mm:
2232 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2233 * bridge/mac/FrameViewMac.mm:
2234 (WebCore::FrameView::passMousePressEventToScrollbar):
2235 * page/FrameView.cpp:
2236 (WebCore::FrameView::handleMousePressEvent):
2237 (WebCore::FrameView::setMousePressed):
2239 * platform/win/TemporaryLinkStubs.cpp:
2240 (FrameView::passMousePressEventToScrollbar):
2242 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
2246 Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
2247 Add more SVG Objective-C DOM bindings
2249 - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
2250 DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
2251 DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
2252 DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
2253 DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
2254 DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
2256 * DerivedSources.make:
2257 * WebCore.xcodeproj/project.pbxproj:
2258 * bindings/objc/DOMInternal.h:
2259 * bindings/objc/DOMSVG.h:
2260 * bindings/scripts/CodeGeneratorObjC.pm:
2261 * ksvg2/svg/SVGAElement.idl:
2262 * ksvg2/svg/SVGAnimateColorElement.idl:
2263 * ksvg2/svg/SVGAnimateElement.idl:
2264 * ksvg2/svg/SVGAnimateTransformElement.idl:
2265 * ksvg2/svg/SVGAnimatedPathData.idl:
2266 * ksvg2/svg/SVGAnimatedPoints.idl:
2267 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
2268 * ksvg2/svg/SVGAnimationElement.idl:
2269 * ksvg2/svg/SVGCircleElement.idl:
2270 * ksvg2/svg/SVGClipPathElement.idl:
2271 * ksvg2/svg/SVGColor.idl:
2272 * ksvg2/svg/SVGCursorElement.idl:
2273 * ksvg2/svg/SVGDefsElement.idl:
2274 * ksvg2/svg/SVGDescElement.idl:
2275 * ksvg2/svg/SVGDocument.idl:
2276 * ksvg2/svg/SVGEllipseElement.idl:
2277 * ksvg2/svg/SVGPointList.idl:
2278 * ksvg2/svg/SVGPreserveAspectRatio.idl:
2279 * ksvg2/svg/SVGRect.idl:
2280 * ksvg2/svg/SVGSVGElement.idl:
2282 2006-09-30 Maciej Stachowiak <mjs@apple.com>
2288 * platform/FloatRect.h:
2289 (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
2290 but more appropriate for path-type stuff.
2291 * platform/cg/PathCG.cpp:
2292 (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
2294 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
2298 http://bugs.webkit.org/show_bug.cgi?id=11011
2299 External CSS is parsed as iso-8859-1 even though the main document is utf-8
2301 Test: fast/encoding/css-charset-default.xhtml
2303 * loader/CachedResourceClient.h:
2304 (WebCore::CachedResourceClient::setCSSStyleSheet):
2305 (WebCore::CachedResourceClient::setXSLStyleSheet):
2306 Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
2307 takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
2309 * css/CSSImportRule.cpp:
2310 (WebCore::CSSImportRule::setCSSStyleSheet):
2311 (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
2312 * css/CSSImportRule.h:
2314 * css/CSSStyleSheet.cpp:
2315 (WebCore::CSSStyleSheet::CSSStyleSheet):
2316 * css/CSSStyleSheet.h:
2317 Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
2318 member. Changed some String parameters to const String&.
2320 * css/StyleSheet.cpp:
2321 (WebCore::StyleSheet::StyleSheet):
2323 Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
2325 * css/StyleSheetList.cpp:
2326 (WebCore::StyleSheetList::length):
2327 (WebCore::StyleSheetList::item):
2328 * css/StyleSheetList.h:
2329 Special-casing implicit stylesheets seemed to be dead code, removed.
2332 (WebCore::Document::setCSSStyleSheet):
2333 (WebCore::Document::recalcStyleSelector):
2335 Renamed setStyleSheet() to setCSSStyleSheet().
2337 * dom/ProcessingInstruction.cpp:
2338 (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
2339 (WebCore::ProcessingInstruction::setCSSStyleSheet):
2340 (WebCore::ProcessingInstruction::setXSLStyleSheet):
2341 (WebCore::ProcessingInstruction::parseStyleSheet):
2342 * dom/ProcessingInstruction.h:
2344 * html/HTMLLinkElement.cpp:
2345 (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
2347 (WebCore::HTMLLinkElement::setCSSStyleSheet):
2348 * html/HTMLLinkElement.h:
2350 * html/HTMLStyleElement.cpp:
2351 (WebCore::HTMLStyleElement::childrenChanged):
2352 * ksvg2/svg/SVGStyleElement.cpp:
2353 (WebCore::SVGStyleElement::childrenChanged):
2354 Inherit URL and charset from the document.
2357 (WebCore::Cache::requestCSSStyleSheet):
2359 Adjust for setStyleSheet() renaming.
2361 * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
2362 * loader/CachedCSSStyleSheet.cpp:
2363 (WebCore::CachedCSSStyleSheet::ref):
2364 (WebCore::CachedCSSStyleSheet::deref):
2365 (WebCore::CachedCSSStyleSheet::checkNotify):
2366 Pass the encoding to setCSSStyleSheet().
2368 * loader/CachedXSLStyleSheet.cpp:
2369 (WebCore::CachedXSLStyleSheet::ref):
2370 (WebCore::CachedXSLStyleSheet::checkNotify):
2371 * loader/DocLoader.cpp:
2372 (WebCore::DocLoader::requestCSSStyleSheet):
2373 * loader/DocLoader.h:
2375 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
2376 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
2377 * xml/XSLImportRule.cpp:
2378 (WebCore::XSLImportRule::setXSLStyleSheet):
2379 (WebCore::XSLImportRule::loadSheet):
2380 * xml/XSLImportRule.h:
2381 Adjust for setStyleSheet() renaming.
2383 2006-09-30 Rob Buis <buis@kde.org>
2385 Reviewed by eseidel.
2387 http://bugs.webkit.org/show_bug.cgi?id=11096
2388 Hit testing for polylines fails
2390 Fix Path::contains so it handles filled, non-closed paths too.
2392 * platform/cg/PathCG.cpp:
2393 (WebCore::Path::contains):
2395 2006-09-30 Dave Hyatt <hyatt@apple.com>
2397 Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
2398 Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
2399 subframes while the mouse is down.
2401 Reviewed by mitzpettel
2403 * bridge/mac/FrameMac.h:
2404 * bridge/mac/FrameMac.mm:
2405 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
2406 (WebCore::FrameMac::passWheelEventToWidget):
2407 * bridge/mac/FrameViewMac.mm:
2408 (WebCore::FrameView::passMousePressEventToSubframe):
2409 (WebCore::FrameView::passMouseMoveEventToSubframe):
2410 (WebCore::FrameView::passMouseReleaseEventToSubframe):
2411 (WebCore::FrameView::passWheelEventToSubframe):
2414 * page/FrameView.cpp:
2415 (WebCore::subframeForTargetNode):
2416 (WebCore::FrameView::handleMousePressEvent):
2417 (WebCore::FrameView::handleMouseDoubleClickEvent):
2418 (WebCore::FrameView::handleMouseMoveEvent):
2419 (WebCore::FrameView::handleMouseReleaseEvent):
2420 (WebCore::FrameView::handleWheelEvent):
2422 * platform/ScrollBar.h:
2423 (WebCore::ScrollBar::handleMouseMoveEvent):
2424 (WebCore::ScrollBar::handleMouseOutEvent):
2425 * platform/Widget.h:
2426 (WebCore::Widget::handleMouseMoveEvent):
2427 (WebCore::Widget::handleMouseReleaseEvent):
2428 * platform/win/TemporaryLinkStubs.cpp:
2429 (FrameView::passMousePressEventToSubframe):
2430 (FrameView::passMouseMoveEventToSubframe):
2431 (FrameView::passMouseReleaseEventToSubframe):
2432 (FrameView::passWheelEventToSubframe):
2433 (Widget::capturingMouse):
2434 (Widget::setCapturingMouse):
2435 (Widget::capturingTarget):
2436 (Widget::capturingChild):
2437 (Widget::setCapturingChild):
2438 * rendering/RenderView.cpp:
2439 (WebCore::RenderView::paintBoxDecorations):
2441 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2445 Fixes windows bustage:
2446 http://bugs.webkit.org/show_bug.cgi?id=11093
2448 * platform/win/PlatformScrollBar.h:
2449 * platform/win/TemporaryLinkStubs.cpp:
2450 (PlatformScrollBar::PlatformScrollBar):
2451 (ScrollBar::ScrollBar):
2453 2006-09-29 David Hyatt <hyatt@apple.com>
2455 Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
2456 in RenderObject::NodeInfo (and then propagating that Widget to
2457 MouseEventWithHitTestResults).
2459 This allows RenderListBox and RenderBlock to do the same thing when the
2460 mouse is over the scrollbar.
2462 Also land fix to support font-size: 0.
2464 Reviewed by mjs (scrollbar), eric (font-size)
2467 (WebCore::Document::prepareMouseEvent):
2469 (WebCore::Frame::passWidgetMouseDownEventToWidget):
2470 * page/FrameView.cpp:
2471 (WebCore::selectCursor):
2472 (WebCore::FrameView::handleMouseMoveEvent):
2473 (WebCore::FrameView::dispatchMouseEvent):
2474 * page/MouseEventWithHitTestResults.cpp:
2475 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
2476 * page/MouseEventWithHitTestResults.h:
2477 (WebCore::MouseEventWithHitTestResults::scrollbar):
2478 * rendering/RenderBlock.cpp:
2479 (WebCore::RenderBlock::isPointInScrollbar):
2480 (WebCore::RenderBlock::nodeAtPoint):
2481 * rendering/RenderBlock.h:
2482 * rendering/RenderLayer.cpp:
2483 (WebCore::RenderLayer::hitTest):
2484 * rendering/RenderLayer.h:
2485 (WebCore::RenderLayer::getHiddenBehavior):
2486 * rendering/RenderListBox.cpp:
2487 (WebCore::RenderListBox::RenderListBox):
2488 (WebCore::RenderListBox::~RenderListBox):
2489 (WebCore::RenderListBox::isPointInScrollbar):
2490 * rendering/RenderListBox.h:
2491 * rendering/RenderObject.h:
2492 (WebCore::RenderObject::NodeInfo::NodeInfo):
2493 (WebCore::RenderObject::NodeInfo::scrollbar):
2494 (WebCore::RenderObject::NodeInfo::setScrollbar):
2496 2006-09-29 MorganL <morganl.webkit@yahoo.com>
2500 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
2502 * platform/win/ScrollViewWin.cpp:
2503 (WebCore::ScrollView::convertToContainingWindow):
2504 (WebCore::ScrollView::convertFromContainingWindow):
2505 * platform/win/WidgetWin.cpp:
2506 (WebCore::Widget::convertToContainingWindow):
2507 (WebCore::Widget::convertFromContainingWindow):
2509 2006-09-29 Adele Peterson <adele@apple.com>
2511 Updated with new argument for PlatformScrollBar.
2513 * platform/win/TemporaryLinkStubs.cpp:
2514 (PlatformScrollBar::PlatformScrollBar):
2516 2006-09-29 Adele Peterson <adele@apple.com>
2520 Fixing build bustage with cast to int.
2522 * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
2524 2006-09-29 Adele Peterson <adele@apple.com>
2526 Fixing accidental include.
2528 * rendering/RenderListBox.cpp:
2530 2006-09-29 Adele Peterson <adele@apple.com>
2532 Adding RenderListBox files.
2534 * WebCore.vcproj/WebCore/WebCore.vcproj:
2536 2006-09-29 Adele Peterson <adele@apple.com>
2540 Initial implementation of engine-based list box control.
2542 * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
2544 * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
2545 * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
2546 (WebCore::FrameMac::FrameMac):
2547 (WebCore::FrameMac::handleMousePressEvent):
2548 (WebCore::FrameMac::handleMouseMoveEvent):
2549 (WebCore::FrameMac::mouseDown):
2552 (WebCore::Frame::handleMouseMoveEvent):
2553 (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
2554 (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
2555 (WebCore::Frame::autoscrollTimerFired): ditto.
2556 (WebCore::Frame::stopAutoscrollTimer): ditto.
2557 (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
2559 * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
2561 * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
2562 (WebCore::FrameViewPrivate::reset):
2563 (WebCore::FrameView::currentMousePosition):
2564 (WebCore::FrameView::handleMousePressEvent):
2565 (WebCore::FrameView::handleMouseDoubleClickEvent):
2566 (WebCore::selectCursor):
2567 (WebCore::FrameView::handleMouseMoveEvent):
2568 (WebCore::FrameView::handleMouseReleaseEvent):
2571 * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
2572 * platform/ScrollBar.h:
2574 (WebCore::ScrollBar::controlSize):
2575 * platform/mac/PlatformScrollBar.h:
2576 * platform/mac/PlatformScrollBarMac.mm:
2577 (NSControlSizeForScrollBarControlSize):
2578 (-[WebCoreScrollBar initWithPlatformScrollBar:]):
2579 (WebCore::PlatformScrollBar::PlatformScrollBar):
2581 * rendering/RenderBlock.h:
2582 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
2583 * rendering/RenderLayer.h:
2584 * rendering/RenderObject.cpp:
2585 (WebCore::RenderObject::shouldAutoscroll):
2586 (WebCore::RenderObject::autoscroll):
2587 * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
2589 * css/html4.css: Added properties for new list boxes.
2591 * html/HTMLOptionElement.cpp:
2592 (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
2593 (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
2594 * html/HTMLOptionElement.h: Added disabled method.
2596 * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
2597 (WebCore::HTMLSelectElement::recalcStyle):
2598 (WebCore::HTMLSelectElement::lastSelectedListIndex):
2599 (WebCore::HTMLSelectElement::deselectItems):
2600 (WebCore::HTMLSelectElement::setSelectedIndex):
2601 (WebCore::HTMLSelectElement::isKeyboardFocusable):
2602 (WebCore::HTMLSelectElement::isMouseFocusable):
2603 (WebCore::HTMLSelectElement::createRenderer):
2604 (WebCore::HTMLSelectElement::recalcListItems):
2605 (WebCore::HTMLSelectElement::setRecalcListItems):
2606 (WebCore::HTMLSelectElement::reset):
2607 (WebCore::HTMLSelectElement::notifyOptionSelected):
2608 (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
2609 (WebCore::HTMLSelectElement::nextSelectableListIndex):
2610 (WebCore::HTMLSelectElement::previousSelectableListIndex):
2611 * html/HTMLSelectElement.h:
2613 * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
2614 (WebCore::RenderTheme::paint):
2615 (WebCore::RenderTheme::paintBorderOnly):
2616 (WebCore::RenderTheme::paintDecorations):
2617 (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
2618 (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
2619 (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
2620 (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
2621 (WebCore::RenderTheme::isControlStyled):
2622 (WebCore::RenderTheme::supportsFocusRing):
2623 * rendering/RenderTheme.h:
2624 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
2626 * rendering/RenderListBox.cpp: Added.
2627 (WebCore::RenderListBox::RenderListBox):
2628 (WebCore::RenderListBox::~RenderListBox):
2629 (WebCore::RenderListBox::setStyle):
2630 (WebCore::RenderListBox::updateFromElement):
2631 (WebCore::RenderListBox::calcMinMaxWidth):
2632 (WebCore::RenderListBox::size):
2633 (WebCore::RenderListBox::numItems):
2634 (WebCore::RenderListBox::calcHeight):
2635 (WebCore::RenderListBox::baselinePosition):
2636 (WebCore::RenderListBox::itemBoundingBoxRect):
2637 (WebCore::RenderListBox::paintObject):
2638 (WebCore::RenderListBox::paintScrollbar):
2639 (WebCore::RenderListBox::paintItemForeground):
2640 (WebCore::RenderListBox::paintItemBackground):
2641 (WebCore::RenderListBox::scrollBarTarget):
2642 (WebCore::RenderListBox::isPointInScrollbar):
2643 (WebCore::RenderListBox::optionAtPoint):
2644 (WebCore::RenderListBox::autoscroll):
2645 (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
2646 (WebCore::RenderListBox::scroll):
2647 (WebCore::RenderListBox::valueChanged):
2648 * rendering/RenderListBox.h: Added.
2649 (WebCore::RenderListBox::isListBox):
2650 (WebCore::RenderListBox::selectionChanged):
2651 (WebCore::RenderListBox::setSelectionChanged):
2652 (WebCore::RenderListBox::canHaveChildren):
2653 (WebCore::RenderListBox::renderName):
2654 (WebCore::RenderListBox::setOptionsChanged):
2655 (WebCore::RenderListBox::shouldAutoscroll):
2656 (WebCore::RenderListBox::listIndexIsVisible):
2658 2006-09-29 Beth Dakin <bdakin@apple.com>
2662 We had a bug where html4.css was ignoring Media Queries. In the end
2663 the problem was that we were trying to send a char* to the
2664 MediaQueryEvaluator constructor that expects a String, but the
2665 char* got interpreted as a bool, the wrong constructor was called,
2666 and the media type was never set.
2668 No test case possible since this only affects html4.css
2670 * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
2672 (WebCore::MediaQueryEvaluator):
2673 * css/MediaQueryEvaluator.h: Same.
2675 2006-09-29 Geoffrey Garen <ggaren@apple.com>
2677 Reviewed by John, Maciej.
2679 Integrated some frame and iframe code. I'm trying to fix up frame ownership
2680 and loading. Reducing the number of different code paths involved
2681 seemed like a good first step.
2683 As a side effect, I fixed a bug where FRAME elements would report their
2684 src attributes as relative, rather than compelete, URLs. (IFRAME elements
2685 had the correct complete URL behavior.)
2687 * html/HTMLFrameElement.cpp:
2688 (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
2689 (WebCore::HTMLFrameElement::openURL):
2690 (1) Removed checks that requestFrame does for us
2691 (2) Added isURLAllowed check, to have one clear bottleneck for it
2692 (3) Added viewsource check, to have one clear bottleneck for it
2693 (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
2694 method, instead of finding our content frame in our own unique way.
2695 (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
2696 since openURL does this for us now.
2697 (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
2698 This is what FF does, and it made no sense to have different behaviors
2699 for FRAME and IFRAME elements.
2700 * html/HTMLIFrameElement.cpp:
2701 (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
2703 * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
2704 HTMLFrameElement now does everything we need.
2706 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
2713 * platform/qt/ScrollViewQt.cpp:
2714 (WebCore::ScrollView::convertToContainingWindow):
2715 (WebCore::ScrollView::convertFromContainingWindow):
2716 * platform/qt/TemporaryLinkStubs.cpp:
2717 (WebCore::signedPublicKeyAndChallengeString):
2718 * platform/qt/WidgetQt.cpp:
2719 (WebCore::Widget::convertToContainingWindow):
2720 (WebCore::Widget::convertFromContainingWindow):
2722 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
2726 Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
2727 Simplify Internal methods for the auto-generated Objective-C DOM code
2729 - Auto-generate the internal methods for more Objective-C classes.
2731 * WebCore.xcodeproj/project.pbxproj:
2732 * bindings/objc/DOM.mm:
2733 * bindings/objc/DOMCSS.mm:
2734 (-[DOMStyleSheet WebCore::]):
2735 (+[DOMStyleSheet _styleSheetWith:WebCore::]):
2736 (-[DOMCSSRule WebCore::]):
2737 (-[DOMCSSRule _initWithCSSRule:WebCore::]):
2738 (+[DOMCSSRule _CSSRuleWith:WebCore::]):
2739 (-[DOMCSSValue WebCore::]):
2740 (-[DOMCSSValue _initWithCSSValue:WebCore::]):
2741 (+[DOMCSSValue _CSSValueWith:WebCore::]):
2742 * bindings/objc/DOMHTMLAppletElement.mm:
2743 (-[DOMHTMLAppletElement WebCore::]):
2744 (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
2745 * bindings/objc/DOMHTMLEmbedElement.mm:
2746 (-[DOMHTMLEmbedElement WebCore::]):
2747 (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
2748 * bindings/objc/DOMInternal.h:
2749 * bindings/objc/DOMInternal.mm:
2750 * bindings/scripts/CodeGeneratorObjC.pm:
2751 * css/CSSCharsetRule.idl:
2752 * css/CSSFontFaceRule.idl:
2753 * css/CSSImportRule.idl:
2754 * css/CSSMediaRule.idl:
2755 * css/CSSPageRule.idl:
2756 * css/CSSPrimitiveValue.idl:
2757 * css/CSSStyleRule.idl:
2758 * css/CSSStyleSheet.idl:
2759 * css/CSSUnknownRule.idl:
2760 * css/CSSValueList.idl:
2761 * dom/KeyboardEvent.idl:
2762 * dom/MouseEvent.idl:
2763 * dom/MutationEvent.idl:
2764 * dom/NodeIterator.idl:
2765 * dom/OverflowEvent.idl:
2767 * dom/WheelEvent.idl:
2769 2006-09-29 David Harrison <harrison@apple.com>
2771 Reviewed by John Sullivan.
2773 <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
2774 <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
2777 * fast/text/attributed-substring-from-range-001.html
2779 * bridge/mac/FrameMac.mm:
2780 (WebCore::FrameMac::attributedString):
2781 Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
2782 Also, add validation of the range.
2784 2006-09-29 Rob Buis <buis@kde.org>
2788 http://bugs.webkit.org/show_bug.cgi?id=10893
2789 InsertRule can not handle @import statements
2791 Allow @import as part of a css rule.
2795 2006-09-28 David Hyatt <hyatt@apple.com>
2797 Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2799 * bridge/mac/FrameMac.mm:
2800 (WebCore::FrameMac::eventMayStartDrag):
2801 (WebCore::FrameMac::dragHysteresisExceeded):
2802 (WebCore::FrameMac::mouseDown):
2803 (WebCore::FrameMac::shouldDragAutoNode):
2804 (WebCore::FrameMac::sendContextMenuEvent):
2805 * bridge/mac/WebCoreFrameBridge.mm:
2806 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2808 2006-09-28 Dave Hyatt <hyatt@apple.com>
2810 This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2811 ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2814 Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2815 the patch after review, once I realized that these new functions essentially do the same thing.)
2817 * dom/EventTargetNode.cpp:
2818 (WebCore::EventTargetNode::dispatchMouseEvent):
2819 (WebCore::EventTargetNode::dispatchWheelEvent):
2821 (WebCore::Frame::selectClosestWordFromMouseEvent):
2822 (WebCore::Frame::handleMousePressEventTripleClick):
2823 (WebCore::Frame::handleMousePressEventSingleClick):
2824 (WebCore::Frame::handleMouseMoveEvent):
2825 (WebCore::Frame::handleMouseReleaseEvent):
2826 * page/FrameView.cpp:
2827 (WebCore::FrameView::handleMousePressEvent):
2828 (WebCore::selectCursor):
2829 (WebCore::FrameView::dispatchDragEvent):
2830 (WebCore::FrameView::prepareMouseEvent):
2831 (WebCore::FrameView::handleWheelEvent):
2832 * platform/ScrollView.h:
2833 * platform/Widget.cpp:
2834 (WebCore::Widget::convertToContainingWindow):
2835 * platform/Widget.h:
2836 * platform/mac/ScrollViewMac.mm:
2837 (WebCore::ScrollView::convertToContainingWindow):
2838 (WebCore::ScrollView::convertFromContainingWindow):
2839 * platform/mac/WidgetMac.mm:
2840 (WebCore::Widget::convertToContainingWindow):
2841 (WebCore::Widget::convertFromContainingWindow):
2842 * platform/win/ScrollViewWin.cpp:
2843 (WebCore::ScrollView::convertToContainingWindow):
2844 (WebCore::ScrollView::convertFromContainingWindow):
2845 * rendering/RenderLayer.cpp:
2846 (WebCore::RenderLayer::resize):
2848 2006-09-28 Alice Liu <alice.liu@apple.com>
2850 Build fix by adding missing files for CommandByName
2852 * WebCore.xcodeproj/project.pbxproj:
2854 2006-09-28 Alice Liu <alice.liu@apple.com>
2856 Adding CommandByName files to the vcproj
2858 * WebCore.vcproj/WebCore/WebCore.vcproj:
2860 2006-09-28 Alice Liu <alice.liu@apple.com>
2862 Reviewed by Adam Roben.
2864 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.
2865 This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2866 This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2868 * editing/CommandByName.cpp: Added.
2869 Added a command class that hangs off the frame so the frame can call commands more easily.
2870 (WebCore::Frame::commandImp):
2871 (WebCore::Frame::execCopy):
2872 (WebCore::Frame::execCut):
2873 (WebCore::Frame::execDelete):
2874 (WebCore::Frame::execForwardDelete):
2875 (WebCore::Frame::execPaste):
2876 (WebCore::Frame::execMoveLeft):
2877 (WebCore::Frame::execMoveRight):
2878 (WebCore::Frame::execMoveUp):
2879 (WebCore::Frame::execMoveDown):
2880 (WebCore::Frame::execSelectAll):
2881 (WebCore::Frame::execSelectLeft):
2882 (WebCore::Frame::execSelectRight):
2883 (WebCore::Frame::execSelectUp):
2884 (WebCore::Frame::execSelectDown):
2885 (WebCore::Frame::enabled):
2886 (WebCore::Frame::enabledAnySelection):
2887 (WebCore::Frame::enabledAnyEditableSelection):
2888 (WebCore::Frame::enabledPaste):
2889 (WebCore::Frame::enabledAnyRangeSelection):
2890 (WebCore::Frame::enabledAnyEditableRangeSelection):
2891 (WebCore::Frame::createCommandDictionary):
2892 (WebCore::Frame::Command::):
2893 (WebCore:::m_frame):
2894 (WebCore::CommandByName::execCommand):
2895 * editing/CommandByName.h: Added.
2897 Added implementation of accessor for CommandByName member
2898 (WebCore::Frame::command):
2900 Added accessor for CommandByName member
2901 * page/FramePrivate.h:
2902 Added a CommandByName member
2903 (WebCore::FramePrivate::FramePrivate):
2904 * platform/PlatformMouseEvent.h:
2905 Changed constructor prototype
2906 * platform/StringImpl.cpp:
2907 Exposing getWordBreakIterator to be used elsewhere
2908 (WebCore::getWordBreakIterator):
2909 * platform/StringImpl.h:
2910 Exposing getWordBreakIterator to be used elsewhere
2911 * platform/win/MouseEventWin.cpp:
2912 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
2913 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2915 2006-09-28 Adam Roben <aroben@apple.com>
2919 Remove no-longer-used PopUpButton.
2921 * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2922 * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2924 * platform/PopUpButton.h: Removed.
2925 * platform/mac/PopUpButtonMac.mm: Removed.
2926 * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2927 * rendering/DeprecatedRenderSelect.cpp: Change #include of
2928 PopUpButton.h to ListBox.h
2930 2006-09-28 Darin Adler <darin@apple.com>
2934 - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2935 10% perf. regression (copying strings while decoding)
2937 Use Vector<UChar> instead of String when building up the decoded string in
2938 the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2939 String grows the buffer every single time that append is called. Using
2940 Vector::append instead of String::append also avoids constructing a string
2941 each time just to append and a questionable copy that is done inside the
2942 String::append function which also contributed to the slowness.
2944 * platform/PlatformString.h:
2945 * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2946 Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2948 * platform/StringImpl.h:
2949 * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2951 * platform/StreamingTextDecoder.h:
2952 * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2953 Change to use a Vector<UChar> instead of a String, since vectors have better
2954 resizing performance (they store a separate capacity).
2956 * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2957 * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2958 Change to use Vector<UChar> instead of String and then create a string at
2959 the end of the process using the new adopt function.
2961 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
2965 Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2966 Auto-generate more SVG Objective-C bindings
2968 - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
2969 DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2970 DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2971 DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2972 DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2973 DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
2974 and DOMSVGTransformable.
2976 - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2977 parent interfaces and the SVG animated classes.
2979 - Corrects CodeGenerator.pm to only skip the first parent for the main
2982 * DerivedSources.make:
2983 * WebCore.xcodeproj/project.pbxproj:
2984 * bindings/objc/DOMInternal.h:
2985 * bindings/objc/DOMSVG.h:
2986 * bindings/scripts/CodeGenerator.pm:
2987 * bindings/scripts/CodeGeneratorObjC.pm:
2988 * ksvg2/svg/SVGAnimatedAngle.idl:
2989 * ksvg2/svg/SVGAnimatedBoolean.idl:
2990 * ksvg2/svg/SVGAnimatedEnumeration.idl:
2991 * ksvg2/svg/SVGAnimatedInteger.idl:
2992 * ksvg2/svg/SVGAnimatedLength.idl:
2993 * ksvg2/svg/SVGAnimatedLengthList.idl:
2994 * ksvg2/svg/SVGAnimatedNumber.idl:
2995 * ksvg2/svg/SVGAnimatedPathData.idl:
2996 * ksvg2/svg/SVGAnimatedString.idl:
2997 * ksvg2/svg/SVGAnimatedTransformList.idl:
2998 * ksvg2/svg/SVGExternalResourcesRequired.idl:
2999 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
3000 * ksvg2/svg/SVGFitToViewBox.idl:
3001 * ksvg2/svg/SVGLangSpace.idl:
3002 * ksvg2/svg/SVGLocatable.idl:
3003 * ksvg2/svg/SVGMetadataElement.idl:
3004 * ksvg2/svg/SVGStringList.idl:
3005 * ksvg2/svg/SVGStylable.idl:
3006 * ksvg2/svg/SVGStyleElement.idl:
3007 * ksvg2/svg/SVGTests.idl:
3008 * ksvg2/svg/SVGTransformable.idl:
3009 * ksvg2/svg/SVGURIReference.idl:
3010 * ksvg2/svg/SVGUnitTypes.idl:
3011 * ksvg2/svg/SVGZoomAndPan.idl:
3013 2006-09-28 Brady Eidson <beidson@apple.com>
3015 Reviewed by Mitz Pettel!!!
3017 Change the error code check for common functions from SQLResultOk to SQLResultDone
3019 * loader/icon/IconDatabase.cpp:
3020 (WebCore::IconDatabase::forgetPageURLQuery):
3021 (WebCore::IconDatabase::setIconIDForPageURLQuery):
3022 (WebCore::IconDatabase::addIconForIconURLQuery):
3024 2006-09-28 Dave Hyatt <hyatt@apple.com>
3026 Just eliminate MapWindowPoints usage and use the HWND as
3029 * platform/win/MouseEventWin.cpp:
3030 (WebCore::positionForEvent):
3031 * platform/win/ScrollViewWin.cpp:
3032 (WebCore::ScrollView::viewportToContents):
3033 (WebCore::ScrollView::contentsToViewport):
3035 2006-09-27 David Hyatt <hyatt@apple.com>
3037 Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
3038 selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
3039 scrollbars to provide hover feedback if needed.
3043 * page/FrameView.cpp:
3044 (WebCore::selectCursor):
3045 (WebCore::FrameView::handleMouseMoveEvent):
3046 * platform/ScrollBar.h:
3047 (WebCore::ScrollBar::mouseMoved):
3049 2006-09-27 MorganL <morganl.webkit@yahoo.com>
3051 Reviewed by Maciej and Adam, landed by Adam
3053 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
3054 Windows build is busted
3056 * platform/win/TemporaryLinkStubs.cpp:
3057 (ScrollView::paint):
3058 (ScrollView::themeChanged):
3060 2006-09-27 Eric Seidel <eric@eseidel.com>
3064 paths with no fill specified default to black but do not recieve paint-related mouse events
3065 http://bugs.webkit.org/show_bug.cgi?id=11069
3066 The default fill was being applied at the wrong place in the rendering chain, causing this problem.
3068 Test: svg/custom/hover-default-fill.svg
3070 * kcanvas/RenderPath.cpp:
3071 (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
3072 * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
3073 * ksvg2/misc/KCanvasRenderingStyle.cpp:
3074 (WebCore::KSVGPainterFactory::isFilled): remove null check
3075 (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
3076 (WebCore::KSVGPainterFactory::isStroked): remove null check
3077 (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
3078 * ksvg2/svg/SVGPaint.cpp:
3079 (WebCore::SVGPaint::defaultFill): added.
3080 (WebCore::SVGPaint::defaultStroke): added.
3081 * ksvg2/svg/SVGPaint.h:
3083 2006-09-27 Rob Buis <buis@kde.org>
3085 Reviewed by eseidel.
3087 http://bugs.webkit.org/show_bug.cgi?id=11015
3088 SVG handles em units incorrectly
3090 Calculate viewport coordinates at layout time, since
3091 at this point the font size is known and lengths depending
3092 on font sizes can be calculated correctly.
3094 * kcanvas/RenderSVGContainer.cpp:
3095 (WebCore::RenderSVGContainer::layout):
3096 (WebCore::RenderSVGContainer::viewport):
3097 (WebCore::RenderSVGContainer::calcViewport):
3098 * kcanvas/RenderSVGContainer.h:
3099 * ksvg2/svg/SVGLength.cpp:
3100 (WebCore::SVGLength::updateValue):
3101 * ksvg2/svg/SVGMarkerElement.cpp:
3102 (WebCore::SVGMarkerElement::createRenderer):
3103 * ksvg2/svg/SVGSVGElement.cpp:
3104 (WebCore::SVGSVGElement::createRenderer):
3105 (WebCore::SVGSVGElement::attributeChanged):
3106 * ksvg2/svg/SVGSVGElement.h:
3108 2006-09-27 Eric Seidel <eric@eseidel.com>
3112 Change our invalid-fill error behavior to match Opera (and soon Firefox)
3113 http://bugs.webkit.org/show_bug.cgi?id=11017
3115 * ksvg2/misc/KCanvasRenderingStyle.cpp:
3116 (WebCore::KSVGPainterFactory::isFilled):
3117 (WebCore::KSVGPainterFactory::fillPaintServer):
3118 (WebCore::KSVGPainterFactory::isStroked):
3119 (WebCore::KSVGPainterFactory::strokePaintServer):
3121 2006-09-27 Brady Eidson <beidson@apple.com>
3125 * loader/icon/IconDatabase.cpp:
3126 (WebCore::readySQLStatement):
3128 2006-09-27 Brady Eidson <beidson@apple.com>
3132 In very specific circumstances, prepared SQLStatements can become invalid without
3133 any warning. This checks for that state and re-prepares the statement and also
3134 adds more aggressive error-checking everywhere these statements are used.
3136 * loader/icon/IconDatabase.cpp:
3137 (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
3138 (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
3139 (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
3140 (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
3141 (WebCore::IconDatabase::forgetPageURLQuery): Ditto
3142 (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
3143 (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
3144 (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
3145 (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
3146 * loader/icon/SQLStatement.cpp:
3147 (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
3148 * loader/icon/SQLStatement.h:
3150 2006-09-26 Darin Adler <darin@apple.com>
3154 - clean up options for font code path
3157 * platform/Font.cpp:
3158 (WebCore::Font::setCodePath): Added. Replaces boolean version.
3159 (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
3161 * platform/mac/WebCoreTextRenderer.mm:
3162 (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
3164 2006-09-26 John Sullivan <sullivan@apple.com>
3168 * bridge/mac/WebCoreFrameBridge.h:
3169 * bridge/mac/WebCoreFrameBridge.mm:
3170 (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
3171 Added limit parameter, passed down to Frame
3175 (WebCore::Frame::markAllMatchesForText):
3176 Added limit parameter. Stop the search if it hits limit.
3178 2006-09-26 Sean Gies <seangies@apple.com>
3180 Reviewed by Brady Eidson.
3182 * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
3184 2006-09-26 Justin Garcia <justin.garcia@apple.com>
3188 <rdar://problem/4747695>
3189 Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
3191 * editing/DeleteSelectionCommand.cpp:
3192 (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
3193 to select special elements that are fully selected after expansion
3194 moves to positions that are visually distinct from the originals.
3195 * editing/InsertListCommand.cpp:
3196 (WebCore::InsertListCommand::doApply): If the content of the list
3197 item will be moved into another list, put it in a list item.
3199 2006-09-26 Geoffrey Garen <ggaren@apple.com>
3203 Temporary work-around for frame lifetime issue.
3206 (WebCore::Frame::clear):
3207 (WebCore::Frame::disconnectOwnerElement):
3209 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
3213 Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
3214 Auto-generate DOMSVGElement for the Objective-C bindings
3216 - Auto-generates DOMSVGElement.
3218 - Make SVGExceptions work like all the other ExceptionCode
3219 extensions (Range, XPath, etc.) by adding SVGExceptionOffset
3220 and SVGExceptionMax.
3222 * DerivedSources.make:
3223 * WebCore.xcodeproj/project.pbxproj:
3224 * bindings/js/kjs_binding.cpp:
3226 (KJS::setDOMException):
3227 * bindings/objc/DOMInternal.h:
3228 * bindings/objc/DOMInternal.mm:
3229 (raiseDOMException):
3230 * bindings/objc/DOMSVG.h:
3231 * bindings/objc/DOMSVGExecption.h: Added.
3233 * ksvg2/svg/SVGElement.cpp:
3234 (WebCore::SVGElement::setId):
3235 (WebCore::SVGElement::setXmlbase):
3236 * ksvg2/svg/SVGElement.h:
3237 * ksvg2/svg/SVGElement.idl:
3238 * ksvg2/svg/SVGException.h: Added.
3241 2006-09-26 Eric Seidel <eric@eseidel.com>
3245 viewbox parser does not allow <tab> as a delimiter
3246 http://bugs.webkit.org/show_bug.cgi?id=11014
3248 Test: svg/hixie/viewbox/003.xml
3250 * ksvg2/svg/svgpathparser.cpp:
3251 (WebCore::isWhitespace): new function
3252 (WebCore::skipOptionalSpaces):
3253 (WebCore::skipOptionalSpacesOrComma):
3255 2006-09-26 Eric Seidel <eric@eseidel.com>
3259 SVGDocument::createElement does not create elements in the SVG namespace
3260 http://bugs.webkit.org/show_bug.cgi?id=10932
3262 Test: svg/custom/createelement.svg
3264 * ksvg2/svg/SVGDocument.cpp:
3265 (WebCore::SVGDocument::createElement):
3266 * ksvg2/svg/SVGDocument.h:
3268 2006-09-26 Eric Seidel <eric@eseidel.com>
3272 RenderPath::nodeAtPoint does not respect stroke width
3273 http://bugs.webkit.org/show_bug.cgi?id=10829
3275 Test: svg/custom/stroke-width-click.svg
3277 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
3278 (WebCore::RenderPath::strokeContains):
3279 * kcanvas/device/quartz/QuartzSupport.h:
3280 * kcanvas/device/quartz/QuartzSupport.mm:
3282 2006-09-26 Eric Seidel <eric@eseidel.com>
3286 Bring animation back to life
3287 http://bugs.webkit.org/show_bug.cgi?id=11021
3289 Register/unregister SVGSVGElements as time containers on insertion/removal.
3290 Replace uses of DeprecatedString with String in SVGAnimationElement
3291 Various whitespace clean-up.
3293 * ksvg2/misc/KSVGTimeScheduler.cpp:
3294 (WebCore::SVGTimer::notifyAll):
3295 * ksvg2/misc/SVGDocumentExtensions.cpp:
3296 (WebCore::SVGDocumentExtensions::startAnimations):
3297 (WebCore::SVGDocumentExtensions::pauseAnimations):
3298 (WebCore::SVGDocumentExtensions::unpauseAnimations):
3299 * ksvg2/svg/SVGAnimateTransformElement.cpp:
3300 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3301 (WebCore::SVGAnimateTransformElement::parseTransformValue):
3302 * ksvg2/svg/SVGAnimateTransformElement.h:
3303 * ksvg2/svg/SVGAnimationElement.cpp:
3304 (WebCore::SVGAnimationElement::SVGAnimationElement):
3305 (WebCore::SVGAnimationElement::parseMappedAttribute):
3306 (WebCore::SVGAnimationElement::parseClockValue):
3307 (WebCore::SVGAnimationElement::targetAttribute):
3308 (WebCore::SVGAnimationElement::setTargetAttribute):
3309 (WebCore::SVGAnimationElement::attributeName):
3310 * ksvg2/svg/SVGAnimationElement.h:
3311 (WebCore::SVGAnimationElement::rendererIsNeeded):
3312 * ksvg2/svg/SVGSVGElement.cpp:
3313 (WebCore::SVGSVGElement::getScreenCTM):
3314 (WebCore::SVGSVGElement::createRenderer):
3315 (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
3316 (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
3317 * ksvg2/svg/SVGSVGElement.h:
3318 * ksvg2/svg/SVGSetElement.cpp:
3319 (WebCore::SVGSetElement::handleTimerEvent):
3320 * ksvg2/svg/SVGURIReference.cpp:
3321 (WebCore::SVGURIReference::getTarget):
3322 * ksvg2/svg/SVGURIReference.h:
3324 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
3326 Reviewed by mitzpettel.
3328 - fix http://bugs.webkit.org/show_bug.cgi?id=11020
3329 No-SVG build broken since r16549
3331 Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
3333 * css/cssparser.cpp:
3334 (WebCore::CSSParser::parseValue):
3335 * css/cssstyleselector.cpp:
3336 (WebCore::CSSStyleSelector::applyProperty):
3337 * page/FrameView.cpp:
3338 (WebCore::selectCursor):
3339 * platform/qt/GraphicsContextQt.cpp:
3341 2006-09-26 Anders Carlsson <acarlsson@apple.com>
3345 http://bugs.webkit.org/show_bug.cgi?id=10820
3346 Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
3348 (Originally written by Eric Seidel).
3350 * bindings/js/kjs_window.cpp:
3351 (KJS::floatFeature):
3352 * ksvg2/svg/SVGAngle.cpp:
3353 (SVGAngle::setValueAsString):
3354 * ksvg2/svg/SVGAnimationElement.cpp:
3355 (SVGAnimationElement::parseMappedAttribute):
3356 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3357 (SVGComponentTransferFunctionElement::parseMappedAttribute):
3358 * ksvg2/svg/SVGFECompositeElement.cpp:
3359 (WebCore::SVGFECompositeElement::parseMappedAttribute):
3360 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3361 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3362 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3363 (SVGFEDisplacementMapElement::parseMappedAttribute):
3364 * ksvg2/svg/SVGFELightElement.cpp:
3365 (SVGFELightElement::parseMappedAttribute):
3366 * ksvg2/svg/SVGFEOffsetElement.cpp:
3367 (WebCore::SVGFEOffsetElement::parseMappedAttribute):
3368 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3369 (SVGFESpecularLightingElement::parseMappedAttribute):
3370 * ksvg2/svg/SVGFETurbulenceElement.cpp:
3371 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
3372 * ksvg2/svg/SVGStopElement.cpp:
3373 (SVGStopElement::parseMappedAttribute):
3374 * platform/AtomicString.h:
3375 (WebCore::AtomicString::toDouble):
3376 * platform/PlatformString.h:
3377 * platform/String.cpp:
3378 (WebCore::String::toDouble):
3379 * platform/StringImpl.cpp:
3380 (WebCore::StringImpl::toDouble):
3381 * platform/StringImpl.h:
3382 * rendering/DeprecatedSlider.cpp:
3383 (WebCore::DeprecatedSlider::updateFromElement):
3384 * xml/XPathGrammar.y:
3386 2006-09-25 David Harrison <harrison@apple.com>
3388 Reviewed by Tim Omernick and Tim Hatcher.
3390 <rdar://problem/4717965> Text Field text parameterized attributes should work
3391 <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
3393 * bridge/mac/WebCoreAXObject.mm:
3394 (-[WebCoreAXObject accessibilityAttributeValue:]):
3395 Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
3397 (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
3398 Cleaned up. Added text field and text area parameterzed attributes.
3400 (-[WebCoreAXObject doAXLineForTextMarker:]):
3401 Fixed to be zero-based and to deal with the first position properly.
3403 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3406 (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
3407 (-[WebCoreAXObject indexForTextMarker:]):
3408 (-[WebCoreAXObject textMarkerRangeForRange:]):
3409 (-[WebCoreAXObject rangeForTextMarkerRange:]):
3410 New utility methods.
3412 (-[WebCoreAXObject doAXLineForIndex:]):
3413 (-[WebCoreAXObject doAXRangeForLine:]):
3414 (-[WebCoreAXObject doAXStringForRange:]):
3415 (-[WebCoreAXObject doAXRangeForPosition:]):
3416 (-[WebCoreAXObject doAXRangeForIndex:]):
3417 (-[WebCoreAXObject doAXBoundsForRange:]):
3418 (-[WebCoreAXObject doAXAttributedStringForRange:]):
3419 (-[WebCoreAXObject doAXRTFForRange:]):
3420 (-[WebCoreAXObject doAXStyleRangeForIndex:]):
3421 Implement text field and text area parameterized attributes.
3423 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
3424 Added text field and text area parameterzed attributes.
3426 * rendering/RenderTextControl.h:
3427 Made indexForVisiblePosition() and visiblePositionForIndex() public.
3429 2006-09-25 Adam Roben <aroben@apple.com>
3435 * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
3436 * platform/ResourceLoader.h: Store whether a particular job
3437 has received a response within the ResourceLoader object itself, since
3438 it's possible that we will enter the InternetReadFileExA while loop
3439 twice for the same job.
3440 * platform/ResourceLoaderInternal.h: Add private instance variable to
3441 store whether we've received a response.
3442 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
3443 * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
3445 * platform/win/ResourceLoaderWin.cpp:
3446 (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
3447 whether it has received a response instead of assuming it hasn't.
3448 (WebCore::ResourceLoader::setHasReceivedResponse): Added.
3449 (WebCore::ResourceLoader::hasReceivedResponse): Added.
3450 * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
3452 (ScrollBar::setProportion):
3454 2006-09-25 Brady Eidson <beidson@apple.com>
3458 Disabled IconDatabase logging by default
3460 * platform/Logging.cpp:
3463 2006-09-25 Steve Falkenburg <sfalken@apple.com>
3467 * platform/cf/ResourceLoaderCFNet.cpp:
3468 (WebCore::willCacheResponse):
3470 2006-09-25 Justin Garcia <justin.garcia@apple.com>
3474 <http://bugs.webkit.org/show_bug.cgi?id=11002>
3475 Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
3477 * editing/IndentOutdentCommand.cpp:
3478 (WebCore::IndentOutdentCommand::indentRegion): Special case
3479 an empty root editable element.
3481 2006-09-25 Brady Eidson <beidson@apple.com>
3485 Math error in SystemTimeWin
3487 * platform/win/SystemTimeWin.cpp:
3488 (WebCore::currentTime):
3490 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
3494 Whitespace cleanup; rename *job variables to *loader.
3496 * bindings/js/JSXMLHttpRequest.cpp:
3497 (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
3498 (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
3499 (KJS::JSXMLHttpRequestConstructorImp::construct):
3500 (KJS::JSXMLHttpRequest::getOwnPropertySlot):
3501 (KJS::JSXMLHttpRequest::getValueProperty):
3502 (KJS::JSXMLHttpRequest::put):
3503 (KJS::JSXMLHttpRequest::putValueProperty):
3504 (KJS::JSXMLHttpRequest::mark):
3505 (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
3506 (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
3507 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
3508 * bindings/js/JSXMLHttpRequest.h:
3509 (KJS::JSXMLHttpRequest::toBoolean):
3510 * xml/xmlhttprequest.cpp:
3511 (WebCore::XMLHttpRequest::XMLHttpRequest):
3512 (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
3513 (WebCore::XMLHttpRequest::send):
3514 (WebCore::XMLHttpRequest::abort):
3515 (WebCore::XMLHttpRequest::receivedAllData):
3516 (WebCore::XMLHttpRequest::receivedData):
3517 * xml/xmlhttprequest.h:
3520 2006-09-25 Timothy Hatcher <timothy@apple.com>
3524 - Deprecate the rest of the old-style methods that are not generated.
3525 - Add @property syntax to DOMRange.
3527 * WebCore.xcodeproj/project.pbxproj:
3528 * bindings/objc/DOM.mm:
3529 (-[DOMRange setStart:offset:]):
3530 (-[DOMRange setEnd:offset:]):
3531 (-[DOMRange compareBoundaryPoints:sourceRange:]):
3532 (-[DOMRange setStart::]):
3533 (-[DOMRange setEnd::]):
3534 (-[DOMRange compareBoundaryPoints::]):
3535 (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
3536 (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
3537 (-[DOMDocument createNodeIterator::::]):
3538 (-[DOMDocument createTreeWalker::::]):
3539 * bindings/objc/DOMCSS.h:
3540 * bindings/objc/DOMCSS.mm:
3541 (-[DOMDocument getComputedStyle:pseudoElement:]):
3542 (-[DOMDocument getComputedStyle::]):
3543 (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
3544 * bindings/objc/DOMExtensions.h:
3545 * bindings/objc/DOMHTML.h:
3546 * bindings/objc/DOMRange.h:
3547 * bindings/objc/DOMTraversal.h:
3549 2006-09-25 Eric Seidel <eric@eseidel.com>
3553 Outermost <svg> element should clip to viewport
3554 http://bugs.webkit.org/show_bug.cgi?id=11007
3556 Test: svg/custom/viewport-clip.svg
3558 * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
3560 2006-09-25 Anders Carlsson <acarlsson@apple.com>
3564 * css/MediaList.cpp:
3565 Remove unused header.
3568 (WebCore::Document::clear):
3569 Use clear instead of iterating through the list of event listeners, removing each one.
3570 (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
3572 * html/HTMLKeygenElement.cpp:
3573 (WebCore::HTMLKeygenElement::HTMLKeygenElement):
3574 (WebCore::HTMLKeygenElement::appendFormData):
3575 Update due to changes in the SSL key generator.
3577 * ksvg2/svg/SVGAngle.cpp:
3578 Remove unused header.
3580 * ksvg2/svg/SVGAnimationElement.cpp:
3581 (SVGAnimationElement::parseMappedAttribute):
3582 Rename methods and pass Strings instead of DeprecatedStrings to
3585 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3586 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3587 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3588 * ksvg2/svg/SVGFEMergeElement.cpp:
3589 * ksvg2/svg/SVGFEOffsetElement.cpp:
3590 Remove unused headers.
3592 * ksvg2/svg/SVGHelper.cpp:
3593 (WebCore::SVGHelper::parseSeparatedList):
3594 * ksvg2/svg/SVGHelper.h:
3595 Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
3596 DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
3598 * ksvg2/svg/SVGLengthList.cpp:
3599 (WebCore::SVGLengthList::parse):
3600 * ksvg2/svg/SVGLengthList.h:
3601 Use Vector<String> instead of DeprecatedStringList.
3604 (WebCore::Cache::requestImage):
3605 (WebCore::Cache::requestStyleSheet):
3606 (WebCore::Cache::requestScript):
3607 (WebCore::Cache::requestXSLStyleSheet):
3608 (WebCore::Cache::requestXBLDocument):
3609 (WebCore::Cache::remove):
3610 (WebCore::Cache::get):
3611 Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
3613 * loader/DocLoader.cpp:
3614 (WebCore::DocLoader::needReload):
3615 * loader/DocLoader.h:
3616 Use a HashSet instead of DeprecatedStringList.
3619 Remove declarations that have no functions.
3621 * platform/SSLKeyGenerator.h:
3622 * platform/mac/SSLKeyGeneratorMac.mm:
3623 (WebCore::supportedKeySizes):
3624 (WebCore::signedPublicKeyAndChallengeString):
3625 Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
3628 2006-09-25 Dave Hyatt <hyatt@apple.com>
3630 Shunt the RenderTheme world transform adoption between
3631 Cairo and Windows into getWindowsContext and move the method
3632 out of GraphicsContextCairo and into GraphicsContextWin.
3635 * WebCore.vcproj/WebCore/WebCore.vcproj:
3636 * platform/cairo/GraphicsContextCairo.cpp:
3637 * platform/win/GraphicsContextWin.cpp: Added.
3638 (WebCore::GraphicsContext::getWindowsContext):
3639 (WebCore::GraphicsContext::releaseWindowsContext):
3640 * rendering/RenderThemeWin.cpp:
3641 (WebCore::prepareForDrawing):
3643 2006-09-24 Eric Seidel <eric@eseidel.com>
3647 <svg:a> cannot be styled with a:hover
3648 http://bugs.webkit.org/show_bug.cgi?id=11005
3650 Test: svg/hixie/cascade/002.xml
3652 * css/cssstyleselector.cpp:
3653 (WebCore::checkPseudoState):
3655 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3659 Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
3660 SVG needs Obj-C DOM bindings
3662 - Auto-generate the first 8 Objective-C SVG DOM bindings. The
3663 auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
3664 DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
3665 DOMSVGTransformList.
3667 * DerivedSources.make:
3668 * WebCore.xcodeproj/project.pbxproj:
3669 * bindings/objc/DOMInternal.h:
3670 * bindings/objc/DOMSVG.h: Added.
3671 * ksvg2/svg/SVGAngle.idl:
3672 * ksvg2/svg/SVGLength.idl:
3673 * ksvg2/svg/SVGLengthList.idl:
3674 * ksvg2/svg/SVGMatrix.idl:
3675 * ksvg2/svg/SVGPathSeg.idl:
3676 * ksvg2/svg/SVGPathSegList.idl:
3677 * ksvg2/svg/SVGTransform.idl:
3678 * ksvg2/svg/SVGTransformList.idl:
3680 2006-09-24 Rob Buis <buis@kde.org>
3682 Reviewed by eseidel.
3684 Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
3685 WebKit does not handle fallback custom cursors
3686 Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
3687 WebKit does not properly handle SVG <cursor> element
3689 Add support for svg cursor images. Also make sure hotspot
3690 settings are handled correctly. Add tests for handling of css3
3691 cursor syntax with hotspots in strict and quirks mode. Finally
3694 * WebCore.xcodeproj/project.pbxproj:
3695 * css/CSSComputedStyleDeclaration.cpp:
3696 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
3697 * css/CSSCursorImageValue.cpp: Added.
3698 (WebCore::CSSCursorImageValue::CSSCursorImageValue):
3699 (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
3700 * css/CSSCursorImageValue.h: Added.
3701 (WebCore::CSSCursorImageValue::hotspot):
3702 * css/cssparser.cpp:
3703 (WebCore::CSSParser::parseValue):
3704 * css/cssstyleselector.cpp:
3705 (WebCore::CSSStyleSelector::applyProperty):
3706 * ksvg2/svg/SVGCursorElement.cpp:
3707 * manual-tests/css3-cursor-fallback-quirks.html: Added.
3708 * manual-tests/css3-cursor-fallback-strict.html: Added.
3709 * manual-tests/cursorfallback.xml: Added.
3710 * page/FrameView.cpp:
3711 (WebCore::selectCursor):
3712 * platform/Cursor.h:
3713 * platform/mac/CursorMac.mm:
3714 (WebCore::createCustomCursor):
3715 (WebCore::Cursor::Cursor):
3716 * platform/qt/CursorQt.cpp:
3717 (WebCore::Cursor::Cursor):
3718 * rendering/RenderStyle.cpp:
3719 (WebCore::StyleInheritedData::StyleInheritedData):
3720 (WebCore::StyleInheritedData::operator==):
3721 (WebCore::RenderStyle::diff):
3722 (WebCore::RenderStyle::addCursor):
3723 (WebCore::RenderStyle::addSVGCursor):
3724 (WebCore::RenderStyle::setCursorList):
3725 (WebCore::RenderStyle::clearCursorList):
3726 * rendering/RenderStyle.h:
3727 (WebCore::CursorData::CursorData):
3728 (WebCore::CursorList::operator[]):
3729 (WebCore::CursorList::size):
3730 (WebCore::CursorList::append):
3731 (WebCore::RenderStyle::cursors):
3733 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
3737 Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
3738 Auto-generate the internal methods interfaces for the Objective-C bindings
3740 - Auto-generate the internal method declarations into their own files
3741 named in the form DOMFooBarInternal.h for class DOMFooBar.
3743 - Remove all use of DOM_cast from code.
3745 - Assorted cleanups.
3747 * WebCore.xcodeproj/project.pbxproj:
3748 * bindings/objc/DOM.mm:
3749 (-[DOMNode _initWithNode:WebCore::]):
3750 (-[DOMNode WebCore::]):
3751 (-[DOMRange dealloc]):
3752 (-[DOMRange finalize]):
3753 (-[DOMRange _initWithRange:WebCore::]):
3754 (-[DOMRange WebCore::]):
3755 (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
3756 (-[DOMNodeFilter WebCore::]):
3757 (-[DOMNodeFilter dealloc]):
3758 (-[DOMNodeFilter finalize]):
3759 (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
3760 (-[DOMNodeIterator WebCore::]):
3761 (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
3762 (-[DOMTreeWalker WebCore::]):
3763 * bindings/objc/DOMAbstractView.mm:
3764 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
3765 * bindings/objc/DOMCSS.mm:
3766 (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
3767 (-[DOMCSSRule _initWithRule:WebCore::]):
3768 (-[DOMCSSValue _initWithValue:WebCore::]):
3769 * bindings/objc/DOMEvents.mm:
3770 (-[DOMEvent _initWithEvent:WebCore::]):
3771 * bindings/objc/DOMHTMLAppletElement.mm:
3772 (-[DOMHTMLAppletElement align]):
3773 (-[DOMHTMLAppletElement setAlign:]):
3774 (-[DOMHTMLAppletElement alt]):
3775 (-[DOMHTMLAppletElement setAlt:]):
3776 (-[DOMHTMLAppletElement archive]):
3777 (-[DOMHTMLAppletElement setArchive:]):
3778 (-[DOMHTMLAppletElement code]):
3779 (-[DOMHTMLAppletElement setCode:]):
3780 (-[DOMHTMLAppletElement codeBase]):
3781 (-[DOMHTMLAppletElement setCodeBase:]):
3782 (-[DOMHTMLAppletElement height]):
3783 (-[DOMHTMLAppletElement setHeight:]):
3784 (-[DOMHTMLAppletElement hspace]):
3785 (-[DOMHTMLAppletElement setHspace:]):
3786 (-[DOMHTMLAppletElement name]):
3787 (-[DOMHTMLAppletElement setName:]):
3788 (-[DOMHTMLAppletElement object]):
3789 (-[DOMHTMLAppletElement setObject:]):
3790 (-[DOMHTMLAppletElement vspace]):
3791 (-[DOMHTMLAppletElement setVspace:]):
3792 (-[DOMHTMLAppletElement width]):
3793 (-[DOMHTMLAppletElement setWidth:]):
3794 * bindings/objc/DOMInternal.h:
3798 * bindings/objc/DOMXPath.mm:
3799 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3800 * bindings/scripts/CodeGeneratorObjC.pm:
3802 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3804 Reviewed by eseidel.
3806 Fix Qt/Linux build after Dave's Scrollbar changes.
3808 * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3809 * platform/qt/TemporaryLinkStubs.cpp:
3810 (WebCore::ScrollBar::setProportion):
3811 (WebCore::PlatformScrollBar::updateThumbPosition):
3812 (WebCore::PlatformScrollBar::updateThumbProportion):
3814 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3816 Reviewed by eseidel.
3818 Qt/Linux build system changes: enable xpath/xslt by default.
3819 Offer possibility to change all of these using 'ccmake'.
3823 2006-09-24 Dave Hyatt <hyatt@apple.com>
3825 Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
3826 Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3827 the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3829 * platform/ScrollBar.cpp:
3830 (WebCore::ScrollBar::setValue):
3831 (WebCore::ScrollBar::setProportion):
3832 * platform/ScrollBar.h:
3833 (WebCore::ScrollBar::value):
3834 * platform/mac/PlatformScrollBar.h:
3835 * platform/mac/PlatformScrollBarMac.mm:
3836 (WebCore::PlatformScrollBar::updateThumbPosition):
3837 (WebCore::PlatformScrollBar::updateThumbProportion):
3838 * platform/win/PlatformScrollBar.h:
3839 * platform/win/TemporaryLinkStubs.cpp:
3840 (PlatformScrollBar::updateThumbPosition):
3841 (PlatformScrollBar::updateThumbProportion):
3842 * rendering/RenderLayer.cpp:
3843 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3845 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
3849 http://bugs.webkit.org/show_bug.cgi?id=4872
3850 XMLHttpRequest fails to throw an exception when there is a security violation
3851 (mismatching domains)
3853 Raise an exception if there is a security violation, and also in cases required by
3854 the current draft of XHR specification.
3856 * bindings/js/JSXMLHttpRequest.cpp:
3857 (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3858 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3859 reports one, and also if there were too few arguments passed.
3861 * bindings/js/kjs_binding.cpp:
3862 (KJS::setDOMException): Added support for custom XHR exceptions.
3864 * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3865 exception code range for XHR exceptions.
3867 * xml/xmlhttprequest.cpp:
3868 (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3869 (WebCore::XMLHttpRequest::send):
3870 (WebCore::XMLHttpRequest::setRequestHeader):
3871 (WebCore::XMLHttpRequest::getStatus):
3872 (WebCore::XMLHttpRequest::getStatusText):
3873 (WebCore::XMLHttpRequest::processSyncLoadResults):
3874 (WebCore::XMLHttpRequest::receivedAllData):
3875 (WebCore::XMLHttpRequest::receivedData):
3877 2006-09-22 Steve Falkenburg <sfalken@apple.com>
3879 Reviewed by Jeff Jenkins.
3883 * platform/cf/ResourceLoaderCFNet.cpp:
3884 (WebCore::willCacheResponse):
3886 2006-09-22 Justin Garcia <justin.garcia@apple.com>
3890 <http://bugs.webkit.org/show_bug.cgi?id=8029>
3891 Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3894 (WebCore::Document::clearSelectionIfNeeded):
3896 (WebCore::Element::contains):
3898 (WebCore::Node::traverseNextNode):
3899 (WebCore::Node::traverseNextSibling):
3900 (WebCore::Node::traversePreviousNodePostOrder):
3901 (WebCore::Node::checkAddChild):
3902 (WebCore::Node::isDescendantOf):
3904 * dom/NodeIterator.cpp:
3905 (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3906 * editing/ApplyStyleCommand.cpp:
3907 (WebCore::ApplyStyleCommand::applyBlockStyle):
3908 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3909 (WebCore::ApplyStyleCommand::applyInlineStyle):
3910 (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3911 * editing/CompositeEditCommand.cpp:
3912 (WebCore::CompositeEditCommand::mergeIdenticalElements):
3913 (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3914 * editing/DeleteSelectionCommand.cpp:
3915 (WebCore::updatePositionForNodeRemoval):
3916 (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3917 (WebCore::DeleteSelectionCommand::mergeParagraphs):
3918 * editing/FormatBlockCommand.cpp:
3919 (WebCore::FormatBlockCommand::doApply):
3920 * editing/IndentOutdentCommand.cpp:
3921 (WebCore::enclosingListOrBlockquote):
3922 * editing/Selection.cpp:
3923 (WebCore::Selection::validate):
3924 * editing/SelectionController.cpp:
3925 (WebCore::SelectionController::nodeWillBeRemoved):
3926 * editing/TextIterator.cpp:
3927 (WebCore::SimplifiedBackwardsTextIterator::advance):
3928 * editing/VisiblePosition.cpp:
3929 (WebCore::VisiblePosition::next):
3930 (WebCore::VisiblePosition::previous):
3931 (WebCore::VisiblePosition::canonicalPosition):
3932 (WebCore::isFirstVisiblePositionInNode):
3933 (WebCore::isLastVisiblePositionInNode):
3934 * editing/htmlediting.cpp:
3935 (WebCore::firstEditablePositionAfterPositionInRoot):
3936 (WebCore::lastEditablePositionBeforePositionInRoot):
3937 (WebCore::enclosingNodeWithTag):
3938 (WebCore::enclosingList):
3939 (WebCore::enclosingListChild):
3940 * editing/markup.cpp:
3941 (WebCore::createMarkup):
3943 2006-09-22 Timothy Hatcher <timothy@apple.com>
3947 - Added @property syntax to non-generated headers
3948 inside #ifndef BUILDING_ON_TIGER.
3949 - Changed the DOMEventTarget protocol to have have new versions
3950 of addEventListener and removeEventListener with named parameters.
3951 These old style methods can be removed once Mail changes to use
3952 the new methods <rdar://problem/4746649>.
3954 * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3955 * bindings/objc/DOM.mm:
3956 (-[DOMNode addEventListener:listener:useCapture:]):
3957 (-[DOMNode addEventListener:::]): call the new method
3958 (-[DOMNode removeEventListener:listener:useCapture:]):
3959 (-[DOMNode removeEventListener:::]): call the new method
3960 * bindings/objc/DOMAbstractView.h:
3961 * bindings/objc/DOMEventTarget.h:
3962 * bindings/objc/DOMHTMLAppletElement.h:
3963 * bindings/objc/DOMHTMLEmbedElement.h:
3964 * bindings/objc/DOMHTMLOptionElement.h:
3965 * bindings/objc/DOMObject.h:
3966 * bindings/objc/DOMRGBColor.h:
3968 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3972 Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3974 * platform/qt/FrameQt.cpp:
3975 * platform/qt/GraphicsContextQt.cpp:
3976 (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3977 (WebCore::GraphicsContext::origin):
3978 * platform/qt/PlatformScrollBar.h: Added.
3979 (WebCore::PlatformScrollBar::isWidget):
3980 * platform/qt/WidgetQt.cpp:
3981 (WebCore::Widget::invalidate):
3982 (WebCore::Widget::invalidateRect):
3984 2006-09-22 Dave Hyatt <hyatt@apple.com>
3986 Super-minor tweaks to the systemFont function on Mac.
3987 Set the generic family to None rather than to Serif, and
3988 don't waste time setting the computed size, since that is
3989 set from the specified size over in CSSStyleSelector anyway.
3991 * rendering/RenderThemeMac.mm:
3992 (WebCore::RenderThemeMac::systemFont):
3994 2006-09-22 Timothy Hatcher <timothy@apple.com>
3998 Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3999 take floats. There was already an implicit conversion to float/double
4000 when calling CGContextTranslateCTM or cairo_translate.
4002 * platform/GraphicsContext.h:
4003 * platform/cairo/GraphicsContextCairo.cpp:
4004 (WebCore::GraphicsContext::translate):
4005 * platform/cg/GraphicsContextCG.cpp:
4006 (WebCore::GraphicsContext::translate):
4008 2006-09-22 Brady Eidson <beidson@apple.com>
4012 Add redirect and other cleanup to ResourceLoaderWin.cpp
4013 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
4014 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
4016 * WebCore.xcodeproj/project.pbxproj:
4017 * platform/ResourceLoader.h:
4018 * platform/win/ResourceLoaderWin.cpp:
4019 (WebCore::ResourceLoaderWndProc):
4020 (WebCore::initializeOffScreenResourceLoaderWindow):
4021 (WebCore::ResourceLoader::onHandleCreated):
4022 (WebCore::ResourceLoader::onRequestRedirected):
4023 (WebCore::ResourceLoader::onRequestComplete):
4024 (WebCore::transferJobStatusCallback):
4026 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
4030 http://bugs.webkit.org/show_bug.cgi?id=10803
4031 REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
4033 * page/FrameView.cpp:
4034 (WebCore::FrameView::hoverTimerFired): Use the current event.
4036 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
4040 Fix (last) svg memory leak.
4042 * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
4043 (SVGTransformable::parseTransformAttribute):
4045 2006-09-22 Eric Seidel <eric@eseidel.com>
4047 No review necessary, just removing a dead file.
4049 Remove unused file (added previously by mistake) to make room for real implementation.
4051 * platform/mac/BitmapImageMac.mm: Removed.
4053 2006-09-22 Dave Hyatt <hyatt@apple.com>
4055 Move PlatformScrollBar.h down into the platforms.
4057 Reviewed by andersca
4059 * platform/PlatformScrollBar.h: Removed.
4060 * platform/win/PlatformScrollBar.h: Added.
4061 * platform/mac/PlatformScrollBar.h: Added.
4063 2006-09-22 Dave Hyatt <hyatt@apple.com>
4065 Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
4066 any widget subsystems that don't have any underlying native objects backing the widgets.
4070 * platform/Widget.h:
4071 * platform/mac/WidgetMac.mm:
4072 (WebCore::Widget::invalidate):
4073 (WebCore::Widget::invalidateRect):
4074 * platform/win/TemporaryLinkStubs.cpp:
4075 (Widget::invalidate):
4076 (Widget::invalidateRect):
4078 2006-09-22 Rob Buis <buis@kd.org>
4080 Reviewed by eseidel.
4082 http://bugs.webkit.org/show_bug.cgi?id=10901
4083 Merge build fixes from unity
4087 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4089 Reviewed by eseidel.
4091 http://bugs.webkit.org/show_bug.cgi?id=10977
4092 SVGDocument does not expose 'rootElement' property
4094 Enable 'rootElement' property.
4096 * ksvg2/svg/SVGDocument.idl:
4098 2006-09-21 Steve Falkenburg <sfalken@apple.com>
4102 * platform/ResourceLoaderInternal.h:
4104 2006-09-21 Geoffrey Garen <ggaren@apple.com>
4106 build fixed. band happy.
4108 * platform/cg/GraphicsContextCG.cpp:
4109 (WebCore::GraphicsContext::translate):
4110 * platform/mac/WidgetMac.mm:
4112 2006-09-21 Geoffrey Garen <ggaren@apple.com>
4116 Some Widget refactoring.
4118 * WebCore.vcproj/WebCore/WebCore.vcproj:
4119 * bridge/mac/FrameMac.mm:
4120 * bridge/win/FrameWin.cpp:
4121 (WebCore::FrameWin::runJavaScriptAlert):
4122 (WebCore::FrameWin::runJavaScriptConfirm):
4123 * bridge/win/PageWin.cpp:
4124 (WebCore::Page::Page):
4125 (WebCore::rootWindowForFrame):
4126 * html/CanvasRenderingContext2D.cpp:
4127 (WebCore::CanvasRenderingContext2D::translate):
4128 * page/FrameView.cpp:
4129 (WebCore::FrameView::isFrameView):
4131 (WebCore::Page::setInstanceHandle):
4132 (WebCore::Page::instanceHandle):
4133 * platform/GraphicsContext.h:
4134 * platform/ScrollView.h:
4135 * platform/Widget.h:
4136 * platform/cairo/GraphicsContextCairo.cpp:
4137 (WebCore::GraphicsContext::translate):
4138 (WebCore::GraphicsContext::origin):
4139 * platform/mac/WidgetMac.mm:
4140 (WebCore::Widget::clearFocus):
4141 * platform/win/ResourceLoaderWin.cpp:
4142 (WebCore::initializeOffScreenResourceLoaderWindow):
4143 * platform/win/ScreenWin.cpp:
4144 (WebCore::monitorInfo):
4145 * platform/win/ScrollViewWin.cpp:
4146 (WebCore::ScrollView::updateContents):
4147 (WebCore::ScrollView::visibleWidth):
4148 (WebCore::ScrollView::visibleHeight):
4149 (WebCore::ScrollView::visibleContentRect):
4150 (WebCore::ScrollView::viewportToContents):
4151 (WebCore::ScrollView::contentsToViewport):
4152 (WebCore::ScrollView::scrollBy):
4153 (WebCore::ScrollView::updateScrollInfo):
4154 (WebCore::ScrollView::updateScrollBars):
4155 * platform/win/SharedTimerWin.cpp:
4156 (WebCore::initializeOffScreenTimerWindow):
4157 * platform/win/TemporaryLinkStubs.cpp:
4158 (FrameView::updateBorder):
4159 (ScrollView::paint):
4160 (GraphicsContext::clip):
4161 * platform/win/WidgetWin.cpp:
4162 (WebCore::Widget::Widget):
4163 (WebCore::Widget::parentWindow):
4164 (WebCore::Widget::setParentWindow):
4165 (WebCore::Widget::frameGeometry):
4166 (WebCore::Widget::hasFocus):
4167 (WebCore::Widget::setFocus):
4168 (WebCore::Widget::show):
4169 (WebCore::Widget::hide):
4170 (WebCore::Widget::setFrameGeometry):
4172 2006-09-22 Anders Carlsson <acarlsson@apple.com>
4176 * platform/TextEncoding.cpp:
4177 (WebCore::TextEncoding::backslashAsCurrencySymbol):
4178 Add comment clarifying why backslashAsCurrencySymbol is needed.
4180 2006-09-21 Sean Gies <seangies@apple.com>
4182 Reviewed by Adam Roben.
4184 Add utility functions to get and release HDC from GraphicsContext.
4186 * platform/GraphicsContext.h: Add utilities to get and release HDC.
4187 * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
4188 * rendering/RenderThemeWin.cpp: Switch to new utilities.
4190 2006-09-21 Justin Garcia <justin.garcia@apple.com>
4194 <rdar://problem/4426622>
4195 Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
4197 * editing/htmlediting.cpp:
4198 (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
4199 aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
4200 Got rid of uses of DepricatedString.
4202 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4204 Reviewed by eseidel.
4206 Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
4209 (WebCore::Frame::endIfNotLoading):
4211 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
4213 Reviewed by eseidel.
4218 * kcanvas/device/qt/KCanvasClipperQt.h:
4219 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
4220 * platform/qt/FrameQt.cpp:
4221 (WebCore::FrameQt::isLoadTypeReload):
4222 (WebCore::FrameQt::originalRequestURL):
4223 * platform/qt/FrameQt.h:
4224 * platform/qt/GraphicsContextQt.cpp:
4225 (WebCore::GraphicsContext::concatCTM):
4226 * platform/qt/ScrollViewQt.cpp:
4227 (WebCore::ScrollView::wheelEvent):
4228 * platform/qt/TemporaryLinkStubs.cpp:
4229 (WebCore::IconDatabase::setIconURLForPageURL):
4231 2006-09-20 Justin Garcia <justin.garcia@apple.com>
4235 <http://bugs.webkit.org/show_bug.cgi?id=7165>
4236 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
4238 * editing/MoveSelectionCommand.cpp:
4239 (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
4240 to the position-to-move-to's document, not the fragment's document. The
4241 fragment's document is the document used to create the fragment and is irrelavant.
4243 === Safari-521.27 ===
4245 2006-09-21 Brady Eidson <beidson@apple.com>
4249 When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
4250 This fixes Spinneret so it won't crash on its first load!
4253 (WebCore::Frame::endIfNotLoading):
4255 2006-09-21 Brady Eidson <beidson@apple.com>
4259 * platform/win/TemporaryLinkStubs.cpp:
4260 (ScrollView::wheelEvent):
4262 2006-09-20 Rob Buis <buis@kde.org>
4264 Reviewed by eseidel.
4266 http://bugs.webkit.org/show_bug.cgi?id=10946
4267 new marker code draws end-marker in wrong place
4269 Keep track of the start of the subpath so we can handle
4270 closeTo/moveTo correctly.
4272 * kcanvas/RenderPath.cpp:
4273 (WebCore::DrawMarkersData::DrawMarkersData):
4274 (WebCore::updateMarkerDataForElement):
4276 2006-09-21 David Hyatt <hyatt@apple.com>
4278 Wheel scrolling prep for Win32.
4280 WARNING: NO TEST CASES ADDED OR CHANGED
4282 * platform/PlatformWheelEvent.h:
4283 * platform/ScrollBar.h:
4284 * platform/ScrollView.h:
4285 * platform/mac/ScrollViewMac.mm:
4286 (WebCore::ScrollView::wheelEvent):
4287 * rendering/RenderLayer.cpp: