1 2007-10-31 Lars Knoll <lars@trolltech.com>
5 Fixes in the XML tokenizer when using QXmlStream.
7 Use new functionality of QXmlStream in Qt 4.4 to simplify
8 the code (but keep the old code for now to still support Qt 4.3).
10 Add proper support for namespace handling when parsing into
13 * dom/XMLTokenizer.cpp:
14 (WebCore::XMLTokenizer::XMLTokenizer):
15 (WebCore::XMLTokenizer::write):
16 (WebCore::XMLTokenizer::startElementNs):
20 2007-10-31 Lars Knoll <lars@trolltech.com>
24 add support for dragging images.
26 WARNING: NO TEST CASES ADDED OR CHANGED
28 * platform/DragImage.h:
29 * platform/qt/ClipboardQt.cpp:
30 (WebCore::ClipboardQt::clearData):
31 (WebCore::ClipboardQt::setDragImage):
32 (WebCore::ClipboardQt::setDragImageElement):
33 (WebCore::ClipboardQt::createDragImage):
34 (WebCore::getCachedImage):
35 (WebCore::ClipboardQt::declareAndWriteDragImage):
36 * platform/qt/ClipboardQt.h:
38 2007-10-31 Lars Knoll <lars@trolltech.com>
42 fix most of the issues I found with Clipboard and DnD.
44 WARNING: NO TEST CASES ADDED OR CHANGED
46 * editing/qt/EditorQt.cpp:
47 * platform/qt/ClipboardQt.cpp:
48 (WebCore::ClipboardQt::ClipboardQt):
49 (WebCore::ClipboardQt::~ClipboardQt):
50 (WebCore::ClipboardQt::clearData):
51 (WebCore::ClipboardQt::clearAllData):
52 (WebCore::ClipboardQt::getData):
53 (WebCore::ClipboardQt::setData):
54 (WebCore::ClipboardQt::types):
55 (WebCore::ClipboardQt::setDragImage):
56 (WebCore::ClipboardQt::setDragImageElement):
57 (WebCore::ClipboardQt::declareAndWriteDragImage):
58 (WebCore::ClipboardQt::writeURL):
59 (WebCore::ClipboardQt::writeRange):
60 (WebCore::ClipboardQt::hasData):
61 * platform/qt/ClipboardQt.h:
62 * platform/qt/DragDataQt.cpp:
63 (WebCore::DragData::asURL):
65 2007-10-30 Mark Rowe <mrowe@apple.com>
67 Fix the Gtk and Qt builds by stubbing out PlatformKeyboardEvent::currentCapsLockState.
69 * platform/gtk/KeyEventGtk.cpp:
70 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
71 * platform/qt/PlatformKeyboardEventQt.cpp:
72 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
74 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
78 http://bugs.webkit.org/show_bug.cgi?id=15762
79 XSLStylesheet loads subresources from a wrong URL
81 Covered by corrected existing tests.
83 * xml/XSLStyleSheet.cpp:
84 (WebCore::XSLStyleSheet::parseString): Pass stylesheet URL, not
87 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
91 http://bugs.webkit.org/show_bug.cgi?id=10818
92 String::append does 2 full copies instead of 1 (or zero!)
94 No change in functionality, thus no test.
96 * platform/String.cpp:
97 (WebCore::String::append): Rewrote to copy once. Also removed an ancient
98 FIXME that doesn't seem to make any sense. Note that append() behavior doesn't
99 match documented String behavior ("modifications to one instance will
100 also modify all others"), but there are a lot of methods that don't.
102 2007-10-31 Adam Roben <aroben@apple.com>
106 * WebCore.vcproj/WebCore.vcproj: Add [JS]ProgressEvent.{cpp,h} files.
108 2007-10-30 Adam Roben <aroben@apple.com>
112 I'm not completely sure why these const issues weren't caught by GCC,
113 but MSVC was certainly not happy with them.
115 * editing/IndentOutdentCommand.cpp:
116 (WebCore::isIndentBlockquote):
117 * editing/markup.cpp:
118 (WebCore::styleFromMatchedRulesAndInlineDecl):
120 2007-10-30 David Hyatt <hyatt@apple.com>
122 transition-property was defaulting to all when it should default to none.
124 It was taking a string type. I figured out how to make it take an ident instead, so you can write:
126 transition-property: opacity
130 transition-property: "opacity"
132 Transition layers also weren't properly repeating patterns the way they were supposed to. I fixed that.
134 Finally, I fixed a bug in the code to fix up transition layers where something was misplaced that should have been inside a null check.
140 (WebCore::CSSParser::parseTransitionProperty):
141 * css/CSSStyleSelector.cpp:
142 (WebCore::CSSStyleSelector::adjustRenderStyle):
143 * page/AnimationController.cpp:
144 (WebCore::ImplicitAnimation::animate):
145 * rendering/RenderStyle.cpp:
146 (WebCore::RenderStyle::adjustTransitions):
147 * rendering/RenderStyle.h:
148 (WebCore::RenderStyle::initialTransitionProperty):
150 2007-10-30 Antti Koivisto <antti@apple.com>
156 * platform/graphics/mac/MoviePrivateQTKit.mm:
157 (WebCore::MoviePrivate::getSupportedTypes):
159 2007-10-30 Dan Bernstein <mitz@apple.com>
161 Reviewed by Stephanie Lewis.
163 - fix <rdar://problem/5547237> REGRESSION (304-ToT): Repro font-related crash in fontdatawin.cpp Line 93 (many sites)
165 * platform/win/FontDataWin.cpp:
166 (WebCore::FontData::platformInit): Handle the case where the font has no
169 2007-10-30 David Hyatt <hyatt@apple.com>
171 Make sure CSS transforms can be animated using the CSS transition property.
173 Reviewed by Dan and Antti
175 * css/CSSStyleSelector.cpp:
176 (WebCore::CSSStyleSelector::applyProperty):
177 * page/AnimationController.cpp:
178 (WebCore::blendFunc):
179 (WebCore::ImplicitAnimation::animate):
180 * rendering/Length.h:
181 (WebCore::Length::blend):
182 * rendering/RenderStyle.cpp:
183 (WebCore::StyleTransformData::operator==):
184 (WebCore::TransformOperations::operator==):
185 (WebCore::blendLengths):
186 (WebCore::ScaleTransformOperation::blend):
187 (WebCore::RotateTransformOperation::blend):
188 (WebCore::SkewTransformOperation::blend):
189 (WebCore::TranslateTransformOperation::blend):
190 (WebCore::MatrixTransformOperation::blend):
191 * rendering/RenderStyle.h:
192 (WebCore::TransformOperations::operator!=):
193 (WebCore::TransformOperations::isEmpty):
194 (WebCore::TransformOperations::size):
195 (WebCore::TransformOperations::operator[]):
196 (WebCore::TransformOperations::append):
197 (WebCore::RenderStyle::transform):
198 (WebCore::RenderStyle::setTransform):
199 (WebCore::RenderStyle::initialTransform):
201 2007-10-30 Antti Koivisto <antti@apple.com>
203 Another Qt/GTK build fix.
205 * bindings/js/JSHTMLElementWrapperFactory.cpp:
207 2007-10-30 Antti Koivisto <antti@apple.com>
209 Attempt to fix Qt/GTK build.
213 2007-10-30 Justin Garcia <justin.garcia@apple.com>
215 Reviewed by Darin Adler.
217 <rdar://problem/5549929> CrashTracer: [USER] 35 crashes at WebCore::CharacterData::insertData
219 We were trying to insert a tab into a br, after the br incorrectly ended up inside
222 * editing/DeleteButtonController.cpp:
223 (WebCore::isDeletableElement): Changed to take in a const Node* instead of a Node*.
224 * editing/DeleteSelectionCommand.cpp:
225 (WebCore::isTableRow): Ditto.
226 * editing/IndentOutdentCommand.cpp:
227 (WebCore::isIndentBlockquote): Ditto.
228 (WebCore::isListOrIndentBlockquote): Ditto.
229 * editing/InsertLineBreakCommand.cpp:
230 (WebCore::InsertLineBreakCommand::shouldUseBreakElement): Added, moved code from
232 (WebCore::InsertLineBreakCommand::doApply):
233 Don't upstream() the insertion position. upstream()ing it will only have an effect
234 when the insertion position is the first in its paragraph (since we canonicalize
235 VisiblePositions to the upstream() candidate). In this start of paragraph case,
236 upstream() can move outside inline elements like tab spans or elements that might
237 have a different whitespace mode (added two test cases to cover these).
238 Moved code to decide whether to insert a br or a '\n' to its own method.
239 Removed special case code for inserting at a position inside a tab span. We instead
240 adjust the insertion position before insertion if it is inside a tab span and
241 handle insertion in the appropriate if-block. This fixes a bug where we would
242 only insert one line break when two were needed (added a testcase).
243 Removed special case code for inserting before and after tables and horizontal
244 rules. We handle these insertions in the appropriate if-block.
245 * editing/InsertLineBreakCommand.h:
246 * editing/ReplaceSelectionCommand.cpp:
247 (WebCore::isMailPasteAsQuotationNode): Change to take in a const Node*.
248 * editing/htmlediting.cpp:
249 (WebCore::isContentEditable): Ditto.
250 (WebCore::isBlock): Ditto.
251 (WebCore::enclosingNodeOfType): Changed to take a function pointer to a function
252 that takes in a const Node*.
253 (WebCore::isTabSpanTextNode): Check to see that the node actually a text node,
255 * editing/htmlediting.h:
256 * editing/markup.cpp:
257 (WebCore::styleFromMatchedRulesAndInlineDecl): Changed to take in a const Node*.
258 (WebCore::elementHasTextDecorationProperty): Ditto.
260 2007-10-30 Antti Koivisto <antti@apple.com>
266 * html/VoidCallback.cpp: Added.
267 (VoidCallback::VoidCallback):
268 (VoidCallback::~VoidCallback):
269 (VoidCallback::handleEvent):
270 (VoidCallback::execute):
271 (VoidCallback::operator==):
272 (WebCore::toVoidCallback):
273 * html/VoidCallback.h: Added.
274 * html/VoidCallback.idl: Added.
276 2007-10-30 David Kilzer <ddkilzer@webkit.org>
278 Generated files missing from WebCore's Xcode project file
279 <http://bugs.webkit.org/show_bug.cgi?id=15406>
283 Added the following files to the Xcode project file (note that
284 JSHTMLInputElementBaseTable.cpp is used as a header file):
286 - DOMCSSStyleSheetPrivate.h
288 - DOMHTMLCollectionPrivate.h
289 - DOMHTMLEmbedElementPrivate.h
290 - DOMHTMLIFrameElementPrivate.h
291 - DOMHTMLObjectElementPrivate.h
292 - DOMHTMLSelectElementPrivate.h
293 - DOMTextEventInternal.h
294 - JSHTMLInputElementBaseTable.cpp
296 * DerivedSources.make: Removed DOMSVGException.h and JSSVGAnimatedPoints.h
297 since their generated code was not used.
298 * WebCore.xcodeproj/project.pbxproj: Added missing header files.
300 2007-10-29 Antti Koivisto <antti@apple.com>
302 Rubber stamped by Adele.
304 Initial media (<video> and <audio>) support from feature branch and
305 QTKit based platform implementation.
307 This will need to be updated to match current draft specification.
309 * Configurations/WebCore.xcconfig:
310 * DerivedSources.make:
312 * WebCore.xcodeproj/project.pbxproj:
313 * bindings/js/JSEventCustom.cpp:
315 * bindings/js/JSHTMLAudioElementConstructor.cpp: Added.
316 (WebCore::JSHTMLAudioElementConstructor::JSHTMLAudioElementConstructor):
317 (WebCore::JSHTMLAudioElementConstructor::implementsConstruct):
318 (WebCore::JSHTMLAudioElementConstructor::construct):
319 * bindings/js/JSHTMLAudioElementConstructor.h: Added.
320 * bindings/js/JSHTMLElementWrapperFactory.cpp:
321 (WebCore::createJSHTMLWrapper):
322 * bindings/js/kjs_window.cpp:
323 (KJS::Window::getValueProperty):
324 * bindings/js/kjs_window.h:
326 * bindings/scripts/CodeGeneratorJS.pm:
328 (WebCore::Document::createEvent):
329 (WebCore::Document::willSaveToCache):
330 (WebCore::Document::didRestoreFromCache):
331 (WebCore::Document::registerForCacheCallbacks):
332 (WebCore::Document::unregisterForCacheCallbacks):
335 (WebCore::Element::setBooleanAttribute):
337 (WebCore::Element::willSaveToCache):
339 (WebCore::Event::isProgressEvent):
342 * dom/EventTargetNode.cpp:
343 (WebCore::EventTargetNode::dispatchProgressEvent):
344 * dom/EventTargetNode.h:
345 * dom/ProgressEvent.cpp: Added.
346 (WebCore::ProgressEvent::ProgressEvent):
347 (WebCore::ProgressEvent::initProgressEvent):
348 (WebCore::ProgressEvent::initProgressEventNS):
349 * dom/ProgressEvent.h: Added.
350 (WebCore::ProgressEvent::lengthComputable):
351 (WebCore::ProgressEvent::loaded):
352 (WebCore::ProgressEvent::total):
353 (WebCore::ProgressEvent::isProgressEvent):
354 * dom/ProgressEvent.idl: Added.
355 * history/CachedPage.cpp:
356 (WebCore::CachedPage::CachedPage):
357 * html/HTMLAttributeNames.in:
358 * html/HTMLAudioElement.cpp: Added.
359 (WebCore::HTMLAudioElement::HTMLAudioElement):
360 * html/HTMLAudioElement.h: Added.
361 (WebCore::HTMLAudioElement::tagPriority):
362 * html/HTMLAudioElement.idl: Added.
363 * html/HTMLElement.cpp:
364 (WebCore::inlineTagList):
365 * html/HTMLElementFactory.cpp:
366 (WebCore::audioConstructor):
367 (WebCore::videoConstructor):
368 (WebCore::sourceConstructor):
369 (WebCore::createFunctionMap):
370 * html/HTMLInputElement.cpp:
371 (WebCore::HTMLInputElement::~HTMLInputElement):
372 (WebCore::HTMLInputElement::setInputType):
373 (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
374 (WebCore::HTMLInputElement::didMoveToNewOwnerDocument):
375 * html/HTMLMediaElement.cpp: Added.
376 (WebCore::HTMLMediaElement::HTMLMediaElement):
377 (WebCore::HTMLMediaElement::~HTMLMediaElement):
378 (WebCore::HTMLMediaElement::checkDTD):
379 (WebCore::HTMLMediaElement::rendererIsNeeded):
380 (WebCore::HTMLMediaElement::createRenderer):
381 (WebCore::HTMLMediaElement::insertedIntoDocument):
382 (WebCore::HTMLMediaElement::removedFromDocument):
383 (WebCore::HTMLMediaElement::scheduleLoad):
384 (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
385 (WebCore::HTMLMediaElement::dispatchEventAsync):
386 (WebCore::HTMLMediaElement::loadTimerFired):
387 (WebCore::HTMLMediaElement::asyncEventTimerFired):
388 (WebCore::serializeTimeOffset):
389 (WebCore::parseTimeOffset):
390 (WebCore::HTMLMediaElement::getTimeOffsetAttribute):
391 (WebCore::HTMLMediaElement::setTimeOffsetAttribute):
392 (WebCore::HTMLMediaElement::error):
393 (WebCore::HTMLMediaElement::src):
394 (WebCore::HTMLMediaElement::HTMLMediaElement::setSrc):
395 (WebCore::HTMLMediaElement::currentSrc):
396 (WebCore::HTMLMediaElement::networkState):
397 (WebCore::HTMLMediaElement::bufferingRate):
398 (WebCore::HTMLMediaElement::load):
399 (WebCore::HTMLMediaElement::movieNetworkStateChanged):
400 (WebCore::HTMLMediaElement::movieReadyStateChanged):
401 (WebCore::HTMLMediaElement::setReadyState):
402 (WebCore::HTMLMediaElement::progressEventTimerFired):
403 (WebCore::HTMLMediaElement::seek):
404 (WebCore::HTMLMediaElement::readyState):
405 (WebCore::HTMLMediaElement::seeking):
406 (WebCore::HTMLMediaElement::currentTime):
407 (WebCore::HTMLMediaElement::setCurrentTime):
408 (WebCore::HTMLMediaElement::duration):
409 (WebCore::HTMLMediaElement::paused):
410 (WebCore::HTMLMediaElement::defaultPlaybackRate):
411 (WebCore::HTMLMediaElement::setDefaultPlaybackRate):
412 (WebCore::HTMLMediaElement::playbackRate):
413 (WebCore::HTMLMediaElement::setPlaybackRate):
414 (WebCore::HTMLMediaElement::ended):
415 (WebCore::HTMLMediaElement::autoplay):
416 (WebCore::HTMLMediaElement::setAutoplay):
417 (WebCore::HTMLMediaElement::play):
418 (WebCore::HTMLMediaElement::pause):
419 (WebCore::HTMLMediaElement::loopCount):
420 (WebCore::HTMLMediaElement::setLoopCount):
421 (WebCore::HTMLMediaElement::start):
422 (WebCore::HTMLMediaElement::setStart):
423 (WebCore::HTMLMediaElement::end):
424 (WebCore::HTMLMediaElement::setEnd):
425 (WebCore::HTMLMediaElement::loopStart):
426 (WebCore::HTMLMediaElement::setLoopStart):
427 (WebCore::HTMLMediaElement::loopEnd):
428 (WebCore::HTMLMediaElement::setLoopEnd):
429 (WebCore::HTMLMediaElement::currentLoop):
430 (WebCore::HTMLMediaElement::setCurrentLoop):
431 (WebCore::HTMLMediaElement::controls):
432 (WebCore::HTMLMediaElement::setControls):
433 (WebCore::HTMLMediaElement::volume):
434 (WebCore::HTMLMediaElement::setVolume):
435 (WebCore::HTMLMediaElement::muted):
436 (WebCore::HTMLMediaElement::setMuted):
437 (WebCore::HTMLMediaElement::pickMedia):
438 (WebCore::HTMLMediaElement::checkIfSeekNeeded):
439 (WebCore::HTMLMediaElement::movieVolumeChanged):
440 (WebCore::HTMLMediaElement::movieDidEnd):
441 (WebCore::HTMLMediaElement::movieCuePointReached):
442 (WebCore::HTMLMediaElement::addCuePoint):
443 (WebCore::HTMLMediaElement::removeCuePoint):
444 (WebCore::HTMLMediaElement::buffered):
445 (WebCore::HTMLMediaElement::played):
446 (WebCore::HTMLMediaElement::seekable):
447 (WebCore::HTMLMediaElement::effectiveStart):
448 (WebCore::HTMLMediaElement::effectiveEnd):
449 (WebCore::HTMLMediaElement::effectiveLoopStart):
450 (WebCore::HTMLMediaElement::effectiveLoopEnd):
451 (WebCore::HTMLMediaElement::activelyPlaying):
452 (WebCore::HTMLMediaElement::endedPlayback):
453 (WebCore::HTMLMediaElement::willSaveToCache):
454 (WebCore::HTMLMediaElement::didRestoreFromCache):
455 * html/HTMLMediaElement.h: Added.
456 (WebCore::HTMLMediaElement::movie):
457 (WebCore::HTMLMediaElement::isVideo):
458 (WebCore::HTMLMediaElement::):
459 (WebCore::HTMLMediaElement::CallbackEntry::CallbackEntry):
460 * html/HTMLMediaElement.idl: Added.
461 * html/HTMLSourceElement.cpp: Added.
462 (WebCore::HTMLSourceElement::HTMLSourceElement):
463 (WebCore::HTMLSourceElement::~HTMLSourceElement):
464 (WebCore::HTMLSourceElement::insertedIntoDocument):
465 (WebCore::HTMLSourceElement::src):
466 (WebCore::HTMLSourceElement::setSrc):
467 (WebCore::HTMLSourceElement::media):
468 (WebCore::HTMLSourceElement::setMedia):
469 (WebCore::HTMLSourceElement::type):
470 (WebCore::HTMLSourceElement::setType):
471 * html/HTMLSourceElement.h: Added.
472 (WebCore::HTMLSourceElement::endTagRequirement):
473 (WebCore::HTMLSourceElement::tagPriority):
474 * html/HTMLSourceElement.idl: Added.
475 * html/HTMLTagNames.in:
476 * html/HTMLVideoElement.cpp: Added.
477 (WebCore::HTMLVideoElement::HTMLVideoElement):
478 (WebCore::HTMLVideoElement::videoWidth):
479 (WebCore::HTMLVideoElement::videoHeight):
480 * html/HTMLVideoElement.h: Added.
481 (WebCore::HTMLVideoElement::tagPriority):
482 (WebCore::HTMLVideoElement::isVideo):
483 * html/HTMLVideoElement.idl: Added.
484 * html/MediaError.h: Added.
485 (WebCore::MediaError::):
486 (WebCore::MediaError::MediaError):
487 (WebCore::MediaError::code):
488 * html/MediaError.idl: Added.
489 * html/TimeRanges.cpp: Added.
490 (TimeRanges::TimeRanges):
494 (TimeRanges::contain):
495 * html/TimeRanges.h: Added.
496 (WebCore::TimeRanges::TimeRanges):
497 (WebCore::TimeRanges::length):
498 (WebCore::TimeRanges::Range::Range):
499 * html/TimeRanges.idl: Added.
500 * page/DOMWindow.idl:
501 * platform/MIMETypeRegistry.cpp:
502 (WebCore::initialiseSupportedMovieMIMETypes):
503 (WebCore::initialiseMIMETypeRegistry):
504 (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
505 (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
506 * platform/MIMETypeRegistry.h:
507 * platform/graphics/Movie.cpp: Added.
508 (WebCore::Movie::Movie):
509 (WebCore::Movie::~Movie):
510 (WebCore::Movie::load):
511 (WebCore::Movie::cancelLoad):
512 (WebCore::Movie::play):
513 (WebCore::Movie::pause):
514 (WebCore::Movie::duration):
515 (WebCore::Movie::currentTime):
516 (WebCore::Movie::seek):
517 (WebCore::Movie::paused):
518 (WebCore::Movie::seeking):
519 (WebCore::Movie::naturalSize):
520 (WebCore::Movie::hasVideo):
521 (WebCore::Movie::networkState):
522 (WebCore::Movie::readyState):
523 (WebCore::Movie::volume):
524 (WebCore::Movie::setVolume):
525 (WebCore::Movie::rate):
526 (WebCore::Movie::setRate):
527 (WebCore::Movie::muted):
528 (WebCore::Movie::setMuted):
529 (WebCore::Movie::dataRate):
530 (WebCore::Movie::setEndTime):
531 (WebCore::Movie::addCuePoint):
532 (WebCore::Movie::removeCuePoint):
533 (WebCore::Movie::clearCuePoints):
534 (WebCore::Movie::maxTimeBuffered):
535 (WebCore::Movie::maxTimeSeekable):
536 (WebCore::Movie::bytesLoaded):
537 (WebCore::Movie::totalBytesKnown):
538 (WebCore::Movie::totalBytes):
539 (WebCore::Movie::setRect):
540 (WebCore::Movie::visible):
541 (WebCore::Movie::setVisible):
542 (WebCore::Movie::paint):
543 (WebCore::Movie::getSupportedTypes):
544 (WebCore::Movie::networkStateChanged):
545 (WebCore::Movie::readyStateChanged):
546 (WebCore::Movie::volumeChanged):
547 (WebCore::Movie::didEnd):
548 (WebCore::Movie::cuePointReached):
549 * platform/graphics/Movie.h: Added.
550 (WebCore::MovieClient::~MovieClient):
551 (WebCore::MovieClient::movieNetworkStateChanged):
552 (WebCore::MovieClient::movieReadyStateChanged):
553 (WebCore::MovieClient::movieVolumeChanged):
554 (WebCore::MovieClient::movieDidEnd):
555 (WebCore::MovieClient::movieCuePointReached):
556 (WebCore::Movie::parentWidget):
557 (WebCore::Movie::setParentWidget):
558 (WebCore::Movie::rect):
560 * platform/graphics/mac/MoviePrivateQTKit.h: Added.
561 * platform/graphics/mac/MoviePrivateQTKit.mm: Added.
562 (WebCore::MoviePrivate::MoviePrivate):
563 (WebCore::MoviePrivate::~MoviePrivate):
564 (WebCore::MoviePrivate::createQTMovie):
565 (WebCore::MoviePrivate::createQTMovieView):
566 (WebCore::MoviePrivate::createQTTime):
567 (WebCore::MoviePrivate::load):
568 (WebCore::MoviePrivate::play):
569 (WebCore::MoviePrivate::pause):
570 (WebCore::MoviePrivate::duration):
571 (WebCore::MoviePrivate::currentTime):
572 (WebCore::MoviePrivate::seek):
573 (WebCore::MoviePrivate::setEndTime):
574 (WebCore::MoviePrivate::addCuePoint):
575 (WebCore::MoviePrivate::removeCuePoint):
576 (WebCore::MoviePrivate::clearCuePoints):
577 (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
578 (WebCore::MoviePrivate::cancelSeek):
579 (WebCore::MoviePrivate::seekTimerFired):
580 (WebCore::MoviePrivate::cuePointTimerFired):
581 (WebCore::MoviePrivate::paused):
582 (WebCore::MoviePrivate::seeking):
583 (WebCore::MoviePrivate::naturalSize):
584 (WebCore::MoviePrivate::hasVideo):
585 (WebCore::MoviePrivate::setVolume):
586 (WebCore::MoviePrivate::setMuted):
587 (WebCore::MoviePrivate::setRate):
588 (WebCore::MoviePrivate::dataRate):
589 (WebCore::MoviePrivate::networkState):
590 (WebCore::MoviePrivate::readyState):
591 (WebCore::MoviePrivate::maxTimeBuffered):
592 (WebCore::MoviePrivate::maxTimeSeekable):
593 (WebCore::MoviePrivate::maxTimeLoaded):
594 (WebCore::MoviePrivate::bytesLoaded):
595 (WebCore::MoviePrivate::totalBytesKnown):
596 (WebCore::MoviePrivate::totalBytes):
597 (WebCore::MoviePrivate::cancelLoad):
598 (WebCore::MoviePrivate::updateStates):
599 (WebCore::MoviePrivate::loadStateChanged):
600 (WebCore::MoviePrivate::rateChanged):
601 (WebCore::MoviePrivate::sizeChanged):
602 (WebCore::MoviePrivate::timeChanged):
603 (WebCore::MoviePrivate::volumeChanged):
604 (WebCore::MoviePrivate::didEnd):
605 (WebCore::MoviePrivate::setRect):
606 (WebCore::MoviePrivate::setVisible):
607 (WebCore::MoviePrivate::paint):
608 (WebCore::MoviePrivate::getSupportedTypes):
609 (-[WebCoreMovieObserver loadStateChanged:]):
610 (-[WebCoreMovieObserver rateChanged:]):
611 (-[WebCoreMovieObserver sizeChanged:]):
612 (-[WebCoreMovieObserver timeChanged:]):
613 (-[WebCoreMovieObserver volumeChanged:]):
614 (-[WebCoreMovieObserver didEnd:]):
615 (-[WebCoreMovieObserver setCallback:WebCore::]):
616 * platform/mac/WebCoreSystemInterface.h:
617 * platform/mac/WebCoreSystemInterface.mm:
618 * rendering/RenderLayer.cpp:
619 (WebCore::RenderLayer::collectLayers):
620 * rendering/RenderVideo.cpp: Added.
621 (WebCore::RenderVideo::RenderVideo):
622 (WebCore::RenderVideo::~RenderVideo):
623 (WebCore::RenderVideo::movie):
624 (WebCore::RenderVideo::videoSizeChanged):
625 (WebCore::RenderVideo::paint):
626 (WebCore::RenderVideo::layout):
627 (WebCore::RenderVideo::updateFromElement):
628 (WebCore::RenderVideo::updateMovie):
629 (WebCore::RenderVideo::isWidthSpecified):
630 (WebCore::RenderVideo::isHeightSpecified):
631 (WebCore::RenderVideo::calcReplacedWidth):
632 (WebCore::RenderVideo::calcReplacedHeight):
633 (WebCore::RenderVideo::calcAspectRatioWidth):
634 (WebCore::RenderVideo::calcAspectRatioHeight):
635 (WebCore::RenderVideo::calcPrefWidths):
636 * rendering/RenderVideo.h: Added.
637 (WebCore::RenderVideo::renderName):
639 2007-10-30 Sam Weinig <sam@webkit.org>
641 Reviewed by Adam Roben.
643 Add Interface and Class UUIDs to the IDLs in preparation of adding
644 autogeneration of the COM DOM bindings.
646 * bindings/scripts/IDLParser.pm: Relax parsing rules to allow newlines as whitespace.
647 * css/CSSCharsetRule.idl:
648 * css/CSSFontFaceRule.idl:
649 * css/CSSImportRule.idl:
650 * css/CSSMediaRule.idl:
651 * css/CSSPageRule.idl:
652 * css/CSSPrimitiveValue.idl:
654 * css/CSSRuleList.idl:
655 * css/CSSStyleDeclaration.idl:
656 * css/CSSStyleRule.idl:
657 * css/CSSStyleSheet.idl:
658 * css/CSSUnknownRule.idl:
660 * css/CSSValueList.idl:
665 * css/StyleSheet.idl:
666 * css/StyleSheetList.idl:
668 * dom/CDATASection.idl:
669 * dom/CharacterData.idl:
671 * dom/DOMImplementation.idl:
673 * dom/DocumentFragment.idl:
674 * dom/DocumentType.idl:
677 * dom/EntityReference.idl:
679 * dom/EventListener.idl:
680 * dom/EventTarget.idl:
681 * dom/NamedNodeMap.idl:
685 * dom/ProcessingInstruction.idl:
687 * html/CanvasGradient.idl:
688 * html/CanvasPattern.idl:
689 * html/CanvasRenderingContext2D.idl:
690 * html/HTMLAnchorElement.idl:
691 * html/HTMLAppletElement.idl:
692 * html/HTMLAreaElement.idl:
693 * html/HTMLBRElement.idl:
694 * html/HTMLBaseElement.idl:
695 * html/HTMLBaseFontElement.idl:
696 * html/HTMLBlockquoteElement.idl:
697 * html/HTMLBodyElement.idl:
698 * html/HTMLButtonElement.idl:
699 * html/HTMLCanvasElement.idl:
700 * html/HTMLCollection.idl:
701 * html/HTMLDListElement.idl:
702 * html/HTMLDirectoryElement.idl:
703 * html/HTMLDivElement.idl:
704 * html/HTMLDocument.idl:
705 * html/HTMLElement.idl:
706 * html/HTMLEmbedElement.idl:
707 * html/HTMLFieldSetElement.idl:
708 * html/HTMLFontElement.idl:
709 * html/HTMLFormElement.idl:
710 * html/HTMLFrameElement.idl:
711 * html/HTMLFrameSetElement.idl:
712 * html/HTMLHRElement.idl:
713 * html/HTMLHeadElement.idl:
714 * html/HTMLHeadingElement.idl:
715 * html/HTMLHtmlElement.idl:
716 * html/HTMLIFrameElement.idl:
717 * html/HTMLImageElement.idl:
718 * html/HTMLInputElement.idl:
719 * html/HTMLIsIndexElement.idl:
720 * html/HTMLLIElement.idl:
721 * html/HTMLLabelElement.idl:
722 * html/HTMLLegendElement.idl:
723 * html/HTMLLinkElement.idl:
724 * html/HTMLMapElement.idl:
725 * html/HTMLMarqueeElement.idl:
726 * html/HTMLMenuElement.idl:
727 * html/HTMLMetaElement.idl:
728 * html/HTMLModElement.idl:
729 * html/HTMLOListElement.idl:
730 * html/HTMLObjectElement.idl:
731 * html/HTMLOptGroupElement.idl:
732 * html/HTMLOptionElement.idl:
733 * html/HTMLOptionsCollection.idl:
734 * html/HTMLParagraphElement.idl:
735 * html/HTMLParamElement.idl:
736 * html/HTMLPreElement.idl:
737 * html/HTMLQuoteElement.idl:
738 * html/HTMLScriptElement.idl:
739 * html/HTMLSelectElement.idl:
740 * html/HTMLStyleElement.idl:
741 * html/HTMLTableCaptionElement.idl:
742 * html/HTMLTableCellElement.idl:
743 * html/HTMLTableColElement.idl:
744 * html/HTMLTableElement.idl:
745 * html/HTMLTableRowElement.idl:
746 * html/HTMLTableSectionElement.idl:
747 * html/HTMLTextAreaElement.idl:
748 * html/HTMLTitleElement.idl:
749 * html/HTMLUListElement.idl:
751 2007-10-30 Adele Peterson <adele@apple.com>
755 * page/AnimationController.cpp: (WebCore::blendFunc): Use lround instead of round.
757 2007-10-29 Timothy Hatcher <timothy@apple.com>
759 Reviewed by John Sullivan.
761 - Allow showing and closing the inspector programatically.
762 - Add showConsole() and showTimeline() methods.
764 * WebCore.base.exp: Add exports for WebKit.
765 * page/InspectorController.cpp:
766 (WebCore::callSimpleFunction): Renamed from callClearFunction().
767 (WebCore::unloading): Renamed to close().
768 (WebCore::InspectorController::InspectorController):
769 (WebCore::InspectorController::inspect): Moved showing code to show().
770 (WebCore::InspectorController::setWindowVisible): Show the timeline or console if needed.
771 (WebCore::InspectorController::show): Code factored out of inspect().
772 (WebCore::InspectorController::showConsole): Call show() and the JS showConsole().
773 (WebCore::InspectorController::showTimeline): Call show() and the JS showTimeline().
774 (WebCore::InspectorController::close):
775 (WebCore::InspectorController::clearScriptResources): Call the new callSimpleFunction.
776 (WebCore::InspectorController::clearDatabaseScriptResources): Ditto.
777 (WebCore::InspectorController::clearScriptConsoleMessages): Ditto.
778 (WebCore::InspectorController::clearNetworkTimeline): Ditto.
779 * page/InspectorController.h: Add and rename methods.
780 * page/inspector/inspector.js: Add showConsole() and showTimeline().
782 2007-10-30 Adele Peterson <adele@apple.com>
788 * page/AnimationController.cpp: (WebCore::blendFunc):
790 2007-10-30 Adele Peterson <adele@apple.com>
794 WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
795 <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
797 Test: manual-tests/password-caps-lock.html
799 * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
801 * page/Frame.cpp: (WebCore::Frame::setIsActive): Calls capsLockStateMayHaveChanged.
802 * page/EventHandler.cpp: (WebCore::EventHandler::capsLockStateMayHaveChanged): Added. Tells the focused node's renderer that the capsLockStateMayHaveChanged.
803 * page/EventHandler.h:
805 * platform/PlatformKeyboardEvent.h:
806 * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
807 * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
809 * rendering/RenderTextControl.cpp:
810 (WebCore::RenderTextControl::RenderTextControl):
811 (WebCore::RenderTextControl::paint): Added. If m_shouldDrawCapsLockIndicator is true, paints the caps lock indicator after the background.
812 (WebCore::RenderTextControl::forwardEvent): When the control gets and loses focus, update the caps lock state.
813 (WebCore::RenderTextControl::capsLockStateMayHaveChanged): Added. Updates m_shouldDrawCapsLockIndicator, which is true if the field is a password field,
814 and the frame is active, and the element is focused, and the caps lock is on. Causes a repaint when m_shouldDrawCapsLockIndicator changes state.
815 * rendering/RenderTextControl.h: Added m_shouldDrawCapsLockIndicator.
816 * rendering/RenderObject.h: (WebCore::RenderObject::capsLockStateMayHaveChanged): Added.
818 * rendering/RenderTheme.h: (WebCore::RenderTheme::paintCapsLockIndicator): Added.
819 * rendering/RenderThemeMac.h:
820 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintCapsLockIndicator): Added. Calls wkDrawCapsLockIndicator.
821 * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintCapsLockIndicator): Added. Calls paintThemePart for the CapsLockPart.
822 * rendering/RenderThemeSafari.h:
824 2007-10-30 David Hyatt <hyatt@apple.com>
826 Land support for implicit animation in CSS.
828 Reviewed by mitz, darin
831 (WebCore::CSSParser::parseTimingFunctionValue):
832 (WebCore::CSSParser::parseTransitionTimingFunction):
833 (WebCore::CSSParser::parseTransitionProperty):
834 * css/CSSStyleSelector.cpp:
835 (WebCore::CSSStyleSelector::mapTransitionDuration):
836 (WebCore::CSSStyleSelector::mapTransitionRepeatCount):
837 (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
838 (WebCore::CSSStyleSelector::mapTransitionProperty):
839 * css/CSSTimingFunctionValue.h:
840 (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
841 (WebCore::CSSTimingFunctionValue::x1):
842 (WebCore::CSSTimingFunctionValue::y1):
843 (WebCore::CSSTimingFunctionValue::x2):
844 (WebCore::CSSTimingFunctionValue::y2):
846 (WebCore::Element::styleForRenderer):
847 (WebCore::Element::createRenderer):
849 (WebCore::Node::createRendererIfNeeded):
850 (WebCore::Node::setRenderStyle):
851 * page/AnimationController.cpp:
852 (WebCore::CurveData::CurveData):
853 (WebCore::CurveData::sampleCurveX):
854 (WebCore::CurveData::sampleCurveY):
855 (WebCore::CurveData::sampleCurveDerivativeX):
856 (WebCore::CurveData::solveCurveX):
857 (WebCore::solveEpsilon):
858 (WebCore::solveCubicBezierFunction):
859 (WebCore::ImplicitAnimation::finished):
860 (WebCore::CompositeImplicitAnimation::~CompositeImplicitAnimation):
861 (WebCore::CompositeImplicitAnimation::hasAnimationForProperty):
862 (WebCore::ImplicitAnimation::ImplicitAnimation):
863 (WebCore::ImplicitAnimation::~ImplicitAnimation):
864 (WebCore::ImplicitAnimation::reset):
865 (WebCore::ImplicitAnimation::progress):
866 (WebCore::blendFunc):
867 (WebCore::ImplicitAnimation::animate):
868 (WebCore::CompositeImplicitAnimation::animate):
869 (WebCore::CompositeImplicitAnimation::animating):
870 (WebCore::CompositeImplicitAnimation::reset):
871 (WebCore::AnimationControllerPrivate::hasImplicitAnimations):
872 (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
873 (WebCore::AnimationControllerPrivate::~AnimationControllerPrivate):
874 (WebCore::AnimationControllerPrivate::get):
875 (WebCore::AnimationControllerPrivate::clear):
876 (WebCore::AnimationControllerPrivate::updateTimer):
877 (WebCore::AnimationControllerPrivate::timerFired):
879 (WebCore::AnimationController::~AnimationController):
880 (WebCore::AnimationController::cancelImplicitAnimations):
881 (WebCore::AnimationController::updateImplicitAnimations):
882 (WebCore::AnimationController::suspendAnimations):
883 (WebCore::AnimationController::resumeAnimations):
884 * page/AnimationController.h:
886 (WebCore::FramePrivate::FramePrivate):
887 * rendering/RenderBox.cpp:
888 (WebCore::RenderBox::setStyle):
889 (WebCore::RenderBox::destroy):
890 * rendering/RenderObject.cpp:
891 (WebCore::RenderObject::setAnimatableStyle):
892 (WebCore::RenderObject::destroy):
893 * rendering/RenderObject.h:
894 * rendering/RenderStyle.h:
895 (WebCore::TimingFunction::TimingFunction):
896 (WebCore::TimingFunction::operator==):
897 (WebCore::TimingFunction::x1):
898 (WebCore::TimingFunction::y1):
899 (WebCore::TimingFunction::x2):
900 (WebCore::TimingFunction::y2):
901 (WebCore::TimingFunction::type):
902 (WebCore::Transition::transitionProperty):
903 (WebCore::Transition::setTransitionProperty):
904 (WebCore::RenderStyle::initialTransitionProperty):
905 * rendering/RenderWidget.cpp:
906 (WebCore::RenderWidget::destroy):
908 2007-10-29 Beth Dakin <bdakin@apple.com>
912 Fix for <rdar://problem/5399614> anchor tag is not rendered without
913 text content, works in Firefox with CSS background-image (13237)
915 This patch allows empty inlines that have box decorations or width
916 from border/padding/margin to have line boxes.
918 * rendering/bidi.cpp:
919 (WebCore::inlineFlowAllowsLineBox): Convenience function that
920 defines when we allow an inline flow to have a line box.
921 (WebCore::requiresLineBox): Call inlineFlowAllowsLineBox.
922 (WebCore::shouldSkipWhitespaceAfterStartObject): New function to
923 merge some shared code between list markers and empty inline flows
924 that fall at the beginning of a line.
925 (WebCore::RenderBlock::findNextLineBreak): Make flows more like
928 One interesting side effect of this bug appeared in our xhtml/svg
929 tests that generate parser error tags. The tag we generate was
930 actually an empty inline with box decorations. This patch causes
931 those inlines to draw now, and the parser errors looked strange. So
932 I changed it so that the parsererror tag is display:block. This
933 matches Firefox, and I think was the original intent of the tag
934 since that causes its red background and border to show up.
935 * dom/XMLTokenizer.cpp:
936 (WebCore::createXHTMLParserErrorHeader):
938 2007-10-29 Dan Bernstein <mitz@apple.com>
940 Reviewed by Dave Hyatt.
942 - fix crashing tests fast/frames/inline-object-inside-frameset.html and
943 fast/forms/form-hides-table.html
945 * rendering/RenderBox.cpp:
946 (WebCore::RenderBox::destroy):
947 * rendering/RenderWidget.cpp:
948 (WebCore::RenderWidget::destroy):
950 2007-10-29 Dan Bernstein <mitz@apple.com>
952 Reviewed by Adam Roben.
954 - fix http://bugs.webkit.org/show_bug.cgi?id=15750
955 REGRESSION(r27173): Web Inspector freezes beneath Image::drawPattern()
957 Test: fast/backgrounds/size/zero.html
959 * platform/graphics/cg/ImageCG.cpp:
960 (WebCore::Image::drawPattern): Added an ASSERT and an early return
961 to guard against singular pattern transforms.
962 * rendering/RenderBox.cpp:
963 (WebCore::cacluateBackgroundSize): Changed to ensure a minimum tile
966 2007-10-29 Alp Toker <alp@atoker.com>
970 Add GTK+ convenience conversions for various primitives
973 * platform/graphics/Color.h:
974 * platform/graphics/IntPoint.h:
975 * platform/graphics/IntRect.h:
976 * platform/graphics/gtk/ColorGtk.cpp: Added.
977 (WebCore::Color::Color):
978 * platform/graphics/gtk/IntPointGtk.cpp: Added.
979 (WebCore::IntPoint::IntPoint):
980 (WebCore::IntPoint::operator GdkPoint):
981 * platform/graphics/gtk/IntRectGtk.cpp: Added.
982 (WebCore::IntRect::IntRect):
983 (WebCore::IntRect::operator GdkRectangle):
985 2007-10-29 Jon Honeycutt <jhoneycutt@apple.com>
989 Speculative fix for <rdar://5538489> Safari 3.0.4 seed hangs at
990 http://tgmonline.futuregamer.it/ (works fine on Safari 2.0.4 and Safari
993 I cannot reproduce this hang, but it is likely due to our not limiting
994 WM_USER+1 messages or InvalidateRect calls for a plugin with initially-
995 unknown MIME type. The embed tag on the page is missing a type
996 attribute, so as fallback, we choose to load the Flash plugin based on
997 the file extension of "swf." However, we do not record this determined
998 MIME type, and so our quirks cannot be established.
1000 Changed findPlugin() so that, if it fails to find a plugin for the
1001 given MIME type, it will lookup the MIME type for the file extension -
1002 overwriting its passed MIME type parameter - and search for a plugin
1005 * plugins/win/PluginDatabaseWin.cpp:
1006 (WebCore::PluginDatabaseWin::pluginForMIMEType): Added an early return
1007 if the MIME type is empty
1008 (WebCore::PluginDatabaseWin::MIMETypeForExtension): Added to replace
1009 pluginForExtension. Returns a String with the MIME type for the file
1010 extension. Also, changed to use case-insensitive compares
1011 (WebCore::PluginDatabaseWin::findPlugin): If we fail to find a plugin
1012 for the given extension, overwrite the incoming MIME type parameter
1013 with the MIME type for the file extension, and search for a plugin for
1014 that MIME type. Also, changed the way that the extension is determined
1015 (WebCore::PluginDatabaseWin::createPluginView): Pass a mutable String
1016 to findPlugin() so that it can be updated if necessary
1017 * plugins/win/PluginDatabaseWin.h: Changed findPlugin() to take a non-
1018 const String, removed definition of pluginForExtension, added
1019 definition for MIMETypeForExtension
1020 * plugins/win/PluginPackageWin.cpp:
1021 (WebCore::PluginPackageWin::fetchInfo): Store the MIME type in
1022 lowercase for easier compares
1024 2007-10-29 Andrew Wellington <proton@wiretapped.net>
1026 Not reviewed - build fix
1030 WebKit/WebCore/xml/XSLTProcessor.cpp:79: warning: 'level' may be used uninitialized
1033 * xml/XSLTProcessor.cpp:
1034 (WebCore::XSLTProcessor::parseErrorFunc):
1036 2007-10-29 Alp Toker <alp@atoker.com>
1038 Reviewed by Adam Roben.
1040 http://bugs.webkit.org/show_bug.cgi?id=15725
1041 [GTK] WebCore.pro header dependencies are incorrect
1043 Fix header dependencies in the build system
1045 INCLUDEPATH and DEPENDPATH are now up to date.
1049 2007-10-29 Beth Dakin <bdakin@apple.com>
1053 * css/CSSParser.cpp:
1054 (WebCore::CSSParser::parseTimingFunctionValue):
1055 * css/CSSStyleSelector.cpp:
1056 (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
1058 2007-10-29 David Hyatt <hyatt@apple.com>
1060 Land the back end for CSS animated property transitions. I am landing this in stages, so the AnimationController
1061 class is deliberately left empty.
1063 Reviewed by darin/aroben
1066 * WebCore.vcproj/WebCore.vcproj:
1067 * WebCore.xcodeproj/project.pbxproj:
1068 * css/CSSComputedStyleDeclaration.cpp:
1069 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1070 * css/CSSPropertyNames.in:
1071 * css/CSSTimingFunctionValue.cpp: Added.
1072 (WebCore::CSSTimingFunctionValue::cssText):
1073 * css/CSSTimingFunctionValue.h: Added.
1074 (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
1075 (WebCore::CSSTimingFunctionValue::firstPoint):
1076 (WebCore::CSSTimingFunctionValue::secondPoint):
1077 * css/CSSValueKeywords.in:
1078 * history/CachedPage.cpp:
1079 (WebCore::CachedPage::restore):
1080 * page/AnimationController.cpp: Added.
1081 (WebCore::AnimationController::AnimationController):
1082 (WebCore::AnimationController::~AnimationController):
1083 (WebCore::AnimationController::cancelTransitions):
1084 (WebCore::AnimationController::updateTransitions):
1085 (WebCore::AnimationController::suspendAnimations):
1086 (WebCore::AnimationController::resumeAnimations):
1087 * page/AnimationController.h: Added.
1089 (WebCore::Frame::animationController):
1090 (WebCore::Frame::clearTimers):
1092 * page/FramePrivate.h:
1093 * rendering/RenderBox.cpp:
1094 (WebCore::RenderBox::setStyle):
1095 (WebCore::RenderBox::destroy):
1096 * rendering/RenderObject.cpp:
1097 (WebCore::RenderObject::animationController):
1098 * rendering/RenderObject.h:
1099 * rendering/RenderStyle.cpp:
1100 (WebCore::Transition::Transition):
1101 (WebCore::Transition::~Transition):
1102 (WebCore::Transition::operator=):
1103 (WebCore::Transition::operator==):
1104 (WebCore::Transition::fillUnsetProperties):
1105 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1106 (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
1107 (WebCore::StyleRareNonInheritedData::operator==):
1108 (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
1109 (WebCore::RenderStyle::diff):
1110 (WebCore::RenderStyle::adjustTransitions):
1111 (WebCore::RenderStyle::accessTransitions):
1112 * rendering/RenderStyle.h:
1113 (WebCore::BackgroundLayer::next):
1115 (WebCore::TimingFunction::TimingFunction):
1116 (WebCore::TimingFunction::operator==):
1117 (WebCore::Transition::next):
1118 (WebCore::Transition::isTransitionDurationSet):
1119 (WebCore::Transition::isTransitionRepeatCountSet):
1120 (WebCore::Transition::isTransitionTimingFunctionSet):
1121 (WebCore::Transition::isTransitionPropertySet):
1122 (WebCore::Transition::isEmpty):
1123 (WebCore::Transition::clearTransitionDuration):
1124 (WebCore::Transition::clearTransitionRepeatCount):
1125 (WebCore::Transition::clearTransitionTimingFunction):
1126 (WebCore::Transition::clearTransitionProperty):
1127 (WebCore::Transition::transitionDuration):
1128 (WebCore::Transition::transitionRepeatCount):
1129 (WebCore::Transition::transitionTimingFunction):
1130 (WebCore::Transition::transitionProperty):
1131 (WebCore::Transition::setTransitionDuration):
1132 (WebCore::Transition::setTransitionRepeatCount):
1133 (WebCore::Transition::setTransitionTimingFunction):
1134 (WebCore::Transition::setTransitionProperty):
1135 (WebCore::Transition::setNext):
1136 (WebCore::Transition::operator!=):
1137 (WebCore::RenderStyle::transitions):
1138 (WebCore::RenderStyle::clearTransitions):
1139 (WebCore::RenderStyle::inheritTransitions):
1140 (WebCore::RenderStyle::initialTransitionDuration):
1141 (WebCore::RenderStyle::initialTransitionRepeatCount):
1142 (WebCore::RenderStyle::initialTransitionTimingFunction):
1143 (WebCore::RenderStyle::initialTransitionProperty):
1144 * rendering/RenderWidget.cpp:
1145 (WebCore::RenderWidget::destroy):
1147 2007-10-29 Alexey Proskuryakov <ap@webkit.org>
1151 http://bugs.webkit.org/show_bug.cgi?id=6040
1152 XSLT does not report errors to the user
1154 Made parseErrorFunc a static member function of XSLTProcessor to be reusable from XSLStylesheet.
1155 Switched to xmlSetStructuredErrorFunc to get an error structure instead of pre-formatted console
1156 output. Got rid of DeprecatedString in XSLTProcessor.
1159 (WebCore::Document::applyXSLTransform):
1160 * xml/XSLStyleSheet.cpp:
1161 (WebCore::XSLStyleSheet::parseString):
1162 * xml/XSLTProcessor.cpp:
1163 (WebCore::XSLTProcessor::parseErrorFunc):
1164 (WebCore::docLoaderFunc):
1165 (WebCore::setXSLTLoadCallBack):
1166 (WebCore::writeToString):
1167 (WebCore::saveResultToString):
1168 (WebCore::transformTextStringToXHTMLDocumentString):
1169 (WebCore::xsltParamArrayFromParameterMap):
1170 (WebCore::freeXsltParamArray):
1171 (WebCore::XSLTProcessor::createDocumentFromSource):
1172 (WebCore::createFragmentFromSource):
1173 (WebCore::xsltStylesheetPointer):
1174 (WebCore::xmlDocPtrFromNode):
1175 (WebCore::resultMIMEType):
1176 (WebCore::XSLTProcessor::transformToString):
1177 (WebCore::XSLTProcessor::transformToDocument):
1178 (WebCore::XSLTProcessor::transformToFragment):
1179 * xml/XSLTProcessor.h:
1180 (WebCore::XSLTProcessor::setXSLStylesheet):
1181 (WebCore::XSLTProcessor::importStylesheet):
1182 (WebCore::XSLTProcessor::xslStylesheet):
1184 2007-10-29 Dan Bernstein <mitz@apple.com>
1186 Reviewed by John Sullivan.
1188 - fix <rdar://problem/5424455> REGRESSION (r21168-r21193, Tiger only): Safari scrollbar is clipped at top when loading particular RSS page
1190 Test: fast/repaint/layout-state-only-posiitoned.html
1192 * rendering/RenderBlock.cpp:
1193 (WebCore::RenderBlock::layoutOnlyPositionedObjects): Pop layout state
1194 before updating scroll info, which possibly repaints us.
1196 2007-10-29 David Kilzer <ddkilzer@webkit.org>
1198 REGRESSION (r17701): Favicons should be viewable as image documents
1199 <http://bugs.webkit.org/show_bug.cgi?id=15640>
1203 On Tiger and Leopard, the image/x-icon MIME type is not returned from
1204 CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
1205 the icon to be downloaded instead being displayed in an image document.
1207 Test: fast/images/favicon-as-image.html
1209 * platform/MIMETypeRegistry.cpp:
1210 (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to
1211 supportedImageMIMETypes and supportedImageResourceMIMETypes. Also fixed
1212 comment about the image/bmp MIME type since it applies to both Tiger and
1215 2007-10-29 Maciej Stachowiak <mjs@apple.com>
1219 - fixed assertion failures detected by the new assertions
1221 * bindings/objc/DOMRGBColor.mm:
1222 (-[DOMRGBColor dealloc]): Clear _internal before calling [super dealloc]
1223 because it's not a pointer and shouldn't be in the normal wrapper cache.
1225 (WebCore::Document::addImageMap): Don't access hashmap if name is null.
1226 (WebCore::Document::removeImageMap): ditto
1227 * dom/StyledElement.cpp:
1228 (WebCore::StyledElement::parseMappedAttribute): Don't claim we have a class
1229 when the class attribute is empty.
1230 * platform/TextCodecICU.cpp:
1231 (WebCore::gbkCallbackEscape): Don't look up 0 code points.
1233 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
1237 http://bugs.webkit.org/show_bug.cgi?id=10734
1238 Made HTMLOptionElement.index read-only, matching IE and DOM standard.
1240 Test: fast/dom/HTMLOptionElement/set-option-index-text.html
1242 * html/HTMLOptionElement.idl: Marked index as readonly.
1244 * html/HTMLOptionElement.cpp:
1245 * html/HTMLOptionElement.h:
1248 2007-10-28 Eric Seidel <eric@webkit.org>
1252 Fix leaks on TOT and prevent Path code from logging to console so frequently
1254 * platform/graphics/svg/SVGResourceFilter.h:
1255 (WebCore::SVGResourceFilterPlatformData::SVGResourceFilterPlatformData):
1256 (WebCore::SVGResourceFilterPlatformData::~SVGResourceFilterPlatformData):
1257 * platform/graphics/svg/cg/CgSupport.cpp:
1258 (WebCore::strokeBoundingBox):
1259 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1260 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1262 2007-10-28 Mark Rowe <mrowe@apple.com>
1266 Replace uses of isNaN and isInf with isnan and isinf.
1268 * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1269 (WebCore::JSHTMLOptionsCollection::setLength):
1271 2007-10-28 Maciej Stachowiak <mjs@apple.com>
1275 - fixed REGRESSION(r27176): Reproducible crash while trying to order dinner makes bdash sad
1276 http://bugs.webkit.org/show_bug.cgi?id=15731
1278 * bindings/js/kjs_window.cpp:
1279 (KJS::Window::installTimeout): Avoid putting in or accessing empty or deleted keys.
1280 (KJS::Window::clearTimeout): ditto
1281 * manual-tests/bad-clearTimeout-crash.html: Added. Automated test not possible.
1283 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
1285 wx port defines for graphics and network layers.
1287 Reviewed by Darin Adler.
1289 * platform/graphics/AffineTransform.h:
1290 * platform/graphics/BitmapImage.h:
1291 * platform/graphics/Color.h:
1292 * platform/graphics/FloatRect.h:
1293 * platform/graphics/GraphicsContext.h:
1294 * platform/graphics/ImageSource.h:
1295 * platform/graphics/IntPoint.h:
1296 * platform/graphics/IntRect.h:
1297 * platform/graphics/Path.h:
1298 * platform/graphics/Pen.h:
1299 * platform/network/ResourceHandle.h:
1302 2007-10-28 Alp Toker <alp@atoker.com>
1304 Reviewed by Anders Carlsson.
1306 http://bugs.webkit.org/show_bug.cgi?id=14124
1307 [CURL] Support data URLs
1309 Add data URL support (both Base64 and percent-encoded formats).
1311 Inspired by code from the Qt port.
1313 * platform/Base64.cpp:
1314 (WebCore::base64Decode):
1315 * platform/Base64.h:
1316 * platform/network/curl/ResourceHandleManager.cpp:
1317 (WebCore::ResourceHandleManager::startScheduledJobs):
1318 (WebCore::parseDataUrl):
1320 2007-10-28 Alp Toker <alp@atoker.com>
1322 Reviewed by Adam Roben.
1324 http://bugs.webkit.org/show_bug.cgi?id=15701
1325 The curl http backend does not deal properly with redirects
1327 Implement http redirect support.
1329 * platform/network/curl/ResourceHandleManager.cpp:
1330 (WebCore::headerCallback):
1332 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
1334 Define types and accessors needed for wx implementation
1335 of platform classes. Also, turn off DisallowCTypes.h because
1336 disallowed methods appear in wx headers.
1338 Reviewed by Adam Roben.
1341 * platform/ContextMenuItem.h:
1342 * platform/Cursor.h:
1343 * platform/DeprecatedString.h:
1344 * platform/DragData.h:
1345 * platform/DragImage.h:
1346 * platform/FontData.h:
1347 (WebCore::FontData::getWxFont):
1348 * platform/GlyphBuffer.h:
1349 (WebCore::GlyphBuffer::glyphAt):
1350 (WebCore::GlyphBuffer::advanceAt):
1351 (WebCore::GlyphBuffer::add):
1352 * platform/PlatformKeyboardEvent.h:
1353 (WebCore::PlatformKeyboardEvent::isWxCharEvent):
1354 * platform/PlatformMenuDescription.h:
1355 * platform/PlatformMouseEvent.h:
1356 * platform/PlatformString.h:
1357 * platform/PlatformWheelEvent.h:
1358 * platform/ScrollView.h:
1359 * platform/Widget.h:
1360 * platform/image-decoders/bmp/BMPImageDecoder.cpp:
1361 * platform/image-decoders/gif/GIFImageDecoder.cpp:
1362 * platform/image-decoders/gif/GIFImageReader.cpp:
1363 * platform/image-decoders/ico/ICOImageDecoder.cpp:
1364 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1365 * platform/image-decoders/png/PNGImageDecoder.cpp:
1366 * platform/image-decoders/xbm/XBMImageDecoder.cpp:
1368 2007-10-28 Mark Rowe <mrowe@apple.com>
1370 We don't include "config.h" in headers.
1372 * dom/XMLTokenizer.h:
1373 * platform/graphics/svg/SVGResourceFilter.h:
1374 * platform/image-decoders/ImageDecoder.h:
1375 * platform/wx/FontPlatformData.h:
1377 2007-10-28 Darin Adler <darin@apple.com>
1379 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1380 We don't include "config.h" in headers. Hope this desn't break
1381 the non-SVG build again.
1383 2007-10-28 Eric Seidel <eric@webkit.org>
1385 Build fix for non-SVG build, no review.
1387 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1388 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm:
1390 2007-10-28 Eric Seidel <eric@webkit.org>
1394 Push SVGResourceFilter platform specific data down into m_platformData
1395 in preparation for implementing a non-mac filter solution.
1397 Also update a very old email address in copyright headers
1399 * WebCore.xcodeproj/project.pbxproj:
1400 * platform/graphics/FloatPoint3D.cpp:
1401 (WebCore::FloatPoint3D::FloatPoint3D):
1402 * platform/graphics/FloatPoint3D.h:
1403 * platform/graphics/svg/SVGResourceFilter.cpp:
1404 (WebCore::SVGResourceFilter::SVGResourceFilter):
1405 * platform/graphics/svg/SVGResourceFilter.h:
1406 (WebCore::SVGResourceFilter::platformData):
1407 (WebCore::SVGResourceFilter::effects):
1408 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1409 (WebCore::SVGResourceFilter::createPlatformData):l
1410 (WebCore::SVGResourceFilter::prepareFilter):
1411 (WebCore::SVGResourceFilter::applyFilter):
1412 * platform/graphics/svg/filters/SVGDistantLightSource.h:
1413 * platform/graphics/svg/filters/SVGFEBlend.cpp:
1414 * platform/graphics/svg/filters/SVGFEBlend.h:
1415 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
1416 * platform/graphics/svg/filters/SVGFEColorMatrix.h:
1417 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
1418 * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
1419 * platform/graphics/svg/filters/SVGFEComposite.cpp:
1420 * platform/graphics/svg/filters/SVGFEComposite.h:
1421 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
1422 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
1423 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
1424 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
1425 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
1426 * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
1427 * platform/graphics/svg/filters/SVGFEFlood.cpp:
1428 * platform/graphics/svg/filters/SVGFEFlood.h:
1429 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
1430 * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
1431 * platform/graphics/svg/filters/SVGFEImage.cpp:
1432 * platform/graphics/svg/filters/SVGFEImage.h:
1433 * platform/graphics/svg/filters/SVGFEMerge.cpp:
1434 * platform/graphics/svg/filters/SVGFEMerge.h:
1435 * platform/graphics/svg/filters/SVGFEMorphology.cpp:
1436 * platform/graphics/svg/filters/SVGFEMorphology.h:
1437 * platform/graphics/svg/filters/SVGFEOffset.cpp:
1438 * platform/graphics/svg/filters/SVGFEOffset.h:
1439 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
1440 * platform/graphics/svg/filters/SVGFESpecularLighting.h:
1441 * platform/graphics/svg/filters/SVGFETile.h:
1442 * platform/graphics/svg/filters/SVGFETurbulence.cpp:
1443 * platform/graphics/svg/filters/SVGFETurbulence.h:
1444 * platform/graphics/svg/filters/SVGFilterEffect.cpp:
1445 * platform/graphics/svg/filters/SVGFilterEffect.h:
1446 * platform/graphics/svg/filters/SVGLightSource.cpp:
1447 * platform/graphics/svg/filters/SVGLightSource.h:
1448 * platform/graphics/svg/filters/SVGPointLightSource.h:
1449 * platform/graphics/svg/filters/SVGSpotLightSource.h:
1450 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
1451 (WebCore::SVGFEBlend::getCIFilter):
1452 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
1453 (WebCore::SVGFEColorMatrix::getCIFilter):
1454 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
1455 (WebCore::SVGFEComponentTransfer::getCIFilter):
1456 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
1457 (WebCore::SVGFEComposite::getCIFilter):
1458 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
1459 (WebCore::SVGFEDiffuseLighting::getCIFilter):
1460 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
1461 (WebCore::SVGFEDisplacementMap::getCIFilter):
1462 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
1463 (WebCore::SVGFEFlood::getCIFilter):
1464 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
1465 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
1466 (WebCore::SVGFEImage::getCIFilter):
1467 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
1468 (WebCore::SVGFEMerge::getCIFilter):
1469 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
1470 (WebCore::SVGFESpecularLighting::getCIFilter):
1471 * platform/graphics/svg/mac: Added.
1472 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Added.
1473 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Added.
1474 (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):
1475 (WebCore::SVGResourceFilterPlatformDataMac::~SVGResourceFilterPlatformDataMac):
1476 (WebCore::SVGResourceFilterPlatformDataMac::getCIFilterStack):
1477 (WebCore::alphaImageForImage):
1478 (WebCore::SVGResourceFilterPlatformDataMac::imageForName):
1479 (WebCore::SVGResourceFilterPlatformDataMac::setImageForName):
1480 (WebCore::SVGResourceFilterPlatformDataMac::setOutputImage):
1481 (WebCore::SVGResourceFilterPlatformDataMac::inputImage):
1483 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
1485 Reviewed by Adam Roben.
1487 http://bugs.webkit.org/show_bug.cgi?id=15217
1488 Plugin complains that xpcom_core.dll missing
1490 * plugins/win/PluginDatabaseWin.cpp:
1491 (WebCore::PluginDatabaseWin::isPluginBlacklisted): Blacklist npmozax.dll.
1493 2007-10-28 Timothy Hatcher <timothy@apple.com>
1497 Pass the Document's domain to InspectorController:didOpenDatabase. This matches
1498 what the Inspector shows for other resources.
1500 * storage/Database.cpp:
1501 (WebCore::Database::openDatabase):
1503 * dom/Document.h: Remove KURL.h, no longer needed.
1505 2007-10-28 Timothy Hatcher <timothy@apple.com>
1509 Bug 15728: Selected Resource background image gradient has banding
1510 http://bugs.webkit.org/show_bug.cgi?id=15728
1512 - Reduced images to 1px wide that are tiled horizontally in CSS.
1513 - Corrected the -webkit-background-size usage to specify auto for the width.
1515 * page/inspector/Images/attachedShadow.png:
1516 * page/inspector/Images/bottomShadow.png:
1517 * page/inspector/Images/darkShadow.png:
1518 * page/inspector/Images/gradient.png:
1519 * page/inspector/Images/gradientHighlight.png:
1520 * page/inspector/Images/gradientHighlightBottom.png:
1521 * page/inspector/Images/sidebarSelection.png:
1522 * page/inspector/Images/sidebarSelectionBlurred.png:
1523 * page/inspector/Images/sidebarSelectionBlurredTall.png:
1524 * page/inspector/Images/sidebarSelectionGray.png:
1525 * page/inspector/Images/sidebarSelectionGrayTall.png:
1526 * page/inspector/Images/sidebarSelectionTall.png:
1527 * page/inspector/inspector.css:
1529 2007-10-27 Timothy Hatcher <timothy@apple.com>
1533 Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline
1534 http://bugs.webkit.org/show_bug.cgi?id=15727
1536 Add one window resize listener and call the new resize function on the currentPanel.
1537 Also call the currentPanel's resize function when resizing the sidebar.
1539 * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when
1540 the panel is shown and when resizing the DOM sidebar.
1541 * page/inspector/FontPanel.js: Implement resize.
1542 * page/inspector/NetworkPanel.js: Ditto.
1543 * page/inspector/inspector.js: Add a window resize listener.
1545 2007-10-27 Maciej Stachowiak <mjs@apple.com>
1549 - update for HashTable changes
1551 * bindings/js/JSSVGPODTypeWrapper.h:
1553 * dom/QualifiedName.cpp:
1554 * dom/StyledElement.cpp:
1555 * ksvg2/svg/SVGAnimatedTemplate.h:
1556 * platform/FontCache.cpp:
1557 * platform/StringHash.h:
1559 * platform/TextEncodingRegistry.cpp:
1560 * platform/graphics/IntSizeHash.h:
1562 * plugins/win/PluginPackageWin.h:
1564 2007-10-28 Alp Toker <alp@atoker.com>
1566 Reviewed by Adam Roben.
1568 http://bugs.webkit.org/show_bug.cgi?id=15646
1569 [GTK] caretBlinkFrequency is hard-coded in Frame.cpp
1571 Abstract caretBlinkFrequency to RenderTheme.
1574 (WebCore::Frame::selectionLayoutChanged):
1575 * platform/gtk/RenderThemeGtk.cpp:
1576 (WebCore::RenderThemeGtk::caretShouldBlink):
1577 (WebCore::RenderThemeGtk::caretBlinkFrequency):
1578 * platform/gtk/RenderThemeGtk.h:
1579 * rendering/RenderTheme.h:
1581 2007-10-27 Timothy Hatcher <timothy@apple.com>
1585 Don't print the line number in the Inspector Console if it is Zero.
1587 * page/inspector/ConsolePanel.js:
1589 2007-10-27 Sam Weinig <sam@webkit.org>
1591 Reviewed by Adam Roben.
1593 Fix http://bugs.webkit.org/show_bug.cgi?id=14953
1594 Implement window.console in WebCore
1596 - Adds a window.console object that has 4 methods (log, info, warn, and error)
1597 that send messages to the Chrome. This moves functionality that was in the
1598 app down into WebCore.
1600 * DerivedSources.make:
1602 * WebCore.vcproj/WebCore.vcproj:
1603 * WebCore.xcodeproj/project.pbxproj:
1604 * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
1605 to mark attributes as [Replacable] which indicates they can
1606 overridden when set.
1608 (WebCore::Chrome::addMessageToConsole): Allow all messages to go
1609 up to the ChromeClient.
1610 * page/Console.cpp: Added.
1611 (WebCore::Console::Console):
1612 (WebCore::Console::disconnectFrame):
1613 (WebCore::Console::error):
1614 (WebCore::Console::info):
1615 (WebCore::Console::log):
1616 (WebCore::Console::warn):
1617 * page/Console.h: Added.
1618 * page/Console.idl: Added.
1619 * page/DOMWindow.cpp:
1620 (WebCore::DOMWindow::clear):
1621 (WebCore::DOMWindow::console):
1623 * page/DOMWindow.idl:
1625 2007-10-27 Eric Seidel <eric@webkit.org>
1629 Remove legacy createFilterEffect function (causing extra filter tests to fail on windows)
1631 No functional changes, thus no tests.
1633 * ksvg2/svg/SVGFEBlendElement.cpp:
1634 (WebCore::SVGFEBlendElement::filterEffect):
1635 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1636 (WebCore::SVGFEColorMatrixElement::filterEffect):
1637 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
1638 (WebCore::SVGFEComponentTransferElement::filterEffect):
1639 * ksvg2/svg/SVGFECompositeElement.cpp:
1640 (WebCore::SVGFECompositeElement::filterEffect):
1641 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1642 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
1643 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
1644 (WebCore::SVGFEDisplacementMapElement::filterEffect):
1645 * ksvg2/svg/SVGFEFloodElement.cpp:
1646 (WebCore::SVGFEFloodElement::filterEffect):
1647 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1648 (WebCore::SVGFEGaussianBlurElement::filterEffect):
1649 * ksvg2/svg/SVGFEImageElement.cpp:
1650 (WebCore::SVGFEImageElement::filterEffect):
1651 * ksvg2/svg/SVGFEMergeElement.cpp:
1652 (WebCore::SVGFEMergeElement::filterEffect):
1653 * ksvg2/svg/SVGFEOffsetElement.cpp:
1654 (WebCore::SVGFEOffsetElement::filterEffect):
1655 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1656 (WebCore::SVGFESpecularLightingElement::filterEffect):
1657 * ksvg2/svg/SVGFETileElement.cpp:
1658 (WebCore::SVGFETileElement::filterEffect):
1659 * ksvg2/svg/SVGFETurbulenceElement.cpp:
1660 (WebCore::SVGFETurbulenceElement::filterEffect):
1661 * platform/graphics/svg/SVGResourceFilter.h:
1662 * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
1663 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1664 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
1666 2007-10-27 Dan Bernstein <mitz@apple.com>
1668 Reviewed by Darin Adler.
1670 - fix a crash when opening Zenoss server history view
1671 <rdar://problem/5530657>
1673 Test: fast/table/colgroup-relative.html
1675 * rendering/LayoutState.cpp:
1676 (WebCore::LayoutState::LayoutState): Added a hasLayer() check before
1679 2007-10-27 Julien <julien.chaffraix@gmail.com>
1683 http://bugs.webkit.org/show_bug.cgi?id=13141
1684 XMLHttpRequest should set readyState to 0 after abort()
1686 Test: http/tests/xmlhttprequest/xmlhttprequest-abort-readyState.html
1688 * xml/XMLHttpRequest.cpp:
1689 (WebCore::XMLHttpRequest::open):
1690 (WebCore::XMLHttpRequest::abort):
1692 2007-10-27 Dan Bernstein <mitz@apple.com>
1694 Reviewed by Dave Hyatt.
1696 - fix rotated border images by using a temporary subimage containing
1697 only the part we want to tile
1699 Test: fast/borders/border-image-rotate-transform.html
1701 * platform/graphics/cg/ImageCG.cpp:
1702 (WebCore::Image::drawPatternCallback):
1703 (WebCore::Image::drawPattern):
1705 2007-10-27 Jan Michael Alonzo <jmalonzo@unpluggable.com>
1709 http://bugs.webkit.org/show_bug.cgi?id=15722
1710 [GTK] Refactor gtk/RenderThemeGtk and implement a few more methods
1712 Refactor/enhance GTK RenderTheme
1714 * platform/gtk/RenderThemeGtk.cpp:
1715 (WebCore::RenderThemeGtk::supportsFocus): added TextArea, Menulist, Radio, and Checkbox Appearances
1716 (WebCore::RenderThemeGtk::supportsFocusRing): call supportsFocus() to check if focus on appearance is supported
1717 (WebCore::RenderThemeGtk::controlSupportsTints): copied from Qt and Safari ports
1718 (WebCore::RenderThemeGtk::baselinePosition): copied from Qt and Safari ports
1719 (WebCore::RenderThemeGtk::paintCheckbox): moved painting in paintButton
1720 (WebCore::RenderThemeGtk::paintRadio): moved painting in paintButton
1721 (WebCore::RenderThemeGtk::paintButton): paint the different buttons here, checking for the right appearance before doing so
1722 (WebCore::RenderThemeGtk::paintMenuList): use 0 instead of NULLs
1723 (WebCore::RenderThemeGtk::adjustTextFieldStyle):
1724 (WebCore::RenderThemeGtk::getThemeData):
1725 * platform/gtk/RenderThemeGtk.h:
1726 (WebCore::RenderThemeGtk::supportsControlTints):
1728 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
1732 http://bugs.webkit.org/show_bug.cgi?id=15555
1733 XMLHttpRequest does not support charset "x-user-defined", which can
1734 facilitate loading of binary data
1736 Test: http/tests/xmlhttprequest/binary-x-user-defined.html
1739 * WebCore.vcproj/WebCore.vcproj:
1740 * WebCore.xcodeproj/project.pbxproj:
1741 * platform/TextCodecUserDefined.cpp: Added.
1742 (WebCore::TextCodecUserDefined::registerEncodingNames):
1743 (WebCore::newStreamingTextDecoderUserDefined):
1744 (WebCore::TextCodecUserDefined::registerCodecs):
1745 (WebCore::TextCodecUserDefined::decode):
1746 (WebCore::encodeComplexUserDefined):
1747 (WebCore::TextCodecUserDefined::encode):
1748 * platform/TextCodecUserDefined.h: Added.
1749 * platform/TextEncodingRegistry.cpp:
1750 (WebCore::buildBaseTextCodecMaps):
1752 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
1756 http://bugs.webkit.org/show_bug.cgi?id=15467
1757 Setting innerHTML to blank string in application/xhtml+xml mode
1758 throws DOM Exception 7
1760 Test: fast/dom/blank-innerHTML.xhtml
1762 * dom/XMLTokenizer.cpp:
1763 (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
1765 2007-10-26 Sam Weinig <sam@webkit.org>
1767 Enable dragging the left sidebar using the separator.
1769 Reviewed by Anders (unless Mitz says otherwise).
1771 * page/inspector/DocumentPanel.js:
1772 * page/inspector/inspector.css:
1773 * page/inspector/inspector.html:
1774 * page/inspector/inspector.js:
1776 2007-10-26 Sam Weinig <sam@webkit.org>
1778 Fix an off by one error when resizing the Inspector find window.
1782 * page/inspector/inspector.js:
1784 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
1788 Fix fallout from r26072, which leads to all plugin streams for local
1789 resources being cancelled
1791 * loader/win/NetscapePlugInStreamLoaderWin.cpp:
1792 (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Ensure this
1793 is an HTTP response before checking the HTTP response code
1795 2007-10-26 David Hyatt <hyatt@apple.com>
1797 Fix for http://bugs.webkit.org/show_bug.cgi?id=15719, transformed box doesn't repaint properly
1798 when only translation changes.
1800 Move the updating of the transform to in between the old repaint and the new repaint.
1804 fast/repaint/transform-translate.html
1806 * rendering/RenderLayer.cpp:
1807 (WebCore::RenderLayer::updateLayerPositions):
1809 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
1813 <rdar://5557379> Crash in Silverlight when opening microsoft.com
1815 The crash is within Silverlight, and the latest version of the plugin
1816 does not exhibit this crash, so just avoid loading this version of the
1819 * plugins/win/PluginDatabaseWin.cpp: Added isPluginBlacklisted() and
1820 constants silverlightPluginMinRequiredVersionMSDWORD and
1821 silverlightPluginMinRequiredVersionLSDWORD. Their values are taken from
1822 the version info of Silverlight 1.0.20926.0, which is a version known
1823 not to exhibit this crash
1824 (WebCore::PluginDatabaseWin::isPluginBlacklisted): Determine whether
1825 this plugin is blacklisted
1826 * plugins/win/PluginDatabaseWin.h:
1827 * plugins/win/PluginPackageWin.cpp:
1828 (WebCore::PluginPackageWin::PluginPackageWin): Initialize m_fileVersion*
1829 (WebCore::PluginPackageWin::getFileVersion):
1830 (WebCore::PluginPackageWin::storeFileVersion): Read version info for
1831 the plugin, and store the file version
1832 (WebCore::PluginPackageWin::fetchInfo): After determining the name,
1833 description, and file version, determine whether this plug-in is
1834 blacklisted. If so, return false so this plug-in isn't loaded
1835 * plugins/win/PluginPackageWin.h:
1837 2007-10-26 Sam Weinig <sam@webkit.org>
1839 Reviewed by Adele Peterson.
1841 Fix for <rdar://problem/5421754>
1842 m_frameName member variable in HTMLPlugInElement unnecessary
1844 - Refactor the willRemove() method down into HTMLFrameOwnerElement now that
1845 we no longer need to use the m_frameName variable.
1847 * html/HTMLFrameElementBase.cpp:
1848 * html/HTMLFrameElementBase.h:
1849 * html/HTMLFrameOwnerElement.cpp:
1850 (WebCore::HTMLFrameOwnerElement::willRemove):
1851 * html/HTMLFrameOwnerElement.h:
1852 * html/HTMLPlugInElement.cpp:
1853 * html/HTMLPlugInElement.h:
1854 * loader/FrameLoader.cpp:
1855 (WebCore::FrameLoader::requestObject):
1857 2007-10-26 Adele Peterson <adele@apple.com>
1859 Export _wkDrawCapsLockIndicator.
1863 2007-10-26 Adele Peterson <adele@apple.com>
1867 Adding WebKitSystemInterface support for the caps lock indicator
1869 * platform/mac/WebCoreSystemInterface.h:
1870 * platform/mac/WebCoreSystemInterface.mm:
1872 2007-10-26 Tristan O'Tierney <tristan@apple.com>
1874 Reviewed by Darin Adler.
1876 <rdar://problem/5555053> REGRESSION:9A581: Window disappears when opening http://research.microsoft.com/users/darkok/
1877 The problem was caused by checkin r24654. This change moved explicit bounds checking into adjustWindowRect
1878 but failed to account for bounds checking (instead replaced with bounds clipping). This caused issues
1879 when NaN was used. This patch goes one step further and does NaN checking to prevent the possibility of
1880 setting window bounds to NaN before an update occurs.
1882 Test: fast/dom/Window/window-resize-nan.html
1884 * bindings/js/kjs_window.cpp:
1885 (KJS::adjustWindowRect):
1886 Added a new parameter, pendingChanges, which takes pending changes to the window
1887 rect, and if they are valid (not NaN) sets them on window.
1889 (KJS::WindowFunc::callAsFunction):
1890 Adjusted uses of adjustWindowRect to take new update parameter.
1892 2007-10-26 Sam Weinig <sam@webkit.org>
1894 Reviewed by Tim Hatcher.
1896 Fix for http://bugs.webkit.org/show_bug.cgi?id=15175
1897 Cannot copy text of errors from Web Inspector from Console view
1899 * page/inspector/inspector.css: add -webkit-user-select: text for console messages.
1901 2007-10-26 Sam Weinig <sam@webkit.org>
1903 Reviewed by Tim Hatcher.
1905 Fix for http://bugs.webkit.org/show_bug.cgi?id=15446
1906 Web Inspector find window is not resizable
1908 - Adds ability to resize the find window.
1909 - Fixes bug that messed up the find window when resizing the left sidebar.
1911 * page/inspector/inspector.css:
1912 * page/inspector/inspector.html:
1913 * page/inspector/inspector.js:
1915 2007-10-26 Ada Chan <adachan@apple.com>
1917 Update m_current index after we've removed an item:
1918 - if item removed is before m_current, decrement m_current
1919 - if the current item is removed, make sure m_current is within bounds.
1923 * history/BackForwardList.cpp:
1924 (WebCore::BackForwardList::removeItem):
1926 2007-10-26 Mark Rowe <mrowe@apple.com>
1930 * bindings/js/kjs_proxy.cpp:
1931 (WebCore::KJSProxy::~KJSProxy):
1933 2007-10-26 Maciej Stachowiak <mjs@apple.com>
1935 No review, build fix.
1937 * bindings/objc/WebScriptObject.mm:
1938 (+[WebScriptObject throwException:]):
1939 (-[WebScriptObject setException:]):
1941 2007-10-26 Maciej Stachowiak <mjs@apple.com>
1943 Rubber Stamped by Mark.
1947 * bridge/mac/WebCoreScriptDebugger.mm:
1948 (-[WebCoreScriptCallFrame scopeChain]):
1949 (-[WebCoreScriptCallFrame functionName]):
1950 (-[WebCoreScriptCallFrame evaluateWebScript:]):
1952 2007-10-26 Maciej Stachowiak <mjs@apple.com>
1956 - update for JavaScriptCore header changes
1958 * bindings/objc/WebScriptObject.mm:
1959 * bridge/mac/WebCoreScriptDebugger.mm:
1961 2007-10-26 Alp Toker <alp@atoker.com>
1963 Reviewed by Mark Rowe.
1965 http://bugs.webkit.org/show_bug.cgi?id=15693
1966 [GTK] Paging does not work when widget is added to a GtkScrolledWindow
1968 Eliminate MagicGtkScrollConstant in favour of the same calculations as
1969 GtkTextView for step and page increments. This also makes paging work,
1970 as the page increment was previously always 0.
1972 * platform/gtk/ScrollViewGtk.cpp:
1973 (WebCore::ScrollView::updateScrollbars):
1975 2007-10-25 Dan Bernstein <mitz@apple.com>
1977 Reviewed by Dave Hyatt and Sam Weinig.
1981 * platform/graphics/cg/ImageCG.cpp:
1982 (WebCore::Image::drawPattern):
1984 2007-10-23 Jan Michael Alonzo <jmalonzo@unpluggable.com>
1988 http://bugs.webkit.org/show_bug.cgi?id=15656
1989 [GTK] Implement WebCore::Widget::isEnabled/setEnabled
1991 * platform/gtk/WidgetGtk.cpp:
1992 (WebCore::Widget::isEnabled):
1993 (WebCore::Widget::setEnabled): Implemented.
1995 2007-10-25 David Hyatt <hyatt@apple.com>
1997 Fix for bug 15672, background images don't tile properly inside transforms. This patch fixes background
1998 tiling to work in the presence of transforms and fixes bugs in both SVG and CSS transforms.
2000 Reviewed by aroben and mitz
2003 * platform/graphics/Image.cpp:
2004 (WebCore::Image::setData):
2005 * platform/graphics/cg/ImageCG.cpp:
2006 (WebCore::ImageInfo::ImageInfo):
2007 (WebCore::Image::drawPatternCallback):
2008 (WebCore::Image::drawPattern):
2009 * platform/graphics/mac/GraphicsContextMac.mm:
2010 (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
2011 * platform/mac/WebCoreSystemInterface.h:
2012 * platform/mac/WebCoreSystemInterface.mm:
2014 2007-10-25 Brady Eidson <beidson@apple.com>
2016 Blind build fix attempt
2020 2007-10-25 Brady Eidson <beidson@apple.com>
2022 Reviewed by Anders and Sam
2024 Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
2026 This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
2027 tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in
2028 the HTML5 database API which we are adopting.
2030 * WebCore.vcproj/WebCore.vcproj:
2031 * WebCore.xcodeproj/project.pbxproj:
2032 * loader/icon/IconDatabase.cpp:
2033 (WebCore::IconDatabase::iconDatabaseSyncThread):
2034 (WebCore::databaseVersionNumber):
2035 (WebCore::isValidDatabase):
2036 (WebCore::createDatabaseTables):
2037 (WebCore::IconDatabase::performOpenInitialization):
2038 (WebCore::IconDatabase::checkIntegrity):
2039 (WebCore::IconDatabase::performURLImport):
2040 (WebCore::IconDatabase::writeToDatabase):
2041 (WebCore::IconDatabase::pruneUnretainedIcons):
2042 (WebCore::IconDatabase::checkForDanglingPageURLs):
2043 (WebCore::IconDatabase::imported):
2044 (WebCore::IconDatabase::setImported):
2045 (WebCore::readySQLiteStatement):
2046 (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
2047 (WebCore::IconDatabase::removePageURLFromSQLDatabase):
2048 (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
2049 (WebCore::IconDatabase::addIconURLToSQLDatabase):
2050 (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
2051 (WebCore::IconDatabase::removeIconFromSQLDatabase):
2052 (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
2053 * loader/icon/IconDatabase.h:
2054 * loader/icon/IconRecord.cpp:
2055 * platform/sql/SQLAuthorizer.cpp: Removed.
2056 * platform/sql/SQLAuthorizer.h: Removed.
2057 * platform/sql/SQLDatabase.cpp: Removed.
2058 * platform/sql/SQLDatabase.h: Removed.
2059 * platform/sql/SQLStatement.cpp: Removed.
2060 * platform/sql/SQLStatement.h: Removed.
2061 * platform/sql/SQLTransaction.cpp: Removed.
2062 * platform/sql/SQLTransaction.h: Removed.
2063 * platform/sql/SQLiteAuthorizer.cpp: Copied from platform/sql/SQLAuthorizer.cpp.
2064 * platform/sql/SQLiteAuthorizer.h: Copied from platform/sql/SQLAuthorizer.h.
2065 (WebCore::SQLiteAuthorizer::~SQLiteAuthorizer):
2066 * platform/sql/SQLiteDatabase.cpp: Copied from platform/sql/SQLDatabase.cpp.
2067 (WebCore::SQLiteDatabase::SQLiteDatabase):
2068 (WebCore::SQLiteDatabase::~SQLiteDatabase):
2069 (WebCore::SQLiteDatabase::open):
2070 (WebCore::SQLiteDatabase::close):
2071 (WebCore::SQLiteDatabase::setFullsync):
2072 (WebCore::SQLiteDatabase::setSynchronous):
2073 (WebCore::SQLiteDatabase::setBusyTimeout):
2074 (WebCore::SQLiteDatabase::setBusyHandler):
2075 (WebCore::SQLiteDatabase::executeCommand):
2076 (WebCore::SQLiteDatabase::returnsAtLeastOneResult):
2077 (WebCore::SQLiteDatabase::tableExists):
2078 (WebCore::SQLiteDatabase::clearAllTables):
2079 (WebCore::SQLiteDatabase::runVacuumCommand):
2080 (WebCore::SQLiteDatabase::lastInsertRowID):
2081 (WebCore::SQLiteDatabase::lastChanges):
2082 (WebCore::SQLiteDatabase::lastError):
2083 (WebCore::SQLiteDatabase::lastErrorMsg):
2084 (WebCore::SQLiteDatabase::authorizerFunction):
2085 (WebCore::SQLiteDatabase::setAuthorizer):
2086 (WebCore::SQLiteDatabase::lock):
2087 (WebCore::SQLiteDatabase::unlock):
2088 * platform/sql/SQLiteDatabase.h: Copied from platform/sql/SQLDatabase.h.
2089 * platform/sql/SQLiteStatement.cpp: Copied from platform/sql/SQLStatement.cpp.
2090 (WebCore::SQLiteStatement::SQLiteStatement):
2091 (WebCore::SQLiteStatement::~SQLiteStatement):
2092 (WebCore::SQLiteStatement::prepare):
2093 * platform/sql/SQLiteStatement.h: Copied from platform/sql/SQLStatement.h.
2094 (WebCore::SQLiteStatement::database):
2095 * platform/sql/SQLiteTransaction.cpp: Copied from platform/sql/SQLTransaction.cpp.
2096 (WebCore::SQLiteTransaction::SQLiteTransaction):
2097 (WebCore::SQLiteTransaction::~SQLiteTransaction):
2098 (WebCore::SQLiteTransaction::begin):
2099 (WebCore::SQLiteTransaction::commit):
2100 (WebCore::SQLiteTransaction::rollback):
2101 * platform/sql/SQLiteTransaction.h: Copied from platform/sql/SQLTransaction.h.
2102 * storage/Database.cpp:
2103 (WebCore::retrieveTextResultFromDatabase):
2104 (WebCore::setTextValueInDatabase):
2105 (WebCore::Database::performExecuteSql):
2106 (WebCore::Database::performGetTableNames):
2107 (WebCore::Database::executeSql):
2108 * storage/Database.h:
2109 * storage/DatabaseAuthorizer.h:
2110 * storage/DatabaseTracker.cpp:
2111 (WebCore::DatabaseTracker::fullPathForDatabase):
2112 (WebCore::DatabaseTracker::populateOrigins):
2113 (WebCore::DatabaseTracker::databaseNamesForOrigin):
2114 (WebCore::DatabaseTracker::addDatabase):
2115 * storage/DatabaseTracker.h:
2117 2007-10-25 Alexey Proskuryakov <ap@webkit.org>
2121 http://bugs.webkit.org/show_bug.cgi?id=15650
2122 XML attribute nodes are not importable
2124 Tests: fast/dom/import-attribute-node.html
2125 fast/dom/import-document-fragment.html
2128 (WebCore::Document::importNode): Implemented for Attribute and DocumentFragment nodes.
2130 2007-10-25 Dan Bernstein <mitz@apple.com>
2132 Reviewed by Dave Hyatt.
2134 - fix http://bugs.webkit.org/show_bug.cgi?id=15362
2135 <rdar://problem/5558715> Safari Crashes when opening a JS TreeGrid widget
2137 Test: fast/dynamic/insert-before-table-part-in-continuation.html
2139 * rendering/RenderFlow.cpp:
2140 (WebCore::RenderFlow::addChildWithContinuation): If beforeChild's
2141 parent is an anonymous table part, let the table figure out where to
2142 insert the new child.
2144 2007-10-25 Alp Toker <alp@atoker.com>
2148 http://bugs.webkit.org/show_bug.cgi?id=15686
2149 GtkLauncher aborts on launch due to uninitialized threading subsystem
2151 Re-enable database support in the GTK+ port, with a fix.
2155 2007-10-25 Jon Honeycutt <jhoneycutt@apple.com>
2159 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
2162 Previous patch erroneously compared a path and a
2163 path-including-filename. This corrects that. It also caches the result
2164 of safariPluginsPath() and uses shell API funcs for determining filename
2165 and parent directory from a full path.
2168 * plugins/win/PluginDatabaseWin.cpp:
2169 (WebCore::safariPluginsPath): Cache return value. Use API functions to
2171 (WebCore::PluginDatabaseWin::pluginForMIMEType): Compare again plugin's
2172 parent directory, not full path
2173 (WebCore::PluginDatabaseWin::pluginForExtension): Same
2174 * plugins/win/PluginPackageWin.cpp:
2175 (WebCore::PluginPackageWin::PluginPackageWin): Store parent directory
2176 * plugins/win/PluginPackageWin.h:
2177 (WebCore::PluginPackageWin::parentDirectory):
2178 * plugins/win/PluginStreamWin.cpp:
2179 (WebCore::PluginStreamWin::didReceiveData):
2181 2007-10-25 Alp Toker <alp@atoker.com>
2183 Unreviewed fix to make the GTK+ port run.
2185 http://bugs.webkit.org/show_bug.cgi?id=15686
2186 GtkLauncher aborts on launch due to uninitialized threading subsystem
2188 Disable database support until #15686 is fixed.
2192 2007-10-25 Simon Hausmann <hausmann@kde.org>
2196 Fixed a crash in the Qt 4.4 based text iterators when they're called with a null string.
2198 * platform/qt/TextBreakIteratorQt.cpp:
2199 (WebCore::wordBreakIterator):
2200 (WebCore::characterBreakIterator):
2201 (WebCore::lineBreakIterator):
2202 (WebCore::sentenceBreakIterator):
2204 2007-10-25 Holger Freyther <zecke@selfish.org>
2206 Reviewed by Simon Hausmann <hausmann@kde.org>.
2208 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
2209 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
2210 * This is causing some regressions...
2213 * dom/XMLTokenizer.cpp:
2214 (WebCore::XMLTokenizer::XMLTokenizer):
2215 (WebCore::XMLTokenizer::write):
2216 (WebCore::XMLTokenizer::end):
2217 * dom/XMLTokenizer.h:
2219 2007-10-25 Holger Freyther <zecke@selfish.org>
2221 Reviewed by Simon Hausmann <hausmann@kde.org>.
2223 * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
2224 * Use the error message from Qt. It might or might not be translated.
2227 WARNING: NO TEST CASES ADDED OR CHANGED
2229 * platform/network/qt/ResourceHandleQt.cpp:
2230 (WebCore::WebCoreSynchronousLoader::didFail):
2232 2007-10-25 Holger Freyther <zecke@selfish.org>
2234 Reviewed by Simon Hausmann <hausmann@kde.org>.
2236 * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
2237 * This should be thread-safe besides QWebNetworkJob::{ref,deref}
2240 * platform/network/qt/ResourceHandleQt.cpp:
2241 (WebCore::ResourceHandle::loadResourceSynchronously):
2243 2007-10-25 Alp Toker <alp@atoker.com>
2245 Reviewed by Mark Rowe.
2247 Add support for list box theme colors and styled menu list buttons.
2249 Remove obsolete FIXMEs.
2251 * platform/gtk/RenderThemeGtk.cpp:
2252 (WebCore::RenderThemeGtk::RenderThemeGtk):
2253 (WebCore::RenderThemeGtk::paintCheckbox):
2254 (WebCore::RenderThemeGtk::paintRadio):
2255 (WebCore::RenderThemeGtk::paintButton):
2256 (WebCore::RenderThemeGtk::adjustMenuListStyle):
2257 (WebCore::RenderThemeGtk::paintMenuList):
2258 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
2259 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
2260 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
2261 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
2262 (WebCore::RenderThemeGtk::gtkTreeView):
2263 * platform/gtk/RenderThemeGtk.h:
2265 2007-10-25 Eric Seidel <eric@webkit.org>
2269 * bindings/js/kjs_window.h: fix bogus comment, s/DOMNode/DOMObject/
2271 2007-10-24 Eric Seidel <eric@webkit.org>
2275 Make Window subclass from JSGlobalObject (for a .5% win in Sunspider)
2276 http://bugs.webkit.org/show_bug.cgi?id=15681
2278 No test cases necessary, no functional changes.
2280 * WebCore.xcodeproj/project.pbxproj:
2281 * bindings/js/kjs_binding.cpp:
2282 (KJS::ScriptInterpreter::ScriptInterpreter):
2283 * bindings/js/kjs_binding.h:
2284 * bindings/js/kjs_proxy.cpp:
2285 (WebCore::KJSProxy::initScriptIfNeeded):
2286 * bindings/js/kjs_window.cpp:
2287 (KJS::Window::Window):
2288 * bindings/js/kjs_window.h:
2289 * bindings/objc/WebScriptObject.mm:
2291 * bridge/mac/WebCoreScriptDebugger.mm:
2293 2007-10-24 Adam Roben <aroben@apple.com>
2295 Add font database initialization code to WebCore
2299 * WebCore.vcproj/WebCore.vcproj: Added FontDatabase.{cpp,h}.
2300 * platform/win/FontDatabase.cpp: Added.
2301 (WebCore::systemFontsDirectory):
2302 (WebCore::fontsPlistPath):
2303 (WebCore::systemHasFontsNewerThanFontsPlist):
2304 (WebCore::readFontPlist):
2305 (WebCore::populateFontDatabaseFromPlist):
2306 (WebCore::populateFontDatabaseFromFileSystem):
2307 (WebCore::writeFontDatabaseToPlist):
2308 (WebCore::populateFontDatabase): This is the only function callable
2309 from outside this file. It populates the font database once, either
2310 from the fonts plist, or from the filesystem (and then saves a new
2312 * platform/win/FontDatabase.h: Added.
2314 2007-10-24 Justin Garcia <justin.garcia@apple.com>
2316 Reviewed by Darin Adler.
2318 Correcting the fix for:
2319 <rdar://problem/5544856>
2320 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
2322 Made removal of the previous composition part of the current Undo step in the
2323 case where the new composition is the empty string, too.
2325 * editing/Editor.cpp:
2326 (WebCore::Editor::confirmComposition): Call the new TypingCommand::deleteSelection,
2327 which either has the currently open typing command delete the current selection, or
2328 opens a new typing command (of type DeleteSelection) if one is not already open.
2329 (WebCore::Editor::setComposition): Ditto.
2330 * editing/TypingCommand.cpp:
2331 (WebCore::TypingCommand::deleteSelection): Added.
2332 (WebCore::TypingCommand::doApply): Handle DeleteSelection.
2333 (WebCore::TypingCommand::deleteKeyPressed): Clarified which deleteSelection
2335 (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
2336 (WebCore::TypingCommand::preservesTypingStyle): Handle DeleteSelection.
2337 * editing/TypingCommand.h:
2339 2007-10-24 Sam Weinig <sam@webkit.org>
2343 * WebCore.vcproj/WebCore.vcproj:
2345 2007-10-24 Alice Liu <alice.liu@apple.com>
2349 Fix <rdar://5410959> editing/selection/drag-to-contenteditable-iframe.html fails on Windows
2351 * page/win/EventHandlerWin.cpp:
2352 (WebCore::EventHandler::passMouseMoveEventToSubframe):
2353 Some mouse move events are actually drags, which on mac return early from this function.
2354 Adding the same logic to its Windows equivalent.
2356 2007-10-24 Brady Eidson <beidson@apple.com>
2360 <rdar://5554130> DatabaseTracker.o has a global initializer
2362 Since DatabaseTracker is a singleton, it makes much more sense to keep the database path as a member variable.
2363 Now constructing the shared DatabaseTracker no longer implicitly opens it - It is only opened when the databases
2366 * WebCore.vcproj/WebCore.vcproj: Copy WebCore/storage headers for WebKit build
2368 * storage/Database.cpp:
2369 (WebCore::Database::~Database): Remove bogus assertion
2371 * storage/DatabaseTracker.cpp:
2372 (WebCore::DatabaseTracker::DatabaseTracker): Does nothing now! Move this code to openTrackerDatabase
2373 (WebCore::DatabaseTracker::setDatabasePath): Set the member variable, also closing/opening the database if needed
2374 (WebCore::DatabaseTracker::databasePath):
2375 (WebCore::DatabaseTracker::openTrackerDatabase): To open and validate the Databases db, moved from the c'tor
2376 (WebCore::DatabaseTracker::fullPathForDatabase): Return the member variable
2377 * storage/DatabaseTracker.h:
2379 2007-10-24 David Hyatt <hyatt@apple.com>
2381 Don't try to gap fill transformed selections. Fix the invalidation of selection to use the clip to visible content
2382 code path so that it works with multi-column layouts and transforms.
2386 * rendering/RenderBlock.cpp:
2387 (WebCore::RenderBlock::isSelectionRoot):
2388 (WebCore::RenderBlock::fillSelectionGaps):
2389 * rendering/RenderView.cpp:
2390 (WebCore::RenderView::setSelection):
2392 2007-10-24 Eric Seidel <eric@webkit.org>
2394 No review, I want to tickle the CIA bot to test changes,
2395 and took this as an opportunity to clean up some old change logs.
2397 * ChangeLog-2005-08-23: update email address
2398 * ChangeLog-2006-12-31: fix spelling mistakes
2400 2007-10-24 Dan Bernstein <mitz@apple.com>
2402 Reviewed by Oliver Hunt.
2404 - add "(anonymous)" to the renderName of anonymous table cells, rows and sections
2406 * rendering/RenderTableCell.h:
2407 (WebCore::RenderTableCell::renderName):
2408 * rendering/RenderTableRow.h:
2409 (WebCore::RenderTableRow::renderName):
2410 * rendering/RenderTableSection.h:
2411 (WebCore::RenderTableSection::renderName):
2413 2007-10-24 Timothy Hatcher <timothy@apple.com>
2417 Bug 15476: DOM tree fully expands some elements when arrowing up
2418 http://bugs.webkit.org/show_bug.cgi?id=15476
2420 Add a new expandTreeElementsWhenArrowing option to TreeOutline. This option
2421 is used only for the sidebar and search results.
2423 * page/inspector/inspector.js: Opt-in for the sidebar and search results.
2424 * page/inspector/treeoutline.js: Add expandTreeElementsWhenArrowing and pass
2425 this option to traverseNextTreeElement and traversePreviousTreeElement.
2427 2007-10-24 Anders Carlsson <andersca@apple.com>
2429 Reviewed by Geoff and Mitz.
2431 <rdar://problem/5493833>
2432 REGRESSION: ~5MB of image data leaked @ cuteoverload.com (often seen while browsing other sites, too)
2434 * bindings/js/kjs_binding.cpp:
2435 (KJS::ScriptInterpreter::markDOMNodesForDocument):
2436 If an image element that is currently loading an image is not in the document,
2437 it should still be marked.
2439 * bindings/js/kjs_html.cpp:
2440 (WebCore::ImageConstructorImp::construct):
2441 Force the document wrapper to be created.
2443 * html/HTMLImageElement.h:
2444 (WebCore::HTMLImageElement::haveFiredLoadEvent):
2445 New method which calls down to the image loader.
2447 * html/HTMLImageLoader.cpp:
2448 (WebCore::HTMLImageLoader::HTMLImageLoader):
2449 (WebCore::HTMLImageLoader::~HTMLImageLoader):
2450 (WebCore::HTMLImageLoader::setLoadingImage):
2451 (WebCore::HTMLImageLoader::dispatchLoadEvent):
2452 Remove code that's not needed anymore.
2454 * html/HTMLImageLoader.h:
2455 (WebCore::HTMLImageLoader::haveFiredLoadEvent):
2458 2007-10-23 Adam Roben <aroben@apple.com>
2460 Move Windows safe file creation code into WebCore from WebPreferences
2464 * platform/FileSystem.h:
2465 * platform/win/FileSystemWin.cpp:
2466 (WebCore::safeCreateFile): Moved here from WebKit/win/WebPreferences.cpp.
2468 2007-10-23 Adam Roben <aroben@apple.com>
2470 Add methods to FileSystemWin to get some user profile directories
2472 These directories are used to hold things like preferences, caches,
2477 * platform/FileSystem.h: Added new method declarations for Windows
2479 * platform/win/FileSystemWin.cpp:
2480 (WebCore::bundleName): Added.
2481 (WebCore::storageDirectory): Added.
2482 (WebCore::cachedStorageDirectory): Added.
2483 (WebCore::localUserSpecificStorageDirectory): Added. Returns the
2484 directory where WebKit should store any user-specific data that should
2485 stay local to the current machine (i.e., shouldn't be stored in a
2487 (WebCore::roamingUserSpecificStorageDirectory): Added. Returns the
2488 directory where WebKit should store any user-specific data that should
2489 move with the user from machine to machine (i.e., should be stored in
2492 2007-10-24 Alp Toker <alp@atoker.com>
2494 Reviewed by Mark Rowe.
2496 http://bugs.webkit.org/show_bug.cgi?id=15659
2497 InlineTextBox does not setStrokeStyle() as needed
2499 GraphicsContextCairo workaround to support a GraphicsContextCG quirk:
2501 Save and restore the StrokeStyle manually.
2503 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2504 (WebCore::GraphicsContext::drawLineForText):
2506 2007-10-24 Julien Chaffraix <julien.chaffraix@gmail.com>
2510 Patch for http://bugs.webkit.org/show_bug.cgi?id=15356
2511 Bug 15356: getResponseHeader and getAllResponseHeaders do not throw exceptions
2513 - getAllResponseHeaders and getResponseHeader throws INVALID_STATE_ERR exception as specified in the specification
2515 - Add the check to field-name production in getResponseHeader (call to isValidToken) and returns an empty string if the header is not valid (Opera and IE behaviour)
2517 - Updated XMLHttpRequest::responseMIMEType() to keep its behaviour
2519 Tests: http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getAllRequestHeaders.html
2520 http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getRequestHeader.html
2521 http/tests/xmlhttprequest/xmlhttprequest-invalidHeader-getRequestHeader.html
2523 * bindings/js/JSXMLHttpRequest.cpp:
2524 (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
2525 * xml/XMLHttpRequest.cpp:
2526 (WebCore::XMLHttpRequest::getAllResponseHeaders):
2527 (WebCore::XMLHttpRequest::getResponseHeader):
2528 (WebCore::XMLHttpRequest::responseMIMEType):
2529 * xml/XMLHttpRequest.h:
2531 2007-10-24 Lars Knoll <lars@trolltech.com>
2535 implement most of DragData.
2537 WARNING: NO TEST CASES ADDED OR CHANGED
2539 * platform/qt/DragDataQt.cpp:
2540 (WebCore::DragData::containsColor):
2541 (WebCore::DragData::containsFiles):
2542 (WebCore::DragData::asFilenames):
2543 (WebCore::DragData::containsPlainText):
2544 (WebCore::DragData::asPlainText):
2545 (WebCore::DragData::asColor):
2546 (WebCore::DragData::containsCompatibleContent):
2547 (WebCore::DragData::containsURL):
2549 2007-10-24 Lars Knoll <lars@trolltech.com>
2553 remove a stupid notImplemented() warning and implement PasteBoad::clear().
2555 WARNING: NO TEST CASES ADDED OR CHANGED
2557 * platform/qt/PasteboardQt.cpp:
2559 2007-10-24 Lars Knoll <lars@trolltech.com>
2563 implement Pasteboard::documentFragment(), and fix a mem leak.
2565 WARNING: NO TEST CASES ADDED OR CHANGED
2567 * platform/qt/PasteboardQt.cpp:
2568 (WebCore::Pasteboard::generalPasteboard):
2569 (WebCore::Pasteboard::documentFragment):
2571 2007-10-24 Lars Knoll <lars@trolltech.com>
2575 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
2577 WARNING: NO TEST CASES ADDED OR CHANGED
2579 * platform/PlatformKeyboardEvent.h:
2580 * platform/qt/PlatformKeyboardEventQt.cpp:
2581 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2583 2007-10-24 Lars Knoll <lars@trolltech.com>
2587 use the new QTextBoundaryFinder class in Qt.
2589 WARNING: NO TEST CASES ADDED OR CHANGED
2591 * platform/qt/TextBoundaries.cpp:
2592 (WebCore::findNextWordFromIndex):
2593 (WebCore::findWordBoundary):
2594 * platform/qt/TextBreakIteratorQt.cpp:
2595 (WebCore::wordBreakIterator):
2596 (WebCore::characterBreakIterator):
2597 (WebCore::lineBreakIterator):
2598 (WebCore::sentenceBreakIterator):
2599 (WebCore::textBreakFirst):
2600 (WebCore::textBreakNext):
2601 (WebCore::textBreakPreceding):
2602 (WebCore::textBreakFollowing):
2603 (WebCore::textBreakCurrent):
2604 (WebCore::isTextBreak):
2606 2007-10-24 Darin Adler <darin@apple.com>
2610 - http://bugs.webkit.org/show_bug.cgi?id=15657
2611 change static hash tables to use powers of two for speed
2613 * bindings/scripts/CodeGeneratorJS.pm: Updated to generate new format.
2615 2007-10-24 Simon Hausmann <hausmann@kde.org>
2619 Make the implementation of pathByAppendingComponent use QDir.
2621 * platform/qt/FileSystemQt.cpp:
2623 2007-10-24 David Hyatt <hyatt@apple.com>
2625 Make repainting work with transforms.
2627 Reviewed by John Sullivan
2629 * rendering/RenderBox.cpp:
2630 (WebCore::RenderBox::computeAbsoluteRepaintRect):
2632 2007-10-23 Alp Toker <alp@atoker.com>
2636 http://bugs.webkit.org/show_bug.cgi?id=14412
2637 [GDK] Clipboard support
2639 Initial clipboard implementation for the GTK+ port.
2641 * platform/gtk/ClipboardGtk.cpp:
2642 (WebCore::Editor::newGeneralClipboard):
2643 * platform/gtk/PasteboardGtk.cpp:
2644 (WebCore::Pasteboard::generalPasteboard):
2645 (WebCore::Pasteboard::Pasteboard):
2646 (WebCore::Pasteboard::~Pasteboard):
2647 (WebCore::Pasteboard::writeSelection):
2648 (WebCore::Pasteboard::writeImage):
2649 (WebCore::Pasteboard::clear):
2650 (WebCore::Pasteboard::plainText):
2651 * platform/gtk/TemporaryLinkStubs.cpp:
2653 2007-10-23 Timothy Hatcher <timothy@apple.com>
2657 Fixes the Network panel so that it refreshes as needed.
2659 * page/inspector/ConsolePanel.js: Call the base class show() and hide() first.
2660 * page/inspector/NetworkPanel.js: Add refreshNeeded and refreshIfNeeded back. Ditto.
2662 2007-10-23 Justin Garcia <justin.garcia@apple.com>
2664 Reviewed by Oliver Hunt.
2666 <rdar://problem/5544856>
2667 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
2669 No layout test for now because I'm having trouble getting Undo during a layout
2670 test to only undo the last Undo step, and I want to write a test that fails
2671 without the code change.
2673 * editing/Editor.cpp:
2674 (WebCore::Editor::confirmComposition): When we replace the previous composition,
2675 delete it with a sub-command of the command used to insert the new composition,
2676 instead of with a separate command. No new code was added because insertText
2677 already deletes the current selection.
2678 (WebCore::Editor::setComposition): Ditto.
2680 2007-10-23 Adam Roben <aroben@apple.com>
2682 Fix the behavior of pathByAppendingComponent when path is empty
2684 We now use the Windows Shell API function PathAppendW instead of
2685 rolling our own broken implementation.
2689 * platform/win/FileSystemWin.cpp:
2690 (WebCore::pathByAppendingComponent):
2692 2007-10-23 Adele Peterson <adele@apple.com>
2696 Fix for <rdar://problem/5543228> CrashTracer: [USER] 2 crashes in Safari at com.apple.WebCore: WebCore::HTMLInputElement::defaultEventHandler + 872
2698 Test: fast/forms/textfield-onchange-deletion.html
2700 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
2701 Refetch the renderer since arbitrary JS code run during onchange can do anything, including destroying it.
2703 2007-10-23 Timothy Hatcher <timothy@apple.com>
2705 Reviewed by Sam Weinig.
2707 - Made seperate files for the various classes in ResourcePanel.js.
2708 - Broke up ResourcePanel.js and created seperate panel classes for different resource types.
2709 - Moved View code down to the Panel base-class.
2710 - Reduced code duplication in DatabasePanel.js by sub-classing from the new ResourcePanel.
2712 * page/inspector/DatabasePanel.js:
2713 * page/inspector/DocumentPanel.js: Added.
2714 * page/inspector/FontPanel.js: Added.
2715 * page/inspector/ImagePanel.js: Added.
2716 * page/inspector/Panel.js: Added.
2717 * page/inspector/PropertiesSection.js: Added.
2718 * page/inspector/Resource.js:
2719 * page/inspector/ResourcePanel.js:
2720 * page/inspector/SidebarPane.js: Added.
2721 * page/inspector/SourcePanel.js: Added.
2722 * page/inspector/inspector.css:
2723 * page/inspector/inspector.html:
2724 * page/inspector/inspector.js:
2726 2007-10-23 Anders Carlsson <andersca@apple.com>
2728 Correct the version #if check.
2730 * platform/sql/SQLDatabase.cpp:
2731 (WebCore::SQLDatabase::authorizerFunction):
2733 2007-10-23 Jon Honeycutt <jhoneycutt@apple.com>
2737 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
2740 It is possible to load Mozilla's Java plugin instead of our own, which
2741 can lead to a crash. The fix is to prefer plugins in our own Plugins
2742 directory when searching for a plugin.
2744 * plugins/win/PluginDatabaseWin.cpp:
2745 (WebCore::safariPluginsPath): Return the path to our own Plugins
2747 (WebCore::PluginDatabaseWin::defaultPluginPaths): Use new method
2749 (WebCore::PluginDatabaseWin::pluginForMIMEType): If the plugin's path is
2750 our Plugins path, return this plugin. Otherwise, continue scanning the
2752 (WebCore::PluginDatabaseWin::pluginForExtension): Same
2753 * plugins/win/PluginPackageWin.h:
2754 (WebCore::PluginPackageWin::path): Return this plugin's path
2756 2007-10-23 Jasper Bryant-Greene <m@ni.ac.nz>
2760 http://bugs.webkit.org/show_bug.cgi?id=15058
2761 Precedence fault in KeyEventGdk causes shift, control, alt etc to work incorrectly
2763 Corrected precendence fault which was causing Shift, Alt, Control and
2764 Meta to behave incorrectly on GTK.
2766 Coding style fix by Alp.
2768 * platform/gtk/KeyEventGtk.cpp:
2769 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
2771 2007-10-23 Sam Weinig <sam@webkit.org>
2773 Reviewed by Tim Hatcher.
2775 Add resizing of the DOM view right sidebar. This allows us to actually see the values now.
2777 * page/inspector/ResourcePanel.js:
2778 * page/inspector/inspector.css:
2779 * page/inspector/inspector.js:
2780 * page/inspector/utilities.js:
2782 2007-10-23 David Hyatt <hyatt@apple.com>
2784 Get basic hit testing right for transforms.
2788 * platform/graphics/AffineTransform.cpp:
2789 (WebCore::AffineTransform::mapPoint):
2790 * platform/graphics/AffineTransform.h:
2791 * rendering/InlineBox.cpp:
2792 (WebCore::InlineBox::nodeAtPoint):
2793 * rendering/RenderBlock.cpp:
2794 (WebCore::RenderBlock::nodeAtPoint):
2795 * rendering/RenderLayer.cpp:
2796 (WebCore::RenderLayer::paintLayer):
2797 (WebCore::RenderLayer::hitTest):
2798 (WebCore::RenderLayer::hitTestLayer):
2799 * rendering/RenderLayer.h:
2800 * rendering/RenderObject.cpp:
2801 (WebCore::RenderObject::hitTest):
2802 * rendering/RenderObject.h:
2804 2007-10-23 Eric Seidel <eric@webkit.org>
2806 Reviewed by Mark Rowe.
2808 Fix leaks seen on TOT from new font-face code.
2810 * ksvg2/svg/SVGFontFaceElement.cpp:
2811 (WebCore::SVGFontFaceElement::rebuildFontFace): use a stack allocated CSSProperty instead of mallocing
2813 2007-10-23 Eric Seidel <eric@webkit.org>
2815 Build fix only, no review.
2817 Sacrifice three virgin hours upon the altar of the heathen XCode gods
2818 and pray that our build troubles are finally over. :(
2820 * DerivedSources.make: add DOMSVGException.h
2821 * WebCore.xcodeproj/project.pbxproj: Remove DOMSVG*Interal.h files from "Copy Generated Headers" phase. Why? Who knows.
2823 2007-10-22 Steve Falkenburg <sfalken@apple.com>
2827 * plugins/win/PluginViewWin.cpp:
2829 2007-10-22 Eric Seidel <eric@webkit.org>
2831 Build fix only, no review.
2833 * WebCore.xcodeproj/project.pbxproj: re-add all DOMSVG headers to copy-files phase to make sure.
2835 2007-10-22 Eric Seidel <eric@webkit.org>
2837 Build fix only, no review.
2839 * WebCore.xcodeproj/project.pbxproj: make sure DOMSVGAnimateElement.h is copied into headers.
2841 2007-10-22 Eric Seidel <eric@webkit.org>
2845 Fix build by properly exposing SVG font-face dom bindings.
2847 * DerivedSources.make:
2848 * WebCore.vcproj/WebCore.vcproj: add font-face files to build
2849 * WebCore.xcodeproj/project.pbxproj: add missing DOM bindings files
2850 * bindings/js/JSSVGElementWrapperFactory.cpp:
2851 * bindings/objc/DOM.mm:
2852 (WebCore::createElementClassMap):
2853 * bindings/objc/DOMSVG.h:
2854 * ksvg2/svg/SVGDefinitionSrcElement.idl: inherit from SVGElement
2856 2007-10-22 Mark Rowe <mrowe@apple.com>
2862 2007-10-22 Darin Adler <darin@apple.com>
2864 - a first cut at fixing the Qt and GTK builds
2866 * WebCore.pro: Add new .idl and .cpp files.
2867 * DerivedSources.make: Re-sorted.
2869 2007-10-22 Eric Seidel <eric@webkit.org>
2873 Implement <font-face> and friends for SVG.
2874 http://bugs.webkit.org/show_bug.cgi?id=10652
2876 * DerivedSources.make:
2877 * WebCore.xcodeproj/project.pbxproj:
2878 * bindings/js/JSSVGElementWrapperFactory.cpp:
2880 (WebCore::Document::mappedElementSheet):
2881 (WebCore::Document::recalcStyleSelector):
2883 * ksvg2/scripts/make_names.pl:
2884 * ksvg2/svg/SVGDefinitionSrcElement.cpp: Added.
2885 (WebCore::SVGDefinitionSrcElement::SVGDefinitionSrcElement):
2886 (WebCore::SVGDefinitionSrcElement::~SVGDefinitionSrcElement):
2887 (WebCore::SVGDefinitionSrcElement::childrenChanged):
2888 * ksvg2/svg/SVGDefinitionSrcElement.h: Added.
2889 * ksvg2/svg/SVGDefinitionSrcElement.idl: Added.
2890 * ksvg2/svg/SVGFontFaceElement.cpp: Added.
2891 (WebCore::SVGFontFaceElement::SVGFontFaceElement):
2892 (WebCore::SVGFontFaceElement::~SVGFontFaceElement):
2893 (WebCore::cssPropertyIdForName):
2894 (WebCore::mapAttributeToCSSProperty):
2895 (WebCore::cssPropertyIdForSVGAttributeName):
2896 (WebCore::SVGFontFaceElement::parseMappedAttribute):
2897 (WebCore::SVGFontFaceElement::rebuildFontFace):
2898 (WebCore::SVGFontFaceElement::childrenChanged):
2899 * ksvg2/svg/SVGFontFaceElement.h: Added.
2900 * ksvg2/svg/SVGFontFaceElement.idl: Added.
2901 * ksvg2/svg/SVGFontFaceFormatElement.cpp: Added.
2902 (WebCore::SVGFontFaceFormatElement::SVGFontFaceFormatElement):
2903 (WebCore::SVGFontFaceFormatElement::~SVGFontFaceFormatElement):
2904 (WebCore::SVGFontFaceFormatElement::childrenChanged):
2905 * ksvg2/svg/SVGFontFaceFormatElement.h: Added.
2906 * ksvg2/svg/SVGFontFaceFormatElement.idl: Added.
2907 * ksvg2/svg/SVGFontFaceNameElement.cpp: Added.
2908 (WebCore::SVGFontFaceNameElement::SVGFontFaceNameElement):
2909 (WebCore::SVGFontFaceNameElement::~SVGFontFaceNameElement):
2910 (WebCore::SVGFontFaceNameElement::srcValue):
2911 * ksvg2/svg/SVGFontFaceNameElement.h: Added.
2912 * ksvg2/svg/SVGFontFaceNameElement.idl: Added.
2913 * ksvg2/svg/SVGFontFaceSrcElement.cpp: Added.
2914 (WebCore::SVGFontFaceSrcElement::SVGFontFaceSrcElement):
2915 (WebCore::SVGFontFaceSrcElement::~SVGFontFaceSrcElement):
2916 (WebCore::SVGFontFaceSrcElement::srcValue):
2917 (WebCore::SVGFontFaceSrcElement::childrenChanged):
2918 * ksvg2/svg/SVGFontFaceSrcElement.h: Added.
2919 * ksvg2/svg/SVGFontFaceSrcElement.idl: Added.
2920 * ksvg2/svg/SVGFontFaceUriElement.cpp: Added.
2921 (WebCore::SVGFontFaceUriElement::SVGFontFaceUriElement):
2922 (WebCore::SVGFontFaceUriElement::~SVGFontFaceUriElement):
2923 (WebCore::SVGFontFaceUriElement::srcValue):
2924 (WebCore::SVGFontFaceUriElement::childrenChanged):
2925 * ksvg2/svg/SVGFontFaceUriElement.h: Added.
2926 * ksvg2/svg/SVGFontFaceUriElement.idl: Added.
2927 * ksvg2/svg/svgtags.in:
2929 2007-10-22 Jon Honeycutt <jhoneycutt@apple.com>
2933 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
2936 We purposefully do not destroy our Java VM when its reference count
2937 reaches 0, but we were unloading our JavaPlugin.dll when its reference
2938 count reached 0, which lost the reference to the VM. This led to our
2939 process trying to create a new VM the next time a page using Java was
2940 loaded, and the JNI spec states that a single process is not allowed to
2941 create more than one VM. The fix is to avoid unloading the Java plugin
2942 via our PluginQuirkDontUnloadPlugin.
2944 * plugins/win/PluginViewWin.cpp:
2945 (WebCore::PluginViewWin::determineQuirks):
2947 2007-10-22 David Hyatt <hyatt@apple.com>
2949 Fix for bug 15624, make transforms work properly with opacity.
2951 Make sure a unitless 0 is allowed as an angle argument to rotation/skew.
2953 Reviewed by Mitz Pettel
2955 fast/transforms/transforms-with-opacity.html
2956 fast/transforms/skew-with-unitless-zero.html
2958 * css/CSSParser.cpp:
2959 (WebCore::CSSParser::validUnit):
2960 * rendering/RenderLayer.cpp:
2961 (WebCore::transparencyClipBox):
2962 (WebCore::RenderLayer::beginTransparencyLayers):
2963 (WebCore::RenderLayer::paintLayer):
2964 (WebCore::RenderLayer::calculateClipRects):
2965 * rendering/RenderLayer.h:
2966 (WebCore::RenderLayer::transform):
2968 2007-10-22 Adam Roben <aroben@apple.com>
2972 * WebCore.vcproj/WebCore.vcproj: Copy header files from platform/sql.
2973 * page/Page.cpp: Touched to force the header files to be copied.
2975 2007-10-22 Nikolas Zimmermann <zimmermann@kde.org>
2979 Move textPath related SVGChar data in it's own structure SVGCharOnPath.
2980 Store a pointer to that datastructure inside SVGChar, instead of 4 floats & one bool.
2982 Saves space for the common case. And allows me to add more data (another float) to support
2983 glyph-orientation-* on textPath later on...
2985 * rendering/SVGCharacterLayoutInfo.cpp:
2986 (WebCore::SVGChar::characterTransform):
2987 * rendering/SVGCharacterLayoutInfo.h:
2988 * rendering/SVGRootInlineBox.cpp:
2989 (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
2990 (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
2992 2007-10-22 Alp Toker <alp@atoker.com>
2994 Reviewed by Nikolas Zimmermann.
2996 Implement more GraphicsContextCairo stubs.
2998 Remove a hack "to work around no current point bug" that was breaking
3003 * platform/graphics/cairo/CairoPath.h:
3004 (WebCore::CairoPath::CairoPath):
3005 * platform/graphics/cairo/GraphicsContextCairo.cpp:
3006 (WebCore::GraphicsContext::addInnerRoundedRectClip):
3007 (WebCore::GraphicsContext::strokeRect):
3008 * platform/graphics/cairo/PathCairo.cpp:
3009 (WebCore::Path::isEmpty):
3010 * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
3011 (WebCore::SVGPaintServerGradient::setup):
3012 * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
3013 (WebCore::SVGPaintServerSolid::setup):
3015 2007-10-22 Simon Hausmann <hausmann@kde.org>
3017 Reviewed by Nikolas.
3019 Fix compilation from a clean build with the database feature disabled.
3020 JSCustomVersionChangeCallback.cpp doesn't actually need the SQL header file, just ScriptInterpreter.
3022 * bindings/js/JSCustomVersionChangeCallback.cpp:
3023 * page/InspectorController.cpp:
3025 2007-10-22 Andrew Wellington <proton@wiretapped.net>
3027 Reviewed by Mark Rowe.
3029 Fix for local database support after r26879
3030 Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
3032 * Configurations/WebCore.xcconfig:
3034 * WebCore.vcproj/build-generated-files.sh:
3036 2007-10-22 Simon Hausmann <hausmann@kde.org>
3040 Disable the Database feature for the qmake build for now.
3044 2007-10-22 Simon Hausmann <hausmann@kde.org>
3048 Make disabling the database feature (ENABLE_DATABASE=0) work by
3049 placing various #ifdefs into the code and making the compilation of
3050 some files optional.
3054 (WebCore::Document::~Document):
3055 (WebCore::Document::defaultEventHandler):
3057 * page/DOMWindow.cpp:
3059 * page/DOMWindow.idl:
3060 * page/InspectorController.cpp:
3061 (WebCore::InspectorController::windowScriptObjectAvailable):
3062 (WebCore::InspectorController::populateScriptResources):
3063 (WebCore::InspectorController::clearDatabaseScriptResources):
3064 (WebCore::InspectorController::didCommitLoad):
3065 * page/InspectorController.h:
3067 2007-10-22 Alp Toker <alp@atoker.com>
3069 Reviewed by Mark Rowe.
3071 http://bugs.webkit.org/show_bug.cgi?id=15611
3072 [GTK] Text selection behaviour different in Debug and Release builds
3074 http://bugs.webkit.org/show_bug.cgi?id=15578
3075 [GTK] Text editor caret does not blink
3077 Never allow control to reach the end of non-void functions.
3079 Return more sensible values, or in some cases, nulls.
3081 * page/gtk/EventHandlerGtk.cpp:
3082 (WebCore::isKeyboardOptionTab):
3083 (WebCore::EventHandler::tabsToAllControls):
3084 (WebCore::EventHandler::eventActivatedView):
3086 2007-10-22 Holger Freyther <zecke@selfish.org>
3088 Reviewed by Simon Hausmann <hausmann@kde.org>.
3090 Implement ResourceHandle::loadResourceSynchronously using ResourceHandle and a special ResourceHandleClient. This approach has the possible danger of reentrancy.
3092 * platform/network/qt/ResourceHandleQt.cpp:
3093 (WebCore::WebCoreSynchronousLoader::resourceResponse):
3094 (WebCore::WebCoreSynchronousLoader::resourceError):
3095 (WebCore::WebCoreSynchronousLoader::data):
3096 (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
3097 (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
3098 (WebCore::WebCoreSynchronousLoader::didReceiveData):
3099 (WebCore::WebCoreSynchronousLoader::didFinishLoading):
3100 (WebCore::WebCoreSynchronousLoader::didFail):
3101 (WebCore::WebCoreSynchronousLoader::waitForCompletion):
3102 (WebCore::ResourceHandle::loadResourceSynchronously):
3104 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3106 Reviewed by Lars Knoll <lars@trolltech.com>.
3108 Style fix. It is allowed to attempt to delete 0.
3110 * platform/qt/ClipboardQt.cpp:
3112 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3114 Reviewed by Lars Knoll <lars@trolltech.com>.
3116 Make it actually localizable....
3118 * platform/qt/Localizations.cpp:
3119 (WebCore::submitButtonDefaultLabel):
3120 (WebCore::inputElementAltText):
3121 (WebCore::searchableIndexIntroduction):
3122 (WebCore::fileButtonChooseFileLabel):
3123 (WebCore::fileButtonNoFileSelectedLabel):
3124 (WebCore::contextMenuItemTagOpenLinkInNewWindow):
3125 (WebCore::contextMenuItemTagDownloadLinkToDisk):
3126 (WebCore::contextMenuItemTagCopyLinkToClipboard):
3127 (WebCore::contextMenuItemTagOpenImageInNewWindow):
3128 (WebCore::contextMenuItemTagDownloadImageToDisk):
3129 (WebCore::contextMenuItemTagCopyImageToClipboard):
3130 (WebCore::contextMenuItemTagOpenFrameInNewWindow):
3131 (WebCore::contextMenuItemTagCopy):
3132 (WebCore::contextMenuItemTagGoBack):
3133 (WebCore::contextMenuItemTagGoForward):
3134 (WebCore::contextMenuItemTagStop):
3135 (WebCore::contextMenuItemTagReload):
3136 (WebCore::contextMenuItemTagCut):
3137 (WebCore::contextMenuItemTagPaste):
3138 (WebCore::contextMenuItemTagNoGuessesFound):
3139 (WebCore::contextMenuItemTagIgnoreSpelling):
3140 (WebCore::contextMenuItemTagLearnSpelling):
3141 (WebCore::contextMenuItemTagSearchWeb):
3142 (WebCore::contextMenuItemTagLookUpInDictionary):
3143 (WebCore::contextMenuItemTagOpenLink):
3144 (WebCore::contextMenuItemTagIgnoreGrammar):
3145 (WebCore::contextMenuItemTagSpellingMenu):
3146 (WebCore::contextMenuItemTagShowSpellingPanel):
3147 (WebCore::contextMenuItemTagCheckSpelling):
3148 (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
3149 (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
3150 (WebCore::contextMenuItemTagFontMenu):
3151 (WebCore::contextMenuItemTagBold):
3152 (WebCore::contextMenuItemTagItalic):
3153 (WebCore::contextMenuItemTagUnderline):
3154 (WebCore::contextMenuItemTagOutline):
3155 (WebCore::contextMenuItemTagWritingDirectionMenu):
3156 (WebCore::contextMenuItemTagDefaultDirection):
3157 (WebCore::contextMenuItemTagLeftToRight):
3158 (WebCore::contextMenuItemTagRightToLeft):
3159 (WebCore::contextMenuItemTagInspectElement):
3160 (WebCore::searchMenuNoRecentSearchesText):
3161 (WebCore::searchMenuRecentSearchesText):
3163 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3165 Reviewed by Lars Knoll <lars@trolltech.com>.
3167 Adjust the code to obey the Coding Style.
3169 * platform/qt/Localizations.cpp:
3170 (WebCore::submitButtonDefaultLabel):
3171 (WebCore::inputElementAltText):
3172 (WebCore::resetButtonDefaultLabel):
3173 (WebCore::defaultLanguage):
3174 (WebCore::searchableIndexIntroduction):
3175 (WebCore::fileButtonChooseFileLabel):
3176 (WebCore::fileButtonNoFileSelectedLabel):
3177 (WebCore::contextMenuItemTagOpenLinkInNewWindow):
3178 (WebCore::contextMenuItemTagDownloadLinkToDisk):
3179 (WebCore::contextMenuItemTagCopyLinkToClipboard):
3180 (WebCore::contextMenuItemTagOpenImageInNewWindow):
3181 (WebCore::contextMenuItemTagDownloadImageToDisk):
3182 (WebCore::contextMenuItemTagCopyImageToClipboard):
3183 (WebCore::contextMenuItemTagOpenFrameInNewWindow):
3184 (WebCore::contextMenuItemTagCopy):
3185 (WebCore::contextMenuItemTagGoBack):
3186 (WebCore::contextMenuItemTagGoForward):
3187 (WebCore::contextMenuItemTagStop):
3188 (WebCore::contextMenuItemTagReload):
3189 (WebCore::contextMenuItemTagCut):
3190 (WebCore::contextMenuItemTagPaste):
3191 (WebCore::contextMenuItemTagNoGuessesFound):
3192 (WebCore::contextMenuItemTagIgnoreSpelling):
3193 (WebCore::contextMenuItemTagLearnSpelling):
3194 (WebCore::contextMenuItemTagSearchWeb):
3195 (WebCore::contextMenuItemTagLookUpInDictionary):
3196 (WebCore::contextMenuItemTagOpenLink):
3197 (WebCore::contextMenuItemTagIgnoreGrammar):
3198 (WebCore::contextMenuItemTagSpellingMenu):
3199 (WebCore::contextMenuItemTagShowSpellingPanel):
3200 (WebCore::contextMenuItemTagCheckSpelling):
3201 (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
3202 (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
3203 (WebCore::contextMenuItemTagFontMenu):
3204 (WebCore::contextMenuItemTagBold):
3205 (WebCore::contextMenuItemTagItalic):
3206 (WebCore::contextMenuItemTagUnderline):
3207 (WebCore::contextMenuItemTagOutline):
3208 (WebCore::contextMenuItemTagWritingDirectionMenu):
3209 (WebCore::contextMenuItemTagDefaultDirection):
3210 (WebCore::contextMenuItemTagLeftToRight):
3211 (WebCore::contextMenuItemTagRightToLeft):
3212 (WebCore::contextMenuItemTagInspectElement):
3213 (WebCore::searchMenuNoRecentSearchesText):
3214 (WebCore::searchMenuRecentSearchesText):
3215 (WebCore::searchMenuClearRecentSearchesText):
3216 (WebCore::AXWebAreaText):
3217 (WebCore::AXLinkText):
3218 (WebCore::AXListMarkerText):
3219 (WebCore::AXImageMapText):
3220 (WebCore::AXHeadingText):
3221 (WebCore::unknownFileSizeText):
3223 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3225 Reviewed by Lars Knoll <lars@trolltech.com>.
3227 Return a non empty string in more functions.
3229 * platform/qt/Localizations.cpp:
3230 (WebCore::contextMenuItemTagShowSpellingPanel):
3232 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3234 Reviewed by Lars Knoll <lars@trolltech.com>.
3236 Shrink the TemporaryLinkStubs and move the
3237 Frame::setNeedsReapplyStyles stub to FrameQt.cpp
3239 * page/qt/FrameQt.cpp:
3240 (WebCore::Frame::setNeedsReapplyStyles):
3241 * platform/qt/TemporaryLinkStubs.cpp:
3243 2007-10-22 Holger Freyther <zecke@selfish.org>
3245 Reviewed by Lars Knoll <lars@trolltech.com>.
3247 Implement the WebCore::fileSize function. The
3248 implementation assumes that QFileInfo will cache
3249 the result of the stat so that info.size() and
3250 info.exists() use the same stat result.
3252 * platform/qt/FileSystemQt.cpp:
3253 (WebCore::deleteFile):
3254 * platform/qt/TemporaryLinkStubs.cpp:
3256 2007-10-21 Alp Toker <alp@atoker.com>
3258 Reviewed by Mark Rowe.
3260 Use the portable GLib time function.
3262 Use event timestamps rather than the current time where available.
3264 Rename SharedTimerLinux.cpp since it isn't Linux-specific.
3267 * platform/gtk/MouseEventGtk.cpp:
3268 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
3269 * platform/gtk/SystemTimeGtk.cpp: Added.
3270 (WebCore::currentTime):
3271 * platform/gtk/SharedTimerGtk.cpp: Copied from platform/gtk/SharedTimerLinux.cpp.
3272 * platform/gtk/SharedTimerLinux.cpp: Removed.
3274 2007-10-22 David Hyatt <hyatt@apple.com>
3276 Fix for 15596, regression from my transform changes. Preserve null checks on the clip rects calls for parent(),
3277 since the method is called on orphaned layers. This is not very well understood.
3281 * rendering/RenderLayer.cpp:
3282 (WebCore::RenderLayer::calculateClipRects):
3283 (WebCore::RenderLayer::calculateRects):
3285 2007-10-21 Mark Rowe <mrowe@apple.com>
3289 http://bugs.webkit.org/show_bug.cgi?id=15575
3290 Bug 15575: [GTK] Implement threading using GThread
3292 * WebCore.pro: Remove ThreadingPthreads.cpp from the Gtk build and link against libgthreads.
3293 * loader/icon/IconDatabase.cpp: Initialize threading before the mutex is created to be compatible with gthreads.
3294 (WebCore::iconDatabase):
3295 (WebCore::IconDatabase::open):
3296 * platform/Threading.h:
3297 * platform/gtk/ThreadingGtk.cpp: Threading implementation in terms of GThread, based heavily on the pthreads implementation.
3298 (WebCore::initializeThreading):
3299 (WebCore::threadMapMutex):
3300 (WebCore::threadMap):
3301 (WebCore::establishIdentifierForThread):
3302 (WebCore::threadForIdentifier):
3303 (WebCore::clearThreadForIdentifier):
3304 (WebCore::createThread):
3305 (WebCore::waitForThreadCompletion):
3306 (WebCore::detachThread):
3307 (WebCore::Mutex::Mutex):
3308 (WebCore::Mutex::~Mutex):
3309 (WebCore::Mutex::lock):
3310 (WebCore::Mutex::tryLock):
3311 (WebCore::Mutex::unlock):
3312 (WebCore::ThreadCondition::ThreadCondition):
3313 (WebCore::ThreadCondition::~ThreadCondition):
3314 (WebCore::ThreadCondition::wait):
3315 (WebCore::ThreadCondition::signal):
3316 (WebCore::ThreadCondition::broadcast):
3317 * storage/Database.cpp:
3318 (WebCore::Database::Database): Initialize threading when Database is used so that it will be initialized even
3319 if the icon database is compiled out
3321 2007-10-21 Mark Rowe <mrowe@apple.com>
3325 * ksvg2/css/SVGCSSStyleSelector.cpp: Use fabsf when dealing with a float to prevent the
3326 implicit conversion warning.
3328 2007-10-21 Alp Toker <alp@atoker.com>
3330 Reviewed by Mark Rowe.
3332 Implement spelling and grammar mistake underlining with Pango/Cairo.
3334 This change does not add any actual support for spelling or grammar
3335 checking to any port.
3337 * platform/graphics/cairo/GraphicsContextCairo.cpp:
3338 (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
3340 2007-10-21 Alp Toker <alp@atoker.com>
3342 Reviewed by Mark Rowe.
3346 Fix a refcounting issue leading to leaks and crashes on canvas
3349 Delegate memory management of canvas images to Cairo.
3351 Mark unhandled conditions with notImplemented() instead of silently
3354 * html/CanvasRenderingContext2D.cpp:
3355 (WebCore::CanvasRenderingContext2D::drawImage):
3356 * html/CanvasStyle.cpp:
3357 (WebCore::CanvasStyle::applyStrokeColor):
3358 * html/CanvasStyle.h:
3359 * html/HTMLCanvasElement.cpp:
3360 (WebCore::HTMLCanvasElement::HTMLCanvasElement):
3361 (WebCore::HTMLCanvasElement::~HTMLCanvasElement):
3362 (WebCore::HTMLCanvasElement::reset):
3363 (WebCore::HTMLCanvasElement::paint):
3364 (WebCore::HTMLCanvasElement::createDrawingContext):
3365 (WebCore::HTMLCanvasElement::createPlatformImage):
3367 2007-10-21 Nikolas Zimmermann <zimmermann@kde.org>
3371 Handle glyph-orientation-vertical / glyph-orientation-horizontal SVG CSS properties.
3373 The SVG layouting code itself doesn't handle these properties yet,
3374 it's just about recognizing them in the SVG CSS engine.
3376 * ksvg2/css/SVGCSSComputedStyleDeclaration.cpp:
3377 (WebCore::CSSComputedStyleDeclaration::getSVGPropertyCSSValue):
3378 * ksvg2/css/SVGCSSParser.cpp:
3379 (WebCore::CSSParser::parseSVGValue):
3380 * ksvg2/css/SVGCSSStyleSelector.cpp:
3381 (WebCore::CSSStyleSelector::applySVGProperty):
3382 * ksvg2/css/SVGRenderStyle.h:
3383 (WebCore::SVGRenderStyle::InheritedFlags::operator==):
3384 (WebCore::SVGRenderStyle::InheritedFlags::operator!=):
3385 (WebCore::SVGRenderStyle::setBitDefaults):
3386 * ksvg2/css/SVGRenderStyleDefs.h:
3388 2007-10-21 Christian Dywan <christian@twotoasts.de>
3392 http://bugs.webkit.org/show_bug.cgi?id=15589
3393 Use glib's path separator on gtk
3395 * platform/gtk/FileSystemGtk.cpp:
3396 (WebCore::pathByAppendingComponent):
3398 2007-10-21 Dan Bernstein <mitz@apple.com>
3400 Reviewed by Dave Hyatt.
3402 - fix http://bugs.webkit.org/show_bug.cgi?id=15259
3403 <rdar://problem/5499902> REGRESSION: Text overflows when using word spacing and centering (affects myspace.com music videos page)
3405 Test: fast/text/word-space.html
3407 * rendering/RenderBlock.cpp:
3408 (WebCore::stripTrailingSpace): Added word-spacing to the width of the
3409 space being stripped out.
3410 * rendering/RenderText.cpp:
3411 (WebCore::RenderText::trimmedPrefWidths): Changed handling of
3412 leading space. Since Font::width includes leading space width but not
3413 leading word spacing, this method needs to either remove the width of a
3414 space character or add word spacing,
3415 depending on stripFrontSpaces.
3416 (WebCore::RenderText::calcPrefWidths): Corrected the check for adding
3417 trailing word spacing so that it would work in the case where the last
3419 * rendering/bidi.cpp:
3420 (WebCore::RenderBlock::computeHorizontalPositionsForLine): Changed to
3421 actually add word spacing to the total width.
3423 2007-10-20 David Hyatt <hyatt@apple.com>
3425 Land support for the transform CSS property. Basic painting now works properly. There are many open issues
3426 that will have to be covered by individual bugs.
3430 * css/CSSParser.cpp:
3431 (WebCore::CSSParser::validUnit):
3432 (WebCore::CSSParser::parseTransform):
3433 * rendering/RenderLayer.cpp:
3434 (WebCore::RenderLayer::RenderLayer):
3435 (WebCore::RenderLayer::~RenderLayer):
3436 (WebCore::RenderLayer::updateLayerPositions):
3437 (WebCore::RenderLayer::updateTransform):
3438 (WebCore::transparencyClipBox):
3439 (WebCore::RenderLayer::beginTransparencyLayers):
3440 (WebCore::RenderLayer::paintLayer):
3441 (WebCore::RenderLayer::calculateClipRects):
3442 (WebCore::RenderLayer::calculateRects):
3443 (WebCore::RenderLayer::childrenClipRect):
3444 (WebCore::RenderLayer::selfClipRect):
3445 (WebCore::RenderLayer::intersectsDamageRect):
3446 (WebCore::RenderLayer::boundingBox):
3447 * rendering/RenderLayer.h:
3448 * rendering/RenderObject.cpp:
3449 (WebCore::RenderObject::containingBlock):
3450 (WebCore::RenderObject::container):
3451 * rendering/RenderStyle.cpp:
3452 (WebCore::RenderStyle::applyTransform):
3453 * rendering/RenderStyle.h:
3454 (WebCore::TransformOperation::isScaleOperation):
3455 (WebCore::TransformOperation::isRotateOperation):
3456 (WebCore::TransformOperation::isSkewOperation):
3457 (WebCore::TransformOperation::isTranslateOperation):
3458 (WebCore::TransformOperation::isMatrixOperation):
3459 (WebCore::ScaleTransformOperation::isScaleOperation):
3460 (WebCore::RotateTransformOperation::isRotateOperation):
3461 (WebCore::SkewTransformOperation::isSkewOperation):
3462 (WebCore::TranslateTransformOperation::isTranslateOperation):
3463 (WebCore::MatrixTransformOperation::isMatrixOperation):
3464 * rendering/RenderTableRow.h:
3465 (WebCore::RenderTableRow::requiresLayer):
3466 * rendering/RenderTreeAsText.cpp:
3467 (WebCore::writeLayers):
3469 2007-10-20 Timothy Hatcher <timothy@apple.com>
3473 Add basic @font-face to the Web Inspector.
3475 * page/InspectorController.cpp:
3476 (WebCore::InspectorResource::type): Check for CachedResource::FontResource.
3477 * page/inspector/Resource.js: Add support for Font types and font preview in the icon.
3478 * page/inspector/ResourcePanel.js: Show a font preview for font resources.
3479 * page/inspector/inspector.css: Style for the font preview and font icon.
3480 * page/inspector/inspector.js: Add font mime types.
3482 2007-10-20 Sam Weinig <sam@webkit.org>
3484 Reviewed by Mark Rowe.
3487 - http://bugs.webkit.org/show_bug.cgi?id=14393
3488 Column on the left side of the Web Inspector should have a smaller minimum width for resizing
3489 - http://bugs.webkit.org/show_bug.cgi?id=14394
3490 Left pane of the Web Inspector "shakes" when resizing it to maximum width
3492 * page/inspector/inspector.js: Change the constraint logic to only enforce a 100px min-width
3493 and window.innerWidth - 100 max-width for the sidebar. The change also makes the viewbuttons
3494 move with the sidebar.
3496 2007-10-20 Dan Bernstein <mitz@apple.com>
3498 Reviewed by Dave Hyatt.
3500 - fix http://bugs.webkit.org/show_bug.cgi?id=15208
3501 display:table causes the collapsed text to show at a different position when expanded
3503 Test: fast/table/insert-before-anonymous-ancestors.html
3505 * rendering/RenderTable.cpp:
3506 (WebCore::RenderTable::addChild): Rolled out r11579. I think whatever
3507 that change was supposed to accomplish has since been done in other
3510 2007-10-20 Mark Rowe <mrowe@apple.com>
3512 Reviewed by Dave Hyatt.
3514 Fix http://bugs.webkit.org/show_bug.cgi?id=15584
3515 Bug 15584: REGRESSION(r26696): GtkLauncher segfaults on WebCore::WidthIterator::advance
3517 * platform/Font.cpp:
3518 (WebCore::Font::glyphDataForCharacter): If the fallback page exists but does not have a
3519 glyph for the character, fall back to the missing glyph data rather than returning an
3522 2007-10-20 Jasper Bryant-Greene <m@ni.ac.nz>
3526 Changed the hard-coded scroll delta in WheelEventGtk from 120 to 0.25,
3527 as suggested by George Wright in #15108 (which this patch will
3530 This gives a more sane scrolling behaviour, rather than the
3531 jumping to the end or start of the document as occurred previously.
3533 * platform/gtk/WheelEventGtk.cpp:
3534 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
3536 2007-10-20 Alp Toker <alp@atoker.com>
3540 Support text boundary detection.
3541 Move TextBoundariesWin.cpp to platform/ since it's portable and useful.
3542 Split out and implement some TemporaryLinkStubs.
3545 * WebCore.vcproj/WebCore.vcproj:
3546 * platform/TextBoundariesICU.cpp: Copied from WebCore/platform/win/TextBoundariesWin.cpp.
3547 * platform/gtk/Language.cpp: Added.
3548 (WebCore::defaultLanguage):
3549 * platform/gtk/TemporaryLinkStubs.cpp:
3550 * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Added.
3551 (WebCore::currentTextBreakLocaleID):
3552 * platform/win/TextBoundariesWin.cpp: Removed.
3554 2007-10-20 Mark Rowe <mrowe@apple.com>
3556 Reviewed by Tim Hatcher.
3558 Workaround for http://bugs.webkit.org/show_bug.cgi?id=15574
3559 Bug 15574: Web Inspector doesn't work with the new Database feature
3561 The executeSql callback is executed in the security domain of the web page that owns the database,
3562 while the inspector's window object is in the callback functions scope chain. This is leading to a
3563 security violation when the callback attempts to access "document". We can work around this by
3564 ensuring that "document" can be found in the scope chain before the window object.
3566 * page/inspector/DatabasePanel.js:
3568 2007-10-20 Darin Adler <darin@apple.com>
3572 - http://bugs.webkit.org/show_bug.cgi?id=15567
3573 speed up hashing const char* by removing call to strlen
3575 This includes one other fix as well. Both were from a day where I did some
3576 profiling to find hot spots when running the page load test.
3578 * platform/StringImpl.cpp:
3579 (WebCore::StringImpl::computeHash): Compute the hash without calling strlen.
3580 Also change the argument names to not confusingly use m_ prefixes.
3581 (WebCore::StringImpl::createStrippingNull): Added a faster case for strings that
3584 2007-10-20 Mark Rowe <mrowe@apple.com>
3588 Gtk changes needed to enable HTML 5 client-side database storage.
3590 * WebCore.pro: Have Gtk use ThreadingPthreads.cpp.
3591 * platform/pthreads/ThreadingPthreads.cpp: Include errno so that EDEADLK and EBUSY are available.
3593 2007-10-20 Mark Rowe <mrowe@apple.com>
3597 Implement callOnMainThread for Gtk+ via a one-shot zero-delay timer that will be dispatched
3598 from the main event loop.
3601 * platform/gtk/TemporaryLinkStubs.cpp:
3602 * platform/gtk/ThreadingGtk.cpp: Added.
3603 (WebCore::callFunctionOnMainThread):
3604 (WebCore::callOnMainThread):
3606 2007-10-20 Nikolas Zimmermann <zimmermann@kde.org>
3610 Fix non-functional display="inline" / display="none" for SVG text.
3612 Fixes: svg/W3C-SVG-1.1/animate-elem-39-t.svg (display="inline" support)
3613 Fixes: svg/batik/text/textProperties2.svg (display="inline/none" support)
3614 Fixes: svg/carto.net/tabgroup.svg (display="none" support, stray content before layouting)
3616 * css/svg.css: Remove "important" flag on text/foreignObject display: block property
3617 * rendering/RenderSVGBlock.cpp:
3618 (WebCore::RenderSVGBlock::setStyle):
3620 2007-10-20 Mark Rowe <mrowe@apple.com>