1 2006-09-17 Brady Eidson <beidson@apple.com>
5 IconLoader now gracefully handles the condition where there's no document in the frame
8 * loader/icon/IconLoader.cpp:
9 (IconLoader::startLoading):
11 2006-09-17 David Hyatt <hyatt@apple.com>
13 Fix for bug 10899, rework how CSS keywords work to be smarter about
14 using the correct size when generic families change (e.g., monospace to
15 serif and vice versa).
19 Added fast/text/basic/generic-family-changes.html
21 * css/cssstyleselector.cpp:
22 (WebCore::CSSStyleSelector::applyProperty):
23 (WebCore::CSSStyleSelector::checkForGenericFamilyChange):
24 (WebCore::CSSStyleSelector::fontSizeForKeyword):
25 * css/cssstyleselector.h:
27 (WebCore::Document::recalcStyle):
28 * platform/FontDescription.h:
29 (WebCore::FontDescription::FontDescription):
30 (WebCore::FontDescription::keywordSize):
31 (WebCore::FontDescription::setKeywordSize):
32 (WebCore::FontDescription::operator==):
34 2006-09-17 Alexey Proskuryakov <ap@nypop.com>
38 http://bugzilla.opendarwin.org/show_bug.cgi?id=10852
39 REGRESSION: Reproducible crash in XMLHttpRequest::abort()
41 Test: http/tests/xmlhttprequest/xhr-onunload.html
43 * xml/xmlhttprequest.cpp:
44 (WebCore::XMLHttpRequest::send): Check the return value of ResourceLoader::start().
46 * loader/icon/IconLoader.cpp:
47 (IconLoader::startLoading): Fix a similar latent bug here.
49 2006-09-17 Adam Roben <aroben@apple.com>
53 * loader/icon/IconDatabase.cpp:
55 2006-09-17 Anders Carlsson <acarlsson@apple.com>
59 Add simplifyWhiteSpace and stripWhiteSpace to the String class.
60 Change the XSLT Parameter Map to use Strings instead of StringImpls.
63 * bindings/js/JSXSLTProcessor.cpp:
64 (KJS::XSLTProcessorProtoFunc::callAsFunction):
65 * bindings/js/kjs_events.cpp:
66 (KJS::JSAbstractEventListener::handleEvent):
67 * bindings/js/kjs_window.cpp:
68 (KJS::ScheduledAction::execute):
70 (WebCore::MediaList::setMediaText):
72 (WebCore::Document::processHttpEquiv):
73 * editing/ApplyStyleCommand.cpp:
74 (WebCore::StyleChange::init):
75 * html/HTMLDocument.cpp:
76 (WebCore::parseDocTypeDeclaration):
77 * html/HTMLLinkElement.cpp:
78 (WebCore::HTMLLinkElement::parseMappedAttribute):
79 * html/HTMLObjectElement.cpp:
80 (WebCore::HTMLObjectElement::HTMLObjectElement):
81 (WebCore::HTMLObjectElement::parseMappedAttribute):
82 (WebCore::HTMLObjectElement::attach):
83 (WebCore::HTMLObjectElement::setComplete):
84 (WebCore::HTMLObjectElement::detach):
85 (WebCore::HTMLObjectElement::recalcStyle):
86 (WebCore::HTMLObjectElement::childrenChanged):
87 (WebCore::HTMLObjectElement::isImageType):
88 * html/HTMLObjectElement.h:
89 * html/HTMLOptionElement.cpp:
90 (WebCore::HTMLOptionElement::value):
91 * html/HTMLSelectElement.cpp:
92 (WebCore::HTMLSelectElement::appendFormData):
93 * html/HTMLTokenizer.cpp:
94 (WebCore::HTMLTokenizer::parseTag):
95 * ksvg2/svg/SVGColor.cpp:
96 (WebCore::SVGColor::setRGBColor):
97 * ksvg2/svg/SVGDescElement.cpp:
98 (WebCore::SVGDescElement::description):
99 * platform/PlatformString.h:
100 * platform/String.cpp:
101 (WebCore::String::stripWhiteSpace):
102 (WebCore::String::simplifyWhiteSpace):
103 * platform/StringImpl.cpp:
105 (WebCore::parseLength):
106 (WebCore::StringImpl::stripWhiteSpace):
107 (WebCore::StringImpl::simplifyWhiteSpace):
108 (WebCore::StringImpl::toInt):
109 * platform/StringImpl.h:
110 * platform/mac/ClipboardMac.mm:
111 (WebCore::cocoaTypeFromMIMEType):
112 * rendering/RenderPartObject.cpp:
113 (WebCore::RenderPartObject::updateWidget):
114 * xml/XPathFunctions.cpp:
115 (WebCore::XPath::FunNormalizeSpace::doEvaluate):
116 * xml/XPathGrammar.y:
118 (WebCore::XPath::Step::nodeTestMatches):
119 * xml/XSLStyleSheet.cpp:
120 (WebCore::XSLStyleSheet::loadChildSheets):
121 (WebCore::XSLStyleSheet::locateStylesheetSubResource):
122 * xml/XSLTProcessor.cpp:
123 (WebCore::xsltParamArrayFromParameterMap):
124 (WebCore::XSLTProcessor::setParameter):
125 (WebCore::XSLTProcessor::getParameter):
126 (WebCore::XSLTProcessor::removeParameter):
127 * xml/XSLTProcessor.h:
128 * xml/xmlhttprequest.cpp:
129 (WebCore::XMLHttpRequest::getStatusText):
131 2006-09-17 David Hyatt <hyatt@apple.com>
133 Fix for bugzilla bugs 10895 and 6336, fieldsets misbehaving when floats
134 are declared right before the fieldsets. It turns out fieldsets in other
135 browsers avoid floats (like overflow:auto/hidden/scroll sections do), so
136 adding that behavior to fieldset fixes the bug.
138 Made avoidsFloats virtual and did some refactoring to make tables, flexboxes
139 and fieldsets all subclass.
143 Added fast/forms/float-before-fieldset.html
145 * rendering/RenderFieldset.h:
146 (WebCore::RenderFieldset::avoidsFloats):
147 * rendering/RenderFlexibleBox.h:
148 (WebCore::RenderFlexibleBox::avoidsFloats):
149 * rendering/RenderObject.cpp:
150 (WebCore::RenderObject::avoidsFloats):
151 * rendering/RenderObject.h:
152 * rendering/RenderTable.h:
153 (WebCore::RenderTable::avoidsFloats):
155 2006-09-17 David Hyatt <hyatt@apple.com>
157 Fix for bugzilla bug 3240, implement support for the HTML4 "frame" and
158 "rules" attributes on tables.
160 Reviewed by bradee-oh
162 Well-covered by existing layout tests.
164 * html/HTMLTableCellElement.cpp:
165 (WebCore::HTMLTableCellElement::additionalAttributeStyleDecl):
166 * html/HTMLTableColElement.cpp:
167 (WebCore::HTMLTableColElement::additionalAttributeStyleDecl):
168 * html/HTMLTableColElement.h:
169 * html/HTMLTableElement.cpp:
170 (WebCore::HTMLTableElement::HTMLTableElement):
171 (WebCore::HTMLTableElement::~HTMLTableElement):
172 (WebCore::HTMLTableElement::setCaption):
173 (WebCore::HTMLTableElement::setTHead):
174 (WebCore::HTMLTableElement::setTFoot):
175 (WebCore::HTMLTableElement::setTBody):
176 (WebCore::HTMLTableElement::createTHead):
177 (WebCore::HTMLTableElement::deleteTHead):
178 (WebCore::HTMLTableElement::createTFoot):
179 (WebCore::HTMLTableElement::deleteTFoot):
180 (WebCore::HTMLTableElement::createCaption):
181 (WebCore::HTMLTableElement::deleteCaption):
182 (WebCore::HTMLTableElement::insertRow):
183 (WebCore::HTMLTableElement::deleteRow):
184 (WebCore::HTMLTableElement::addChild):
185 (WebCore::HTMLTableElement::childrenChanged):
186 (WebCore::HTMLTableElement::mapToEntry):
187 (WebCore::HTMLTableElement::parseMappedAttribute):
188 (WebCore::HTMLTableElement::additionalAttributeStyleDecl):
189 (WebCore::HTMLTableElement::getSharedCellDecl):
190 (WebCore::HTMLTableElement::getSharedGroupDecl):
191 (WebCore::HTMLTableElement::attach):
192 * html/HTMLTableElement.h:
193 (WebCore::HTMLTableElement::caption):
194 (WebCore::HTMLTableElement::tHead):
195 (WebCore::HTMLTableElement::tFoot):
196 (WebCore::HTMLTableElement::):
197 * html/HTMLTableRowElement.h:
198 * html/HTMLTableSectionElement.cpp:
199 (WebCore::HTMLTableSectionElement::additionalAttributeStyleDecl):
200 * html/HTMLTableSectionElement.h:
202 2006-09-17 David Hyatt <hyatt@apple.com>
204 Fix for bugzilla bug 4192, font size wrong for <tt> elements that
205 specify their own new font-family list. Make sure to always
206 reset the generic family along with the family list when mapping in
207 new font-family values.
209 Reviewed by bradee-oh
211 fast/text/basic/generic-family-reset.html
213 * css/cssstyleselector.cpp:
214 (WebCore::CSSStyleSelector::applyProperty):
216 2006-09-16 Brady Eidson <beidson@apple.com>
220 Pruning code relating to WebKit's icon loader
222 * bridge/mac/WebCoreIconDatabaseBridge.h:
223 * bridge/mac/WebCoreIconDatabaseBridge.mm:
224 * loader/icon/IconDatabase.h:
226 (WebCore::Frame::endIfNotLoading): Moved a FIXME in from WebKit's IconLoader to
229 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
233 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10885
234 Auto-generate DOMHTMLDocument for the Objective-C bindings
236 * DerivedSources.make:
237 * WebCore.xcodeproj/project.pbxproj:
238 * bindings/objc/DOMExtensions.h:
239 * bindings/objc/DOMHTML.mm:
240 (-[DOMHTMLDocument createDocumentFragmentWithText:]):
241 * bindings/objc/DOMHTMLDocument.h: Removed.
242 * bindings/objc/DOMHTMLDocument.mm: Removed.
243 * bindings/objc/PublicDOMInterfaces.h:
244 * bindings/scripts/CodeGeneratorObjC.pm:
245 * html/HTMLDocument.idl:
246 * platform/DeprecatedString.h:
247 (WebCore::DeprecatedString::operator NSString*):
249 2006-09-16 Rob Buis <buis@kde.org>
253 http://bugzilla.opendarwin.org/show_bug.cgi?id=10866
254 Code in kcanvas/ should not use Private
256 Remove Private classes and tweak coding style.
258 WARNING: NO TEST CASES ADDED OR CHANGED
260 * kcanvas/RenderPath.cpp:
261 (WebCore::RenderPath::RenderPath):
262 (WebCore::RenderPath::~RenderPath):
263 (WebCore::RenderPath::localTransform):
264 (WebCore::RenderPath::setLocalTransform):
265 (WebCore::RenderPath::fillContains):
266 (WebCore::RenderPath::relativeBBox):
267 (WebCore::RenderPath::setPath):
268 (WebCore::RenderPath::path):
269 (WebCore::RenderPath::layout):
270 * kcanvas/RenderPath.h:
271 * kcanvas/RenderSVGContainer.cpp:
272 (WebCore::RenderSVGContainer::RenderSVGContainer):
273 (WebCore::RenderSVGContainer::~RenderSVGContainer):
274 (WebCore::RenderSVGContainer::drawsContents):
275 (WebCore::RenderSVGContainer::setDrawsContents):
276 (WebCore::RenderSVGContainer::localTransform):
277 (WebCore::RenderSVGContainer::setLocalTransform):
278 (WebCore::RenderSVGContainer::layout):
279 (WebCore::RenderSVGContainer::paint):
280 (WebCore::RenderSVGContainer::setViewport):
281 (WebCore::RenderSVGContainer::viewport):
282 (WebCore::RenderSVGContainer::setViewBox):
283 (WebCore::RenderSVGContainer::viewBox):
284 (WebCore::RenderSVGContainer::setAlign):
285 (WebCore::RenderSVGContainer::align):
286 (WebCore::RenderSVGContainer::fillContains):
287 (WebCore::RenderSVGContainer::strokeContains):
288 (WebCore::RenderSVGContainer::setSlice):
289 (WebCore::RenderSVGContainer::slice):
290 * kcanvas/RenderSVGContainer.h:
291 * kcanvas/device/KRenderingFillPainter.cpp:
292 (WebCore::KRenderingFillPainter::KRenderingFillPainter):
293 (WebCore::KRenderingFillPainter::~KRenderingFillPainter):
294 (WebCore::KRenderingFillPainter::fillRule):
295 (WebCore::KRenderingFillPainter::setFillRule):
296 (WebCore::KRenderingFillPainter::opacity):
297 (WebCore::KRenderingFillPainter::setOpacity):
298 * kcanvas/device/KRenderingFillPainter.h:
299 * kcanvas/device/KRenderingPaintServerGradient.cpp:
300 (WebCore::KRenderingPaintServerGradient::KRenderingPaintServerGradient):
301 (WebCore::KRenderingPaintServerGradient::~KRenderingPaintServerGradient):
302 (WebCore::KRenderingPaintServerGradient::gradientStops):
303 (WebCore::KRenderingPaintServerGradient::setGradientStops):
304 (WebCore::KRenderingPaintServerGradient::spreadMethod):
305 (WebCore::KRenderingPaintServerGradient::setGradientSpreadMethod):
306 (WebCore::KRenderingPaintServerGradient::boundingBoxMode):
307 (WebCore::KRenderingPaintServerGradient::setBoundingBoxMode):
308 (WebCore::KRenderingPaintServerGradient::gradientTransform):
309 (WebCore::KRenderingPaintServerGradient::setGradientTransform):
310 (WebCore::KRenderingPaintServerLinearGradient::KRenderingPaintServerLinearGradient):
311 (WebCore::KRenderingPaintServerLinearGradient::~KRenderingPaintServerLinearGradient):
312 (WebCore::KRenderingPaintServerLinearGradient::gradientStart):
313 (WebCore::KRenderingPaintServerLinearGradient::setGradientStart):
314 (WebCore::KRenderingPaintServerLinearGradient::gradientEnd):
315 (WebCore::KRenderingPaintServerLinearGradient::setGradientEnd):
316 (WebCore::KRenderingPaintServerRadialGradient::KRenderingPaintServerRadialGradient):
317 (WebCore::KRenderingPaintServerRadialGradient::~KRenderingPaintServerRadialGradient):
318 (WebCore::KRenderingPaintServerRadialGradient::gradientCenter):
319 (WebCore::KRenderingPaintServerRadialGradient::setGradientCenter):
320 (WebCore::KRenderingPaintServerRadialGradient::gradientFocal):
321 (WebCore::KRenderingPaintServerRadialGradient::setGradientFocal):
322 (WebCore::KRenderingPaintServerRadialGradient::gradientRadius):
323 (WebCore::KRenderingPaintServerRadialGradient::setGradientRadius):
324 (WebCore::KRenderingPaintServerGradient::listener):
325 (WebCore::KRenderingPaintServerGradient::setListener):
326 * kcanvas/device/KRenderingPaintServerGradient.h:
327 * kcanvas/device/KRenderingPaintServerPattern.cpp:
328 (WebCore::KRenderingPaintServerPattern::KRenderingPaintServerPattern):
329 (WebCore::KRenderingPaintServerPattern::~KRenderingPaintServerPattern):
330 (WebCore::KRenderingPaintServerPattern::setBbox):
331 (WebCore::KRenderingPaintServerPattern::bbox):
332 (WebCore::KRenderingPaintServerPattern::boundingBoxMode):
333 (WebCore::KRenderingPaintServerPattern::setBoundingBoxMode):
334 (WebCore::KRenderingPaintServerPattern::tile):
335 (WebCore::KRenderingPaintServerPattern::setTile):
336 (WebCore::KRenderingPaintServerPattern::patternTransform):
337 (WebCore::KRenderingPaintServerPattern::setPatternTransform):
338 (WebCore::KRenderingPaintServerPattern::listener):
339 (WebCore::KRenderingPaintServerPattern::setListener):
340 * kcanvas/device/KRenderingPaintServerPattern.h:
341 * kcanvas/device/KRenderingPaintServerSolid.cpp:
342 (WebCore::KRenderingPaintServerSolid::KRenderingPaintServerSolid):
343 (WebCore::KRenderingPaintServerSolid::~KRenderingPaintServerSolid):
344 (WebCore::KRenderingPaintServerSolid::color):
345 (WebCore::KRenderingPaintServerSolid::setColor):
346 * kcanvas/device/KRenderingPaintServerSolid.h:
347 * kcanvas/device/KRenderingStrokePainter.cpp:
348 (WebCore::KRenderingStrokePainter::KRenderingStrokePainter):
349 (WebCore::KRenderingStrokePainter::~KRenderingStrokePainter):
350 (WebCore::KRenderingStrokePainter::strokeWidth):
351 (WebCore::KRenderingStrokePainter::setStrokeWidth):
352 (WebCore::KRenderingStrokePainter::strokeMiterLimit):
353 (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
354 (WebCore::KRenderingStrokePainter::strokeCapStyle):
355 (WebCore::KRenderingStrokePainter::setStrokeCapStyle):
356 (WebCore::KRenderingStrokePainter::strokeJoinStyle):
357 (WebCore::KRenderingStrokePainter::setStrokeJoinStyle):
358 (WebCore::KRenderingStrokePainter::dashOffset):
359 (WebCore::KRenderingStrokePainter::setDashOffset):
360 (WebCore::KRenderingStrokePainter::dashArray):
361 (WebCore::KRenderingStrokePainter::setDashArray):
362 (WebCore::KRenderingStrokePainter::opacity):
363 (WebCore::KRenderingStrokePainter::setOpacity):
364 (WebCore::KRenderingStrokePainter::dirty):
365 (WebCore::KRenderingStrokePainter::setDirty):
366 * kcanvas/device/KRenderingStrokePainter.h:
368 2006-09-16 Mark Rowe <opendarwin.org@bdash.net.nz>
372 http://bugzilla.opendarwin.org/show_bug.cgi?id=10887
375 * bindings/objc/DOMPrivate.h: Remove reference to DOMEventPrivate.h.
377 2006-09-16 Sam Weinig <sam.weinig@gmail.com>
381 Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10886
382 REGRESSION (r16387): Reproducible crash when mousing over HTML document
384 - Special case method [DOMNode ownerDocument] to call document() instead
385 or ownerDocument() to return to the old behavior.
387 * WebCore.xcodeproj/project.pbxproj:
388 * bindings/scripts/CodeGeneratorObjC.pm:
390 2006-09-15 Brady Eidson <beidson@apple.com>
392 Reviewed by Tim Hatcher
394 <rdar://problem/4730811> - New IconDatabase needs to attempt to create its path.
395 Otherwise new installs and new user accounts won't have any icons because the icon.db cannot be created
397 * loader/icon/IconDatabase.cpp: Removed a now obsolete FIXME
398 (WebCore::makeAllDirectories): Added - candidate to be in a header for "platform neutral file utilities"
399 (WebCore::IconDatabase::open): Make sure the directory exists
401 2006-09-15 Timothy Hatcher <timothy@apple.com>
405 Make new style ObjC methods public API.
407 * WebCore.xcodeproj/project.pbxproj:
408 * bindings/objc/DOMPrivate.h:
409 * bindings/objc/PublicDOMInterfaces.h:
411 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
415 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10870
416 Auto-generate DOMNode for the Objective-C bindings
418 * DerivedSources.make:
419 * WebCore.xcodeproj/project.pbxproj:
420 * bindings/objc/DOM.mm:
421 (-[DOMNode boundingBox]):
422 (-[DOMNode lineBoxRects]):
423 * bindings/objc/DOMEvents.h:
424 * bindings/objc/DOMExtensions.h:
425 * bindings/objc/DOMNode.h: Removed.
426 * bindings/objc/DOMNode.mm: Removed.
427 * bindings/objc/PublicDOMInterfaces.h:
428 * bindings/scripts/CodeGeneratorObjC.pm:
431 2006-09-15 Timothy Hatcher <timothy@apple.com>
435 Removed alter selection logic from WebCoreFrameBridge and moved to SelectionController.
437 * bridge/mac/WebCoreFrameBridge.h:
438 * bridge/mac/WebCoreFrameBridge.mm:
439 (-[WebCoreFrameBridge centerSelectionInVisibleArea]):
440 (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
441 (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
442 (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
443 (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
444 (-[WebCoreFrameBridge replaceMarkedTextWithText:]):
445 (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
446 (-[WebCoreFrameBridge increaseSelectionListLevel]):
447 (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
448 (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
449 (-[WebCoreFrameBridge decreaseSelectionListLevel]):
450 (-[WebCoreFrameBridge insertLineBreak]):
451 (-[WebCoreFrameBridge insertParagraphSeparator]):
452 (-[WebCoreFrameBridge insertParagraphSeparatorInQuotedContent]):
453 (-[WebCoreFrameBridge insertText:selectInsertedText:]):
454 (-[WebCoreFrameBridge deleteKeyPressedWithSmartDelete:granularity:]):
455 (-[WebCoreFrameBridge forwardDeleteKeyPressedWithSmartDelete:granularity:]):
456 (createMouseEventFromDraggingInfo):
457 * editing/SelectionController.cpp:
458 (WebCore::SelectionController::moveTo):
459 (WebCore::SelectionController::setSelection):
460 (WebCore::SelectionController::modify):
461 (WebCore::SelectionController::setBase):
462 (WebCore::SelectionController::setExtent):
463 * editing/SelectionController.h:
465 (WebCore::Frame::revealSelection):
466 (WebCore::Frame::revealCaret):
469 2006-09-15 Brady Eidson <beidson@apple.com>
473 Added the ability to get a mutable char* from a CString, which will copy the internal
474 buffer if the ref count is greater than 1 so your mutable char* won't affect any other
475 referrer of that buffer.
477 * platform/CString.cpp:
478 (WebCore::CString::mutableData):
479 (WebCore::CString::copyBufferIfNeeded):
480 * platform/CString.h:
482 2006-09-15 Justin Garcia <justin.garcia@apple.com>
486 <rdar://problem/4674869>
487 REGRESSION: selecting text to write over results in cursor jumping to middle of next line
489 * editing/SelectionController.cpp:
490 (WebCore::SelectionController::modify): Added lineBoundary to test fix.
491 * editing/visible_units.cpp:
492 (WebCore::endOfLine): If the last box on the line is a lineBreak, return the
493 position before it, not after it.
495 2006-09-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
499 http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
500 Bug 10864: Linux\GDK build fixes
502 * Projects/gdk/webcore-gdk.bkl:
503 * WebCoreSources.bkl:
504 * platform/gdk/FontCacheGdk.cpp:
505 * platform/gdk/FontDataGdk.cpp:
506 (WebCore::FontData::platformInit):
507 * platform/gdk/FontGdk.cpp:
508 (WebCore::Font::drawGlyphs):
509 * platform/gdk/FrameGdk.cpp:
510 (WebCore::FrameGdk::handleGdkEvent):
511 * platform/gdk/FrameGdk.h:
512 * platform/gdk/ImageGdk.cpp: Added.
513 (WebCore::Image::initPlatformData):
514 (WebCore::Image::invalidatePlatformData):
515 (WebCore::Image::loadPlatformResource):
516 (WebCore::Image::supportsType):
517 * platform/gdk/RenderPopupMenuGdk.cpp:
518 (WebCore::RenderPopupMenuGdk::hidePopup):
519 * platform/gdk/RenderPopupMenuGdk.h:
520 * platform/gdk/ScreenGdk.cpp:
521 (WebCore::drawableForPage):
522 (WebCore::screenRect):
523 (WebCore::screenDepth):
524 (WebCore::usableScreenRect):
525 (WebCore::scaleFactor):
526 * platform/gdk/SystemTimeLinux.cpp:
527 (WebCore::currentTime):
528 * platform/gdk/TemporaryLinkStubs.cpp:
529 (FrameGdk::bindingRootObject):
530 (FrameGdk::markMisspellings):
531 (WebCore::screenDepthPerComponent):
532 (WebCore::screenIsMonochrome):
533 (WebCore::fileButtonChooseFileLabel):
534 (WebCore::fileButtonNoFileSelectedLabel):
535 (FrameGdk::shouldChangeSelection):
536 (FrameGdk::respondToChangedSelection):
537 (FrameGdk::respondToChangedContents):
539 (PlatformScrollBar::PlatformScrollBar):
540 (PlatformScrollBar::~PlatformScrollBar):
541 (PlatformScrollBar::width):
542 (PlatformScrollBar::height):
543 (PlatformScrollBar::setEnabled):
544 (PlatformScrollBar::paint):
545 (PlatformScrollBar::setScrollBarValue):
546 (PlatformScrollBar::setKnobProportion):
547 (PlatformScrollBar::setRect):
548 (ScrollBar::ScrollBar):
549 (FileChooser::FileChooser):
550 (FileChooser::~FileChooser):
551 (FileChooser::openFileChooser):
552 (FileChooser::basenameForWidth):
553 (FileChooser::uploadControlDetaching):
554 (FileChooser::chooseFile):
557 (Icon::newIconForFile):
559 (IconLoader::stopLoading):
560 (IconLoader::startLoading):
561 (IconLoader::createForFrame):
562 (IconDatabase::isIconExpiredForIconURL):
563 (IconDatabase::hasEntryForIconURL):
564 (IconDatabase::sharedIconDatabase):
565 * platform/gdk/WidgetGdk.cpp:
568 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
572 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10835
573 Fix svg memory leaks.
575 Reworked SVGList to deal with RefPtr's for ptr types
576 which makes manual refcounting unnecessary, and is much safer.
578 Removing all virtual functions (nullItem) from SVGList, and
579 also remove SVGListBase. Switch to a similar concept like
580 Vector/VectorTraits (see new file SVGListTraits.h).
582 Credits go to Eric/Maciej for the inspiration.
584 * CMakeLists.txt: Add SVGListTraits.cpp to build
585 * WebCore.xcodeproj/project.pbxproj: Ditto.
586 * bindings/scripts/CodeGeneratorJS.pm: Generator changes for SVGTransform/PathSeg/LengthList (now RefPtr based)
587 * kcanvas/RenderSVGText.cpp: Add some get() methods, as SVGLengthList is RefPtr based now.
588 (WebCore::RenderSVGText::translationForAttributes):
589 * ksvg2/svg/SVGAnimateTransformElement.cpp: Add some get() methods, as SVGTransformList is RefPtr based now.
590 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
591 * ksvg2/svg/SVGElementInstanceList.cpp: Be RefPtr based.
592 (WebCore::SVGElementInstanceList::SVGElementInstanceList):
593 * ksvg2/svg/SVGElementInstanceList.h:
594 * ksvg2/svg/SVGLengthList.cpp: Ditto.
595 (WebCore::SVGLengthList::SVGLengthList):
596 * ksvg2/svg/SVGLengthList.h: Ditto.
597 * ksvg2/svg/SVGList.h: Rewrote, as described above.
598 (WebCore::SVGListTypeOperations::nullItem):
599 (WebCore::SVGList::SVGList):
600 (WebCore::SVGList::~SVGList):
601 (WebCore::SVGList::clear):
602 (WebCore::SVGList::getFirst):
603 (WebCore::SVGList::getLast):
604 (WebCore::SVGList::getItem):
605 (WebCore::SVGList::replaceItem):
606 (WebCore::SVGList::removeItem):
607 * ksvg2/svg/SVGListTraits.cpp: Added.
608 * ksvg2/svg/SVGListTraits.h: Added.
610 * ksvg2/svg/SVGPathElement.cpp: Add some get() methods, as SVGPathSegList is RefPtr based now.
611 (WebCore::SVGPathElement::toPathData):
612 * ksvg2/svg/SVGPathSegList.cpp: Be RefPtr based.
613 (WebCore::SVGPathSegList::SVGPathSegList):
614 * ksvg2/svg/SVGPathSegList.h: Ditto.
615 * ksvg2/svg/SVGTransform.cpp: Style cleanup.
616 (SVGTransform::SVGTransform):
617 * ksvg2/svg/SVGTransformList.cpp: Be RefPtr based.
618 (SVGTransformList::SVGTransformList):
619 (SVGTransformList::createSVGTransformFromMatrix):
620 (SVGTransformList::consolidate):
621 * ksvg2/svg/SVGTransformList.h: Ditto.
622 * ksvg2/svg/SVGTransformable.cpp: Fix RefPtr usage of SVGTransform.
623 (SVGTransformable::parseTransformAttribute):
625 2006-09-15 Nikolas Zimmermann <zimmermann@kde.org>
627 Reviewed by eseidel. Landed by eseidel.
629 Fix build on Qt/Linux and implement Frame::addMessageToConsole to
630 be able to see javascript errors for instance.
633 * platform/qt/FrameQt.h:
634 * platform/qt/FrameQt.cpp: Implement addMessageToConsole.
635 (WebCore::FrameQt::bindingRootObject):
636 * platform/qt/TemporaryLinkStubs.cp
637 (WebCore::IconDatabase::hasEntryForIconURL):
638 (WebCore::IconDatabase::sharedIconDatabase):
640 2006-09-15 Sam Weinig <sam.weinig@gmail.com>
644 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10869
645 Auto-generate the internal methods for the Objective-C bindings
647 - Auto-generates the internal method (ie. the _fooBar and _fooBarWith methods)
648 implementations where standard. For cases where a custom implementation was
649 needed, added a [ObjCNoInternal] extended attribute to the corresponding IDL.
651 - Some general cleanup of some of the non-generated bindings, to bring them in-
652 line with what the generated bindings look like.
654 * bindings/objc/DOM.mm:
655 (-[DOMNode description]):
656 * bindings/objc/DOMCSS.mm:
657 (-[DOMCSSPrimitiveValue WebCore::]):
658 (-[DOMDocument getComputedStyle::]):
659 (-[DOMDocument getMatchedCSSRules::]):
660 * bindings/objc/DOMEvents.mm:
661 (-[DOMEvent WebCore::]):
662 * bindings/objc/DOMHTML.mm:
663 * bindings/objc/DOMHTMLDocument.mm:
664 (-[DOMHTMLDocument title]):
665 (-[DOMHTMLDocument setTitle:]):
666 (-[DOMHTMLDocument referrer]):
667 (-[DOMHTMLDocument domain]):
668 (-[DOMHTMLDocument URL]):
669 (-[DOMHTMLDocument body]):
670 (-[DOMHTMLDocument setBody:]):
671 (-[DOMHTMLDocument images]):
672 (-[DOMHTMLDocument applets]):
673 (-[DOMHTMLDocument links]):
674 (-[DOMHTMLDocument forms]):
675 (-[DOMHTMLDocument anchors]):
676 (-[DOMHTMLDocument cookie]):
677 (-[DOMHTMLDocument setCookie:]):
678 (-[DOMHTMLDocument open]):
679 (-[DOMHTMLDocument close]):
680 (-[DOMHTMLDocument write:]):
681 (-[DOMHTMLDocument writeln:]):
682 (-[DOMHTMLDocument getElementById:]):
683 (-[DOMHTMLDocument getElementsByName:]):
684 (-[DOMHTMLDocument WebCore::]):
685 (+[DOMHTMLDocument _HTMLDocumentWith:WebCore::]):
686 * bindings/objc/DOMHTMLOptionElement.mm:
687 (-[DOMHTMLOptionElement form]):
688 (-[DOMHTMLOptionElement defaultSelected]):
689 (-[DOMHTMLOptionElement setDefaultSelected:]):
690 (-[DOMHTMLOptionElement text]):
691 (-[DOMHTMLOptionElement index]):
692 (-[DOMHTMLOptionElement disabled]):
693 (-[DOMHTMLOptionElement setDisabled:]):
694 (-[DOMHTMLOptionElement label]):
695 (-[DOMHTMLOptionElement setLabel:]):
696 (-[DOMHTMLOptionElement selected]):
697 (-[DOMHTMLOptionElement setSelected:]):
698 (-[DOMHTMLOptionElement value]):
699 (-[DOMHTMLOptionElement setValue:]):
700 (-[DOMHTMLOptionElement WebCore::]):
701 (+[DOMHTMLOptionElement _HTMLOptionElementWith:WebCore::]):
702 * bindings/objc/DOMInternal.h:
703 * bindings/objc/DOMNode.mm:
704 (-[DOMNode dealloc]):
705 (-[DOMNode finalize]):
706 (-[DOMNode nodeName]):
707 (-[DOMNode nodeValue]):
708 (-[DOMNode setNodeValue:]):
709 (-[DOMNode nodeType]):
710 (-[DOMNode parentNode]):
711 (-[DOMNode childNodes]):
712 (-[DOMNode firstChild]):
713 (-[DOMNode lastChild]):
714 (-[DOMNode previousSibling]):
715 (-[DOMNode nextSibling]):
716 (-[DOMNode attributes]):
717 (-[DOMNode ownerDocument]):
718 (-[DOMNode insertBefore::]):
719 (-[DOMNode replaceChild::]):
720 (-[DOMNode removeChild:]):
721 (-[DOMNode appendChild:]):
722 (-[DOMNode hasChildNodes]):
723 (-[DOMNode cloneNode:]):
724 (-[DOMNode normalize]):
725 (-[DOMNode isSupported::]):
726 (-[DOMNode namespaceURI]):
728 (-[DOMNode setPrefix:]):
729 (-[DOMNode localName]):
730 (-[DOMNode hasAttributes]):
731 (-[DOMNode isSameNode:]):
732 (-[DOMNode isEqualNode:]):
733 (-[DOMNode isDefaultNamespace:]):
734 (-[DOMNode lookupPrefix:]):
735 (-[DOMNode lookupNamespaceURI:]):
736 (-[DOMNode textContent]):
737 (-[DOMNode setTextContent:]):
738 (-[DOMNode boundingBox]):
739 (-[DOMNode lineBoxRects]):
740 * bindings/objc/DOMObject.mm:
741 (-[DOMObject _init]):
742 * bindings/objc/DOMXPath.mm:
743 (-[DOMNativeXPathNSResolver dealloc]):
744 (-[DOMNativeXPathNSResolver finalize]):
745 (-[DOMNativeXPathNSResolver WebCore::]):
746 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
747 (+[DOMNativeXPathNSResolver _xpathNSResolverWith:WebCore::]):
748 (-[DOMNativeXPathNSResolver lookupNamespaceURI:]):
749 * bindings/scripts/CodeGeneratorObjC.pm:
750 * bridge/mac/WebCoreFrameBridge.mm:
751 (-[WebCoreFrameBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
752 (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
753 * css/CSSCharsetRule.idl:
754 * css/CSSFontFaceRule.idl:
755 * css/CSSImportRule.idl:
756 * css/CSSMediaRule.idl:
757 * css/CSSPageRule.idl:
758 * css/CSSPrimitiveValue.idl:
760 * css/CSSStyleRule.idl:
761 * css/CSSStyleSheet.idl:
762 * css/CSSUnknownRule.idl:
764 * css/CSSValueList.idl:
765 * css/StyleSheet.idl:
767 * dom/KeyboardEvent.idl:
768 * dom/MouseEvent.idl:
769 * dom/MutationEvent.idl:
770 * dom/NodeIterator.idl:
771 * dom/OverflowEvent.idl:
772 * dom/TreeWalker.idl:
774 * dom/WheelEvent.idl:
776 2006-09-15 Adam Roben <aroben@apple.com>
780 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10865
781 New file upload control should match the width of the old one
783 Make width of new file upload control match the old one as closely as
786 * rendering/RenderFileUploadControl.cpp:
788 2006-09-15 Timothy Hatcher <timothy@apple.com>
792 Remove the SVG IDL files from the Copy Resources phase.
794 * WebCore.xcodeproj/project.pbxproj:
796 2006-09-15 Brady Eidson <beidson@apple.com>
798 Reviewed by Eric Siedel
800 Dumped the use of CGColorRef and directly use the floating point data from
803 This fixes the performance regression found between 16285 and 16286
805 * platform/mac/FontMac.mm:
806 (WebCore::Font::drawComplexText):
807 (WebCore::Font::drawGlyphs):
809 2006-09-14 Mark Rowe <opendarwin.org@bdash.net.nz>
813 http://bugzilla.opendarwin.org/show_bug.cgi?id=10838
814 Bug 10838: REGRESSION: Leaking of WebScriptObjectPrivate
816 FrameMac relies on its cleanupPluginObjects being called to perform cleanup. The virtual
817 Frame::cleanupPluginObjects method is called from Frame's destructor, which results
818 in Frame::cleanupPluginObjects being called rather than FrameMac::cleanupPluginObjects.
820 * bridge/mac/FrameMac.mm:
821 (WebCore::FrameMac::~FrameMac): Call cancelAndClear to ensure that FrameMac::cleanupPluginObjects
822 will be called from Frame::clear
824 (WebCore::Frame::~Frame): Use cancelAndClear.
825 (WebCore::Frame::cancelAndClear): Move cancellation and clearing into a separate method that
829 2006-09-14 Brady Eidson <beidson@apple.com>
831 Reviewed by Maciej's rubber stamp
833 Exact same fix I just made, but in the other method I horked up
834 Also added a reference to the bugzilla in comments
837 (WebCore::Frame::endIfNotLoading):
838 (WebCore::Frame::stop):
840 2006-09-14 Brady Eidson <beidson@apple.com>
844 Fixed a bad iFrame crash, resolving some of the layout test badness
847 (WebCore::Frame::endIfNotLoading):
848 - Added a RefPtr to protect the frame itself to prevent its destruction during this method
850 2006-09-14 Justin Garcia <justin.garcia@apple.com>
854 <rdar://problem/4655880> Up/Down arrows skip over To Do
856 * bridge/mac/WebCoreFrameBridge.mm:
857 (-[WebCoreFrameBridge canDeleteRange:]): Added a FIXME.
858 * dom/Node.cpp: Removed the unused inSameRootEditableElement.
860 * editing/SelectionController.cpp:
861 (WebCore::SelectionController::modify): Added documentboundary to granularities in order test a fix.
862 * editing/visible_units.cpp:
863 (WebCore::previousLinePosition): Use highestEditableRoot so that this function can move from
864 editable content into editable content that's embedded in non-editable content.
865 (WebCore::nextLinePosition): Ditto.
866 (WebCore::startOfEditableContent): Renamed from startOfEditableRoot and use highestEditableRoot.
867 This is the behavior that callers desire. This fixes Command + Up/Down.
868 (WebCore::endOfEditableContent): Ditto.
869 * editing/visible_units.h:
871 2006-09-14 Karthik Kumar <karthikkumar@gmail.com>
873 Reviewed by timothy. Landed by aroben.
875 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10856
876 Windows build fixes after r16360
878 * WebCore.vcproj/WebCore/WebCore.vcproj: Add loader\icon to
879 AdditionalIncludeDirectories
880 * platform/win/TemporaryLinkStubs.cpp: Add link stubs for IconLoader,
882 (IconLoader::stopLoading):
883 (IconLoader::startLoading):
884 (IconLoader::createForFrame):
885 (IconDatabase::isIconExpiredForIconURL):
886 (IconDatabase::hasEntryForIconURL):
887 (IconDatabase::sharedIconDatabase):
889 2006-09-14 Brady Eidson <beidson@apple.com>
891 Part of a build fix for Windows - rest will be working out a mess of temporary link stubs
893 * loader/icon/IconLoader.cpp:
894 (IconLoader::receivedAllData):
896 * page/FramePrivate.h:
898 2006-09-14 Graham Dennis <graham.dennis@gmail.com>
900 Reviewed by Justin Garcia.
902 - http://bugzilla.opendarwin.org/show_bug.cgi?id=10726
903 Crash in ApplyStyleCommand::applyRelativeFontStyleChange
905 * editing/ApplyStyleCommand.cpp:
906 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange): Prevent a crash by
907 makeing sure that the 'beyondEnd' node is after the start node.
909 2006-09-14 MorganL <morlmor@yahoo.com>
913 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10845
914 Various bugs/crashes in ResourceLoaderWin with local files.
916 * platform/ResourceLoaderInternal.h:
917 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
918 * platform/win/ResourceLoaderWin.cpp:
919 (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
920 (WebCore::ResourceLoader::fileLoadTimer):
922 2006-09-13 Brady Eidson <beidson@apple.com>
926 Icon loads now take place in WebCore
928 * WebCore.xcodeproj/project.pbxproj:
929 * bridge/BrowserExtension.h:
930 * bridge/mac/BrowserExtensionMac.h:
931 * bridge/mac/BrowserExtensionMac.mm:
932 - Moved enforcement of a Mozilla Favicon extension elsewhere
934 * bridge/mac/FrameMac.h:
935 * bridge/mac/FrameMac.mm:
936 (WebCore::FrameMac::originalRequestURL):
937 - Added accessor to "original request URL"
939 * bridge/mac/WebCoreFrameBridge.h:
940 - Removed methods to set the iconURL as all loading is now done in WebCore
941 - Added call throughs to notify WebKit an Icon is done loading, and a to get the original request URL
943 * html/HTMLLinkElement.cpp:
944 (WebCore::HTMLLinkElement::process):
945 - Moved enforcement of a Mozilla Favicon extension elsewhere
947 * loader/icon/IconDatabase.cpp:
948 (WebCore::IconDatabase::setIconURLForPageURL):
949 - Changed an ASSERT to correctly handle a sketchy (invalid) situation
951 * loader/icon/IconLoader.h: Added.
952 * loader/icon/IconLoader.cpp: Added.
953 (IconLoader::IconLoader):
954 (IconLoader::createForFrame):
955 - Static factory method with a private constructor to enforce
956 "you MUST have a Frame to create an IconLoader" semantics
957 (IconLoader::~IconLoader):
958 (IconLoader::startLoading):
959 (IconLoader::stopLoading):
960 (IconLoader::receivedData):
961 - ResourceLoaderClient delegate
962 (IconLoader::receivedAllData):
965 * loader/mac/IconLoaderMac.mm: Added.
966 (IconLoader::receivedResponse):
967 (IconLoader::notifyIconChanged):
968 - For now, these are platform specific methods
969 - One to get the HTTP response code of an icon load
970 - The other to call through to the app when the icon has changed (loaded)
974 (WebCore::Frame::iconURL):
975 (WebCore::Frame::setIconURL):
976 - Frame objects now have an inherent icon URL and a way to calculate/access it
977 (WebCore::Frame::endIfNotLoading):
978 - This is where we actually kick off the IconLoader
979 (WebCore::Frame::stop):
980 - Added call to stop loading the icon
982 * page/FramePrivate.h:
983 (WebCore::FramePrivate::FramePrivate):
984 (WebCore::FramePrivate::~FramePrivate):
985 - Added the icon URL as a private member
986 - Added the IconLoader as a private member, and clean it up on deletion
988 * platform/mac/ResourceLoaderMac.mm:
989 (WebCore::ResourceLoader::start): Added a valuable ASSERT
991 2006-09-13 David Hyatt <hyatt@apple.com>
993 Fix for 10841, unable to check checkboxes inside labels.
995 Reviewed by xenon, bradee-oh
999 (WebCore::Element::contains):
1001 * html/HTMLLabelElement.cpp:
1002 (WebCore::HTMLLabelElement::defaultEventHandler):
1004 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
1008 http://bugzilla.opendarwin.org/show_bug.cgi?id=10834
1009 Bug 10834: FileChooser constructor in FileChooserMac appears to overretain m_controller
1011 * platform/mac/FileChooserMac.mm:
1012 (WebCore::FileChooser::FileChooser): Don't over-retain the OpenPanelController.
1014 2006-09-13 Mark Rowe <opendarwin.org@bdash.net.nz>
1018 http://bugzilla.opendarwin.org/show_bug.cgi?id=10836
1019 Bug 10836: REGRESSION: Mac implementation of Font::drawGlyphs leaks a CGColorRef
1021 * platform/mac/FontMac.mm:
1022 (WebCore::Font::drawComplexText): Release CGColorRef after use.
1023 (WebCore::Font::drawGlyphs): Ditto.
1025 2006-09-14 Anders Carlsson <acarlsson@apple.com>
1027 Try fixing the Win32 build.
1029 * bridge/win/FrameWin.h:
1030 * platform/win/TemporaryLinkStubs.cpp:
1031 (FrameWin::bindingRootObject):
1033 2006-09-14 Anders Carlsson <acarlsson@apple.com>
1037 Add USE defines for the generic JavaScriptCore bindings as well as NPAPI bindings.
1039 * bindings/js/kjs_binding.cpp:
1040 (KJS::ScriptInterpreter::createLanguageInstanceForValue):
1041 * bindings/js/kjs_dom.cpp:
1042 (KJS::getRuntimeObject):
1043 * bridge/mac/FrameMac.h:
1045 * html/HTMLAppletElement.cpp:
1046 (WebCore::HTMLAppletElement::~HTMLAppletElement):
1047 (WebCore::HTMLAppletElement::detach):
1048 * html/HTMLAppletElement.h:
1049 * html/HTMLEmbedElement.cpp:
1050 (WebCore::HTMLEmbedElement::~HTMLEmbedElement):
1051 (WebCore::HTMLEmbedElement::detach):
1052 * html/HTMLEmbedElement.h:
1053 * html/HTMLObjectElement.cpp:
1054 (WebCore::HTMLObjectElement::~HTMLObjectElement):
1055 (WebCore::HTMLObjectElement::detach):
1056 * html/HTMLObjectElement.h:
1057 * html/HTMLPlugInElement.cpp:
1058 (WebCore::HTMLPlugInElement::HTMLPlugInElement):
1059 (WebCore::HTMLPlugInElement::~HTMLPlugInElement):
1060 (WebCore::HTMLPlugInElement::createNPObject):
1061 * html/HTMLPlugInElement.h:
1064 2006-09-13 David Hyatt <hyatt@apple.com>
1066 Clean up the XBL and XSLT ifdefs to be consistent with the SVG
1067 and XPath ifdefs. KHTML_NO_XBL is flipped and is now XBL_SUPPORT.
1068 KHTML_XSLT is now XSLT_SUPPORT.
1070 * WebCore.xcodeproj/project.pbxproj:
1071 * bindings/js/JSXSLTProcessor.cpp:
1072 * bindings/js/JSXSLTProcessor.h:
1073 * bindings/js/kjs_window.cpp:
1074 (KJS::Window::getValueProperty):
1076 * css/CSSComputedStyleDeclaration.cpp:
1077 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1078 * css/cssparser.cpp:
1079 (WebCore::CSSParser::parseValue):
1080 * css/cssstyleselector.cpp:
1081 (WebCore::CSSStyleSelector::applyProperty):
1083 (WebCore::Document::Document):
1084 (WebCore::Document::~Document):
1085 (WebCore::Document::recalcStyleSelector):
1087 (WebCore::Document::bindingManager):
1089 (WebCore::Node::createRendererIfNeeded):
1090 * dom/ProcessingInstruction.cpp:
1091 (WebCore::ProcessingInstruction::ProcessingInstruction):
1092 (WebCore::ProcessingInstruction::checkStyleSheet):
1093 (WebCore::ProcessingInstruction::setStyleSheet):
1094 * dom/ProcessingInstruction.h:
1095 * dom/XMLTokenizer.cpp:
1096 (WebCore::XMLTokenizer::processingInstruction):
1097 (WebCore::XMLTokenizer::insertErrorMessageBlock):
1098 * dom/XMLTokenizer.h:
1100 (WebCore::Cache::getStatistics):
1102 * loader/CachedResource.h:
1103 (WebCore::CachedResource::):
1104 * loader/CachedResourceClient.h:
1105 * loader/CachedXBLDocument.cpp:
1106 * loader/CachedXBLDocument.h:
1107 * loader/CachedXSLStyleSheet.cpp:
1108 * loader/CachedXSLStyleSheet.h:
1109 * loader/DocLoader.cpp:
1110 * loader/DocLoader.h:
1111 * rendering/RenderStyle.cpp:
1112 (WebCore::StyleCSS3NonInheritedData::StyleCSS3NonInheritedData):
1113 (WebCore::StyleCSS3NonInheritedData::~StyleCSS3NonInheritedData):
1114 (WebCore::StyleCSS3NonInheritedData::operator==):
1115 * rendering/RenderStyle.h:
1116 * xml/XSLImportRule.cpp:
1117 * xml/XSLImportRule.h:
1118 * xml/XSLStyleSheet.cpp:
1119 * xml/XSLStyleSheet.h:
1120 * xml/XSLTProcessor.cpp:
1121 * xml/XSLTProcessor.h:
1123 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
1125 Reviewed by eseidel. Landed by eseidel.
1127 Fix newly introduced memory leaks in SVG.
1128 http://bugzilla.opendarwin.org/show_bug.cgi?id=10835
1130 * ksvg2/svg/SVGList.h:
1131 (WebCore::SVGListBase::~SVGListBase):
1132 (WebCore::SVGListBase::clearVector):
1133 (WebCore::SVGListBase::clear):
1134 (WebCore::SVGList::clearVector):
1136 * ksvg2/svg/SVGNumberList.cpp: s/float/double/ - forgot that!
1137 (SVGNumberList::SVGNumberList):
1138 * ksvg2/svg/SVGNumberList.h: Ditto.
1140 2006-09-13 MorganL <morlmor@yahoo.com>
1142 Reviewed/landed by aroben.
1144 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10833
1145 Windows build needs fixed after move to engine-rendered file upload widget
1147 * WebCore.vcproj/WebCore/WebCore.vcproj: Add RenderFileUpload files,
1148 remove RenderFileButton files
1149 * platform/win/TemporaryLinkStubs.cpp: Add stubs for FileChooser, Icon
1150 (FileChooser::FileChooser):
1151 (FileChooser::~FileChooser):
1152 (FileChooser::openFileChooser):
1153 (FileChooser::basenameForWidth):
1154 (FileChooser::uploadControlDetaching):
1155 (FileChooser::chooseFile):
1156 (WebCore::fileButtonChooseFileLabel):
1157 (WebCore::fileButtonNoFileSelectedLabel):
1160 (Icon::newIconForFile):
1163 2006-09-13 MorganL <morlmor@yahoo.com>
1165 Reviewed/landed by aroben.
1167 Fixes http://bugzilla.opendarwin.org/attachment.cgi?id=10537
1168 Webkit WebCore build fails on Windows
1170 * WebCore.vcproj/WebCore/build-generated-files.sh: export SOURCE_ROOT
1173 2006-09-13 Nikolas Zimmermann <zimmermann@kde.org>
1179 * CMakeLists.txt: Change SVGZoomEvent.idl location & add RenderFileUploadControl
1180 * platform/Icon.h: Add wtf/Platform.h include
1181 * platform/qt/FileChooserQt.cpp: Added as stub. Easy to implement though.
1182 (WebCore::FileChooser::FileChooser):
1183 (WebCore::FileChooser::~FileChooser):
1184 (WebCore::FileChooser::openFileChooser):
1185 (WebCore::FileChooser::basenameForWidth):
1186 (WebCore::FileChooser::uploadControlDetaching):
1187 (WebCore::FileChooser::chooseFile):
1188 * platform/qt/IconQt.cpp: Added as stub.
1189 (WebCore::Icon::Icon):
1190 (WebCore::Icon::~Icon):
1191 (WebCore::Icon::newIconForFile):
1192 (WebCore::Icon::paint):
1193 * platform/qt/TemporaryLinkStubs.cpp: Remove old RenderFileButton code & some new *Labels needed
1194 (searchableIndexIntroduction):
1195 (fileButtonChooseFileLabel):
1196 (fileButtonNoFileSelectedLabel):
1198 2006-09-12 Adam Roben <aroben@apple.com>
1200 Reviewed by eseidel.
1202 Switch back to passing relative paths to generate-bindings.pl when
1203 generating JS bindings.
1205 * DerivedSources.make: Pass in relative paths to generate-bindings.pl
1206 * bindings/scripts/CodeGenerator.pm: Make ScanDirectory never call
1207 chdir and always construct absolute paths instead.
1209 2006-09-12 David Hyatt <hyatt@apple.com>
1211 Fix for bug 3244, implement html4 label support.
1213 Reviewed by mjs, aroben
1215 Added fast/events/label-focus.html
1218 * html/HTMLLabelElement.cpp:
1219 (WebCore::HTMLLabelElement::formElement):
1220 (WebCore::HTMLLabelElement::setActive):
1221 (WebCore::HTMLLabelElement::setHovered):
1222 (WebCore::HTMLLabelElement::defaultEventHandler):
1223 * html/HTMLLabelElement.h:
1225 2006-09-12 Julien Palmas <julien.palmas@gmail.com>
1227 Reviewed by darin. Landed by eseidel.
1229 * ksvg2/svg/svgpathparser.cpp:
1230 (WebCore::SVGPolyParser::parsePoints):
1232 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
1234 Reviewed by Andersca, Maciej, Brady.
1236 - Implemented intersectsNode in the Range Class
1237 to be compliant with Mozilla standard
1240 (WebCore::Range::intersectsNode):
1244 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
1246 Reviewed by eseidel. Landed by eseidel.
1248 Test: svg/W3C-SVG-1.1/struct-dom-01-b.svg (fixed)
1249 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10826
1251 Also finally fixes some long outstanding bugs:
1252 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=9190
1253 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=9229
1254 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10413
1256 Enable all JavaScript SVG bindings. Builds on Qt/Linux & OSX.
1259 * DerivedSources.make:
1260 * WebCore.xcodeproj/project.pbxproj:
1261 * bindings/scripts/CodeGenerator.pm:
1262 * bindings/scripts/CodeGeneratorJS.pm:
1263 * ksvg2/bindings/js/JSSVGElementWrapperFactory.cpp:
1264 * ksvg2/svg/SVGAElement.idl: Added.
1265 * ksvg2/svg/SVGAngle.idl:
1266 * ksvg2/svg/SVGAnimateColorElement.idl: Added.
1267 * ksvg2/svg/SVGAnimateElement.idl: Added.
1268 * ksvg2/svg/SVGAnimateTransformElement.idl: Added.
1269 * ksvg2/svg/SVGAnimatedLengthList.idl: Added.
1270 * ksvg2/svg/SVGAnimatedNumberList.idl: Added.
1271 * ksvg2/svg/SVGAnimatedTransformList.idl: Added.
1272 * ksvg2/svg/SVGAnimationElement.idl: Added.
1273 * ksvg2/svg/SVGCircleElement.idl: Added.
1274 * ksvg2/svg/SVGClipPathElement.idl: Added.
1275 * ksvg2/svg/SVGColor.idl:
1276 * ksvg2/svg/SVGComponentTransferFunctionElement.idl: Added.
1277 * ksvg2/svg/SVGCursorElement.idl: Added.
1278 * ksvg2/svg/SVGDefsElement.idl: Added.
1279 * ksvg2/svg/SVGDescElement.idl: Added.
1280 * ksvg2/svg/SVGEllipseElement.idl: Added.
1281 * ksvg2/svg/SVGEvent.idl:
1282 * ksvg2/svg/SVGExternalResourcesRequired.idl: Added.
1283 * ksvg2/svg/SVGFEBlendElement.idl: Added.
1284 * ksvg2/svg/SVGFEColorMatrixElement.idl: Added.
1285 * ksvg2/svg/SVGFEComponentTransferElement.idl: Added.
1286 * ksvg2/svg/SVGFECompositeElement.idl: Added.
1287 * ksvg2/svg/SVGFEDiffuseLightingElement.idl: Added.
1288 * ksvg2/svg/SVGFEDisplacementMapElement.idl: Added.
1289 * ksvg2/svg/SVGFEDistantLightElement.idl: Added.
1290 * ksvg2/svg/SVGFEFloodElement.idl: Added.
1291 * ksvg2/svg/SVGFEFuncAElement.idl: Added.
1292 * ksvg2/svg/SVGFEFuncBElement.idl: Added.
1293 * ksvg2/svg/SVGFEFuncGElement.idl: Added.
1294 * ksvg2/svg/SVGFEFuncRElement.idl: Added.
1295 * ksvg2/svg/SVGFEGaussianBlurElement.idl: Added.
1296 * ksvg2/svg/SVGFEImageElement.idl: Added.
1297 * ksvg2/svg/SVGFEMergeElement.idl: Added.
1298 * ksvg2/svg/SVGFEMergeNodeElement.idl: Added.
1299 * ksvg2/svg/SVGFEOffsetElement.idl: Added.
1300 * ksvg2/svg/SVGFEPointLightElement.idl: Added.
1301 * ksvg2/svg/SVGFESpecularLightingElement.idl: Added.
1302 * ksvg2/svg/SVGFESpotLightElement.idl: Added.
1303 * ksvg2/svg/SVGFETileElement.idl: Added.
1304 * ksvg2/svg/SVGFETurbulenceElement.idl: Added.
1305 * ksvg2/svg/SVGFilterElement.idl: Added.
1306 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl: Added.
1307 * ksvg2/svg/SVGFitToViewBox.idl: Added.
1308 * ksvg2/svg/SVGForeignObjectElement.idl: Added.
1309 * ksvg2/svg/SVGGElement.idl: Added.
1310 * ksvg2/svg/SVGGradientElement.idl: Added.
1311 * ksvg2/svg/SVGImageElement.idl: Added.
1312 * ksvg2/svg/SVGLangSpace.idl: Added.
1313 * ksvg2/svg/SVGLength.idl:
1314 * ksvg2/svg/SVGLengthList.idl: Added.
1315 * ksvg2/svg/SVGLineElement.idl: Added.
1316 * ksvg2/svg/SVGLinearGradientElement.idl: Added.
1317 * ksvg2/svg/SVGLocatable.idl: Added.
1318 * ksvg2/svg/SVGMarkerElement.idl: Added.
1319 * ksvg2/svg/SVGMaskElement.idl: Added.
1320 * ksvg2/svg/SVGNumberList.idl: Added.
1321 * ksvg2/svg/SVGPaint.idl: Added.
1322 * ksvg2/svg/SVGPathElement.idl:
1323 * ksvg2/svg/SVGPathSeg.idl:
1324 * ksvg2/svg/SVGPatternElement.idl: Added.
1325 * ksvg2/svg/SVGPointList.idl: Added.
1326 * ksvg2/svg/SVGPolygonElement.idl: Added.
1327 * ksvg2/svg/SVGPolylineElement.idl: Added.
1328 * ksvg2/svg/SVGPreserveAspectRatio.idl:
1329 * ksvg2/svg/SVGRadialGradientElement.idl: Added.
1330 * ksvg2/svg/SVGRectElement.idl: Added.
1331 * ksvg2/svg/SVGRenderingIntent.idl: Added.
1332 * ksvg2/svg/SVGSVGElement.idl:
1333 * ksvg2/svg/SVGScriptElement.idl: Added.
1334 * ksvg2/svg/SVGSetElement.idl: Added.
1335 * ksvg2/svg/SVGStopElement.idl: Added.
1336 * ksvg2/svg/SVGStringList.idl: Added.
1337 * ksvg2/svg/SVGStylable.idl: Added.
1338 * ksvg2/svg/SVGStyleElement.idl: Added.
1339 * ksvg2/svg/SVGSwitchElement.idl: Added.
1340 * ksvg2/svg/SVGSymbolElement.idl: Added.
1341 * ksvg2/svg/SVGTRefElement.idl: Added.
1342 * ksvg2/svg/SVGTSpanElement.idl: Added.
1343 * ksvg2/svg/SVGTests.idl: Added.
1344 * ksvg2/svg/SVGTextContentElement.idl: Added.
1345 * ksvg2/svg/SVGTextElement.idl: Added.
1346 * ksvg2/svg/SVGTextPositioningElement.idl: Added.
1347 * ksvg2/svg/SVGTitleElement.idl: Added.
1348 * ksvg2/svg/SVGTransform.idl:
1349 * ksvg2/svg/SVGTransformList.idl: Added.
1350 * ksvg2/svg/SVGTransformable.idl: Added.
1351 * ksvg2/svg/SVGURIReference.idl: Added.
1352 * ksvg2/svg/SVGUnitTypes.idl: Added.
1353 * ksvg2/svg/SVGUseElement.idl: Added.
1354 * ksvg2/svg/SVGViewElement.idl: Added.
1355 * ksvg2/svg/SVGZoomAndPan.idl: Added.
1356 * ksvg2/svg/SVGZoomEvent.idl: Added.
1358 2006-09-12 Adam Roben <aroben@apple.com>
1360 Reviewed by timo, ggaren.
1362 Make Icon ref-counted.
1364 * platform/FileChooser.h: Store m_icon as a RefPtr instead of
1366 * platform/Icon.h: Inherit from Shared<Icon>
1367 * platform/mac/FileChooserMac.mm:
1368 (WebCore::FileChooser::chooseFile): Update m_icon usage
1369 * platform/mac/IconMac.mm:
1370 (WebCore::Icon::newIconForFile): Return a RefPtr instead of an
1373 === Safari-521.26 ===
1375 2006-09-12 Nikolas Zimmermann <zimmermann@kde.org>
1379 Add exception codes to SVGList functions, adjust all code using it.
1381 Move SVGPaintType enums from ksvg.h into SVGPaint (needed for js generation)
1382 Move SVGUnitTypes enums from ksvg.h into it's own file SVGUnitType.h (ditto)
1383 Move SVGRenderingIntent enums from ksvg.h into it's own file SVGRenderingIntent.h (ditto)
1384 Move SVGZoomAndPan enums from ksvg.h into SVGSVGElement (ditto)
1385 Move SVGFE* related enums into their respecitive classes.
1387 Fix JSSVGNumber to operator on doubles, instead of floats.
1389 * ksvg2/bindings/js/JSSVGNumber.cpp:
1390 (WebCore::getJSSVGNumber):
1391 * ksvg2/bindings/js/JSSVGNumber.h:
1392 (WebCore::JSSVGNumber::JSSVGNumber):
1393 * ksvg2/css/SVGCSSParser.cpp:
1394 (WebCore::CSSParser::parseSVGValue):
1395 (WebCore::CSSParser::parseSVGPaint):
1396 * ksvg2/css/SVGRenderStyleDefs.cpp:
1397 (StyleFillData::operator==):
1399 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1400 (WebCore::KSVGPainterFactory::isFilled):
1401 (WebCore::KSVGPainterFactory::fillPaintServer):
1402 (WebCore::KSVGPainterFactory::isStroked):
1403 (WebCore::KSVGPainterFactory::strokePaintServer):
1404 * ksvg2/misc/KSVGTimeScheduler.cpp:
1405 (WebCore::SVGTimer::notifyAll):
1406 * ksvg2/svg/SVGAnimateColorElement.cpp:
1407 (WebCore::SVGAnimateColorElement::handleTimerEvent):
1408 * ksvg2/svg/SVGAnimateTransformElement.cpp:
1409 (WebCore::SVGAnimateTransformElement::SVGAnimateTransformElement):
1410 (WebCore::SVGAnimateTransformElement::parseMappedAttribute):
1411 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
1412 (WebCore::SVGAnimateTransformElement::parseTransformValue):
1413 * ksvg2/svg/SVGAnimateTransformElement.h:
1414 * ksvg2/svg/SVGAnimatedTemplate.h:
1415 * ksvg2/svg/SVGAnimationElement.cpp:
1416 (SVGAnimationElement::getSimpleDuration):
1417 (SVGAnimationElement::parseMappedAttribute):
1418 (SVGAnimationElement::setTargetAttribute):
1419 * ksvg2/svg/SVGAnimationElement.h:
1420 * ksvg2/svg/SVGClipPathElement.cpp:
1421 (SVGClipPathElement::SVGClipPathElement):
1422 (SVGClipPathElement::parseMappedAttribute):
1423 (SVGClipPathElement::canvasResource):
1424 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1425 (SVGComponentTransferFunctionElement::transferFunction):
1426 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1427 (WebCore::SVGComponentTransferFunctionElement::):
1428 * ksvg2/svg/SVGDocument.cpp:
1429 (WebCore::SVGDocument::dispatchZoomEvent):
1430 (WebCore::SVGDocument::dispatchScrollEvent):
1431 * ksvg2/svg/SVGFEBlendElement.cpp:
1432 (WebCore::SVGFEBlendElement::parseMappedAttribute):
1433 (WebCore::SVGFEBlendElement::filterEffect):
1434 * ksvg2/svg/SVGFEBlendElement.h:
1435 (WebCore::SVGFEBlendElement::):
1436 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1437 (SVGFEColorMatrixElement::parseMappedAttribute):
1438 (SVGFEColorMatrixElement::filterEffect):
1439 * ksvg2/svg/SVGFEColorMatrixElement.h:
1440 (WebCore::SVGFEColorMatrixElement::):
1441 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1442 (WebCore::SVGFEComponentTransferElement::parseMappedAttribute):
1443 (WebCore::SVGFEComponentTransferElement::filterEffect):
1444 * ksvg2/svg/SVGFEComponentTransferElement.h:
1445 * ksvg2/svg/SVGFECompositeElement.cpp:
1446 (SVGFECompositeElement::parseMappedAttribute):
1447 (SVGFECompositeElement::filterEffect):
1448 * ksvg2/svg/SVGFECompositeElement.h:
1449 (WebCore::SVGFECompositeElement::):
1450 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1451 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1452 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
1453 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1454 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1455 (SVGFEDisplacementMapElement::parseMappedAttribute):
1456 (SVGFEDisplacementMapElement::filterEffect):
1457 * ksvg2/svg/SVGFEDisplacementMapElement.h:
1458 (WebCore::SVGFEDisplacementMapElement::):
1459 * ksvg2/svg/SVGFEFloodElement.cpp:
1460 (WebCore::SVGFEFloodElement::parseMappedAttribute):
1461 (WebCore::SVGFEFloodElement::filterEffect):
1462 * ksvg2/svg/SVGFEFloodElement.h:
1463 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1464 (SVGFEGaussianBlurElement::parseMappedAttribute):
1465 (SVGFEGaussianBlurElement::filterEffect):
1466 * ksvg2/svg/SVGFEGaussianBlurElement.h:
1467 * ksvg2/svg/SVGFEMergeElement.cpp:
1468 (SVGFEMergeElement::filterEffect):
1469 * ksvg2/svg/SVGFEMergeNodeElement.cpp:
1470 (SVGFEMergeNodeElement::parseMappedAttribute):
1471 * ksvg2/svg/SVGFEMergeNodeElement.h:
1472 * ksvg2/svg/SVGFEOffsetElement.cpp:
1473 (SVGFEOffsetElement::parseMappedAttribute):
1474 (SVGFEOffsetElement::filterEffect):
1475 * ksvg2/svg/SVGFEOffsetElement.h:
1476 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1477 (SVGFESpecularLightingElement::parseMappedAttribute):
1478 (SVGFESpecularLightingElement::filterEffect):
1479 * ksvg2/svg/SVGFESpecularLightingElement.h:
1480 * ksvg2/svg/SVGFETileElement.cpp:
1481 (WebCore::SVGFETileElement::parseMappedAttribute):
1482 (WebCore::SVGFETileElement::filterEffect):
1483 * ksvg2/svg/SVGFETileElement.h:
1484 * ksvg2/svg/SVGFETurbulenceElement.h:
1485 (WebCore::SVGFETurbulenceElement::):
1486 * ksvg2/svg/SVGFilterElement.cpp:
1487 (SVGFilterElement::SVGFilterElement):
1488 (SVGFilterElement::parseMappedAttribute):
1489 (SVGFilterElement::canvasResource):
1490 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
1491 (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
1492 * ksvg2/svg/SVGGradientElement.cpp:
1493 (SVGGradientElement::SVGGradientElement):
1494 (SVGGradientElement::parseMappedAttribute):
1495 * ksvg2/svg/SVGGradientElement.h:
1496 (WebCore::SVGGradientElement::):
1497 * ksvg2/svg/SVGHelper.cpp:
1498 (WebCore::SVGHelper::ParseSeperatedList):
1499 * ksvg2/svg/SVGLengthList.cpp:
1500 (WebCore::SVGLengthList::parse):
1501 * ksvg2/svg/SVGLinearGradientElement.cpp:
1502 (SVGLinearGradientElement::buildGradient):
1503 * ksvg2/svg/SVGList.h:
1504 (WebCore::SVGListBase::clear):
1505 (WebCore::SVGListBase::initialize):
1506 (WebCore::SVGListBase::getItem):
1507 (WebCore::SVGListBase::insertItemBefore):
1508 (WebCore::SVGListBase::replaceItem):
1509 (WebCore::SVGListBase::removeItem):
1510 (WebCore::SVGListBase::appendItem):
1511 * ksvg2/svg/SVGLocatable.cpp:
1512 * ksvg2/svg/SVGLocatable.h:
1513 * ksvg2/svg/SVGMarkerElement.h:
1514 (WebCore::SVGMarkerElement::):
1515 * ksvg2/svg/SVGNumberList.cpp:
1516 (SVGNumberList::parse):
1517 * ksvg2/svg/SVGPaint.cpp:
1518 (WebCore::SVGPaint::SVGPaint):
1519 (WebCore::SVGPaint::uri):
1520 (WebCore::SVGPaint::setUri):
1521 (WebCore::SVGPaint::setPaint):
1522 * ksvg2/svg/SVGPaint.h:
1523 (WebCore::SVGPaint::):
1524 * ksvg2/svg/SVGPathElement.cpp:
1525 (WebCore::SVGPathElement::svgMoveTo):
1526 (WebCore::SVGPathElement::svgLineTo):
1527 (WebCore::SVGPathElement::svgLineToHorizontal):
1528 (WebCore::SVGPathElement::svgLineToVertical):
1529 (WebCore::SVGPathElement::svgCurveToCubic):
1530 (WebCore::SVGPathElement::svgCurveToCubicSmooth):
1531 (WebCore::SVGPathElement::svgCurveToQuadratic):
1532 (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
1533 (WebCore::SVGPathElement::svgArcTo):
1534 (WebCore::SVGPathElement::svgClosePath):
1535 (WebCore::SVGPathElement::parseMappedAttribute):
1536 (WebCore::SVGPathElement::toPathData):
1537 * ksvg2/svg/SVGPatternElement.cpp:
1538 (WebCore::SVGPatternElement::SVGPatternElement):
1539 (WebCore::SVGPatternElement::parseMappedAttribute):
1540 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
1541 (WebCore::SVGPatternElement::drawPatternContentIntoTile):
1542 * ksvg2/svg/SVGPolyElement.cpp:
1543 (SVGPolyElement::parseMappedAttribute):
1544 (SVGPolyElement::svgPolyTo):
1545 (SVGPolyElement::notifyAttributeChange):
1546 * ksvg2/svg/SVGPolygonElement.cpp:
1547 (SVGPolygonElement::toPathData):
1548 * ksvg2/svg/SVGPolylineElement.cpp:
1549 (SVGPolylineElement::toPathData):
1550 * ksvg2/svg/SVGRadialGradientElement.cpp:
1551 (WebCore::SVGRadialGradientElement::buildGradient):
1552 * ksvg2/svg/SVGRenderingIntent.h: Added.
1553 (WebCore::SVGRenderingIntent::):
1554 (WebCore::SVGRenderingIntent::SVGRenderingIntent):
1555 (WebCore::SVGRenderingIntent::~SVGRenderingIntent):
1556 * ksvg2/svg/SVGSVGElement.h:
1557 (WebCore::SVGSVGElement::):
1558 * ksvg2/svg/SVGScriptElement.cpp:
1559 (WebCore::SVGScriptElement::type):
1560 (WebCore::SVGScriptElement::setType):
1561 (WebCore::SVGScriptElement::parseMappedAttribute):
1562 * ksvg2/svg/SVGScriptElement.h:
1563 * ksvg2/svg/SVGStringList.cpp:
1564 (WebCore::SVGStringList::reset):
1565 * ksvg2/svg/SVGStyledLocatableElement.cpp:
1566 (SVGStyledLocatableElement::getTransformToElement):
1567 * ksvg2/svg/SVGStyledLocatableElement.h:
1568 * ksvg2/svg/SVGStyledTransformableElement.cpp:
1569 (SVGStyledTransformableElement::parseMappedAttribute):
1570 (SVGStyledTransformableElement::getTransformToElement):
1571 * ksvg2/svg/SVGStyledTransformableElement.h:
1572 * ksvg2/svg/SVGTests.cpp:
1573 (WebCore::SVGTests::hasExtension):
1574 (WebCore::SVGTests::isValid):
1575 * ksvg2/svg/SVGTests.h:
1576 * ksvg2/svg/SVGTextContentElement.cpp:
1577 (SVGTextContentElement::getSubStringLength):
1578 (SVGTextContentElement::getStartPositionOfChar):
1579 (SVGTextContentElement::getEndPositionOfChar):
1580 (SVGTextContentElement::getExtentOfChar):
1581 (SVGTextContentElement::getRotationOfChar):
1582 (SVGTextContentElement::selectSubString):
1583 * ksvg2/svg/SVGTextContentElement.h:
1584 (WebCore::SVGTextContentElement::):
1585 * ksvg2/svg/SVGTextElement.cpp:
1586 (WebCore::SVGTextElement::parseMappedAttribute):
1587 * ksvg2/svg/SVGTextElement.h:
1588 (WebCore::SVGTextElement::getTransformToElement):
1589 * ksvg2/svg/SVGTransform.h:
1590 * ksvg2/svg/SVGTransformList.cpp:
1591 (SVGTransformList::consolidate):
1592 (SVGTransformList::concatenate):
1593 * ksvg2/svg/SVGTransformable.cpp:
1594 (SVGTransformable::parseTransformAttribute):
1595 * ksvg2/svg/SVGUnitTypes.h: Added.
1596 (WebCore::SVGUnitTypes::):
1597 (WebCore::SVGUnitTypes::SVGUnitTypes):
1598 (WebCore::SVGUnitTypes::~SVGUnitTypes):
1599 * ksvg2/svg/SVGUseElement.cpp:
1600 (SVGUseElement::closeRenderer):
1601 * ksvg2/svg/SVGViewElement.h:
1602 (WebCore::SVGViewElement::):
1603 * ksvg2/svg/SVGZoomAndPan.cpp:
1604 (WebCore::SVGZoomAndPan::SVGZoomAndPan):
1605 (WebCore::SVGZoomAndPan::parseMappedAttribute):
1607 2006-09-12 John Sullivan <sullivan@apple.com>
1609 Reviewed by Adele Peterson.
1611 * bridge/mac/FrameMac.mm:
1612 (WebCore::FrameMac::doTextFieldCommandFromEvent):
1613 Don't call textField:doCommandBySelector: with a nil selector. This was indirectly causing a
1614 (valid) assertion failure in some Safari code.
1616 2006-09-12 David Harrison <harrison@apple.com>
1618 Reviewed by John Sullivan.
1620 <rdar://problem/4717841> Setting AXFocused to true does not activate the insertion point in text field
1622 * bridge/mac/WebCoreAXObject.mm:
1623 (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
1624 For AXFocus, use focus() if the node is an element, so that selection is set.
1625 Matches tabbing behavior in text fields and text areas.
1627 2006-09-12 Adam Roben <aroben@apple.com>
1631 Make uploading work with the new file upload control.
1633 * css/html4.css: Remove unnecessary style (this is already done in
1634 RenderFileUpload.cpp)
1635 * html/HTMLInputElement.cpp: Don't get the button text from the value
1636 attribute for file controls.
1637 (WebCore::HTMLInputElement::valueWithDefault):
1638 * platform/mac/FileChooserMac.mm: Call
1639 RenderFileUploadControl::valueChanged when the user selects a file.
1640 (WebCore::FileChooser::chooseFile):
1641 * rendering/RenderFileUploadControl.cpp: Add valueChanged() method to
1642 update the form and fire the onChange event.
1643 (WebCore::RenderFileUploadControl::valueChanged):
1644 (WebCore::RenderFileUploadControl::updateFromElement):
1645 * rendering/RenderFileUploadControl.h: Add valueChanged() declaration.
1647 2006-09-12 Adam Roben <aroben@apple.com>
1649 Adding rules to html4.css to style the button in file upload controls.
1653 2006-09-12 Adam Roben <aroben@apple.com>
1655 Reviewed many times by darin, hyatt.
1657 Switch to new engine-based implementation of <input type="file">
1659 * WebCore.exp: Remove obsolete symbol WebCoreFileButton
1660 * WebCore.xcodeproj/project.pbxproj: Remove files for old widget-based
1661 control, add files for new engine-based control
1662 * css/CSSSelector.cpp: Add support for new
1663 '-webkit-file-upload-button' pseudo element
1664 (WebCore::CSSSelector::extractPseudoType):
1665 * css/CSSSelector.h: Ditto.
1666 (WebCore::CSSSelector::):
1667 * css/cssstyleselector.cpp: Ditto.
1668 (WebCore::CSSStyleSelector::checkOneSelector):
1669 * html/HTMLInputElement.cpp: Send click events to new control
1670 (WebCore::HTMLInputElement::select):
1671 (WebCore::HTMLInputElement::click):
1672 (WebCore::HTMLInputElement::createRenderer):
1673 (WebCore::HTMLInputElement::valueWithDefault):
1674 (WebCore::HTMLInputElement::defaultEventHandler):
1675 * html/HTMLTextFieldInnerElement.h: Add 'virtual' keyword
1676 (WebCore::HTMLTextFieldInnerElement::shadowParentNode):
1677 * platform/FileButton.h: Removed.
1678 * platform/FileChooser.h: Added. This is the replacement for
1680 (WebCore::FileChooser::filename):
1681 (WebCore::FileChooser::icon):
1682 (WebCore::FileChooser::uploadControl):
1683 (WebCore::FileChooser::document):
1684 * platform/Icon.h: Added new platform-specific class representing a
1686 * platform/LocalizedStrings.h:
1687 * platform/mac/FileButtonMac.mm: Removed.
1688 * platform/mac/FileChooserMac.mm: Added. This is the replacement for
1690 (-[OpenPanelController initWithFileChooser:]):
1691 (-[OpenPanelController fileChooserDetachingSoon]):
1692 (-[OpenPanelController beginSheet]):
1693 (-[OpenPanelController chooseFilename:]):
1694 (-[OpenPanelController cancel]):
1695 (WebCore::FileChooser::FileChooser):
1696 (WebCore::FileChooser::~FileChooser):
1697 (WebCore::FileChooser::openFileChooser):
1698 (WebCore::FileChooser::basenameForWidth):
1699 (WebCore::FileChooser::uploadControlDetaching):
1700 (WebCore::FileChooser::chooseFile):
1701 * platform/mac/IconMac.mm: Added.
1702 (WebCore::Icon::Icon):
1703 (WebCore::Icon::~Icon):
1704 (WebCore::Icon::newIconForFile):
1705 (WebCore::Icon::paint):
1706 * platform/mac/LocalizedStringsMac.mm: Call across bridge to get
1708 (WebCore::fileButtonChooseFileLabel):
1709 (WebCore::fileButtonNoFileSelectedLabel):
1710 * rendering/RenderButton.cpp: Extract method setText() from
1712 (WebCore::RenderButton::updateFromElement):
1713 (WebCore::RenderButton::setText):
1714 * rendering/RenderButton.h: Add declaration for new setText method.
1715 * rendering/RenderFileButton.cpp: Removed.
1716 * rendering/RenderFileButton.h: Removed.
1717 * rendering/RenderFileUploadControl.cpp: Added. This is the
1718 replacement for RenderFileButton.cpp.
1719 (WebCore::RenderFileUploadInnerFileBox::renderName):
1720 (WebCore::HTMLFileUploadInnerButtonElement::isShadowNode):
1721 (WebCore::HTMLFileUploadInnerButtonElement::shadowParentNode):
1722 (WebCore::RenderFileUploadControl::RenderFileUploadControl):
1723 (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
1724 (WebCore::RenderFileUploadControl::setStyle):
1725 (WebCore::RenderFileUploadControl::updateIconAndFilename):
1726 (WebCore::RenderFileUploadControl::click):
1727 (WebCore::RenderFileUploadControl::updateFromElement):
1728 (WebCore::RenderFileUploadControl::maxFilenameWidth):
1729 (WebCore::RenderFileUploadControl::createButtonStyle):
1730 (WebCore::RenderFileUploadControl::paintObject):
1731 (WebCore::RenderFileUploadInnerFileBox::RenderFileUploadInnerFileBox):
1732 (WebCore::RenderFileUploadInnerFileBox::setStyle):
1733 (WebCore::RenderFileUploadInnerFileBox::layout):
1734 (WebCore::RenderFileUploadInnerFileBox::setHasIcon):
1735 (WebCore::RenderFileUploadInnerFileBox::setFilename):
1736 (WebCore::RenderFileUploadInnerFileBox::calcMinMaxWidth):
1737 (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
1738 (WebCore::HTMLFileUploadInnerButtonElement::createRenderer):
1739 * rendering/RenderFileUploadControl.h: Added. This is the replacement
1740 for RenderFileButton.h.
1741 (WebCore::RenderFileUploadControl::renderName):
1742 * rendering/RenderStyle.cpp: Add support for
1743 -webkit-file-upload-button pseudo element.
1745 (WebCore::pseudoBit):
1746 * rendering/RenderStyle.h: Ditto.
1747 (WebCore::RenderStyle::):
1749 2006-09-12 Anders Carlsson <acarlsson@apple.com>
1751 Reviewed by John Sullivan.
1753 Do the plugin object cleanup in Frame::clear instead of setView.
1755 * bridge/mac/FrameMac.h:
1756 * bridge/mac/FrameMac.mm:
1757 (WebCore::FrameMac::setView):
1758 (WebCore::FrameMac::cleanupPluginObjects):
1760 (WebCore::Frame::clear):
1763 2006-09-12 MorganL <morlmor@yahoo.com>
1765 Reviewed/landed by aroben.
1767 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10822
1768 windows build is busted
1770 * WebCore.vcproj/WebCore/WebCore.vcproj: Add missing
1771 JSRangeException.{cpp,h} to project
1773 2006-09-12 David Hyatt <hyatt@apple.com>
1775 Fix fieldsets so that they properly expand to enclose overhanging floats
1776 when the fieldset has auto height. This is a nifty undocumented behavior
1777 of the fieldset element. The bug is 3898.
1781 Added fast/forms/fieldset-with-float.html
1783 * rendering/RenderBlock.cpp:
1784 (WebCore::RenderBlock::layoutBlock):
1785 * rendering/RenderFieldset.h:
1786 (WebCore::RenderFieldset::renderName):
1787 (WebCore::RenderFieldset::expandsToEncloseOverhangingFloats):
1788 * rendering/RenderObject.h:
1789 (WebCore::RenderObject::expandsToEncloseOverhangingFloats):
1790 * rendering/RenderTableCell.h:
1791 (WebCore::RenderTableCell::expandsToEncloseOverhangingFloats):
1793 2006-09-11 Eric Seidel <eric@eseidel.com>
1797 REGRESSION: When dragging a link on a page, the selected link doesn't display it's name or URL
1798 http://bugzilla.opendarwin.org/show_bug.cgi?id=10819
1799 http://bugzilla.opendarwin.org/show_bug.cgi?id=10814
1801 No test cases were harmed in the coding of the patch.
1803 * platform/mac/WebCoreTextRenderer.mm:
1804 (WebCoreDrawTextAtPoint):
1806 2006-09-11 David Hyatt <hyatt@apple.com>
1808 Fix for bug 8126, column widths apply to the border boxes of cells.
1812 * rendering/RenderTableCell.cpp:
1813 (WebCore::RenderTableCell::styleOrColWidth):
1815 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
1821 * CMakeLists.txt: Add dom/RangeException.idl to build & fix feature defines.
1823 2006-09-11 Nikolas Zimmermann <zimmermann@kde.org>
1825 Reviewed by eseidel. Landed by eseidel.
1827 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10750
1829 This finally fixes the SVGAnimated* classes JS bindings!
1831 - Move all SVGAnimated*.idl files from ksvg2/bindings/idl/svg to ksvg2/svg
1832 - Adjust XCode/Qt build files to generate the new idl files
1834 - Remove all SVGAnimated* primitives cpp implementations (Angle/Boolean/Color/Enumeration/Integer/Length/
1835 LengthList/Number/NumberList/PreserveAspectRatio/
1836 Rect/String/TransformList)
1838 - Remove unneeded methods from CodeGenerator.pm and add new helper function: IsSVGAnimatedType
1839 - Adjust CodeGeneratorJS.pm to the new SVGAnimated* tear-off concept
1841 - Add two new macros: ANIMATED_PROPERTY_EMPTY_DECLARATIONS / ANIMATED_PROPERTY_FORWARD_DECLARATIONS.
1842 This is used to fix multiple-inheritance issues in SVG with properties,
1843 similar like SVGTests::isValid() was fixed.
1845 - Rewrote SVGList using WTF::Vector, instead of DeprecatedPtrList and killed DOMList.
1846 (SVGAnimated*Lists work again now)
1848 - Adjust macros in SVGElement to create the "*Animated" tear-off classes.
1850 - Adjust all SVG classes which use the ANIMATED macros to include the ClassName as first param in the header.
1853 * DerivedSources.make:
1854 * WebCore.xcodeproj/project.pbxproj:
1855 * bindings/scripts/CodeGenerator.pm:
1856 * bindings/scripts/CodeGeneratorJS.pm:
1857 * kcanvas/RenderSVGImage.cpp:
1858 (WebCore::RenderSVGImage::adjustRectsForAspectRatio):
1859 (WebCore::RenderSVGImage::paint):
1860 * kcanvas/RenderSVGText.cpp:
1861 (WebCore::RenderSVGText::translationForAttributes):
1863 * ksvg2/misc/SVGDocumentExtensions.h:
1864 (WebCore::FloatRect):
1865 * ksvg2/svg/SVGAElement.h:
1866 * ksvg2/svg/SVGAnimateColorElement.cpp:
1867 * ksvg2/svg/SVGAnimateColorElement.h:
1868 * ksvg2/svg/SVGAnimateTransformElement.h:
1869 * ksvg2/svg/SVGAnimatedTemplate.h:
1870 (WebCore::SVGAnimatedTemplate::~SVGAnimatedTemplate):
1871 * ksvg2/svg/SVGAnimationElement.h:
1872 * ksvg2/svg/SVGCircleElement.h:
1873 * ksvg2/svg/SVGClipPathElement.h:
1874 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1875 (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
1876 (SVGComponentTransferFunctionElement::transferFunction):
1877 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
1878 * ksvg2/svg/SVGCursorElement.h:
1879 * ksvg2/svg/SVGDefsElement.h:
1880 * ksvg2/svg/SVGElement.h:
1881 * ksvg2/svg/SVGElementInstanceList.cpp:
1882 (WebCore::SVGElementInstanceList::SVGElementInstanceList):
1883 * ksvg2/svg/SVGElementInstanceList.h:
1884 * ksvg2/svg/SVGEllipseElement.h:
1885 * ksvg2/svg/SVGExternalResourcesRequired.h:
1886 * ksvg2/svg/SVGFEBlendElement.h:
1887 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1888 (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
1889 (SVGFEColorMatrixElement::parseMappedAttribute):
1890 (SVGFEColorMatrixElement::filterEffect):
1891 * ksvg2/svg/SVGFEColorMatrixElement.h:
1892 * ksvg2/svg/SVGFEComponentTransferElement.h:
1893 * ksvg2/svg/SVGFECompositeElement.h:
1894 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
1895 * ksvg2/svg/SVGFEDisplacementMapElement.h:
1896 * ksvg2/svg/SVGFEFloodElement.h:
1897 * ksvg2/svg/SVGFEGaussianBlurElement.h:
1898 * ksvg2/svg/SVGFEImageElement.h:
1899 * ksvg2/svg/SVGFELightElement.h:
1900 * ksvg2/svg/SVGFEMergeNodeElement.h:
1901 * ksvg2/svg/SVGFEOffsetElement.h:
1902 * ksvg2/svg/SVGFESpecularLightingElement.h:
1903 * ksvg2/svg/SVGFETileElement.h:
1904 * ksvg2/svg/SVGFETurbulenceElement.h:
1905 * ksvg2/svg/SVGFilterElement.h:
1906 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
1907 * ksvg2/svg/SVGFitToViewBox.cpp:
1908 (WebCore::SVGFitToViewBox::SVGFitToViewBox):
1909 (WebCore::SVGFitToViewBox::parseViewBox):
1910 (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
1911 * ksvg2/svg/SVGFitToViewBox.h:
1912 * ksvg2/svg/SVGForeignObjectElement.h:
1913 * ksvg2/svg/SVGGElement.h:
1914 * ksvg2/svg/SVGGradientElement.cpp:
1915 (SVGGradientElement::SVGGradientElement):
1916 * ksvg2/svg/SVGGradientElement.h:
1917 * ksvg2/svg/SVGHelper.cpp:
1918 (WebCore::SVGHelper::PercentageOfViewport):
1919 * ksvg2/svg/SVGImageElement.h:
1920 * ksvg2/svg/SVGLength.cpp:
1921 * ksvg2/svg/SVGLengthList.cpp:
1922 (WebCore::SVGLengthList::SVGLengthList):
1923 (WebCore::SVGLengthList::parse):
1924 * ksvg2/svg/SVGLengthList.h:
1925 * ksvg2/svg/SVGLineElement.h:
1926 * ksvg2/svg/SVGLinearGradientElement.h:
1927 * ksvg2/svg/SVGList.h:
1928 (WebCore::SVGListBase::SVGListBase):
1929 (WebCore::SVGListBase::~SVGListBase):
1930 (WebCore::SVGListBase::numberOfItems):
1931 (WebCore::SVGListBase::clear):
1932 (WebCore::SVGListBase::initialize):
1933 (WebCore::SVGListBase::getFirst):
1934 (WebCore::SVGListBase::getLast):
1935 (WebCore::SVGListBase::getItem):
1936 (WebCore::SVGListBase::insertItemBefore):
1937 (WebCore::SVGListBase::replaceItem):
1938 (WebCore::SVGListBase::removeItem):
1939 (WebCore::SVGListBase::appendItem):
1940 (WebCore::SVGList::nullItem):
1942 * ksvg2/svg/SVGLocatable.cpp:
1943 * ksvg2/svg/SVGMarkerElement.h:
1944 * ksvg2/svg/SVGMaskElement.h:
1945 * ksvg2/svg/SVGNumberList.cpp:
1946 (SVGNumberList::SVGNumberList):
1947 (SVGNumberList::parse):
1948 * ksvg2/svg/SVGNumberList.h:
1949 * ksvg2/svg/SVGPathElement.cpp:
1950 (WebCore::SVGPathElement::pathSegList):
1951 * ksvg2/svg/SVGPathElement.h:
1952 * ksvg2/svg/SVGPathSegList.cpp:
1953 (WebCore::SVGPathSegList::SVGPathSegList):
1954 * ksvg2/svg/SVGPathSegList.h:
1955 * ksvg2/svg/SVGPatternElement.cpp:
1956 (WebCore::SVGPatternElement::SVGPatternElement):
1957 * ksvg2/svg/SVGPatternElement.h:
1958 * ksvg2/svg/SVGPointList.cpp:
1959 (SVGPointList::SVGPointList):
1960 * ksvg2/svg/SVGPointList.h:
1961 * ksvg2/svg/SVGPolyElement.cpp:
1962 (SVGPolyElement::points):
1963 (SVGPolyElement::svgPolyTo):
1964 (SVGPolyElement::notifyAttributeChange):
1965 * ksvg2/svg/SVGPolyElement.h:
1966 * ksvg2/svg/SVGPolygonElement.cpp:
1967 (SVGPolygonElement::toPathData):
1968 * ksvg2/svg/SVGPolylineElement.cpp:
1969 (SVGPolylineElement::toPathData):
1970 * ksvg2/svg/SVGPreserveAspectRatio.h:
1971 (WebCore::SVGPreserveAspectRatio::):
1972 * ksvg2/svg/SVGRadialGradientElement.h:
1973 * ksvg2/svg/SVGRectElement.h:
1974 * ksvg2/svg/SVGSVGElement.cpp:
1975 (WebCore::SVGSVGElement::SVGSVGElement):
1976 (WebCore::SVGSVGElement::parseMappedAttribute):
1977 (WebCore::SVGSVGElement::createRenderer):
1978 * ksvg2/svg/SVGSVGElement.h:
1979 * ksvg2/svg/SVGScriptElement.h:
1980 * ksvg2/svg/SVGStopElement.h:
1981 * ksvg2/svg/SVGStringList.cpp:
1982 (WebCore::SVGStringList::SVGStringList):
1983 (WebCore::SVGStringList::reset):
1984 * ksvg2/svg/SVGStringList.h:
1985 * ksvg2/svg/SVGStyledElement.h:
1986 * ksvg2/svg/SVGStyledLocatableElement.cpp:
1987 * ksvg2/svg/SVGStyledTransformableElement.cpp:
1988 (SVGStyledTransformableElement::SVGStyledTransformableElement):
1989 * ksvg2/svg/SVGStyledTransformableElement.h:
1990 * ksvg2/svg/SVGSwitchElement.h:
1991 * ksvg2/svg/SVGSymbolElement.h:
1992 * ksvg2/svg/SVGTRefElement.h:
1993 * ksvg2/svg/SVGTests.cpp:
1994 (WebCore::SVGTests::isValid):
1995 * ksvg2/svg/SVGTextContentElement.h:
1996 * ksvg2/svg/SVGTextElement.cpp:
1997 (WebCore::SVGTextElement::SVGTextElement):
1998 * ksvg2/svg/SVGTextElement.h:
1999 * ksvg2/svg/SVGTextPositioningElement.cpp:
2000 (SVGTextPositioningElement::SVGTextPositioningElement):
2001 (SVGTextPositioningElement::parseMappedAttribute):
2002 * ksvg2/svg/SVGTextPositioningElement.h:
2003 * ksvg2/svg/SVGTransformList.cpp:
2004 (SVGTransformList::SVGTransformList):
2005 (SVGTransformList::createSVGTransformFromMatrix):
2006 (SVGTransformList::consolidate):
2007 (SVGTransformList::concatenate):
2008 * ksvg2/svg/SVGTransformList.h:
2009 * ksvg2/svg/SVGURIReference.h:
2010 * ksvg2/svg/SVGUseElement.h:
2011 * ksvg2/svg/SVGViewElement.h:
2013 2006-09-11 Adam Roben <aroben@apple.com>
2015 Rubberstamped by Adele.
2017 Rename LocalGraphicsContext.{h,mm} to
2018 LocalCurrentGraphicsContext.{h,mm} to match the class name.
2020 * WebCore.xcodeproj/project.pbxproj:
2021 * platform/mac/LocalCurrentGraphicsContext.mm: Added.
2022 * platform/mac/LocalCurrentGraphicsContext.h: Added.
2023 * platform/mac/LocalGraphicsContext.h: Removed.
2024 * platform/mac/LocalGraphicsContext.mm: Removed.
2025 * rendering/RenderThemeMac.mm: Fix #include to match renamed file
2027 2006-09-11 Brady Eidson <beidson@apple.com>
2031 * WebCore.xcodeproj/project.pbxproj:
2033 2006-09-11 Kevin McCullough <KMcCullough@apple.com>
2037 - Implements comparePoint on the Range class
2039 - Exposes RangeExceptions in JavaScript
2041 * DerivedSources.make:
2042 * WebCore.xcodeproj/project.pbxproj:
2043 * bindings/js/kjs_binding.cpp:
2044 * bindings/objc/DOMInternal.mm:
2046 (WebCore::Range::comparePoint):
2047 (WebCore::Range::compareNode):
2051 * dom/RangeException.h: Added.
2053 * dom/RangeException.idl: Added.
2054 * page/DOMWindow.idl:
2056 2006-09-11 Adam Roben <aroben@apple.com>
2060 Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=10812
2061 Move LocalGraphicsContext out of RenderThemeMac
2063 * WebCore.xcodeproj/project.pbxproj:
2064 * platform/mac/LocalGraphicsContext.h: Added.
2065 * platform/mac/LocalGraphicsContext.mm: Added.
2066 (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext):
2067 (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext):
2068 * rendering/RenderThemeMac.mm:
2070 2006-09-11 Vladimir Olexa <vladimir.olexa@gmail.com>
2074 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10323
2075 REGRESSION: javascript: URL containing '\\' gets passed as '//'
2077 Test: fast/dom/javascript-backslash.html
2079 * platform/KURL.cpp: (WebCore::KURL::init): Don't do backslash
2080 substitution in JavaScript URLs.
2082 2006-09-11 Sam Weinig <sam.weinig@gmail.com>
2084 Reviewed by Darin and Tim H.
2086 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10792
2087 Remove the [Exclude=LANGUAGE] idiom from IDL's and code generators
2088 for something better
2090 - Replaces [Exclude=LANGUAGE] idiom with preprocessor #if defined(LANGUAGE)
2093 - Assorted whitespace changes to IDL files.
2095 * DerivedSources.make:
2096 * WebCore.xcodeproj/project.pbxproj:
2097 * bindings/objc/DOMEvents.h:
2098 * bindings/scripts/CodeGenerator.pm:
2099 * bindings/scripts/CodeGeneratorJS.pm:
2100 * bindings/scripts/CodeGeneratorObjC.pm:
2102 * css/CSSStyleDeclaration.idl:
2104 * dom/DOMImplementation.idl:
2108 * dom/KeyboardEvent.idl:
2109 * dom/MouseEvent.idl:
2110 * dom/NamedNodeMap.idl:
2111 * dom/NodeFilter.idl:
2113 * dom/WheelEvent.idl:
2114 * html/HTMLAnchorElement.idl:
2115 * html/HTMLAreaElement.idl:
2116 * html/HTMLDocument.idl:
2117 * html/HTMLElement.idl:
2118 * html/HTMLImageElement.idl:
2119 * html/HTMLInputElement.idl:
2120 * html/HTMLLinkElement.idl:
2121 * html/HTMLOptionsCollection.idl:
2123 2006-09-11 David Hyatt <hyatt@apple.com>
2125 Fix an unwitting victim of the kMin->min change. calcBlockMinMaxWidth
2126 was accidentally renamed to calcBlominMaxWidth.
2128 * rendering/RenderBlock.cpp:
2129 (WebCore::RenderBlock::calcMinMaxWidth):
2130 (WebCore::RenderBlock::calcBlockMinMaxWidth):
2131 * rendering/RenderBlock.h:
2133 2006-09-10 David Hyatt <hyatt@apple.com>
2135 Rework the printer font stuff a little bit so that the Font API doesn't
2140 * WebCore.xcodeproj/project.pbxproj:
2141 * bridge/mac/WebCoreStringTruncator.mm:
2143 (+[WebCoreStringTruncator widthOfString:font:]):
2144 * platform/Font.cpp:
2145 (WebCore::Font::drawSimpleText):
2147 * platform/TextStyle.h:
2148 (WebCore::TextStyle::TextStyle):
2149 (WebCore::TextStyle::attemptFontSubstitution):
2150 (WebCore::TextStyle::setRTL):
2151 * platform/mac/FontMac.mm:
2152 (WebCore::m_wordSpacing):
2153 (WebCore::Font::drawGlyphs):
2154 * platform/mac/ListBoxMac.mm:
2156 (groupLabelTextRenderer):
2157 (-[WebCoreTableView drawRow:clipRect:]):
2158 * platform/mac/PopUpButtonMac.mm:
2159 (PopUpButton::sizeHint):
2160 * platform/mac/TextFieldMac.mm:
2161 (-[NSSearchFieldCell _addStringToRecentSearches:]):
2162 * platform/mac/WebCoreTextRenderer.mm:
2163 (WebCoreDrawTextAtPoint):
2164 (WebCoreTextFloatWidth):
2165 * rendering/EllipsisBox.cpp:
2166 (WebCore::EllipsisBox::paint):
2167 * rendering/InlineTextBox.cpp:
2168 (WebCore::InlineTextBox::paint):
2169 * rendering/RenderImage.cpp:
2170 (WebCore::RenderImage::paint):
2171 * rendering/RenderListMarker.cpp:
2172 (WebCore::RenderListMarker::paint):
2174 2006-09-10 Brady Eidson <beidson@apple.com>
2178 Small cleanups + future plans
2180 * loader/icon/IconDatabase.cpp:
2181 (WebCore::IconDatabase::open): path separator cleanup
2184 2006-09-10 Brady Eidson <beidson@apple.com>
2188 Added specialized HashTraits
2190 * platform/IntSizeHash.h:
2192 2006-09-10 Brady Eidson <beidson@apple.com>
2194 Forgetting header #define protection is BAAAAAD
2195 (and re-alphabetized the project file)
2197 * WebCore.xcodeproj/project.pbxproj:
2198 * platform/IntSizeHash.h:
2200 2006-09-10 Brady Eidson <beidson@apple.com>
2204 Moved the custom IntSize hash out of IconDatabase into a more generally useful file
2206 * WebCore.xcodeproj/project.pbxproj:
2207 * loader/icon/IconDatabase.h:
2208 * platform/IntSizeHash.h: Added.
2210 2006-09-10 David Hyatt <hyatt@apple.com>
2212 Fix for bug 10801, form controls that get styled suddenly lose their
2213 intrinsic margins. Move the intrinsic margin addition code into
2214 adjustRenderStyle and get it out of the theme code and the old form control
2219 * css/cssstyleselector.cpp:
2220 (WebCore::addIntrinsicMargins):
2221 (WebCore::CSSStyleSelector::adjustRenderStyle):
2223 * rendering/DeprecatedRenderSelect.h:
2224 (WebCore::DeprecatedRenderSelect::calcReplacedHeight):
2225 * rendering/DeprecatedSlider.h:
2226 * rendering/RenderFormElement.cpp:
2227 (WebCore::RenderFormElement::setStyle):
2228 * rendering/RenderFormElement.h:
2229 * rendering/RenderLayer.cpp:
2230 (WebCore::RenderLayer::resize):
2231 * rendering/RenderThemeMac.h:
2232 * rendering/RenderThemeMac.mm:
2233 (WebCore::RenderThemeMac::adjustButtonStyle):
2234 (WebCore::RenderThemeMac::adjustTextFieldStyle):
2235 (WebCore::RenderThemeMac::adjustTextAreaStyle):
2236 (WebCore::RenderThemeMac::adjustMenuListStyle):
2237 (WebCore::RenderThemeMac::adjustMenuListButtonStyle):
2238 * rendering/RenderThemeWin.cpp:
2239 (WebCore::RenderThemeWin::adjustButtonStyle):
2240 (WebCore::RenderThemeWin::adjustTextFieldStyle):
2241 (WebCore::RenderThemeWin::adjustTextAreaStyle):
2243 2006-09-10 Darin Adler <darin@apple.com>
2245 - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10547
2247 * manual-tests/target-test.html: Added.
2248 * manual-tests/targeted.html: Added.
2250 2006-09-10 Eric Seidel <eric@eseidel.com>
2254 Remove a bunch more NSGraphicsContext related code.
2255 Add a LocalCurrentGraphicsContext to simplify methods which need to call up into AppKit controls (and thus depend on the [NSGraphicsContext currentContext] being set correctly)
2256 Add an "isPrinting" flag to many of the text drawing functions in order to avoid the need for a GraphicsContext::isPrinting() function.
2258 No tests were harmed in the making of this patch.
2260 * bridge/mac/WebCoreFrameBridge.mm:
2261 (-[WebCoreFrameBridge drawRect:]):
2262 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
2263 (WebCore::KRenderingDeviceContextQuartz::cgContext):
2264 (WebCore::KRenderingDeviceQuartz::isBuffered):
2265 * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
2266 (WebCore::KRenderingDeviceContextQuartz::KRenderingDeviceContextQuartz):
2267 (WebCore::KRenderingDeviceContextQuartz::~KRenderingDeviceContextQuartz):
2268 * kcanvas/device/quartz/QuartzSupport.mm:
2269 * platform/Font.cpp:
2270 (WebCore::Font::drawSimpleText):
2271 (WebCore::Font::drawText):
2273 * platform/GraphicsContext.cpp:
2274 (WebCore::GraphicsContext::drawText):
2275 * platform/GraphicsContext.h:
2276 * platform/mac/FileButtonMac.mm:
2277 (-[WebFileChooserButton drawRect:]):
2278 * platform/mac/FontMac.mm:
2279 (WebCore::ATSULayoutParameters::ATSULayoutParameters):
2280 (WebCore::ATSULayoutParameters::initialize):
2281 (WebCore::Font::drawComplexText):
2282 (WebCore::Font::drawGlyphs):
2283 * platform/mac/GraphicsContextMac.mm:
2284 (WebCore::GraphicsContext::drawLineForMisspelling):
2285 * platform/mac/ListBoxMac.mm:
2286 (-[WebCoreTableView drawRow:clipRect:]):
2287 * platform/mac/WebCoreTextRenderer.mm:
2288 (WebCoreDrawTextAtPoint):
2289 * rendering/EllipsisBox.cpp:
2290 (WebCore::EllipsisBox::paint):
2291 * rendering/InlineTextBox.cpp:
2292 (WebCore::InlineTextBox::paint):
2293 * rendering/RenderImage.cpp:
2294 (WebCore::RenderImage::paint):
2295 * rendering/RenderListMarker.cpp:
2296 (WebCore::RenderListMarker::paint):
2297 * rendering/RenderThemeMac.mm:
2298 (WebCore::WebCoreNSGraphicsContextBridge::WebCoreNSGraphicsContextBridge):
2299 (WebCore::WebCoreNSGraphicsContextBridge::~WebCoreNSGraphicsContextBridge):
2300 (WebCore::RenderThemeMac::paintButton):
2301 (WebCore::RenderThemeMac::paintTextField):
2302 (WebCore::RenderThemeMac::paintTextArea):
2304 2006-09-09 Steve Falkenburg <sfalken@apple.com>
2308 Fixes to work with string API changes.
2310 * platform/cf/ResourceLoaderCFNet.cpp:
2311 (WebCore::arrayFromFormData):
2312 (WebCore::ResourceLoader::start):
2313 * platform/cf/StringCF.cpp:
2314 * platform/cf/StringImplCF.cpp:
2316 2006-09-09 David Hyatt <hyatt@apple.com>
2318 Fix for Bugzilla bug 5500, scrollLeft/Top/Width/Height properties not supported
2319 on textarea. Refactored the DOM getters and setters to go through the renderer
2320 instead of right to the layer. The renderer functions are virtual so that the
2321 text control can subclass and forward to its anonymous div.
2323 Fix for Bugzilla bug 10719, When positioned objects are sizing using their
2324 containing block width as a guide, they should not ever use the line width like
2325 non-positioned objects do.
2329 * WebCore.xcodeproj/project.pbxproj:
2331 (WebCore::Element::scrollLeft):
2332 (WebCore::Element::scrollTop):
2333 (WebCore::Element::setScrollLeft):
2334 (WebCore::Element::setScrollTop):
2335 * rendering/RenderBox.cpp:
2336 (WebCore::RenderBox::containingBlockWidthForPositioned):
2337 * rendering/RenderObject.cpp:
2338 (WebCore::RenderObject::clientWidth):
2339 (WebCore::RenderObject::clientHeight):
2340 (WebCore::RenderObject::scrollWidth):
2341 (WebCore::RenderObject::scrollHeight):
2342 (WebCore::RenderObject::scrollLeft):
2343 (WebCore::RenderObject::scrollTop):
2344 (WebCore::RenderObject::setScrollLeft):
2345 (WebCore::RenderObject::setScrollTop):
2346 (WebCore::RenderObject::hasStaticX):
2347 (WebCore::RenderObject::hasStaticY):
2348 * rendering/RenderObject.h:
2349 (WebCore::RenderObject::clientLeft):
2350 (WebCore::RenderObject::clientTop):
2351 * rendering/RenderTextControl.cpp:
2352 (WebCore::RenderTextControl::scrollWidth):
2353 (WebCore::RenderTextControl::scrollHeight):
2354 (WebCore::RenderTextControl::scrollLeft):
2355 (WebCore::RenderTextControl::scrollTop):
2356 (WebCore::RenderTextControl::setScrollLeft):
2357 (WebCore::RenderTextControl::setScrollTop):
2358 * rendering/RenderTextControl.h:
2360 2006-09-09 David Hyatt <hyatt@apple.com>
2362 Implement support for the WinIE clientLeft and clientTop extensions.
2367 (WebCore::Element::clientLeft):
2368 (WebCore::Element::clientTop):
2371 * rendering/RenderObject.h:
2372 (WebCore::RenderObject::clientLeft):
2373 (WebCore::RenderObject::clientTop):
2375 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2379 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10795
2380 Auto-generate the Objective-C DOM XPath bindings
2382 - Auto-generates DOMXPathExpression, DOMXPathNSResolver and DOMXPathResult.
2384 * DerivedSources.make:
2385 * WebCore.xcodeproj/project.pbxproj:
2386 * bindings/objc/DOMPrivate.h:
2387 * bindings/objc/DOMXPath.h:
2388 * bindings/objc/DOMXPath.mm:
2389 * bindings/objc/PublicDOMInterfaces.h:
2390 * xml/XPathExpression.idl:
2391 * xml/XPathNSResolver.idl:
2392 * xml/XPathResult.idl:
2394 2006-09-09 Sam Weinig <sam.weinig@gmail.com>
2398 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10791
2399 Even More Objective-C DOM auto-generation cleanup
2401 - Auto-generate some remaining extension methods for DOMDocument
2402 and DOMCSSStyleDeclaration.
2404 - Split DOMHTMLEmbedElement into it's own files. It can't be
2405 auto-generated yet because the Objective-C interface is significantly
2406 different from the implementation interface. Since HTMLEmbedElement
2407 is not in the W3C spec, this is somewhat of a gray area.
2409 - Auto-generate DOMEventListener protocol.
2411 - Clean up the IDL files by separating the extensions from the
2412 specified methods and attributes.
2414 * DerivedSources.make:
2415 * WebCore.xcodeproj/project.pbxproj:
2416 * bindings/objc/DOM.mm:
2417 * bindings/objc/DOMCSS.mm:
2418 * bindings/objc/DOMEventListener.h: Removed.
2419 * bindings/objc/DOMExtensions.h:
2420 * bindings/objc/DOMHTML.h:
2421 * bindings/objc/DOMHTML.mm:
2422 * bindings/objc/DOMHTMLEmbedElement.h: Added.
2423 * bindings/objc/DOMHTMLEmbedElement.mm: Added.
2424 (-[DOMHTMLEmbedElement align]):
2425 (-[DOMHTMLEmbedElement setAlign:]):
2426 (-[DOMHTMLEmbedElement height]):
2427 (-[DOMHTMLEmbedElement setHeight:]):
2428 (-[DOMHTMLEmbedElement name]):
2429 (-[DOMHTMLEmbedElement setName:]):
2430 (-[DOMHTMLEmbedElement src]):
2431 (-[DOMHTMLEmbedElement setSrc:]):
2432 (-[DOMHTMLEmbedElement type]):
2433 (-[DOMHTMLEmbedElement setType:]):
2434 (-[DOMHTMLEmbedElement width]):
2435 (-[DOMHTMLEmbedElement setWidth:]):
2436 * bindings/objc/DOMPrivate.h:
2437 * bindings/objc/PublicDOMInterfaces.h:
2438 * css/CSSStyleDeclaration.idl:
2440 * dom/KeyboardEvent.h:
2441 * dom/KeyboardEvent.idl:
2442 * dom/MouseEvent.idl:
2443 * dom/MutationEvent.idl:
2444 * dom/OverflowEvent.idl:
2446 * dom/WheelEvent.idl:
2447 * html/HTMLEmbedElement.idl: Added.
2449 2006-09-09 Eric Seidel <eric@eseidel.com>
2453 Remove DeprecatedString usage and fix style.
2454 http://bugzilla.opendarwin.org/show_bug.cgi?id=10787
2456 No tests were harmed in the making of this patch.
2458 * kcanvas/KCanvasFilters.cpp:
2459 (WebCore::KCanvasFilterEffect::in):
2460 (WebCore::KCanvasFilterEffect::setIn):
2461 (WebCore::KCanvasFilterEffect::result):
2462 (WebCore::KCanvasFilterEffect::setResult):
2463 (WebCore::KCanvasFEMerge::externalRepresentation):
2464 * kcanvas/KCanvasFilters.h:
2465 (WebCore::KCanvasFEBlend::in2):
2466 (WebCore::KCanvasFEBlend::setIn2):
2467 (WebCore::KCanvasFEComposite::in2):
2468 (WebCore::KCanvasFEComposite::setIn2):
2469 (WebCore::KCanvasFEDisplacementMap::in2):
2470 (WebCore::KCanvasFEDisplacementMap::setIn2):
2471 (WebCore::KCanvasFEMerge::mergeInputs):
2472 (WebCore::KCanvasFEMerge::setMergeInputs):
2473 * kcanvas/KCanvasResources.cpp:
2474 (WebCore::KCanvasResource::idInRegistry):
2475 (WebCore::KCanvasResource::setIdInRegistry):
2476 (WebCore::getResourceById):
2477 * kcanvas/KCanvasResources.h:
2478 * kcanvas/RenderPath.cpp:
2479 (WebCore::RenderPath::getAbsoluteRepaintRect):
2480 (WebCore::RenderPath::paint):
2481 (WebCore::RenderPath::drawMarkersIfNeeded):
2482 * kcanvas/RenderSVGContainer.cpp:
2483 (WebCore::RenderSVGContainer::paint):
2484 (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
2485 * kcanvas/RenderSVGImage.cpp:
2486 (WebCore::RenderSVGImage::paint):
2487 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
2488 * kcanvas/RenderSVGText.cpp:
2489 (WebCore::RenderSVGText::paint):
2490 * kcanvas/device/KRenderingPaintServer.h:
2491 (WebCore::KRenderingPaintServer::idInRegistry):
2492 (WebCore::KRenderingPaintServer::setIdInRegistry):
2493 * kcanvas/device/quartz/KCanvasFilterQuartz.h:
2494 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
2495 (WebCore::KCanvasFilterQuartz::imageForName):
2496 (WebCore::KCanvasFilterQuartz::setImageForName):
2497 (WebCore::KCanvasFEMergeQuartz::getCIFilter):
2498 * ksvg2/css/SVGCSSStyleSelector.cpp:
2499 (WebCore::CSSStyleSelector::applySVGProperty):
2500 * ksvg2/css/SVGRenderStyle.cpp:
2501 * ksvg2/css/SVGRenderStyle.h:
2502 * ksvg2/css/SVGRenderStyleDefs.h:
2503 * ksvg2/ecma/GlobalObject.cpp:
2504 (GlobalObject::get):
2505 * ksvg2/misc/KSVGTimeScheduler.cpp:
2506 (WebCore::SVGTimer::notifyAll):
2507 * ksvg2/svg/SVGDescElement.cpp:
2508 (WebCore::SVGDescElement::SVGDescElement):
2509 (WebCore::SVGDescElement::description):
2510 * ksvg2/svg/SVGDescElement.h:
2511 * ksvg2/svg/SVGFEBlendElement.cpp:
2512 (WebCore::SVGFEBlendElement::SVGFEBlendElement):
2513 (WebCore::SVGFEBlendElement::filterEffect):
2514 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2515 (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
2516 (SVGFEColorMatrixElement::filterEffect):
2517 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2518 (WebCore::SVGFEComponentTransferElement::SVGFEComponentTransferElement):
2519 (WebCore::SVGFEComponentTransferElement::filterEffect):
2520 * ksvg2/svg/SVGFECompositeElement.cpp:
2521 (SVGFECompositeElement::SVGFECompositeElement):
2522 (SVGFECompositeElement::filterEffect):
2523 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2524 (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
2525 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2526 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2527 (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
2528 (SVGFEDisplacementMapElement::filterEffect):
2529 * ksvg2/svg/SVGFEFloodElement.cpp:
2530 (WebCore::SVGFEFloodElement::SVGFEFloodElement):
2531 (WebCore::SVGFEFloodElement::filterEffect):
2532 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2533 (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
2534 (SVGFEGaussianBlurElement::filterEffect):
2535 * ksvg2/svg/SVGFELightElement.cpp:
2536 * ksvg2/svg/SVGFEMergeElement.cpp:
2537 (SVGFEMergeElement::filterEffect):
2538 * ksvg2/svg/SVGFEOffsetElement.cpp:
2539 (SVGFEOffsetElement::SVGFEOffsetElement):
2540 (SVGFEOffsetElement::filterEffect):
2541 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2542 (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
2543 (SVGFESpecularLightingElement::filterEffect):
2544 * ksvg2/svg/SVGFETileElement.cpp:
2545 (WebCore::SVGFETileElement::SVGFETileElement):
2546 (WebCore::SVGFETileElement::filterEffect):
2547 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2548 (SVGFETurbulenceElement::SVGFETurbulenceElement):
2549 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
2550 (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
2551 * ksvg2/svg/SVGFitToViewBox.cpp:
2552 (WebCore::SVGFitToViewBox::parseViewBox):
2553 (WebCore::SVGFitToViewBox::parseMappedAttribute):
2554 * ksvg2/svg/SVGFitToViewBox.h:
2555 * ksvg2/svg/SVGLinearGradientElement.cpp:
2556 (SVGLinearGradientElement::buildGradient):
2557 * ksvg2/svg/SVGPatternElement.cpp:
2558 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
2559 (WebCore::SVGPatternElement::notifyAttributeChange):
2560 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
2561 (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
2562 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
2563 (WebCore::SVGPreserveAspectRatio::getCTM):
2564 * ksvg2/svg/SVGPreserveAspectRatio.h:
2565 * ksvg2/svg/SVGRadialGradientElement.cpp:
2566 (WebCore::SVGRadialGradientElement::buildGradient):
2567 * ksvg2/svg/SVGStyleElement.cpp:
2568 * ksvg2/svg/SVGStyledTransformableElement.cpp:
2569 * ksvg2/svg/SVGViewElement.cpp:
2570 (WebCore::SVGViewElement::SVGViewElement):
2571 (WebCore::SVGViewElement::parseMappedAttribute):
2572 * ksvg2/svg/SVGZoomAndPan.cpp:
2573 (WebCore::SVGZoomAndPan::SVGZoomAndPan):
2575 2006-09-08 Darin Adler <darin@apple.com>
2579 <rdar://problem/4699166> REGRESSION: Background images in Mail stationery do not load
2581 Fixes the quoting logic. The previous logic did not account for the
2582 CSS tokenizer's regex character range between * and ~ as valid in URL types.
2584 * css/CSSPrimitiveValue.cpp:
2585 (WebCore::isCSSTokenizerURL):
2587 2006-09-09 Alexey Proskuryakov <ap@nypop.com>
2591 - http://bugzilla.opendarwin.org/show_bug.cgi?id=10759
2592 fast/AppleScript/array.html test failing
2594 * bridge/mac/WebCoreFrameBridge.mm:
2595 (aeDescFromJSValue): Convert integer values to typeSInt32 AE descriptors.
2597 2006-09-08 Eric Seidel <eric@eseidel.com>
2601 Replace incorrect fooBaseValue() calls with foo() calls instead.
2602 http://bugzilla.opendarwin.org/show_bug.cgi?id=10746
2604 With the previously broken animation system, we had both base and anim values
2605 but they were not automatically connected/disconnected when animation started and stopped.
2606 So the animVals were basically never used (since they were always wrong).
2607 Now, animVal and baseVal are handled correctly.
2609 There are only 3 places in the code where we will ever need to use the BaseValue accessor variants.
2610 1. SVGAnimated* DOM bindings
2612 3. parseMappedAttribute implementations
2614 * kcanvas/RenderForeignObject.cpp:
2615 (WebCore::RenderForeignObject::translationForAttributes):
2616 * kcanvas/RenderSVGImage.cpp:
2617 (WebCore::RenderSVGImage::paint):
2618 (WebCore::RenderSVGImage::relativeBBox):
2619 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
2620 (WebCore::RenderSVGImage::translationForAttributes):
2621 * kcanvas/RenderSVGText.cpp:
2622 (WebCore::RenderSVGText::translationForAttributes):
2623 * ksvg2/misc/SVGImageLoader.cpp:
2624 (WebCore::SVGImageLoader::updateFromElement):
2625 * ksvg2/svg/SVGAElement.cpp:
2626 (WebCore::SVGAElement::defaultEventHandler):
2627 * ksvg2/svg/SVGCircleElement.cpp:
2628 (SVGCircleElement::parseMappedAttribute):
2629 (SVGCircleElement::toPathData):
2630 (SVGCircleElement::pushAttributeContext):
2631 (SVGCircleElement::hasPercentageValues):
2632 * ksvg2/svg/SVGClipPathElement.cpp:
2633 (SVGClipPathElement::canvasResource):
2634 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2635 (SVGComponentTransferFunctionElement::transferFunction):
2636 * ksvg2/svg/SVGCursorElement.cpp:
2637 (SVGCursorElement::parseMappedAttribute):
2638 * ksvg2/svg/SVGEllipseElement.cpp:
2639 (WebCore::SVGEllipseElement::parseMappedAttribute):
2640 (WebCore::SVGEllipseElement::toPathData):
2641 (WebCore::SVGEllipseElement::pushAttributeContext):
2642 (WebCore::SVGEllipseElement::hasPercentageValues):
2643 * ksvg2/svg/SVGFEBlendElement.cpp:
2644 (SVGFEBlendElement::filterEffect):
2645 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2646 (SVGFEColorMatrixElement::filterEffect):
2647 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2648 (SVGFEComponentTransferElement::filterEffect):
2649 * ksvg2/svg/SVGFECompositeElement.cpp:
2650 (SVGFECompositeElement::filterEffect):
2651 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2652 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2653 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2654 (SVGFEDisplacementMapElement::filterEffect):
2655 * ksvg2/svg/SVGFEDistantLightElement.cpp:
2656 (WebCore::SVGFEDistantLightElement::lightSource):
2657 * ksvg2/svg/SVGFEFloodElement.cpp:
2658 (SVGFEFloodElement::filterEffect):
2659 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2660 (SVGFEGaussianBlurElement::filterEffect):
2661 * ksvg2/svg/SVGFEImageElement.cpp:
2662 (SVGFEImageElement::parseMappedAttribute):
2663 * ksvg2/svg/SVGFEMergeElement.cpp:
2664 (SVGFEMergeElement::SVGFEMergeElement):
2665 (SVGFEMergeElement::filterEffect):
2666 * ksvg2/svg/SVGFEOffsetElement.cpp:
2667 (SVGFEOffsetElement::filterEffect):
2668 * ksvg2/svg/SVGFEPointLightElement.cpp:
2669 (WebCore::SVGFEPointLightElement::SVGFEPointLightElement):
2670 (WebCore::SVGFEPointLightElement::lightSource):
2671 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2672 (SVGFESpecularLightingElement::filterEffect):
2673 * ksvg2/svg/SVGFESpotLightElement.cpp:
2674 (WebCore::SVGFESpotLightElement::lightSource):
2675 * ksvg2/svg/SVGFETileElement.cpp:
2676 (SVGFETileElement::filterEffect):
2677 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2678 (SVGFETurbulenceElement::filterEffect):
2679 * ksvg2/svg/SVGFilterElement.cpp:
2680 (SVGFilterElement::canvasResource):
2681 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
2682 (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
2683 * ksvg2/svg/SVGGradientElement.cpp:
2684 (SVGGradientElement::rebuildStops):
2685 * ksvg2/svg/SVGHelper.cpp:
2686 (WebCore::SVGHelper::PercentageOfViewport):
2687 * ksvg2/svg/SVGLineElement.cpp:
2688 (SVGLineElement::toPathData):
2689 (SVGLineElement::pushAttributeContext):
2690 (SVGLineElement::hasPercentageValues):
2691 * ksvg2/svg/SVGLinearGradientElement.cpp:
2692 (SVGLinearGradientElement::buildGradient):
2693 * ksvg2/svg/SVGMarkerElement.cpp:
2694 (WebCore::SVGMarkerElement::canvasResource):
2695 * ksvg2/svg/SVGMaskElement.cpp:
2696 (WebCore::SVGMaskElement::attributeChanged):
2697 (WebCore::SVGMaskElement::drawMaskerContent):
2698 * ksvg2/svg/SVGPatternElement.cpp:
2699 (WebCore::SVGPatternElement::pushAttributeContext):
2700 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
2701 (WebCore::SVGPatternElement::drawPatternContentIntoTile):
2702 (WebCore::SVGPatternElement::notifyAttributeChange):
2703 (WebCore::SVGPatternElement::getCTM):
2704 * ksvg2/svg/SVGRadialGradientElement.cpp:
2705 (WebCore::SVGRadialGradientElement::buildGradient):
2706 * ksvg2/svg/SVGRectElement.cpp:
2707 (WebCore::SVGRectElement::toPathData):
2708 (WebCore::SVGRectElement::pushAttributeContext):
2709 (WebCore::SVGRectElement::hasPercentageValues):
2710 * ksvg2/svg/SVGSVGElement.cpp:
2711 (WebCore::SVGSVGElement::viewport):
2712 (WebCore::SVGSVGElement::parseMappedAttribute):
2713 (WebCore::SVGSVGElement::getCTM):
2714 (WebCore::SVGSVGElement::getScreenCTM):
2715 (WebCore::SVGSVGElement::createRenderer):
2716 * ksvg2/svg/SVGTRefElement.cpp:
2717 (SVGTRefElement::updateReferencedText):
2718 * ksvg2/svg/SVGUseElement.cpp:
2719 (SVGUseElement::closeRenderer):
2721 2006-09-08 Eric Seidel <eric@eseidel.com>
2725 Remove the last vestiges of KDOM (KDOMCSSValue and KDOMCSSValueList)
2726 http://bugzilla.opendarwin.org/show_bug.cgi?id=10778
2728 * ksvg2/css/SVGCSSParser.cpp:
2729 (WebCore::CSSParser::parseSVGValue):
2730 (WebCore::CSSParser::parseSVGStrokeDasharray):
2731 (WebCore::CSSParser::parseSVGPaint):
2732 (WebCore::CSSParser::parseSVGColor):
2734 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2736 Reviewed by Darin and Tim H.
2738 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10774
2739 Auto-generate the Objective-C DOM Traversal bindings
2741 - Auto-generates DOMNodeIterator and DOMTreeWalker.
2743 - Splits out DOMNodeFilter into its own file.
2745 * DerivedSources.make:
2746 * WebCore.xcodeproj/project.pbxproj:
2747 * bindings/objc/DOM.mm:
2748 * bindings/objc/DOMNodeFilter.h: Added.
2749 * bindings/objc/DOMTraversal.h:
2750 * bindings/objc/PublicDOMInterfaces.h:
2751 * bindings/scripts/CodeGeneratorObjC.pm:
2752 * dom/NodeFilter.idl:
2753 * dom/NodeIterator.idl:
2755 * dom/TreeWalker.idl:
2757 2006-09-07 MorganL <morlmor@yahoo.com>
2759 Reviewed by Darin, landed by Adam.
2761 Fixes part of bug 10743: Windows build busted.
2763 * platform/win/FontCacheWin.cpp: Add missing #include, set svn:eol-style to native
2764 (WebCore::FontCache::getFontLinkInterface):
2765 (WebCore::FontCache::getFontDataForCharacters):
2766 * platform/win/FontDataWin.cpp: Ditto.
2767 (WebCore::FontData::platformWidthForGlyph):
2768 * platform/win/FontWin.cpp: Add missing #include, band-aid over const problem with GlyphBufferGlyph
2769 (WebCore::Font::drawGlyphs):
2770 * platform/win/ResourceLoaderWin.cpp: Add missing #include, change .ascii() to .latin1()
2771 (WebCore::ResourceLoaderWndProc):
2772 (WebCore::ResourceLoader::start):
2774 2006-09-07 Alexey Proskuryakov <ap@nypop.com>
2778 http://bugzilla.opendarwin.org/show_bug.cgi?id=10753
2779 REGRESSION: The beginning of a CSS file is missing
2781 Test: http/tests/incremental/slow-utf8-css.pl
2783 * loader/Decoder.cpp:
2784 (WebCore::Decoder::checkForCSSCharset): Use the same buffering logic as used for HTML.
2785 (WebCore::Decoder::decode):
2786 * loader/Decoder.h: Added a return value and a movedDataToBuffer parameter to
2787 checkForCSSCharset().
2789 2006-09-07 Sam Weinig <sam.weinig@gmail.com>
2793 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10766
2794 Auto-generate the Objective-C DOM Events bindings
2796 - Auto-generates DOMEvent, DOMKeyboardEvent, DOMMouseEvent, DOMMutationEvent,
2797 DOMOverflowEvent, DOMUIEvent, and DOMWheelEvent.
2799 - Splits out DOMEventListener and DOMEventTarget into their own files.
2801 * DerivedSources.make:
2802 * WebCore.xcodeproj/project.pbxproj:
2803 * bindings/objc/DOMEventListener.h: Added.
2804 * bindings/objc/DOMEventTarget.h: Added.
2805 * bindings/objc/DOMEvents.h:
2806 * bindings/objc/DOMEvents.mm:
2807 (-[DOMEvent WebCore::]):
2808 (-[DOMEvent _initWithEvent:WebCore::]):
2809 (+[DOMEvent _eventWith:WebCore::]):
2810 * bindings/objc/DOMEventsNonstandard.mm: Removed.
2811 * bindings/objc/DOMNode.h:
2812 * bindings/objc/PublicDOMInterfaces.h:
2813 * bindings/scripts/CodeGenerator.pm:
2814 * bindings/scripts/CodeGeneratorObjC.pm:
2816 * dom/EventListener.idl: Added.
2817 * dom/EventTarget.idl: Added.
2818 * dom/KeyboardEvent.idl:
2819 * dom/MouseEvent.idl:
2821 * dom/WheelEvent.idl:
2823 2006-09-07 Rob Buis <buis@kde.org>
2827 http://bugzilla.opendarwin.org/show_bug.cgi?id=9753
2828 SVG with width and height 100% leaves room for scrollbar on the right.
2830 Relayout children of svg containers, except svg shapes that do not depend on percentages.
2832 * kcanvas/RenderPath.cpp:
2833 (WebCore::RenderPath::hasPercentageValues):
2834 * kcanvas/RenderPath.h:
2835 * kcanvas/RenderSVGContainer.cpp:
2836 (WebCore::RenderSVGContainer::layout):
2837 * ksvg2/svg/SVGCircleElement.cpp:
2838 (SVGCircleElement::hasPercentageValues):
2839 * ksvg2/svg/SVGCircleElement.h:
2840 * ksvg2/svg/SVGEllipseElement.cpp:
2841 (WebCore::SVGEllipseElement::hasPercentageValues):
2842 * ksvg2/svg/SVGEllipseElement.h:
2843 * ksvg2/svg/SVGLineElement.cpp:
2844 (SVGLineElement::hasPercentageValues):
2845 * ksvg2/svg/SVGLineElement.h:
2846 * ksvg2/svg/SVGRectElement.cpp:
2847 (WebCore::SVGRectElement::hasPercentageValues):
2848 * ksvg2/svg/SVGRectElement.h:
2849 * ksvg2/svg/SVGStyledElement.h:
2850 (WebCore::SVGStyledElement::hasPercentageValues):
2852 2006-09-06 Brady Eidson <beidson@apple.com>
2854 Constant renamed in 16250 wasn't changed in each use
2856 * platform/win/GlyphMapWin.cpp:
2857 (WebCore::GlyphMap::fillPage):
2859 2006-09-06 Darin Adler <darin@apple.com>
2861 Reviewed by Tim Hatcher.
2863 - fix crashes affecting editing layout tests (regressions from my vector change)
2865 * editing/BreakBlockquoteCommand.cpp:
2866 (WebCore::BreakBlockquoteCommand::doApply): Added check for empty vector.
2867 * editing/InsertParagraphSeparatorCommand.cpp:
2868 (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
2870 2006-09-06 David Harrison <harrison@apple.com>
2872 Reviewed and tweaked by Tim H.
2874 <rdar://problem/4564955> WebKit doesn't trigger Auto Font Activation
2876 If we don't find the font in the available fonts list, call [NSFont fontWithName:size:]
2877 to trigger a search that will include auto activation. No PLT or iBench perf impact.
2878 No layout tests affected. Not testable in an automated way that will work on all systems.
2880 * platform/mac/WebFontCache.mm:
2881 (+[WebFontCache fontWithFamily:traits:size:]):
2883 2006-09-06 Nikolas Zimmermann <zimmermann@kde.org>
2885 Reviewed and landed by ap.
2889 * CMakeLists.txt: Take out CharacterData.cpp from build / add new Text* files to build.
2890 * platform/qt/BrowserExtensionQt.cpp: Add wtf/Platform.h include.
2891 * platform/qt/FontCacheQt.cpp: Add FontData.h include.
2892 * platform/qt/FontQt.cpp:
2893 (WebCore::Font::drawGlyphs): Fix constness in reinterpret_cast.
2894 * platform/qt/FrameQt.cpp:
2895 (WebCore::FrameQt::markMisspellings): Change "SelectionController" param type to "Selection".
2896 (WebCore::FrameQt::respondToChangedSelection): Ditto.
2897 (WebCore::FrameQt::respondToChangedContents): Ditto.
2898 (WebCore::FrameQt::shouldChangeSelection): Ditto.
2899 * platform/qt/FrameQt.h: Ditto.
2900 * platform/qt/ImageQt.cpp:
2901 (WebCore::Image::supportsType): Fix String->QString conversion.
2902 * platform/qt/ResourceLoaderManager.cpp:
2903 (WebCore::ResourceLoaderManager::add): Fix String->DeprecatedString conversion.
2904 * platform/qt/ScrollViewCanvasQt.cpp:
2905 (WebCore::ScrollViewCanvasQt::handleKeyEvent): Adapt to SelectionController signature changes.
2906 * platform/qt/qt-encodings.txt: Removed.
2908 2006-09-06 Darin Adler <darin@apple.com>
2910 Reviewed by Tim Hatcher.
2912 - http://bugzilla.opendarwin.org/show_bug.cgi?id=10675
2913 tweak font-related headers and convert lists to vectors
2915 One major change was to greatly reduce the number of files that include Font.h.
2916 Another was to convert many uses of DeprecatedPtrList/DeprecatedValueList to Vector.
2918 * WebCore.xcodeproj/project.pbxproj: Added TextStyle.h.
2920 * bindings/objc/DOM.mm: (-[DOMElement _font]): Changed to not depend on
2921 Font::getNSFont since a WebCore::Font represents more than one NSFont.
2923 * bindings/objc/DOMNode.mm: (-[DOMNode lineBoxRects]): Updated to use Vector.
2924 * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
2925 * bridge/mac/FrameViewMac.mm: (WebCore::FrameView::updateDashboardRegions): Ditto.
2926 * css/CSSComputedStyleDeclaration.cpp:
2927 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Ditto.
2929 (WebCore::Document::dashboardRegions): Ditto.
2930 (WebCore::Document::setDashboardRegions): Ditto.
2931 * dom/Document.h: Ditto.
2932 * editing/ReplaceSelectionCommand.cpp:
2933 (WebCore::ReplacementFragment::removeUnrenderedNodes): Ditto.
2934 * html/FormDataList.h: Ditto.
2935 * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::isFocusable): Ditto.
2936 * html/HTMLFormElement.cpp: (WebCore::HTMLFormElement::formData): Ditto.
2937 * kcanvas/RenderPath.cpp: (WebCore::RenderPath::absoluteRects): Ditto.
2938 * kcanvas/RenderPath.h: Ditto.
2939 * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::absoluteRects): Ditto.
2940 * kcanvas/RenderSVGImage.h: Ditto.
2941 * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::absoluteRects): Ditto.
2942 * kcanvas/RenderSVGText.h: Ditto.
2943 * loader/FormData.cpp:
2944 (WebCore::FormData::flatten): Ditto.
2945 (WebCore::FormData::flattenToString): Ditto.
2946 * loader/FormData.h: (WebCore::FormData::elements): Ditto.
2947 * loader/mac/LoaderFunctionsMac.mm: (WebCore::ServeSynchronousRequest): Ditto.
2948 * page/Frame.cpp: (WebCore::Frame::markedTextUnderlines): Ditto.
2949 * page/Frame.h: Ditto.
2950 * page/FramePrivate.h: Ditto.
2951 * platform/mac/ResourceLoaderMac.mm: (WebCore::ResourceLoader::start): Ditto.
2952 * rendering/InlineTextBox.h: Ditto.
2953 * rendering/InlineTextBox.cpp:
2954 (WebCore::InlineTextBox::paint): Ditto.
2955 (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
2956 * rendering/RenderContainer.h: Ditto.
2957 * rendering/RenderContainer.cpp: (WebCore::RenderContainer::lineBoxRects): Ditto.
2958 * rendering/RenderInline.h: Ditto.
2959 * rendering/RenderInline.cpp: (WebCore::RenderInline::absoluteRects): Ditto.
2960 * rendering/RenderObject.h: Ditto.
2961 * rendering/RenderObject.cpp:
2962 (WebCore::RenderObject::lineBoxRects): Ditto.
2963 (WebCore::RenderObject::absoluteRects): Ditto.
2964 (WebCore::RenderObject::absoluteBoundingBoxRect): Ditto.
2965 (WebCore::RenderObject::addDashboardRegions): Ditto.
2966 (WebCore::RenderObject::collectDashboardRegions): Ditto.
2967 * rendering/RenderStyle.h: Ditto.
2968 * rendering/RenderStyle.cpp:
2969 (WebCore::RenderStyle::initialDashboardRegions): Ditto.
2970 (WebCore::RenderStyle::noneDashboardRegions): Ditto.
2971 * rendering/RenderText.h: Ditto.
2972 * rendering/RenderText.cpp:
2973 (WebCore::RenderText::absoluteRects): Ditto.
2974 (WebCore::RenderText::lineBoxRects): Ditto.
2975 * rendering/RenderView.h: Ditto.
2976 * rendering/RenderView.cpp: (WebCore::RenderView::absoluteRects): Ditto.
2978 * bridge/mac/FrameMac.mm:
2979 (WebCore::FrameMac::attributedString): Updated to use Vector and changed to not
2980 depend on getNSFont on a Font.
2981 (WebCore::FrameMac::fontForSelection): Changed to not depend on Font::getNSFont.
2982 (WebCore::FrameMac::fontAttributesForSelectionStart): Ditto.
2983 (WebCore::convertAttributesToUnderlines): Updated to use Vector.
2984 (WebCore::FrameMac::setMarkedTextRange): Ditto.
2985 (WebCore::FrameMac::dashboardRegionsDictionary): Ditto.
2987 * bridge/mac/WebCoreAXObject.mm:
2988 (boundingBoxRect): Updated to use Vector.
2989 (AXAttributeStringSetStyle): Changed to not depend on Font::getNSFont.
2991 * bridge/mac/WebCoreStringTruncator.mm: Updated includes.
2992 * page/Settings.h: Ditto.
2993 * platform/mac/WebCoreTextRenderer.mm: Ditto.
2994 * rendering/EllipsisBox.cpp: Ditto.
2996 * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
2997 Updated to use a Vector that we iterate in reverse order instead of a linked list
2998 that we reverse by prepending elements instead of adding to the end.
2999 * editing/InsertParagraphSeparatorCommand.cpp:
3000 (WebCore::InsertParagraphSeparatorCommand::doApply): Ditto.
3002 * loader/DocLoader.h: Removed unneeded include of DeprecatedPtrList.h.
3004 * platform/Font.h: Moved TextStyle to a separate header. Removed Font::getNSFont.
3005 * platform/Font.cpp: Changed to use const instead of #define.
3006 (WebCore::Font::width): Overloaded this so we don't have a default parameter, which
3007 eliminates the need to have TextStyle defined to compiler the Font.h header.
3009 * platform/TextStyle.h: Added.
3011 * platform/FontData.h: Added a forward declaration of ATSUStyle so this header
3014 * platform/FontFallbackList.h: Tweaks.
3015 * platform/FontFallbackList.cpp: Tweaks.
3017 * platform/FontFamily.h: Removed unneeded NSString declaration. Simplified class by
3018 using Shared and RefPtr, which resulted in removing many explicit functions.
3019 * platform/FontFamily.cpp: More of the same.
3021 * platform/GlyphBuffer.h: Removed unneeded MAX_GLYPH_EXPANSION and GLYPH_BUFFER_SIZE
3024 * platform/GlyphMap.h: Removed unneeded include of GlyphBuffer.h, which was included
3025 only for the typedef of Glyph; there's no reason to not just repeat that typedef here
3026 since C++ allows multiple typedefs if they match. Renamed the cGlyphPageSize constant
3028 * platform/GlyphMap.cpp: Changed NO_BREAK_SPACE and ZERO_WIDTH_SPACE macros into
3029 constants. Updated for cGlyphPageSize change.
3030 * platform/mac/GlyphMapMac.cpp: Updated for cGlyphPageSize change.
3032 * platform/GlyphWidthMap.h: Removed unneeded include of GlyphBuffer.h, which was included
3033 only for the typedef of Glyph; there's no reason to not just repeat that typedef here
3034 since C++ allows multiple typedefs if they match. Renamed the cGlyphWidthPageSize constant
3035 to GlyphWidthPage::size.
3036 * platform/GlyphWidthMap.cpp: Updated for cGlyphWidthPageSize change.
3038 * platform/GraphicsContext.h: Removed unneeded include of Font.h. Changed drawText
3039 function to use overloading instead of default parameters to allow TextStyle to be optional.
3040 This cuts the dependency on TextStyle.
3041 * platform/GraphicsContext.cpp: (WebCore::GraphicsContext::drawText): Added overload.
3043 * platform/Image.h: Removed unneeded forward declaration of IntSize.
3045 * platform/mac/FontCacheMac.mm: (WebCore::FontCache::getFontDataForCharacters):
3046 Changed to not depend on Font::getNSFont.
3047 * platform/mac/ListBoxMac.mm: (-[WebCoreTableView fontChanged]): Ditto.
3048 * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
3050 * rendering/RenderPopupMenuMac.mm:
3051 (WebCore::RenderPopupMenuMac::showPopup): Ditto.
3052 (WebCore::RenderPopupMenuMac::addGroupLabel): Ditto.
3053 (WebCore::RenderPopupMenuMac::addOption): Ditto.
3055 * platform/mac/FontDataMac.mm: Fixed includes. Converted a bunch of macros to be
3056 constants and inline functions instead.
3058 * platform/mac/FontMac.mm: Fixed includes.
3059 * platform/mac/PopUpButtonMac.mm: Ditto.
3060 * rendering/RenderMenuList.cpp: Ditto.
3061 * rendering/RenderTextControl.cpp: Ditto.
3063 * platform/mac/WebCoreSystemInterface.h: Fixes so this header stands alone and is
3064 compatible with all 4 of C, ObjC, C++, ObjC++.
3066 2006-09-05 MorganL <morlmor@yahoocom>
3068 Reviewed/landed by aroben.
3070 Fixes bug 10743: Windows build is busted.
3072 * WebCore.vcproj/WebCore/WebCore.vcproj:
3073 * bridge/win/FrameWin.h:
3074 * platform/ResourceLoaderInternal.h:
3075 * platform/TextEncodingRegistry.cpp:
3076 * platform/win/ResourceLoaderWin.cpp:
3077 (WebCore::ResourceLoaderWndProc):
3078 (WebCore::ResourceLoader::start):
3079 * platform/win/TemporaryLinkStubs.cpp:
3080 (FrameWin::markMisspellings):
3081 (FrameWin::shouldChangeSelection):
3082 (FrameWin::respondToChangedSelection):
3083 (FrameWin::respondToChangedContents):
3084 (RenderThemeWin::adjustMenuListStyle):
3086 2006-09-05 Darin Adler <darin@apple.com>
3088 - some quick build fixes
3090 * bridge/mac/WebCoreAXObject.mm: Remove use of WebCore::UChar.
3091 * bridge/mac/WebCoreFrameBridge.mm: Ditto. Also remove include
3093 * css/CSSGrammar.y: Remove use of WebCore::UChar.
3094 * platform/UChar.h: Back out WebCore::UChar for now.
3096 2006-09-05 Darin Adler <darin@apple.com>
3100 - http://bugzilla.opendarwin.org/show_bug.cgi?id=10728
3101 text encodings should work without a numeric ID
3103 - includes a fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10681
3104 REGRESSION: Reproducible crash at Wikipedia
3106 - fixed a bug where link elements would not set the charset properly for
3107 CSS stylesheets they loaded
3109 - converted DeprecatedString code paths that are related to decoding web
3110 pages to use String instead, to ensure that conversion back and forth won't
3113 Test: fast/encoding/css-link-charset.html
3114 Test: fast/forms/form-data-encoding-normalization-overrun.html
3116 Coverage for encoding issues is pretty good, so we probably don't need more
3117 tests to land this. Our existing tests did find issues with this patch while
3118 it was under development. And I suppose it would be nice to have even more tests.
3120 * platform/TextEncoding.h:
3121 * platform/TextEncoding.cpp:
3122 (WebCore::addEncodingName): Added. Used to build up the set used by isJapanese.
3123 (WebCore::TextEncoding::TextEncoding): Removed boolean "eight bit only" parameter and
3124 added an overload for String as well as const char*. Simplified because now the only
3125 data member is m_name -- calls the registry's atomicCanonicalTextEncodingName function
3126 to make the name canonical (resolve aliases) and atomic (use a single pointer for each
3127 encoding name so we can compare and hash efficiently).
3128 (WebCore::TextEncoding::decode): Renamed from toUnicode. Just a simple wrapper on top
3129 of TextDecoder that can be used when the data to decode is all present at once.
3130 (WebCore::TextEncoding::encode): Renamed from fromUnicode. Handles the normalization and
3131 then uses the registry to get a codec to handle the rest.
3132 (WebCore::TextEncoding::usesVisualOrdering): New implementation that compares with the
3133 name of the only encoding that uses visual ordering. We blur the concepts a bit so that
3134 we treat the visual ordering and logical ordering variations as two separate encodings.
3135 (WebCore::TextEncoding::isJapanese): New implementation that uses a set to efficiently
3136 determine if an encoding is Japanese.
3137 (WebCore::TextEncoding::backslashAsCurrencySymbol): New implementation that compares
3138 with the names of the two encodings that have the strange backslash.
3139 (WebCore::TextEncoding::closest8BitEquivalent): Added. Replaces the old "eight bit only"
3140 boolean parameter to the constructor.
3141 (WebCore::ASCIIEncoding): Added.
3142 (WebCore::Latin1Encoding): Added.
3143 (WebCore::UTF16BigEndianEncoding): Added.
3144 (WebCore::UTF16LittleEndianEncoding): Added.
3145 (WebCore::UTF8Encoding): Added.
3146 (WebCore::WindowsLatin1Encoding): Added.
3148 * platform/TextEncodingRegistry.h: Added.
3149 * platform/TextEncodingRegistry.cpp: Added. Keeps a table of all the character set
3150 aliases and names and another of all the codecs and parameters for each name.
3152 * platform/TextDecoder.h: Added.
3153 * platform/TextDecoder.cpp: Added. Contains logic to look for a BOM and hand the data
3154 to the proper codec, based on code that used to be in both the ICU and Mac codecs.
3156 * platform/StreamingTextDecoder.h: Renamed class to TextCodec. We'll rename
3157 the files in a later check-in. Moved creation functions into TextEncodingRegistry.h.
3158 Added typedefs of the registrar function types so classes derived from this one
3159 can use them without including the TextEncodingRegistry header. Renamed toUnicode
3160 and fromUnicode to decode and encode. Changed the parameter and return types so that
3161 the parameters are pointers to the data and the return types are String and CString.
3162 * platform/StreamingTextDecoder.cpp:
3163 (WebCore::TextCodec::appendOmittingBOM): Added. Helper function used by multiple
3164 classes derived from this one.
3166 * platform/TextCodecLatin1.h: Added.
3167 * platform/TextCodecLatin1.cpp: Added. Contains logic to handle encoding and decoding
3168 Windows Latin-1, based on code that used to be in both the ICU and Mac codecs.
3170 * platform/TextCodecUTF16.h: Added.
3171 * platform/TextCodecUTF16.cpp: Added. Contains logic to handle encoding and decoding
3172 UTF-16, based on code that used to be in both the ICU and Mac codecs.
3174 * platform/StreamingTextDecoderICU.h: Renamed class to TextCodecICU. We'll rename
3175 the files in a later check-in. Removed all the functions having to do with handling
3176 BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
3177 because that's superseded by the registry. Added registry hook functions.
3178 * platform/StreamingTextDecoderICU.cpp:
3179 (WebCore::TextCodecICU::registerEncodingNames): Added. Registers all encodings that
3180 ICU can handle with the "IANA" standard. Also includes a special case for a particular
3181 type of encoding for Hebrew that uses logical ordering. Also includes aliases that are
3182 not in ICU but that were historically known to WebKit for encodings that ICU handles.
3183 (WebCore::newTextCodecICU): Added. Used by registerCodecs.
3184 (WebCore::TextCodecICU::registerCodecs): Added. Registers codecs for the same encodings
3186 (WebCore::TextCodecICU::TextCodecICU): Much simplified since this now only handles the
3187 actual ICU encoding and decoding.
3188 (WebCore::TextCodecICU::~TextCodecICU): Renamed.
3189 (WebCore::TextCodecICU::releaseICUConverter): Changed to be a const member function.
3190 (WebCore::TextCodecICU::createICUConverter): Changed to be a const member function and
3191 to check if the cached converter can be reused in a simpler way.
3192 (WebCore::TextCodecICU::decode): Updated for changes to types.
3193 (WebCore::TextCodecICU::encode): Updated for changes to types, and removed normalization
3194 since this is now handled by the caller.
3196 * platform/mac/StreamingTextDecoderMac.h: Renamed class to TextCodecMac. We'll rename
3197 the files in a later check-in. Removed all the functions having to do with handling
3198 BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
3199 because that's superseded by the registry. Added registry hook functions.
3200 * platform/mac/StreamingTextDecoderMac.cpp:
3201 (WebCore::TextCodecMac::registerEncodingNames): Added. Registers encodings based on
3202 the charset table generated by the make-charset-table.pl perl script.
3203 (WebCore::newTextCodecMac): Added. Used by registerCodecs.
3204 (WebCore::TextCodecMac::registerCodecs): Added. Registers codecs for the same encodings
3206 (WebCore::TextCodecMac::TextCodecMac): Much simplified since this now only handles the
3207 actual TEC/CF encoding and decoding.
3208 (WebCore::TextCodecMac::~TextCodecMac): Renamed.
3209 (WebCore::TextCodecMac::releaseTECConverter): Changed to be a const member function.
3210 (WebCore::TextCodecMac::createTECConverter): Changed to be a const member function.
3211 (WebCore::TextCodecMac::decode): Updated for changes to types.
3212 (WebCore::TextCodecMac::encode): Updated for changes to types, and removed normalization
3213 since this is now handled by the caller.
3215 * platform/mac/mac-encodings.txt: Removed most of the names in this file. This now
3216 only includes encodings where we want to use Mac OS X Carbon Text Encoding Converter,
3217 which is only encodings that are not supported by ICU.
3218 * platform/make-charset-table.pl: Removed flags from output. We don't use them any more.
3219 * platform/CharsetData.h: Changed from a platform-independent header into a
3220 Macintosh-specific one. A later patch should move this and rename it. Also
3221 subsumes ExtraCFEncodings.h.
3223 * WebCore.xcodeproj/project.pbxproj: Added new files. Changed the prefix on the
3224 "make character sets" rule to be kTextEncoding instead of kCFStringEncoding.
3226 * loader/Decoder.h: Change the default encoding parameter to the constructor to be
3227 a TextEncoding object. Renamed setEncodingName to setEncoding, and made it take a
3228 TextEncoding for the encoding. Removed the encodingName and visuallyOrdered functions,
3229 since TextEncoding supports both directly in a straightforward way. Changed both
3230 decode and flush functions to return String instead of DeprecatedString. Added a
3231 number of private functions to factor this class a bit more so it's easier to read.
3232 Got rid of a number of redundant data members. Changed the buffer to a Vector<char>.
3233 * loader/Decoder.cpp:
3234 (WebCore::Decoder::determineContentType): Added. Used by constructor to determine
3235 the content type based on the passed-in MIME type.
3236 (WebCore::Decoder::defaultEncoding): Added. Used by constructor to determine the
3237 default encoding based on the passed in default and the content type.
3238 (WebCore::Decoder::Decoder): Changed to use the functions above. Also renamed
3239 m_reachedBody to m_checkedForHeadCharset.
3240 (WebCore::Decoder::setEncoding): Renamed and changed to take an encoding rather
3241 than an encoding name.
3242 (WebCore::Decoder::checkForBOM): Factored out of decode.
3243 (WebCore::Decoder::checkForCSSCharset): Factored out of decode.
3244 (WebCore::Decoder::checkForHeadCharset): Factored out of decode.
3245 (WebCore::Decoder::detectJapaneseEncoding): Factored out of decode.
3246 (WebCore::Decoder::decode): Refactored so it's no longer one huge function.
3247 Changed to use the new Vector<char> and the new API for TextDecoder.
3248 (WebCore::Decoder::flush): Added code to empty out the buffer. Not an issue in
3249 practice since we don't re-use the decoder after flushing it.
3251 * platform/UChar.h: Added. Has the type named WebCore::UChar that we'll be switching
3252 to. We'll switch away from the ICU ::UChar type, because we don't want to be so
3253 closely tied to ICU -- include this instead of <unicode/umachine.h>.
3255 * platform/PlatformString.h:
3256 * platform/String.cpp:
3257 (WebCore::String::latin1): Updated for changes to TextEncoding.
3258 (WebCore::String::utf8): Ditto.
3259 (WebCore::String::newUninitialized): Added. Gives a way to create a String and
3260 then write directly into its buffer.
3262 * platform/StringImpl.h: Changed return value for charactersWithNullTermination to
3263 be a const UChar*. While it's true that this function changes the underlying
3264 StringImpl, the characters still shouldn't be modified with the returned pointer.
3265 * platform/StringImpl.cpp:
3266 (WebCore::StringImpl::charactersWithNullTermination): Updated for change above.
3267 (WebCore::StringImpl::newUninitialized): Added. Gives a way to create a StringImpl
3268 and then write directly into its buffer.
3270 * platform/CString.h:
3271 * platform/CString.cpp: (WebCore::CString::newUninitialized): Added. Gives a way
3272 to create a CString and then write directly into its buffer.
3274 * bridge/mac/WebCoreFrameBridge.h: Removed textEncoding method, and replaced
3275 +[WebCoreFrameBridge stringWithData:textEncoding:] with
3276 -[WebCoreFrameBridge stringWithData:] to avoid having to pass text encoding
3278 * bridge/mac/WebCoreFrameBridge.mm:
3279 (-[WebCoreFrameBridge setEncoding:userChosen:]): Removed now-unneeded conversion
3280 to DeprecatedString.
3281 (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3283 (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): Ditto.
3284 (-[WebCoreFrameBridge referrer]): Removed now-unneeded call to getNSString.
3285 (-[WebCoreFrameBridge stringWithData:]): Added. Asks the document's decoder
3286 what its encoding is, and decodes using that.
3287 (+[WebCoreFrameBridge stringWithData:textEncodingName:]): Simplified so it
3288 no longer involved a text encoding ID number.
3289 (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
3290 Changed to use UChar instead of DeprecatedChar.
3291 (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]): Removed
3292 now-unneeded conversion to DeprecatedString.
3293 (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Ditto.
3295 * html/HTMLFormElement.cpp:
3296 (WebCore::encodeCString): Changed parameter to CString.
3297 (WebCore::HTMLFormElement::formData): Updated code for improvements to TextEncoding.
3299 * loader/CachedCSSStyleSheet.h:
3300 * loader/CachedCSSStyleSheet.cpp:
3301 (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Fixed mistake where the
3302 decoder was created without passing in the character set. Also changed from
3303 DeprecatedString to String.
3304 (WebCore::CachedCSSStyleSheet::setCharset): More of the same.
3306 * bindings/js/kjs_window.h: (KJS::ScheduledAction::ScheduledAction): Changed
3307 to use String instead of DeprecatedString, UChar instead of DeprecatedChar,
3308 CString instead of DeprecatedCString, etc.
3309 * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
3310 * bridge/mac/FrameMac.h: Ditto.
3311 * bridge/mac/FrameMac.mm: (WebCore::FrameMac::isCharacterSmartReplaceExempt):
3313 * bridge/mac/WebCoreAXObject.mm:
3314 (-[WebCoreAXObject helpText]): Ditto.
3315 (-[WebCoreAXObject value]): Ditto.
3316 (-[WebCoreAXObject accessibilityDescription]): Ditto.
3317 (-[WebCoreAXObject doAXStringForTextMarkerRange:]): Ditto.
3318 * bridge/mac/WebCoreEncodings.mm: (+[WebCoreEncodings decodeData:]): Ditto.
3319 Also fixed code that does a deref without a ref to use RefPtr instead.
3320 * bridge/mac/WebCoreScriptDebugger.mm:
3321 (-[WebCoreScriptCallFrame evaluateWebScript:]): Ditto.
3322 * bridge/mac/WebCoreSettings.mm:
3323 (-[WebCoreSettings setDefaultTextEncoding:]): Ditto.
3324 * css/CSSImportRule.cpp: (WebCore::CSSImportRule::insertedIntoParent): Ditto.
3325 * css/cssparser.cpp: (WebCore::CSSParser::lex): Ditto.
3328 (WebCore::Document::setCharset): Ditto.
3329 (WebCore::Document::write): Ditto.
3330 (WebCore::Document::determineParseMode): Ditto.
3331 * dom/ProcessingInstruction.cpp:
3332 (WebCore::ProcessingInstruction::checkStyleSheet): Ditto.
3333 * dom/XMLTokenizer.h:
3334 * dom/XMLTokenizer.cpp:
3335 (WebCore::shouldAllowExternalLoad): Ditto.
3336 (WebCore::createStringParser): Ditto.
3337 (WebCore::XMLTokenizer::write): Ditto.
3338 (WebCore::toString): Ditto.
3339 (WebCore::handleElementAttributes): Ditto.
3340 (WebCore::XMLTokenizer::startElementNs): Ditto.
3341 (WebCore::XMLTokenizer::endElementNs): Ditto.
3342 (WebCore::XMLTokenizer::characters): Ditto.
3343 (WebCore::XMLTokenizer::processingInstruction): Ditto.
3344 (WebCore::XMLTokenizer::cdataBlock): Ditto.
3345 (WebCore::XMLTokenizer::comment): Ditto.
3346 (WebCore::XMLTokenizer::internalSubset): Ditto.
3347 (WebCore::getXHTMLEntity): Ditto.
3348 (WebCore::externalSubsetHandler): Ditto.
3349 (WebCore::XMLTokenizer::initializeParserContext): Ditto.
3350 (WebCore::XMLTokenizer::notifyFinished): Ditto.
3351 (WebCore::xmlDocPtrForString): Ditto.
3352 (WebCore::parseXMLDocumentFragment): Ditto.
3353 (WebCore::attributesStartElementNsHandler): Ditto.
3354 (WebCore::parseAttributes): Ditto.
3355 * html/FormDataList.h:
3356 * html/FormDataList.cpp:
3357 (WebCore::FormDataList::appendString): Ditto. Also changed to call the
3358 encoding function by its new name and with new parameters.
3359 (WebCore::FormDataList::appendFile): Ditto.
3360 * html/HTMLDocument.h:
3361 * html/HTMLDocument.cpp:
3362 (WebCore::parseDocTypePart): Ditto.
3363 (WebCore::containsString): Ditto.
3364 (WebCore::parseDocTypeDeclaration): Ditto.
3365 (WebCore::HTMLDocument::determineParseMode): Ditto.
3366 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::appendFormData): Ditto.
3367 * html/HTMLScriptElement.cpp:
3368 (WebCore::HTMLScriptElement::parseMappedAttribute): Ditto.
3369 * html/HTMLTokenizer.h:
3370 * html/HTMLTokenizer.cpp:
3371 (WebCore::HTMLTokenizer::scriptHandler): Ditto.
3372 (WebCore::HTMLTokenizer::parseTag): Ditto.
3373 (WebCore::HTMLTokenizer::write): Ditto.
3374 (WebCore::HTMLTokenizer::finish): Ditto.
3375 (WebCore::parseHTMLDocumentFragment): Ditto.
3378 (WebCore::Cache::requestStyleSheet): Ditto.
3379 (WebCore::Cache::requestScript): Ditto.
3380 * loader/CachedResource.h: Ditto.
3381 * loader/CachedScript.h:
3382 * loader/CachedScript.cpp:
3383 (WebCore::CachedScript::CachedScript): Ditto.
3384 (WebCore::CachedScript::ref): Ditto.
3385 (WebCore::CachedScript::deref): Ditto.
3386 (WebCore::CachedScript::setCharset): Ditto.
3387 (WebCore::CachedScript::data): Ditto.
3388 (WebCore::CachedScript::checkNotify): Ditto.
3389 * loader/CachedXBLDocument.h:
3390 * loader/CachedXBLDocument.cpp:
3391 (WebCore::CachedXBLDocument::setCharset): Ditto.
3392 * loader/CachedXSLStyleSheet.h:
3393 * loader/CachedXSLStyleSheet.cpp:
3394 (WebCore::CachedXSLStyleSheet::setCharset): Ditto.
3395 * loader/DocLoader.cpp:
3396 (WebCore::DocLoader::requestStyleSheet): Ditto.
3397 (WebCore::DocLoader::requestScript): Ditto.
3398 * loader/DocLoader.h: Ditto.
3399 * loader/FormData.h:
3400 * loader/FormData.cpp:
3401 (WebCore::FormData::FormData): Ditto.
3402 (WebCore::FormData::appendFile): Ditto.
3403 (WebCore::FormData::flattenToString): Ditto.
3405 * page/FramePrivate.h:
3407 (WebCore::UserStyleSheetLoader::setStyleSheet): Ditto.
3408 (WebCore::getString): Ditto.
3409 (WebCore::Frame::replaceContentsWithScriptResult): Ditto.
3410 (WebCore::Frame::executeScript): Ditto.
3411 (WebCore::Frame::clear): Ditto.
3412 (WebCore::Frame::write): Ditto.
3413 (WebCore::Frame::endIfNotLoading): Ditto.
3414 (WebCore::Frame::baseTarget): Ditto.
3415 (WebCore::Frame::scheduleRedirection): Ditto.
3416 (WebCore::Frame::scheduleLocationChange): Ditto.
3417 (WebCore::Frame::scheduleHistoryNavigation): Ditto.
3418 (WebCore::Frame::changeLocation): Ditto.
3419 (WebCore::Frame::redirectionTimerFired): Ditto.
3420 (WebCore::Frame::encoding): Ditto.
3421 (WebCore::Frame::submitForm): Ditto.
3422 (WebCore::Frame::referrer): Ditto.
3423 (WebCore::Frame::isCharacterSmartReplaceExempt): Ditto.
3424 (WebCore::Frame::setEncoding): Ditto.
3425 * page/Settings.h: Ditto.
3426 * platform/SegmentedString.h: Ditto.
3427 * platform/SegmentedString.cpp: Ditto.
3428 * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString): Ditto.
3429 * xml/XSLTProcessor.cpp:
3430 (WebCore::transformTextStringToXHTMLDocumentString): Ditto.
3431 (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
3432 * xml/xmlhttprequest.h:
3433 * xml/xmlhttprequest.cpp:
3434 (WebCore::XMLHttpRequest::open): Ditto.
3435 (WebCore::XMLHttpRequest::send): Ditto.
3436 (WebCore::XMLHttpRequest::receivedData): Ditto.
3438 * platform/DeprecatedString.cpp:
3439 (WebCore::DeprecatedString::fromUtf8): Updated for changes to TextEncoding.
3440 (WebCore::DeprecatedString::utf8): Ditto.
3443 * platform/KURL.cpp:
3444 (WebCore::KURL::KURL): Updated to overload based on presence or absence of
3445 TextEncoding rather than having a default.
3446 (WebCore::KURL::init): Moved body of constructor in here. Updated to use
3447 the new TextEncoding interface.
3448 (WebCore::KURL::decode_string): Updated to overload based on presence or
3449 absence of TextEncoding rather than having a default. Updated to use
3450 the new TextEncoding interface.
3451 (WebCore::encodeRelativeString): Updated to use the new TextEncoding interface.
3453 * platform/Font.cpp: (WebCore::WidthIterator::normalizeVoicingMarks): Fixed
3454 code to use U_ZERO_ERROR instead of a typecast.
3456 * bindings/js/kjs_proxy.h: Removed unneeded declaration of DeprecatedString.
3457 * platform/GraphicsContext.h: Ditto.
3459 * platform/GraphicsContext.cpp: Removed unneeded include of "DeprecatedString.h".
3460 * rendering/break_lines.cpp: Ditto.
3461 * xml/XMLSerializer.cpp: Ditto.
3463 * platform/mac/FontDataMac.mm: Removed unneeded include of <unicode/unorm.h>.
3465 * platform/CharsetNames.h: Emptied out this file. A later patch could remove it.
3466 * platform/CharsetNames.cpp: Ditto.
3467 * platform/mac/ExtraCFEncodings.h: Ditto.
3469 2006-09-05 Nikolas Zimmermann <zimmermann@kde.org>
3471 Reviewed by eseidel. Landed by eseidel.
3473 Fixes: http://bugzilla.opendarwin.org/show_bug.cgi?id=10490
3475 -> Remove all SVGAnimated* usage from ksvg2.
3476 This is all done using a set of macros which live in svg/SVGElement.h
3477 (ANIMATED_PROPERTY_DECLARATIONS / ANIMATED_PROPERTY_DEFINITIONS).
3478 Transform all properties to this new concept using Eric ruby script.
3480 -> Replace all usages of "property()->baseVal()" with "propertyBaseValue()".
3481 -> Replace all usages of "property()->setBaseVal()" with "setPropertyBaseValue()".
3483 -> Add "virtual const SVGElement* contextElement() const".
3484 This concept allows to access the document (needed to access the SVGDocumentExtensions)
3485 from lowest-base-classes like SVGURIReference / SVGExternalResourcesRequired etc.
3487 These classes contain this contextElement() function as pure virtual functions.
3488 The topmost classes (like SVGCircleElement) implement this function with "return this".
3490 -> Move default value initialization to constructors.
3491 As the lazy_create usage, which was involved in default property initialization,
3492 has been removed, we need to do the initialization in the constructor.
3494 This forces us to fix the SVGLength class, as calling viewportElement() from the
3495 constructor does not work. This SVGLength cleanup is one of the next things to fix.
3497 * bindings/scripts/CodeGeneratorJS.pm:
3498 * kcanvas/RenderForeignObject.cpp:
3499 (WebCore::RenderForeignObject::translationForAttributes):
3500 * kcanvas/RenderSVGImage.cpp:
3501 (WebCore::RenderSVGImage::paint):
3502 (WebCore::RenderSVGImage::relativeBBox):
3503 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
3504 (WebCore::RenderSVGImage::translationForAttributes):
3505 * kcanvas/RenderSVGText.cpp:
3506 (WebCore::RenderSVGText::translationForAttributes):
3507 * ksvg2/misc/KSVGTimeScheduler.cpp:
3508 (WebCore::SVGTimer::notifyAll):
3509 * ksvg2/misc/SVGDocumentExtensions.cpp:
3510 * ksvg2/misc/SVGDocumentExtensions.h:
3511 (WebCore::SVGDocumentExtensions::baseValueMap):
3512 (WebCore::SVGDocumentExtensions::baseValue):
3513 (WebCore::SVGDocumentExtensions::setBaseValue):
3514 (WebCore::SVGDocumentExtensions::hasBaseValue):
3518 * ksvg2/misc/SVGImageLoader.cpp:
3519 (WebCore::SVGImageLoader::updateFromElement):
3520 * ksvg2/svg/SVGAElement.cpp:
3521 (WebCore::SVGAElement::parseMappedAttribute):
3522 (WebCore::SVGAElement::defaultEventHandler):
3523 * ksvg2/svg/SVGAElement.h:
3524 (WebCore::SVGAElement::contextElement):
3525 * ksvg2/svg/SVGAnimateColorElement.h:
3526 (WebCore::SVGAnimateColorElement::contextElement):
3527 * ksvg2/svg/SVGAnimateElement.h:
3528 (WebCore::SVGAnimateElement::contextElement):
3529 * ksvg2/svg/SVGAnimateTransformElement.cpp:
3530 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
3531 (WebCore::SVGAnimateTransformElement::initialMatrix):
3532 * ksvg2/svg/SVGAnimateTransformElement.h:
3533 (WebCore::SVGAnimateTransformElement::contextElement):
3534 * ksvg2/svg/SVGCircleElement.cpp:
3535 (SVGCircleElement::SVGCircleElement):
3536 (SVGCircleElement::parseMappedAttribute):
3537 (SVGCircleElement::toPathData):
3538 (SVGCircleElement::pushAttributeContext):
3539 * ksvg2/svg/SVGCircleElement.h:
3540 (WebCore::SVGCircleElement::contextElement):
3541 * ksvg2/svg/SVGClipPathElement.cpp:
3542 (SVGClipPathElement::SVGClipPathElement):
3543 (SVGClipPathElement::parseMappedAttribute):
3544 (SVGClipPathElement::canvasResource):
3545 * ksvg2/svg/SVGClipPathElement.h:
3546 (WebCore::SVGClipPathElement::contextElement):
3547 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
3548 (SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement):
3549 (SVGComponentTransferFunctionElement::parseMappedAttribute):
3550 (SVGComponentTransferFunctionElement::transferFunction):
3551 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
3552 * ksvg2/svg/SVGCursorElement.cpp:
3553 (SVGCursorElement::SVGCursorElement):
3554 (SVGCursorElement::parseMappedAttribute):
3555 * ksvg2/svg/SVGCursorElement.h:
3556 (WebCore::SVGCursorElement::contextElement):
3557 * ksvg2/svg/SVGDefsElement.h:
3558 (WebCore::SVGDefsElement::contextElement):
3559 * ksvg2/svg/SVGElement.h:
3560 * ksvg2/svg/SVGEllipseElement.cpp:
3561 (WebCore::SVGEllipseElement::SVGEllipseElement):
3562 (WebCore::SVGEllipseElement::parseMappedAttribute):
3563 (WebCore::SVGEllipseElement::toPathData):
3564 (WebCore::SVGEllipseElement::pushAttributeContext):
3565 * ksvg2/svg/SVGEllipseElement.h:
3566 (WebCore::SVGEllipseElement::contextElement):
3567 * ksvg2/svg/SVGExternalResourcesRequired.cpp:
3568 (WebCore::SVGExternalResourcesRequired::SVGExternalResourcesRequired):
3569 (WebCore::SVGExternalResourcesRequired::parseMappedAttribute):
3570 * ksvg2/svg/SVGExternalResourcesRequired.h:
3571 * ksvg2/svg/SVGFEBlendElement.cpp:
3572 (SVGFEBlendElement::SVGFEBlendElement):
3573 (SVGFEBlendElement::parseMappedAttribute):
3574 (SVGFEBlendElement::filterEffect):
3575 * ksvg2/svg/SVGFEBlendElement.h:
3576 (WebCore::SVGFEBlendElement::contextElement):
3577 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
3578 (SVGFEColorMatrixElement::SVGFEColorMatrixElement):
3579 (SVGFEColorMatrixElement::parseMappedAttribute):
3580 (SVGFEColorMatrixElement::filterEffect):
3581 * ksvg2/svg/SVGFEColorMatrixElement.h:
3582 (WebCore::SVGFEColorMatrixElement::contextElement):
3583 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
3584 (SVGFEComponentTransferElement::SVGFEComponentTransferElement):
3585 (SVGFEComponentTransferElement::parseMappedAttribute):
3586 (SVGFEComponentTransferElement::filterEffect):
3587 * ksvg2/svg/SVGFEComponentTransferElement.h:
3588 (WebCore::SVGFEComponentTransferElement::contextElement):
3589 * ksvg2/svg/SVGFECompositeElement.cpp:
3590 (SVGFECompositeElement::SVGFECompositeElement):
3591 (SVGFECompositeElement::parseMappedAttribute):
3592 (SVGFECompositeElement::filterEffect):
3593 * ksvg2/svg/SVGFECompositeElement.h:
3594 (WebCore::SVGFECompositeElement::contextElement):
3595 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
3596 (WebCore::SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement):
3597 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
3598 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
3599 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
3600 (WebCore::SVGFEDiffuseLightingElement::contextElement):
3601 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
3602 (SVGFEDisplacementMapElement::SVGFEDisplacementMapElement):
3603 (SVGFEDisplacementMapElement::parseMappedAttribute):
3604 (SVGFEDisplacementMapElement::filterEffect):
3605 * ksvg2/svg/SVGFEDisplacementMapElement.h:
3606 (WebCore::SVGFEDisplacementMapElement::contextElement):
3607 * ksvg2/svg/SVGFEDistantLightElement.cpp:
3608 (WebCore::SVGFEDistantLightElement::lightSource):
3609 * ksvg2/svg/SVGFEFloodElement.cpp:
3610 (SVGFEFloodElement::parseMappedAttribute):
3611 (SVGFEFloodElement::filterEffect):
3612 * ksvg2/svg/SVGFEFloodElement.h:
3613 (WebCore::SVGFEFloodElement::contextElement):
3614 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
3615 (SVGFEGaussianBlurElement::SVGFEGaussianBlurElement):
3616 (SVGFEGaussianBlurElement::parseMappedAttribute):
3617 (SVGFEGaussianBlurElement::filterEffect):
3618 * ksvg2/svg/SVGFEGaussianBlurElement.h:
3619 (WebCore::SVGFEGaussianBlurElement::contextElement):
3620 * ksvg2/svg/SVGFEImageElement.cpp:
3621 (SVGFEImageElement::SVGFEImageElement):
3622 (SVGFEImageElement::parseMappedAttribute):
3623 * ksvg2/svg/SVGFEImageElement.h:
3624 (WebCore::SVGFEImageElement::contextElement):
3625 * ksvg2/svg/SVGFELightElement.cpp:
3626 (SVGFELightElement::SVGFELightElement):
3627 (SVGFELightElement::parseMappedAttribute):
3628 * ksvg2/svg/SVGFELightElement.h:
3629 * ksvg2/svg/SVGFEMergeElement.cpp:
3630 (SVGFEMergeElement::SVGFEMergeElement):
3631 (SVGFEMergeElement::filterEffect):
3632 * ksvg2/svg/SVGFEMergeElement.h:
3633 (WebCore::SVGFEMergeElement::contextElement):
3634 * ksvg2/svg/SVGFEMergeNodeElement.cpp:
3635 (SVGFEMergeNodeElement::parseMappedAttribute):
3636 * ksvg2/svg/SVGFEMergeNodeElement.h:
3637 (WebCore::SVGFEMergeNodeElement::contextElement):
3638 * ksvg2/svg/SVGFEOffsetElement.cpp:
3639 (SVGFEOffsetElement::SVGFEOffsetElement):
3640 (SVGFEOffsetElement::parseMappedAttribute):
3641 (SVGFEOffsetElement::filterEffect):
3642 * ksvg2/svg/SVGFEOffsetElement.h:
3643 (WebCore::SVGFEOffsetElement::contextElement):
3644 * ksvg2/svg/SVGFEPointLightElement.cpp:
3645 (WebCore::SVGFEPointLightElement::lightSource):
3646 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
3647 (SVGFESpecularLightingElement::SVGFESpecularLightingElement):
3648 (SVGFESpecularLightingElement::parseMappedAttribute):
3649 (SVGFESpecularLightingElement::filterEffect):
3650 * ksvg2/svg/SVGFESpecularLightingElement.h:
3651 (WebCore::SVGFESpecularLightingElement::contextElement):
3652 * ksvg2/svg/SVGFESpotLightElement.cpp:
3653 (WebCore::SVGFESpotLightElement::lightSource):
3654 * ksvg2/svg/SVGFETileElement.cpp:
3655 (SVGFETileElement::parseMappedAttribute):
3656 (SVGFETileElement::filterEffect):
3657 * ksvg2/svg/SVGFETileElement.h:
3658 (WebCore::SVGFETileElement::contextElement):
3659 * ksvg2/svg/SVGFETurbulenceElement.cpp:
3660 (SVGFETurbulenceElement::SVGFETurbulenceElement):
3661 (SVGFETurbulenceElement::parseMappedAttribute):
3662 (SVGFETurbulenceElement::filterEffect):
3663 * ksvg2/svg/SVGFETurbulenceElement.h:
3664 (WebCore::SVGFETurbulenceElement::contextElement):
3665 * ksvg2/svg/SVGFilterElement.cpp:
3666 (SVGFilterElement::SVGFilterElement):
3667 (SVGFilterElement::parseMappedAttribute):
3668 (SVGFilterElement::canvasResource):
3669 * ksvg2/svg/SVGFilterElement.h:
3670 (WebCore::SVGFilterElement::contextElement):
3671 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
3672 (SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes):
3673 (SVGFilterPrimitiveStandardAttributes::~SVGFilterPrimitiveStandardAttributes):
3674 (SVGFilterPrimitiveStandardAttributes::parseMappedAttribute):
3675 (SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
3676 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
3677 (WebCore::SVGFilterPrimitiveStandardAttributes::contextElement):
3678 * ksvg2/svg/SVGFitToViewBox.cpp:
3679 (WebCore::SVGFitToViewBox::SVGFitToViewBox):
3680 (WebCore::SVGFitToViewBox::parseViewBox):
3681 (WebCore::SVGFitToViewBox::viewBoxToViewTransform):
3682 (WebCore::SVGFitToViewBox::parseMappedAttribute):
3683 * ksvg2/svg/SVGFitToViewBox.h:
3684 * ksvg2/svg/SVGForeignObjectElement.cpp:
3685 (WebCore::SVGForeignObjectElement::SVGForeignObjectElement):
3686 (WebCore::SVGForeignObjectElement::parseMappedAttribute):
3687 * ksvg2/svg/SVGForeignObjectElement.h:
3688 (WebCore::SVGForeignObjectElement::isValid):
3689 (WebCore::SVGForeignObjectElement::contextElement):
3690 * ksvg2/svg/SVGGElement.h:
3691 (WebCore::SVGGElement::contextElement):
3692 * ksvg2/svg/SVGGradientElement.cpp:
3693 (SVGGradientElement::SVGGradientElement):
3694 (SVGGradientElement::parseMappedAttribute):
3695 (SVGGradientElement::rebuildStops):
3696 * ksvg2/svg/SVGGradientElement.h:
3697 * ksvg2/svg/SVGHelper.cpp:
3698 (WebCore::SVGHelper::PercentageOfViewport):
3699 * ksvg2/svg/SVGImageElement.cpp:
3700 (SVGImageElement::SVGImageElement):
3701 (SVGImageElement::parseMappedAttribute):
3702 (SVGImageElement::haveLoadedRequiredResources):
3703 * ksvg2/svg/SVGImageElement.h:
3704 (WebCore::SVGImageElement::contextElement):
3705 * ksvg2/svg/SVGLangSpace.h:
3706 * ksvg2/svg/SVGLength.cpp:
3707 * ksvg2/svg/SVGLineElement.cpp:
3708 (SVGLineElement::SVGLineElement):
3709 (SVGLineElement::parseMappedAttribute):
3710 (SVGLineElement::toPathData):
3711 (SVGLineElement::pushAttributeContext):
3712 * ksvg2/svg/SVGLineElement.h:
3713 (WebCore::SVGLineElement::contextElement):
3714 * ksvg2/svg/SVGLinearGradientElement.cpp:
3715 (SVGLinearGradientElement::SVGLinearGradientElement):
3716 (SVGLinearGradientElement::parseMappedAttribute):
3717 (SVGLinearGradientElement::buildGradient):
3718 * ksvg2/svg/SVGLinearGradientElement.h:
3719 (WebCore::SVGLinearGradientElement::contextElement):
3720 * ksvg2/svg/SVGMarkerElement.cpp:
3721 (WebCore::SVGMarkerElement::SVGMarkerElement):
3722 (WebCore::SVGMarkerElement::parseMappedAttribute):
3723 (WebCore::SVGMarkerElement::setOrientToAuto):
3724 (WebCore::SVGMarkerElement::setOrientToAngle):
3725 (WebCore::SVGMarkerElement::canvasResource):
3726 * ksvg2/svg/SVGMarkerElement.h:
3727 (WebCore::SVGMarkerElement::contextElement):
3728 * ksvg2/svg/SVGMaskElement.cpp:
3729 (WebCore::SVGMaskElement::SVGMaskElement):
3730 (WebCore::SVGMaskElement::attributeChanged):
3731 (WebCore::SVGMaskElement::parseMappedAttribute):
3732 (WebCore::SVGMaskElement::drawMaskerContent):
3733 * ksvg2/svg/SVGMaskElement.h:
3734 (WebCore::SVGMaskElement::contextElement):
3735 * ksvg2/svg/SVGPathElement.cpp:
3736 (WebCore::SVGPathElement::SVGPathElement):
3737 * ksvg2/svg/SVGPathElement.h:
3738 (WebCore::SVGPathElement::isValid):
3739 (WebCore::SVGPathElement::contextElement):
3740 * ksvg2/svg/SVGPatternElement.cpp:
3741 (WebCore::SVGPatternElement::SVGPatternElement):
3742 (WebCore::SVGPatternElement::parseMappedAttribute):
3743 (WebCore::SVGPatternElement::pushAttributeContext):
3744 (WebCore::SVGPatternElement::fillAttributesFromReferencePattern):
3745 (WebCore::SVGPatternElement::drawPatternContentIntoTile):
3746 (WebCore::SVGPatternElement::notifyAttributeChange):
3747 (WebCore::SVGPatternElement::getCTM):
3748 * ksvg2/svg/SVGPatternElement.h:
3749 (WebCore::SVGPatternElement::contextElement):
3750 * ksvg2/svg/SVGPolyElement.h:
3751 (WebCore::SVGPolyElement::contextElement):
3752 * ksvg2/svg/SVGRadialGradientElement.cpp:
3753 (WebCore::SVGRadialGradientElement::SVGRadialGradientElement):
3754 (WebCore::SVGRadialGradientElement::~SVGRadialGradientElement):
3755 (WebCore::SVGRadialGradientElement::parseMappedAttribute):
3756 (WebCore::SVGRadialGradientElement::buildGradient):
3757 * ksvg2/svg/SVGRadialGradientElement.h:
3758 (WebCore::SVGRadialGradientElement::contextElement):
3759 * ksvg2/svg/SVGRectElement.cpp:
3760 (WebCore::SVGRectElement::SVGRectElement):
3761 (WebCore::SVGRectElement::parseMappedAttribute):
3762 (WebCore::SVGRectElement::toPathData):
3763 (WebCore::SVGRectElement::pushAttributeContext):
3764 * ksvg2/svg/SVGRectElement.h:
3765 (WebCore::SVGRectElement::contextElement):
3766 * ksvg2/svg/SVGSVGElement.cpp:
3767 (WebCore::SVGSVGElement::SVGSVGElement):
3768 (WebCore::SVGSVGElement::~SVGSVGElement):
3769 (WebCore::SVGSVGElement::viewport):
3770 (WebCore::SVGSVGElement::parseMappedAttribute):
3771 (WebCore::SVGSVGElement::getCTM):
3772 (WebCore::SVGSVGElement::getScreenCTM):
3773 (WebCore::SVGSVGElement::createRenderer):
3774 * ksvg2/svg/SVGSVGElement.h:
3775 (WebCore::SVGSVGElement::contextElement):
3776 * ksvg2/svg/SVGScriptElement.h:
3777 (WebCore::SVGScriptElement::contextElement):
3778 * ksvg2/svg/SVGSetElement.h:
3779 (WebCore::SVGSetElement::contextElement):
3780 * ksvg2/svg/SVGStopElement.cpp:
3781 (SVGStopElement::SVGStopElement):
3782 (SVGStopElement::parseMappedAttribute):
3783 * ksvg2/svg/SVGStopElement.h:
3784 * ksvg2/svg/SVGStylable.h:
3785 * ksvg2/svg/SVGStyledElement.cpp:
3786 * ksvg2/svg/SVGStyledElement.h:
3787 * ksvg2/svg/SVGStyledTransformableElement.cpp:
3788 (SVGStyledTransformableElement::SVGStyledTransformableElement):
3789 (SVGStyledTransformableElement::parseMappedAttribute):
3790 * ksvg2/svg/SVGStyledTransformableElement.h:
3791 * ksvg2/svg/SVGSwitchElement.cpp:
3792 * ksvg2/svg/SVGSwitchElement.h:
3793 (WebCore::SVGSwitchElement::contextElement):
3794 * ksvg2/svg/SVGSymbolElement.h:
3795 (WebCore::SVGSymbolElement::contextElement):
3796 * ksvg2/svg/SVGTRefElement.cpp:
3797 (SVGTRefElement::updateReferencedText):
3798 * ksvg2/svg/SVGTRefElement.h:
3799 (WebCore::SVGTRefElement::contextElement):
3800 * ksvg2/svg/SVGTSpanElement.h:
3801 (WebCore::SVGTSpanElement::contextElement):
3802 * ksvg2/svg/SVGTextContentElement.cpp:
3803 (SVGTextContentElement::SVGTextContentElement):
3804 (SVGTextContentElement::parseMappedAttribute):
3805 * ksvg2/svg/SVGTextContentElement.h:
3806 * ksvg2/svg/SVGTextElement.cpp:
3807 (WebCore::SVGTextElement::SVGTextElement):
3808 (WebCore::SVGTextElement::parseMappedAttribute):
3809 * ksvg2/svg/SVGTextElement.h:
3810 (WebCore::SVGTextElement::contextElement):
3811 * ksvg2/svg/SVGTextPositioningElement.cpp:
3812 (SVGTextPositioningElement::SVGTextPositioningElement):
3813 (SVGTextPositioningElement::parseMappedAttribute):
3814 * ksvg2/svg/SVGTextPositioningElement.h:
3815 * ksvg2/svg/SVGTransformable.cpp:
3816 * ksvg2/svg/SVGTransformable.h:
3817 * ksvg2/svg/SVGURIReference.cpp:
3818 (SVGURIReference::parseMappedAttribute):
3819 * ksvg2/svg/SVGURIReference.h:
3820 * ksvg2/svg/SVGUseElement.cpp:
3821 (SVGUseElement::SVGUseElement):
3822 (SVGUseElement::parseMappedAttribute):
3823 (SVGUseElement::closeRenderer):
3824 * ksvg2/svg/SVGUseElement.h:
3825 (WebCore::SVGUseElement::contextElement):
3826 * ksvg2/svg/SVGViewElement.h:
3827 (WebCore::SVGViewElement::contextElement):
3829 2006-09-05 Eric Seidel <eric@eseidel.com>
3833 Speed up path parsing by removing string copies.
3834 http://bugzilla.opendarwin.org/show_bug.cgi?id=10722
3836 Tests already cover path parsing.
3838 * ksvg2/svg/SVGFitToViewBox.cpp:
3839 (WebCore::SVGFitToViewBox::parseViewBox):
3840 * ksvg2/svg/svgpathparser.cpp:
3841 (WebCore::skipOptionalSpaces): Added.
3842 (WebCore::skipOptionalSpacesOrComma): Added.
3843 (WebCore::parseCoord):
3844 (WebCore::SVGPolyParser::parsePoints):
3845 (WebCore::SVGPathParser::parseSVG):
3847 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
3851 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10742
3852 More Objective-C DOM auto-generation cleanup
3854 - Factor out implementation type-getters into their own function
3855 and standardize naming as was done for type-makers (ie. HTML
3856 and CSS prefixing for method names).
3858 * bindings/objc/DOMCSS.mm:
3859 (-[DOMCSSStyleDeclaration getPropertyShorthand:]):
3860 (-[DOMCSSStyleDeclaration isPropertyImplicit:]):
3861 (-[DOMCSSStyleDeclaration _CSSStyleDeclaration]):
3862 * bindings/objc/DOMHTML.mm:
3863 (-[DOMHTMLTableCaptionElement _HTMLTableCaptionElement]):
3864 (-[DOMHTMLTableSectionElement _HTMLTableSectionElement]):
3865 (-[DOMHTMLTableElement _HTMLTableElement]):
3866 (-[DOMHTMLTableCellElement _HTMLTableCellElement]):
3867 (-[DOMHTMLEmbedElement _HTMLEmbedElement]):
3868 (-[DOMHTMLEmbedElement align]):
3869 (-[DOMHTMLEmbedElement setAlign:]):
3870 (-[DOMHTMLEmbedElement height]):
3871 (-[DOMHTMLEmbedElement setHeight:]):
3872 (-[DOMHTMLEmbedElement name]):
3873 (-[DOMHTMLEmbedElement setName:]):
3874 (-[DOMHTMLEmbedElement src]):
3875 (-[DOMHTMLEmbedElement setSrc:]):
3876 (-[DOMHTMLEmbedElement type]):
3877 (-[DOMHTMLEmbedElement setType:]):
3878 (-[DOMHTMLEmbedElement width]):
3879 (-[DOMHTMLEmbedElement setWidth:]):
3880 * bindings/objc/DOMInternal.h:
3881 * bindings/scripts/CodeGeneratorObjC.pm:
3882 * bridge/mac/WebCoreFrameBridge.mm:
3883 (-[WebCoreFrameBridge setTypingStyle:withUndoAction:]):
3884 (-[WebCoreFrameBridge applyStyle:withUndoAction:]):
3885 (-[WebCoreFrameBridge applyParagraphStyle:withUndoAction:]):
3886 (-[WebCoreFrameBridge selectionStartHasStyle:]):
3887 (-[WebCoreFrameBridge selectionHasStyle:]):
3889 2006-09-05 Adele Peterson <adele@apple.com>
3893 Removed dead code for password field.
3895 * platform/mac/TextFieldMac.mm: (-[NSSearchFieldCell _addStringToRecentSearches:]):
3896 * platform/mac/WebCoreTextField.h:
3897 * platform/mac/WebCoreTextField.mm:
3899 2006-09-05 Justin Garcia <justin.garcia@apple.com>
3901 Reviewed by thatcher
3903 Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
3906 <http://bugzilla.opendarwin.org/show_bug.cgi?id=6498>
3907 SelectionController's setters should notify delegates of selection changes
3909 Moved setSelection from Frame to SelectionController.
3910 I haven't moved any of the work that's done as a result of a
3911 Selection change to SelectionController yet.
3912 Make fewer uses of SelectionControllers. They're now only used for
3913 the Frame's selection, the Page's drag caret, and functions that
3914 need to do Selection expansion.
3916 * bindings/js/kjs_window.cpp:
3917 (KJS::Selection::getValueProperty):
3918 (KJS::Selection::toString):
3919 (KJS::SelectionFunc::callAsFunction):
3920 * bridge/mac/FrameMac.h:
3921 * bridge/mac/FrameMac.mm:
3922 (WebCore::FrameMac::advanceToNextMisspelling):
3923 (WebCore::FrameMac::dispatchCPPEvent):
3924 (WebCore::FrameMac::fontForSelection):
3925 (WebCore::FrameMac::baseWritingDirectionForSelectionStart):
3926 (WebCore::FrameMac::markMisspellingsInAdjacentWords):
3927 (WebCore::FrameMac::markMisspellings):
3928 (WebCore::FrameMac::respondToChangedSelection):
3929 (WebCore::FrameMac::shouldChangeSelection):
3930 (WebCore::FrameMac::shouldDeleteSelection):
3931 (WebCore::FrameMac::respondToChangedContents):
3932 * bridge/mac/PageMac.mm:
3933 (WebCore::Page::Page):
3934 * bridge/mac/WebCoreAXObject.mm:
3935 (-[WebCoreAXObject accessibilityAttributeValue:]):
3936 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
3937 (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
3938 (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
3939 (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
3940 * bridge/mac/WebCoreFrameBridge.mm:
3941 (-[WebCoreFrameBridge isSelectionEditable]):
3942 (-[WebCoreFrameBridge isSelectionRichlyEditable]):
3943 (-[WebCoreFrameBridge selectionState]):
3944 (-[WebCoreFrameBridge deselectText]):
3945 (-[WebCoreFrameBridge selectedAttributedString]):
3946 (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
3947 (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
3948 (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
3949 (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
3950 (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
3951 (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
3952 (-[WebCoreFrameBridge selectedDOMRange]):
3953 (-[WebCoreFrameBridge selectNSRange:]):
3954 (-[WebCoreFrameBridge selectedNSRange]):
3955 (-[WebCoreFrameBridge selectionAffinity]):
3956 (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
3957 (-[WebCoreFrameBridge setSelectionToDragCaret]):
3958 (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
3959 (-[WebCoreFrameBridge moveDragCaretToPoint:]):
3960 (-[WebCoreFrameBridge removeDragCaret]):
3961 (-[WebCoreFrameBridge dragCaretDOMRange]):
3962 (-[WebCoreFrameBridge isDragCaretRichlyEditable]):
3963 (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
3964 (-[WebCoreFrameBridge ensureSelectionVisible]):
3965 (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
3966 * bridge/win/PageWin.cpp:
3967 (WebCore::Page::Page):
3969 (WebCore::Document::updateSelection):
3970 (WebCore::Document::clearSelectionIfNeeded):
3971 (WebCore::Document::notifyBeforeNodeRemoval):
3973 (WebCore::Element::updateFocusAppearance):
3974 * editing/EditCommand.cpp:
3975 (WebCore::EditCommand::EditCommand):
3976 * editing/JSEditor.cpp:
3977 * editing/ModifySelectionListLevel.cpp:
3978 (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
3979 (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
3980 * editing/Selection.cpp:
3981 (WebCore::Selection::setBase):
3982 (WebCore::Selection::setExtent):
3983 * editing/Selection.h:
3984 (WebCore::Selection::extent):
3985 * editing/SelectionController.cpp:
3986 (WebCore::SelectionController::SelectionController):
3987 (WebCore::SelectionController::moveTo):
3988 (WebCore::SelectionController::setSelection):
3989 (WebCore::SelectionController::nodeWillBeRemoved):
3990 (WebCore::SelectionController::modify):
3991 (WebCore::SelectionController::clear):
3992 (WebCore::SelectionController::setBase):
3993 (WebCore::SelectionController::setExtent):
3994 * editing/SelectionController.h:
3995 * editing/TypingCommand.cpp:
3996 (WebCore::TypingCommand::insertText):
3997 (WebCore::TypingCommand::deleteKeyPressed):
3998 (WebCore::TypingCommand::forwardDeleteKeyPressed):
3999 * editing/VisiblePosition.cpp:
4000 (WebCore::VisiblePosition::caretRect):
4001 * editing/VisiblePosition.h:
4002 * html/HTMLInputElement.cpp:
4003 (WebCore::HTMLInputElement::defaultEventHandler):
4005 (WebCore::Frame::selectedText):
4006 (WebCore::Frame::hasSelection):
4007 (WebCore::Frame::selectionController):
4008 (WebCore::Frame::dragCaretController):
4009 (WebCore::Frame::notifyRendererOfSelectionChange):
4010 (WebCore::Frame::invalidateSelection):
4011 (WebCore::Frame::clearCaretRectIfNeeded):
4012 (WebCore::Frame::setFocusNodeIfNeeded):
4013 (WebCore::Frame::selectionLayoutChanged):
4014 (WebCore::Frame::caretBlinkTimerFired):
4015 (WebCore::Frame::paintCaret):
4016 (WebCore::Frame::paintDragCaret):
4017 (WebCore::Frame::isPointInsideSelection):
4018 (WebCore::Frame::selectClosestWordFromMouseEvent):
4019 (WebCore::Frame::handleMousePressEventDoubleClick):
4020 (WebCore::Frame::handleMousePressEventTripleClick):
4021 (WebCore::Frame::handleMousePressEventSingleClick):
4022 (WebCore::Frame::handleMouseMoveEvent):
4023 (WebCore::Frame::handleMouseReleaseEvent):
4024 (WebCore::Frame::selectAll):
4025 (WebCore::Frame::selectContentsOfNode):
4026 (WebCore::Frame::shouldChangeSelection):
4027 (WebCore::Frame::shouldDeleteSelection):
4028 (WebCore::Frame::isSelectionInPasswordField):
4029 (WebCore::Frame::appliedEditing):
4030 (WebCore::Frame::unappliedEditing):
4031 (WebCore::Frame::reappliedEditing):
4032 (WebCore::Frame::computeAndSetTypingStyle):
4033 (WebCore::Frame::applyStyle):
4034 (WebCore::Frame::applyParagraphStyle):
4035 (WebCore::Frame::selectionListState):
4036 (WebCore::Frame::selectionHasStyle):
4037 (WebCore::Frame::selectionComputedStyle):
4038 (WebCore::Frame::selectFrameElementInParentIfFullySelected):
4039 (WebCore::Frame::currentForm):
4040 (WebCore::Frame::revealSelection):
4041 (WebCore::Frame::centerSelectionInVisibleArea):
4042 (WebCore::Frame::styleForSelectionStart):
4043 (WebCore::Frame::setSelectionFromNone):
4044 (WebCore::Frame::findString):
4046 * page/FramePrivate.h:
4047 (WebCore::FramePrivate::FramePrivate):
4048 * page/FrameView.cpp:
4049 (WebCore::FrameView::clear):
4051 (WebCore::Page::dragCaretController):
4053 * rendering/RenderBlock.cpp:
4054 (WebCore::RenderBlock::paintCaret):
4055 * rendering/RenderLayer.cpp:
4056 (WebCore::RenderLayer::autoscroll):
4057 * rendering/RenderTextControl.cpp:
4058 (WebCore::RenderTextControl::selectionStart):
4059 (WebCore::RenderTextControl::selectionEnd):
4060 (WebCore::RenderTextControl::setSelectionRange):
4061 (WebCore::RenderTextControl::selectionChanged):
4062 * rendering/RenderTreeAsText.cpp:
4063 (WebCore::writeSelection):
4065 2006-09-05 Adele Peterson <adele@apple.com>
4069 Let the engine draw the focus ring for styled menu lists.
4071 * rendering/RenderTheme.cpp: (WebCore::RenderTheme::supportsFocusRing): Added case for MenulistButtonAppearance.
4073 2006-09-05 Adele Peterson <adele@apple.com>
4077 - Fix for <rdar://problem/4706463> REGRESSION: Must click twice on <select> elements for menu to show
4079 * rendering/RenderPopupMenuMac.h:
4080 * rendering/RenderPopupMenuMac.mm:
4081 (WebCore::RenderPopupMenuMac::showPopup): Moved call to dismiss popup into hidePopup method.
4082 Now calls RenderMenuList::hidePopup which will update the m_popupIsVisible flag on the menu list before hiding the popup.
4083 (WebCore::RenderPopupMenuMac::hidePopup): Added.
4085 2006-09-05 Sam Weinig <sam.weinig@gmail.com>
4089 Patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10738
4090 Consolidate the Objective-C DOM Bindings Internal files into DOMInternal.h
4092 - Consolidate DOMHTMLInternal.h, DOMCSSInternal.h, DOMEventsInternal.h,
4093 DOMViewsInternal.h and DOMXPathInternal.h into DOMInternal.h.
4095 - Rename the "type-makers" (used to make a binding from an implementation
4096 type) so that all the HTML ones begin with the prefix HTML. Did the same
4099 - Auto-generate a couple more methods from DOMExtensions.h.
4101 - Various cleanups of the Objective-C auto-generation code.
4103 * WebCore.xcodeproj/project.pbxproj:
4104 * bindings/objc/DOM.mm:
4105 (-[DOMDocument createCSSStyleDeclaration]):
4106 * bindings/objc/DOMCSS.mm:
4107 (+[DOMCSSRuleList _CSSRuleListWith:]):
4108 (+[DOMCSSRule _CSSRuleWith:]):
4109 (+[DOMCSSStyleDeclaration _CSSStyleDeclarationWith:]):
4110 (+[DOMCSSValue _CSSValueWith:]):
4111 (+[DOMCSSPrimitiveValue _CSSPrimitiveValueWith:]):
4112 (-[DOMDocument getComputedStyle::]):
4113 (-[DOMDocument getMatchedCSSRules::]):
4114 * bindings/objc/DOMCSSInternal.h: Removed.
4115 * bindings/objc/DOMEvents.mm:
4116 * bindings/objc/DOMEventsInternal.h: Removed.
4117 * bindings/objc/DOMEventsNonstandard.mm:
4118 * bindings/objc/DOMExtensions.h:
4119 * bindings/objc/DOMHTML.mm:
4120 (+[DOMHTMLCollection _HTMLCollectionWith:]):
4121 (+[DOMHTMLOptionsCollection _HTMLOptionsCollectionWith:]):
4122 (+[DOMHTMLElement _HTMLElementWith:]):
4123 (+[DOMHTMLFormElement _HTMLFormElementWith:]):
4124 (+[DOMHTMLTableCaptionElement _HTMLTableCaptionElementWith:]):
4125 (+[DOMHTMLTableSectionElement _HTMLTableSectionElementWith:]):
4126 (+[DOMHTMLTableElement _HTMLTableElementWith:]):
4127 (+[DOMHTMLTableCellElement _HTMLTableCellElementWith:]):
4128 * bindings/objc/DOMHTMLAppletElement.mm:
4129 * bindings/objc/DOMHTMLDocument.mm:
4130 (-[DOMHTMLDocument body]):
4131 (-[DOMHTMLDocument images]):
4132 (-[DOMHTMLDocument applets]):
4133 (-[DOMHTMLDocument links]):
4134 (-[DOMHTMLDocument forms]):
4135 (-[DOMHTMLDocument anchors]):
4136 * bindings/objc/DOMHTMLInternal.h: Removed.
4137 * bindings/objc/DOMHTMLOptionElement.mm:
4138 (-[DOMHTMLOptionElement form]):
4139 * bindings/objc/DOMInternal.h:
4140 * bindings/objc/DOMRGBColor.mm:
4142 (-[DOMRGBColor red]):
4143 (-[DOMRGBColor green]):
4144 (-[DOMRGBColor blue]):
4145 (-[DOMRGBColor alpha]):
4146 * bindings/objc/DOMUtility.mm:
4147 (KJS::ScriptInterpreter::createObjcInstanceForValue):
4148 * bindings/objc/DOMViews.mm:
4149 (-[DOMAbstractView WebCore::]):
4150 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
4151 (+[DOMAbstractView _abstractViewWith:WebCore::]):
4152 * bindings/objc/DOMViewsInternal.h: Removed.