1 2007-11-02 Darin Adler <darin@apple.com>
5 - speculative fix for http://bugs.webkit.org/show_bug.cgi?id=15805
6 <rdar://problem/5510779> crashes in isLoadingMultipartContent
8 * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::isLoadingMultipartContent):
9 Instead of asserting the frame loader is non-0, return false if it is 0.
11 2007-11-02 Darin Adler <darin@apple.com>
15 - fix <rdar://problem/5530185> WebKit does not show <object> fallback content when both
16 URL and MIME type is omitted
18 Already covered by existing tests (that had incorrect results).
20 * loader/FrameLoader.cpp: (WebCore::FrameLoader::requestObject): Return false to indicate
21 failure when both URL and MIME type are empty. The old code would not attempt a load, but
22 it would indicate success.
24 * rendering/RenderPartObject.cpp: (WebCore::RenderPartObject::updateWidget): Remove
25 non-helpful early exit for the case where there is no URL and no type. Returning early
26 prevents the fallback code from running.
28 2007-11-02 Alp Toker <alp@atoker.com>
32 Include Cairo headers properly
34 * platform/graphics/AffineTransform.h:
35 * platform/graphics/ImageBuffer.h:
36 * platform/graphics/cairo/AffineTransformCairo.cpp:
37 * platform/gtk/FontPlatformDataGtk.cpp:
39 2007-11-01 Oliver Hunt <oliver@apple.com>
43 Make sure we send the correct events for Capslock, Shift, Ctrl, Alt and the Windows key
45 * platform/win/KeyEventWin.cpp:
46 (WebCore::keyIdentifierForWindowsKeyCode):
47 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
49 2007-11-01 Geoffrey Garen <ggaren@apple.com>
51 Reviewed by Maciej Stachowiak.
53 In preparation for making List a simple stack-allocated Vector:
55 Removed all instances of List copying, assignment, and/or storage.
57 Layout tests and JS tests pass.
59 * bindings/js/kjs_window.cpp:
60 (KJS::WindowFunc::callAsFunction): Stores a Vector of protected
61 JSValue*'s instead of a List now. Converts to List on the fly when
62 calling the timer function. This is slightly less efficient, but the
63 common case is 0-2 arguments, so it's no biggie.
65 (HTML iBench shows no regression. PLT does not use JS timers.)
67 (KJS::ScheduledAction::execute): Uses the more efficient and non-copying
69 (KJS::ScheduledAction::ScheduledAction): ditto
71 * bindings/objc/WebScriptObject.mm:
72 (getListFromNSArray): Takes a List out parameter now, to avoid copying.
74 2007-11-01 Oliver Hunt <oliver@apple.com>
78 Correct event behaviour on certain control keys
80 Make sure we send the correct keyDown and keyUp events for the
81 control keys CapsLock, Shift, Ctrl, Alt, and Meta/Command, and
82 uses Windows key codes for the event keyCode.
85 * page/EventHandler.cpp:
86 (WebCore::EventHandler::keyEvent):
87 * platform/PlatformKeyboardEvent.h:
88 * platform/gtk/KeyEventGtk.cpp:
89 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
90 * platform/mac/KeyEventMac.mm:
91 (WebCore::keyIdentifierForKeyEvent):
92 (WebCore::WindowsKeyCodeForKeyEvent):
93 (WebCore::isKeyUpEvent):
94 (WebCore::textFromEvent):
95 (WebCore::unmodifiedTextFromEvent):
96 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
97 * platform/win/KeyEventWin.cpp:
98 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
99 * platform/wx/KeyEventWin.cpp:
100 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
102 2007-11-01 Timothy Hatcher <timothy@apple.com>
106 * page/inspector/inspector.css: Use the white disclosure triangles
107 when a parent DOM element is sepected.
109 2007-11-01 Justin Garcia <justin.garcia@apple.com>
111 Reviewed by Oliver Hunt.
113 <rdar://problem/5195056> Huge plain text pastes are slow, time spent in ApplyStyleCommand::doApply
115 * editing/ReplaceSelectionCommand.cpp:
116 (WebCore::ReplaceSelectionCommand::doApply): No need to match style when pasting
117 into a plaintext-only region, since when we build the fragment to insert from
118 plain text, we don't put any style information on it, so it will automatically
119 match style with no intervention.
120 * editing/markup.cpp:
121 (WebCore::createFragmentFromText): Place paragraphs into clones of the
122 block being inserted into, instead of default paragraph elements,
123 so that when inserted content will match the surrounding paragraph style.
124 This was broken before, but I haven't added a layout test yet because
125 there currently isn't a way to get only plain text onto the pasteboard
128 2007-11-01 Sam Weinig <sam@webkit.org>
130 Reviewed by Adam Roben.
132 Add a releaseRef method to COMPtr which matches the behavior
133 of the method by the same name in PassRefPtr. This is in
134 preparation of adding autogenerated COM DOM bindings.
136 * platform/win/COMPtr.h:
137 (COMPtr::releaseRef):
139 2007-11-01 Kevin Ollivier <kevino@theolliviers.com>
141 wx impl. for DragController and EventHandler interfaces.
143 Reviewed by Adam Roben.
146 * page/wx/DragControllerWx.cpp: Added.
147 (WebCore::DragController::isCopyKeyDown):
148 (WebCore::DragController::dragOperation):
149 (WebCore::DragController::maxDragImageSize):
150 * page/wx/EventHandlerWx.cpp: Added.
151 (WebCore::EventHandler::passMousePressEventToSubframe):
152 (WebCore::EventHandler::passMouseMoveEventToSubframe):
153 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
154 (WebCore::EventHandler::passMousePressEventToScrollbar):
155 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
156 (WebCore::EventHandler::focusDocumentView):
157 (WebCore::EventHandler::eventActivatedView):
158 (WebCore::EventHandler::createDraggingClipboard):
160 2007-11-01 Kevin Ollivier <kevino@theolliviers.com>
162 Adding files for wx impl. of editing interfaces.
164 Reviewed by Adam Roben.
167 * editing/wx/EditorWx.cpp: Added.
168 (WebCore::Editor::newGeneralClipboard):
170 2007-11-01 Sam Weinig <sam@webkit.org>
172 Reviewed by Adam Roben.
174 Make implicit conversions from LPCSTRs and BSTRs to WebCore string
175 types possible in preparation of adding autogenerated COM DOM bindings.
177 * platform/AtomicString.cpp:
178 (WebCore::AtomicString::add):
179 * platform/AtomicString.h:
180 (WebCore::AtomicString::AtomicString):
181 * platform/PlatformString.h:
182 * platform/win/BString.cpp:
183 (WebCore::BString::BString):
184 * platform/win/BString.h:
186 2007-11-01 Brady Eidson <beidson@apple.com>
190 Renamed a flag inside of SQLiteTransaction and added an accessor (for future work)
192 * platform/sql/SQLiteTransaction.cpp:
193 (WebCore::SQLiteTransaction::SQLiteTransaction):
194 (WebCore::SQLiteTransaction::~SQLiteTransaction):
195 (WebCore::SQLiteTransaction::begin):
196 (WebCore::SQLiteTransaction::commit):
197 (WebCore::SQLiteTransaction::rollback):
198 * platform/sql/SQLiteTransaction.h:
199 (WebCore::SQLiteTransaction::inProgress):
201 2007-11-01 Adam Roben <aroben@apple.com>
203 Remove all duplicate xcopy commands from WebCore's post-build step
205 Also add the /d option to the copy of platform/sql.
207 Rubberstamped by Sam.
209 * WebCore.vcproj/WebCore.vcproj:
211 2007-11-01 Adele Peterson <adele@apple.com>
215 Add support for the animation of the -webkit-border-raduis properties.
217 * page/AnimationController.cpp:
218 (WebCore::blendFunc): Added for IntSize.
219 (WebCore::ImplicitAnimation::animate): Added cases for border radius properties.
221 2007-11-01 Alp Toker <alp@atoker.com>
223 Reviewed by Mitz Pettel.
225 Fix an unbalanced save/restore.
227 * platform/graphics/cg/ImageCG.cpp:
228 (WebCore::BitmapImage::draw):
230 2007-11-01 David Hyatt <hyatt@apple.com>
232 Add support for the animation of the visibility property.
234 Reviewed by oliver, aroben
236 * page/AnimationController.cpp:
237 (WebCore::blendFunc):
238 (WebCore::ImplicitAnimation::animate):
240 2007-11-01 Kevin McCullough <kmccullough@apple.com>
244 - Made COMPtr be able to be used by certain other templates,
245 specifically HashSet.
247 * platform/win/COMPtr.h:
250 2007-11-01 Dan Bernstein <mitz@apple.com>
252 Reviewed by Dave Hyatt.
254 - fix http://bugs.webkit.org/show_bug.cgi?id=15015
255 <rdar://problem/5420308> Most of www.aol.com redraws unnecessarily when headline/photo section changes
257 Test: fast/repaint/overflow-clip-subtree-layout.html
259 This patch does not address the bigger issue of doing a full relayout
260 of inline flows containing floats, but it addresses the problem on
261 aol.com, where the changes that trigger layout are confined to an
262 overflow area inside the float.
264 * page/FrameView.cpp:
265 (WebCore::FrameView::scheduleRelayoutOfSubtree): If the new and old
266 layout roots are different but one descends from the other, make (or
267 keep) the ancestor as the layout root.
268 * rendering/RenderObject.cpp:
269 (WebCore::objectIsRelayoutBoundary): Made boxes with overflow
270 clipping and non-auto width and height relayout boundaries.
272 2007-11-01 Alexey Proskuryakov <ap@webkit.org>
274 Reviewed by Mark Rowe.
276 Fixed line endings that got confused in this file somehow.
278 * platform/network/ResourceResponse.cpp:
279 (WebCore::ResourceResponse::isAttachment):
281 2007-11-01 Peter Kasting <zerodpx@gmail.com>
283 Reviewed by Dave Hyatt.
285 http://bugs.webkit.org/show_bug.cgi?id=15778
286 Malformed GIFs should not result in memory corruption.
288 * platform/image-decoders/gif/GIFImageDecoder.cpp:
289 (WebCore::GIFImageDecoder::haveDecodedRow):
290 * platform/image-decoders/gif/GIFImageReader.cpp:
291 (GIFImageReader::output_row):
292 (GIFImageReader::read):
294 2007-10-31 Adam Roben <aroben@apple.com>
296 Fix a crash when parsing a cubic-bezier function
300 Test: fast/css/parse-timing-function-crash.html
302 * WebCore.vcproj/WebCore.vcproj:
304 (WebCore::CSSParser::parseTimingFunctionValue): Don't walk off the end
307 2007-10-31 David Hyatt <hyatt@apple.com>
309 Fix a merge error from when I applied my patch to ToT. A couple of lines should be part of an if.
311 * rendering/RenderStyle.cpp:
312 (WebCore::RenderStyle::adjustTransitions):
314 2007-10-31 Anders Carlsson <andersca@apple.com>
318 Add new SQL callback interfaces and JS implementations of them.
320 * DerivedSources.make:
321 * WebCore.xcodeproj/project.pbxproj:
322 * bindings/js/JSCustomSQLStatementCallback.cpp: Added.
323 (WebCore::JSCustomSQLStatementCallback::JSCustomSQLStatementCallback):
324 (WebCore::JSCustomSQLStatementCallback::handleEvent):
325 * bindings/js/JSCustomSQLStatementCallback.h: Added.
326 * bindings/js/JSCustomSQLStatementErrorCallback.cpp: Added.
327 (WebCore::JSCustomSQLStatementErrorCallback::JSCustomSQLStatementErrorCallback):
328 (WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
329 * bindings/js/JSCustomSQLStatementErrorCallback.h: Added.
330 * bindings/js/JSCustomSQLTransactionCallback.cpp: Added.
331 (WebCore::JSCustomSQLTransactionCallback::JSCustomSQLTransactionCallback):
332 (WebCore::JSCustomSQLTransactionCallback::handleEvent):
333 * bindings/js/JSCustomSQLTransactionCallback.h: Added.
334 * bindings/js/JSCustomSQLTransactionErrorCallback.cpp: Added.
335 (WebCore::JSCustomSQLTransactionErrorCallback::JSCustomSQLTransactionErrorCallback):
336 (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
337 * bindings/js/JSCustomSQLTransactionErrorCallback.h: Added.
338 * storage/JSCustomSQLStatementCallback.h: Added.
339 * storage/JSCustomSQLStatementErrorCallback.h: Added.
340 * storage/JSCustomSQLTransactionCallback.h: Added.
341 * storage/JSCustomSQLTransactionErrorCallback.h: Added.
342 * storage/SQLStatementCallback.h: Added.
343 (WebCore::SQLStatementCallback::~SQLStatementCallback):
344 * storage/SQLStatementCallback.idl: Added.
345 * storage/SQLStatementErrorCallback.h: Added.
346 (WebCore::SQLStatementErrorCallback::~SQLStatementErrorCallback):
347 * storage/SQLStatementErrorCallback.idl: Added.
348 * storage/SQLTransaction.h: Added.
349 * storage/SQLTransaction.idl: Added.
350 * storage/SQLTransactionCallback.h: Added.
351 (WebCore::SQLTransactionCallback::~SQLTransactionCallback):
352 * storage/SQLTransactionCallback.idl: Added.
353 * storage/SQLTransactionErrorCallback.h: Added.
354 (WebCore::SQLTransactionErrorCallback::~SQLTransactionErrorCallback):
355 * storage/SQLTransactionErrorCallback.idl: Added.
357 2007-10-31 Justin Garcia <justin.garcia@apple.com>
359 Reviewed by Dave Harrison.
361 <rdar://problem/5569741> Pasting content with a line break into a list can remove the list
363 * editing/htmlediting.cpp:
364 (WebCore::enclosingEmptyListItem): A single list item can contain multiple
365 paragraphs, so if the incoming VisiblePosition is in an empty paragraph in a
366 list item, that list item isn't necessarily empty.
368 2007-10-31 David Hyatt <hyatt@apple.com>
370 Disable style sharing for animating styles.
372 Reviewed by mitzpettel
374 * css/CSSStyleSelector.cpp:
375 (WebCore::CSSStyleSelector::canShareStyleWithElement):
377 2007-10-31 Dan Bernstein <mitz@apple.com>
379 Reviewed by Darin Adler.
381 - fix intermediate length calculation
383 * rendering/Length.h:
384 (WebCore::Length::blend):
386 2007-10-31 Anders Carlsson <andersca@apple.com>
390 Add new SQLError implementation.
392 * DerivedSources.make:
393 * WebCore.vcproj/WebCore.vcproj:
394 * WebCore.xcodeproj/project.pbxproj:
395 * storage/SQLError.h: Added.
396 (WebCore::SQLError::SQLError):
397 (WebCore::SQLError::code):
398 (WebCore::SQLError::message):
399 * storage/SQLError.idl: Added.
401 2007-10-31 David Hyatt <hyatt@apple.com>
403 Change the initial value of transition-property to all. Change the initial value of
404 transition-duration to 0.
408 * rendering/RenderStyle.h:
409 (WebCore::RenderStyle::initialTransitionDuration):
410 (WebCore::RenderStyle::initialTransitionProperty):
412 2007-10-31 Alp Toker <alp@atoker.com>
414 Reviewed by Mark Rowe.
416 The new Color must be marked valid.
418 * platform/graphics/gtk/ColorGtk.cpp:
420 2007-10-31 Simon Hausmann <hausmann@kde.org>
424 Build fix for non-Qt builds.
426 * dom/XMLTokenizer.cpp:
427 (WebCore::XMLTokenizer::XMLTokenizer):
429 2007-10-31 Simon Hausmann <hausmann@kde.org>
433 Fix dependency path to header files of the public API of the Qt port.
437 2007-10-31 Holger Freyther <zecke@selfish.org>
441 * QXmlStreamNamespaceDeclaration doesn't have the constructor we
442 want to use for Qt4.3. Reenable the old code path which is likely
443 to be dead as I have not checked if m_prefixToNamespaceMap is actually
445 * Guard the entity resolver with the QT_VERSION as well.
446 * Partially reverts 369506279abdaa863e15efed649ca19e062f2c30 and
447 d2b54d0fc1b07a2480f4f7a1417abd7a636b0107 for Qt4.3.
449 * dom/XMLTokenizer.cpp:
450 (WebCore::XMLTokenizer::XMLTokenizer):
451 * dom/XMLTokenizer.h:
453 2007-10-31 Holger Freyther <zecke@selfish.org>
455 Reviewed by Lars Knoll <lars@trolltech.com>.
457 * QMimeData::removeData will be new in Qt4.4, don't use it for Qt4.3
458 * Provide a bad fallback implementation to filter the format list.
460 * platform/qt/ClipboardQt.cpp:
461 (WebCore::ClipboardQt::clearData):
463 2007-10-31 Lars Knoll <lars@trolltech.com>
467 add an entitiy resolver to QXmlStream.
468 Fixes fast/parser/entities-in-attributes.xhtml.
470 * dom/XMLTokenizer.cpp:
471 (WebCore::EntityResolver::resolveUndeclaredEntity):
472 (WebCore::XMLTokenizer::XMLTokenizer):
473 (WebCore::XMLTokenizer::~XMLTokenizer):
475 2007-10-31 Lars Knoll <lars@trolltech.com>
479 Fixes in the XML tokenizer when using QXmlStream.
481 Use new functionality of QXmlStream in Qt 4.4 to simplify
482 the code (but keep the old code for now to still support Qt 4.3).
484 Add proper support for namespace handling when parsing into
487 * dom/XMLTokenizer.cpp:
488 (WebCore::XMLTokenizer::XMLTokenizer):
489 (WebCore::XMLTokenizer::write):
490 (WebCore::XMLTokenizer::startElementNs):
492 * dom/XMLTokenizer.h:
494 2007-10-31 Lars Knoll <lars@trolltech.com>
498 add support for dragging images.
500 * platform/DragImage.h:
501 * platform/qt/ClipboardQt.cpp:
502 (WebCore::ClipboardQt::clearData):
503 (WebCore::ClipboardQt::setDragImage):
504 (WebCore::ClipboardQt::setDragImageElement):
505 (WebCore::ClipboardQt::createDragImage):
506 (WebCore::getCachedImage):
507 (WebCore::ClipboardQt::declareAndWriteDragImage):
508 * platform/qt/ClipboardQt.h:
510 2007-10-31 Lars Knoll <lars@trolltech.com>
514 fix most of the issues I found with Clipboard and DnD.
516 * editing/qt/EditorQt.cpp:
517 * platform/qt/ClipboardQt.cpp:
518 (WebCore::ClipboardQt::ClipboardQt):
519 (WebCore::ClipboardQt::~ClipboardQt):
520 (WebCore::ClipboardQt::clearData):
521 (WebCore::ClipboardQt::clearAllData):
522 (WebCore::ClipboardQt::getData):
523 (WebCore::ClipboardQt::setData):
524 (WebCore::ClipboardQt::types):
525 (WebCore::ClipboardQt::setDragImage):
526 (WebCore::ClipboardQt::setDragImageElement):
527 (WebCore::ClipboardQt::declareAndWriteDragImage):
528 (WebCore::ClipboardQt::writeURL):
529 (WebCore::ClipboardQt::writeRange):
530 (WebCore::ClipboardQt::hasData):
531 * platform/qt/ClipboardQt.h:
532 * platform/qt/DragDataQt.cpp:
533 (WebCore::DragData::asURL):
535 2007-10-30 Mark Rowe <mrowe@apple.com>
537 Fix the Gtk and Qt builds by stubbing out PlatformKeyboardEvent::currentCapsLockState.
539 * platform/gtk/KeyEventGtk.cpp:
540 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
541 * platform/qt/PlatformKeyboardEventQt.cpp:
542 (WebCore::PlatformKeyboardEvent::currentCapsLockState):
544 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
548 http://bugs.webkit.org/show_bug.cgi?id=15762
549 XSLStylesheet loads subresources from a wrong URL
551 Covered by corrected existing tests.
553 * xml/XSLStyleSheet.cpp:
554 (WebCore::XSLStyleSheet::parseString): Pass stylesheet URL, not
557 2007-10-31 Alexey Proskuryakov <ap@webkit.org>
561 http://bugs.webkit.org/show_bug.cgi?id=10818
562 String::append does 2 full copies instead of 1 (or zero!)
564 No change in functionality, thus no test.
566 * platform/String.cpp:
567 (WebCore::String::append): Rewrote to copy once. Also removed an ancient
568 FIXME that doesn't seem to make any sense. Note that append() behavior doesn't
569 match documented String behavior ("modifications to one instance will
570 also modify all others"), but there are a lot of methods that don't.
572 2007-10-31 Adam Roben <aroben@apple.com>
576 * WebCore.vcproj/WebCore.vcproj: Add [JS]ProgressEvent.{cpp,h} files.
578 2007-10-30 Adam Roben <aroben@apple.com>
582 I'm not completely sure why these const issues weren't caught by GCC,
583 but MSVC was certainly not happy with them.
585 * editing/IndentOutdentCommand.cpp:
586 (WebCore::isIndentBlockquote):
587 * editing/markup.cpp:
588 (WebCore::styleFromMatchedRulesAndInlineDecl):
590 2007-10-30 David Hyatt <hyatt@apple.com>
592 transition-property was defaulting to all when it should default to none.
594 It was taking a string type. I figured out how to make it take an ident instead, so you can write:
596 transition-property: opacity
600 transition-property: "opacity"
602 Transition layers also weren't properly repeating patterns the way they were supposed to. I fixed that.
604 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.
610 (WebCore::CSSParser::parseTransitionProperty):
611 * css/CSSStyleSelector.cpp:
612 (WebCore::CSSStyleSelector::adjustRenderStyle):
613 * page/AnimationController.cpp:
614 (WebCore::ImplicitAnimation::animate):
615 * rendering/RenderStyle.cpp:
616 (WebCore::RenderStyle::adjustTransitions):
617 * rendering/RenderStyle.h:
618 (WebCore::RenderStyle::initialTransitionProperty):
620 2007-10-30 Antti Koivisto <antti@apple.com>
626 * platform/graphics/mac/MoviePrivateQTKit.mm:
627 (WebCore::MoviePrivate::getSupportedTypes):
629 2007-10-30 Dan Bernstein <mitz@apple.com>
631 Reviewed by Stephanie Lewis.
633 - fix <rdar://problem/5547237> REGRESSION (304-ToT): Repro font-related crash in fontdatawin.cpp Line 93 (many sites)
635 * platform/win/FontDataWin.cpp:
636 (WebCore::FontData::platformInit): Handle the case where the font has no
639 2007-10-30 David Hyatt <hyatt@apple.com>
641 Make sure CSS transforms can be animated using the CSS transition property.
643 Reviewed by Dan and Antti
645 * css/CSSStyleSelector.cpp:
646 (WebCore::CSSStyleSelector::applyProperty):
647 * page/AnimationController.cpp:
648 (WebCore::blendFunc):
649 (WebCore::ImplicitAnimation::animate):
650 * rendering/Length.h:
651 (WebCore::Length::blend):
652 * rendering/RenderStyle.cpp:
653 (WebCore::StyleTransformData::operator==):
654 (WebCore::TransformOperations::operator==):
655 (WebCore::blendLengths):
656 (WebCore::ScaleTransformOperation::blend):
657 (WebCore::RotateTransformOperation::blend):
658 (WebCore::SkewTransformOperation::blend):
659 (WebCore::TranslateTransformOperation::blend):
660 (WebCore::MatrixTransformOperation::blend):
661 * rendering/RenderStyle.h:
662 (WebCore::TransformOperations::operator!=):
663 (WebCore::TransformOperations::isEmpty):
664 (WebCore::TransformOperations::size):
665 (WebCore::TransformOperations::operator[]):
666 (WebCore::TransformOperations::append):
667 (WebCore::RenderStyle::transform):
668 (WebCore::RenderStyle::setTransform):
669 (WebCore::RenderStyle::initialTransform):
671 2007-10-30 Antti Koivisto <antti@apple.com>
673 Another Qt/GTK build fix.
675 * bindings/js/JSHTMLElementWrapperFactory.cpp:
677 2007-10-30 Antti Koivisto <antti@apple.com>
679 Attempt to fix Qt/GTK build.
683 2007-10-30 Justin Garcia <justin.garcia@apple.com>
685 Reviewed by Darin Adler.
687 <rdar://problem/5549929> CrashTracer: [USER] 35 crashes at WebCore::CharacterData::insertData
689 We were trying to insert a tab into a br, after the br incorrectly ended up inside
692 * editing/DeleteButtonController.cpp:
693 (WebCore::isDeletableElement): Changed to take in a const Node* instead of a Node*.
694 * editing/DeleteSelectionCommand.cpp:
695 (WebCore::isTableRow): Ditto.
696 * editing/IndentOutdentCommand.cpp:
697 (WebCore::isIndentBlockquote): Ditto.
698 (WebCore::isListOrIndentBlockquote): Ditto.
699 * editing/InsertLineBreakCommand.cpp:
700 (WebCore::InsertLineBreakCommand::shouldUseBreakElement): Added, moved code from
702 (WebCore::InsertLineBreakCommand::doApply):
703 Don't upstream() the insertion position. upstream()ing it will only have an effect
704 when the insertion position is the first in its paragraph (since we canonicalize
705 VisiblePositions to the upstream() candidate). In this start of paragraph case,
706 upstream() can move outside inline elements like tab spans or elements that might
707 have a different whitespace mode (added two test cases to cover these).
708 Moved code to decide whether to insert a br or a '\n' to its own method.
709 Removed special case code for inserting at a position inside a tab span. We instead
710 adjust the insertion position before insertion if it is inside a tab span and
711 handle insertion in the appropriate if-block. This fixes a bug where we would
712 only insert one line break when two were needed (added a testcase).
713 Removed special case code for inserting before and after tables and horizontal
714 rules. We handle these insertions in the appropriate if-block.
715 * editing/InsertLineBreakCommand.h:
716 * editing/ReplaceSelectionCommand.cpp:
717 (WebCore::isMailPasteAsQuotationNode): Change to take in a const Node*.
718 * editing/htmlediting.cpp:
719 (WebCore::isContentEditable): Ditto.
720 (WebCore::isBlock): Ditto.
721 (WebCore::enclosingNodeOfType): Changed to take a function pointer to a function
722 that takes in a const Node*.
723 (WebCore::isTabSpanTextNode): Check to see that the node actually a text node,
725 * editing/htmlediting.h:
726 * editing/markup.cpp:
727 (WebCore::styleFromMatchedRulesAndInlineDecl): Changed to take in a const Node*.
728 (WebCore::elementHasTextDecorationProperty): Ditto.
730 2007-10-30 Antti Koivisto <antti@apple.com>
736 * html/VoidCallback.cpp: Added.
737 (VoidCallback::VoidCallback):
738 (VoidCallback::~VoidCallback):
739 (VoidCallback::handleEvent):
740 (VoidCallback::execute):
741 (VoidCallback::operator==):
742 (WebCore::toVoidCallback):
743 * html/VoidCallback.h: Added.
744 * html/VoidCallback.idl: Added.
746 2007-10-30 David Kilzer <ddkilzer@webkit.org>
748 Generated files missing from WebCore's Xcode project file
749 <http://bugs.webkit.org/show_bug.cgi?id=15406>
753 Added the following files to the Xcode project file (note that
754 JSHTMLInputElementBaseTable.cpp is used as a header file):
756 - DOMCSSStyleSheetPrivate.h
758 - DOMHTMLCollectionPrivate.h
759 - DOMHTMLEmbedElementPrivate.h
760 - DOMHTMLIFrameElementPrivate.h
761 - DOMHTMLObjectElementPrivate.h
762 - DOMHTMLSelectElementPrivate.h
763 - DOMTextEventInternal.h
764 - JSHTMLInputElementBaseTable.cpp
766 * DerivedSources.make: Removed DOMSVGException.h and JSSVGAnimatedPoints.h
767 since their generated code was not used.
768 * WebCore.xcodeproj/project.pbxproj: Added missing header files.
770 2007-10-29 Antti Koivisto <antti@apple.com>
772 Rubber stamped by Adele.
774 Initial media (<video> and <audio>) support from feature branch and
775 QTKit based platform implementation.
777 This will need to be updated to match current draft specification.
779 * Configurations/WebCore.xcconfig:
780 * DerivedSources.make:
782 * WebCore.xcodeproj/project.pbxproj:
783 * bindings/js/JSEventCustom.cpp:
785 * bindings/js/JSHTMLAudioElementConstructor.cpp: Added.
786 (WebCore::JSHTMLAudioElementConstructor::JSHTMLAudioElementConstructor):
787 (WebCore::JSHTMLAudioElementConstructor::implementsConstruct):
788 (WebCore::JSHTMLAudioElementConstructor::construct):
789 * bindings/js/JSHTMLAudioElementConstructor.h: Added.
790 * bindings/js/JSHTMLElementWrapperFactory.cpp:
791 (WebCore::createJSHTMLWrapper):
792 * bindings/js/kjs_window.cpp:
793 (KJS::Window::getValueProperty):
794 * bindings/js/kjs_window.h:
796 * bindings/scripts/CodeGeneratorJS.pm:
798 (WebCore::Document::createEvent):
799 (WebCore::Document::willSaveToCache):
800 (WebCore::Document::didRestoreFromCache):
801 (WebCore::Document::registerForCacheCallbacks):
802 (WebCore::Document::unregisterForCacheCallbacks):
805 (WebCore::Element::setBooleanAttribute):
807 (WebCore::Element::willSaveToCache):
809 (WebCore::Event::isProgressEvent):
812 * dom/EventTargetNode.cpp:
813 (WebCore::EventTargetNode::dispatchProgressEvent):
814 * dom/EventTargetNode.h:
815 * dom/ProgressEvent.cpp: Added.
816 (WebCore::ProgressEvent::ProgressEvent):
817 (WebCore::ProgressEvent::initProgressEvent):
818 (WebCore::ProgressEvent::initProgressEventNS):
819 * dom/ProgressEvent.h: Added.
820 (WebCore::ProgressEvent::lengthComputable):
821 (WebCore::ProgressEvent::loaded):
822 (WebCore::ProgressEvent::total):
823 (WebCore::ProgressEvent::isProgressEvent):
824 * dom/ProgressEvent.idl: Added.
825 * history/CachedPage.cpp:
826 (WebCore::CachedPage::CachedPage):
827 * html/HTMLAttributeNames.in:
828 * html/HTMLAudioElement.cpp: Added.
829 (WebCore::HTMLAudioElement::HTMLAudioElement):
830 * html/HTMLAudioElement.h: Added.
831 (WebCore::HTMLAudioElement::tagPriority):
832 * html/HTMLAudioElement.idl: Added.
833 * html/HTMLElement.cpp:
834 (WebCore::inlineTagList):
835 * html/HTMLElementFactory.cpp:
836 (WebCore::audioConstructor):
837 (WebCore::videoConstructor):
838 (WebCore::sourceConstructor):
839 (WebCore::createFunctionMap):
840 * html/HTMLInputElement.cpp:
841 (WebCore::HTMLInputElement::~HTMLInputElement):
842 (WebCore::HTMLInputElement::setInputType):
843 (WebCore::HTMLInputElement::willMoveToNewOwnerDocument):
844 (WebCore::HTMLInputElement::didMoveToNewOwnerDocument):
845 * html/HTMLMediaElement.cpp: Added.
846 (WebCore::HTMLMediaElement::HTMLMediaElement):
847 (WebCore::HTMLMediaElement::~HTMLMediaElement):
848 (WebCore::HTMLMediaElement::checkDTD):
849 (WebCore::HTMLMediaElement::rendererIsNeeded):
850 (WebCore::HTMLMediaElement::createRenderer):
851 (WebCore::HTMLMediaElement::insertedIntoDocument):
852 (WebCore::HTMLMediaElement::removedFromDocument):
853 (WebCore::HTMLMediaElement::scheduleLoad):
854 (WebCore::HTMLMediaElement::initAndDispatchProgressEvent):
855 (WebCore::HTMLMediaElement::dispatchEventAsync):
856 (WebCore::HTMLMediaElement::loadTimerFired):
857 (WebCore::HTMLMediaElement::asyncEventTimerFired):
858 (WebCore::serializeTimeOffset):
859 (WebCore::parseTimeOffset):
860 (WebCore::HTMLMediaElement::getTimeOffsetAttribute):
861 (WebCore::HTMLMediaElement::setTimeOffsetAttribute):
862 (WebCore::HTMLMediaElement::error):
863 (WebCore::HTMLMediaElement::src):
864 (WebCore::HTMLMediaElement::HTMLMediaElement::setSrc):
865 (WebCore::HTMLMediaElement::currentSrc):
866 (WebCore::HTMLMediaElement::networkState):
867 (WebCore::HTMLMediaElement::bufferingRate):
868 (WebCore::HTMLMediaElement::load):
869 (WebCore::HTMLMediaElement::movieNetworkStateChanged):
870 (WebCore::HTMLMediaElement::movieReadyStateChanged):
871 (WebCore::HTMLMediaElement::setReadyState):
872 (WebCore::HTMLMediaElement::progressEventTimerFired):
873 (WebCore::HTMLMediaElement::seek):
874 (WebCore::HTMLMediaElement::readyState):
875 (WebCore::HTMLMediaElement::seeking):
876 (WebCore::HTMLMediaElement::currentTime):
877 (WebCore::HTMLMediaElement::setCurrentTime):
878 (WebCore::HTMLMediaElement::duration):
879 (WebCore::HTMLMediaElement::paused):
880 (WebCore::HTMLMediaElement::defaultPlaybackRate):
881 (WebCore::HTMLMediaElement::setDefaultPlaybackRate):
882 (WebCore::HTMLMediaElement::playbackRate):
883 (WebCore::HTMLMediaElement::setPlaybackRate):
884 (WebCore::HTMLMediaElement::ended):
885 (WebCore::HTMLMediaElement::autoplay):
886 (WebCore::HTMLMediaElement::setAutoplay):
887 (WebCore::HTMLMediaElement::play):
888 (WebCore::HTMLMediaElement::pause):
889 (WebCore::HTMLMediaElement::loopCount):
890 (WebCore::HTMLMediaElement::setLoopCount):
891 (WebCore::HTMLMediaElement::start):
892 (WebCore::HTMLMediaElement::setStart):
893 (WebCore::HTMLMediaElement::end):
894 (WebCore::HTMLMediaElement::setEnd):
895 (WebCore::HTMLMediaElement::loopStart):
896 (WebCore::HTMLMediaElement::setLoopStart):
897 (WebCore::HTMLMediaElement::loopEnd):
898 (WebCore::HTMLMediaElement::setLoopEnd):
899 (WebCore::HTMLMediaElement::currentLoop):
900 (WebCore::HTMLMediaElement::setCurrentLoop):
901 (WebCore::HTMLMediaElement::controls):
902 (WebCore::HTMLMediaElement::setControls):
903 (WebCore::HTMLMediaElement::volume):
904 (WebCore::HTMLMediaElement::setVolume):
905 (WebCore::HTMLMediaElement::muted):
906 (WebCore::HTMLMediaElement::setMuted):
907 (WebCore::HTMLMediaElement::pickMedia):
908 (WebCore::HTMLMediaElement::checkIfSeekNeeded):
909 (WebCore::HTMLMediaElement::movieVolumeChanged):
910 (WebCore::HTMLMediaElement::movieDidEnd):
911 (WebCore::HTMLMediaElement::movieCuePointReached):
912 (WebCore::HTMLMediaElement::addCuePoint):
913 (WebCore::HTMLMediaElement::removeCuePoint):
914 (WebCore::HTMLMediaElement::buffered):
915 (WebCore::HTMLMediaElement::played):
916 (WebCore::HTMLMediaElement::seekable):
917 (WebCore::HTMLMediaElement::effectiveStart):
918 (WebCore::HTMLMediaElement::effectiveEnd):
919 (WebCore::HTMLMediaElement::effectiveLoopStart):
920 (WebCore::HTMLMediaElement::effectiveLoopEnd):
921 (WebCore::HTMLMediaElement::activelyPlaying):
922 (WebCore::HTMLMediaElement::endedPlayback):
923 (WebCore::HTMLMediaElement::willSaveToCache):
924 (WebCore::HTMLMediaElement::didRestoreFromCache):
925 * html/HTMLMediaElement.h: Added.
926 (WebCore::HTMLMediaElement::movie):
927 (WebCore::HTMLMediaElement::isVideo):
928 (WebCore::HTMLMediaElement::):
929 (WebCore::HTMLMediaElement::CallbackEntry::CallbackEntry):
930 * html/HTMLMediaElement.idl: Added.
931 * html/HTMLSourceElement.cpp: Added.
932 (WebCore::HTMLSourceElement::HTMLSourceElement):
933 (WebCore::HTMLSourceElement::~HTMLSourceElement):
934 (WebCore::HTMLSourceElement::insertedIntoDocument):
935 (WebCore::HTMLSourceElement::src):
936 (WebCore::HTMLSourceElement::setSrc):
937 (WebCore::HTMLSourceElement::media):
938 (WebCore::HTMLSourceElement::setMedia):
939 (WebCore::HTMLSourceElement::type):
940 (WebCore::HTMLSourceElement::setType):
941 * html/HTMLSourceElement.h: Added.
942 (WebCore::HTMLSourceElement::endTagRequirement):
943 (WebCore::HTMLSourceElement::tagPriority):
944 * html/HTMLSourceElement.idl: Added.
945 * html/HTMLTagNames.in:
946 * html/HTMLVideoElement.cpp: Added.
947 (WebCore::HTMLVideoElement::HTMLVideoElement):
948 (WebCore::HTMLVideoElement::videoWidth):
949 (WebCore::HTMLVideoElement::videoHeight):
950 * html/HTMLVideoElement.h: Added.
951 (WebCore::HTMLVideoElement::tagPriority):
952 (WebCore::HTMLVideoElement::isVideo):
953 * html/HTMLVideoElement.idl: Added.
954 * html/MediaError.h: Added.
955 (WebCore::MediaError::):
956 (WebCore::MediaError::MediaError):
957 (WebCore::MediaError::code):
958 * html/MediaError.idl: Added.
959 * html/TimeRanges.cpp: Added.
960 (TimeRanges::TimeRanges):
964 (TimeRanges::contain):
965 * html/TimeRanges.h: Added.
966 (WebCore::TimeRanges::TimeRanges):
967 (WebCore::TimeRanges::length):
968 (WebCore::TimeRanges::Range::Range):
969 * html/TimeRanges.idl: Added.
970 * page/DOMWindow.idl:
971 * platform/MIMETypeRegistry.cpp:
972 (WebCore::initialiseSupportedMovieMIMETypes):
973 (WebCore::initialiseMIMETypeRegistry):
974 (WebCore::MIMETypeRegistry::isSupportedMovieMIMEType):
975 (WebCore::MIMETypeRegistry::getSupportedMovieMIMETypes):
976 * platform/MIMETypeRegistry.h:
977 * platform/graphics/Movie.cpp: Added.
978 (WebCore::Movie::Movie):
979 (WebCore::Movie::~Movie):
980 (WebCore::Movie::load):
981 (WebCore::Movie::cancelLoad):
982 (WebCore::Movie::play):
983 (WebCore::Movie::pause):
984 (WebCore::Movie::duration):
985 (WebCore::Movie::currentTime):
986 (WebCore::Movie::seek):
987 (WebCore::Movie::paused):
988 (WebCore::Movie::seeking):
989 (WebCore::Movie::naturalSize):
990 (WebCore::Movie::hasVideo):
991 (WebCore::Movie::networkState):
992 (WebCore::Movie::readyState):
993 (WebCore::Movie::volume):
994 (WebCore::Movie::setVolume):
995 (WebCore::Movie::rate):
996 (WebCore::Movie::setRate):
997 (WebCore::Movie::muted):
998 (WebCore::Movie::setMuted):
999 (WebCore::Movie::dataRate):
1000 (WebCore::Movie::setEndTime):
1001 (WebCore::Movie::addCuePoint):
1002 (WebCore::Movie::removeCuePoint):
1003 (WebCore::Movie::clearCuePoints):
1004 (WebCore::Movie::maxTimeBuffered):
1005 (WebCore::Movie::maxTimeSeekable):
1006 (WebCore::Movie::bytesLoaded):
1007 (WebCore::Movie::totalBytesKnown):
1008 (WebCore::Movie::totalBytes):
1009 (WebCore::Movie::setRect):
1010 (WebCore::Movie::visible):
1011 (WebCore::Movie::setVisible):
1012 (WebCore::Movie::paint):
1013 (WebCore::Movie::getSupportedTypes):
1014 (WebCore::Movie::networkStateChanged):
1015 (WebCore::Movie::readyStateChanged):
1016 (WebCore::Movie::volumeChanged):
1017 (WebCore::Movie::didEnd):
1018 (WebCore::Movie::cuePointReached):
1019 * platform/graphics/Movie.h: Added.
1020 (WebCore::MovieClient::~MovieClient):
1021 (WebCore::MovieClient::movieNetworkStateChanged):
1022 (WebCore::MovieClient::movieReadyStateChanged):
1023 (WebCore::MovieClient::movieVolumeChanged):
1024 (WebCore::MovieClient::movieDidEnd):
1025 (WebCore::MovieClient::movieCuePointReached):
1026 (WebCore::Movie::parentWidget):
1027 (WebCore::Movie::setParentWidget):
1028 (WebCore::Movie::rect):
1030 * platform/graphics/mac/MoviePrivateQTKit.h: Added.
1031 * platform/graphics/mac/MoviePrivateQTKit.mm: Added.
1032 (WebCore::MoviePrivate::MoviePrivate):
1033 (WebCore::MoviePrivate::~MoviePrivate):
1034 (WebCore::MoviePrivate::createQTMovie):
1035 (WebCore::MoviePrivate::createQTMovieView):
1036 (WebCore::MoviePrivate::createQTTime):
1037 (WebCore::MoviePrivate::load):
1038 (WebCore::MoviePrivate::play):
1039 (WebCore::MoviePrivate::pause):
1040 (WebCore::MoviePrivate::duration):
1041 (WebCore::MoviePrivate::currentTime):
1042 (WebCore::MoviePrivate::seek):
1043 (WebCore::MoviePrivate::setEndTime):
1044 (WebCore::MoviePrivate::addCuePoint):
1045 (WebCore::MoviePrivate::removeCuePoint):
1046 (WebCore::MoviePrivate::clearCuePoints):
1047 (WebCore::MoviePrivate::startCuePointTimerIfNeeded):
1048 (WebCore::MoviePrivate::cancelSeek):
1049 (WebCore::MoviePrivate::seekTimerFired):
1050 (WebCore::MoviePrivate::cuePointTimerFired):
1051 (WebCore::MoviePrivate::paused):
1052 (WebCore::MoviePrivate::seeking):
1053 (WebCore::MoviePrivate::naturalSize):
1054 (WebCore::MoviePrivate::hasVideo):
1055 (WebCore::MoviePrivate::setVolume):
1056 (WebCore::MoviePrivate::setMuted):
1057 (WebCore::MoviePrivate::setRate):
1058 (WebCore::MoviePrivate::dataRate):
1059 (WebCore::MoviePrivate::networkState):
1060 (WebCore::MoviePrivate::readyState):
1061 (WebCore::MoviePrivate::maxTimeBuffered):
1062 (WebCore::MoviePrivate::maxTimeSeekable):
1063 (WebCore::MoviePrivate::maxTimeLoaded):
1064 (WebCore::MoviePrivate::bytesLoaded):
1065 (WebCore::MoviePrivate::totalBytesKnown):
1066 (WebCore::MoviePrivate::totalBytes):
1067 (WebCore::MoviePrivate::cancelLoad):
1068 (WebCore::MoviePrivate::updateStates):
1069 (WebCore::MoviePrivate::loadStateChanged):
1070 (WebCore::MoviePrivate::rateChanged):
1071 (WebCore::MoviePrivate::sizeChanged):
1072 (WebCore::MoviePrivate::timeChanged):
1073 (WebCore::MoviePrivate::volumeChanged):
1074 (WebCore::MoviePrivate::didEnd):
1075 (WebCore::MoviePrivate::setRect):
1076 (WebCore::MoviePrivate::setVisible):
1077 (WebCore::MoviePrivate::paint):
1078 (WebCore::MoviePrivate::getSupportedTypes):
1079 (-[WebCoreMovieObserver loadStateChanged:]):
1080 (-[WebCoreMovieObserver rateChanged:]):
1081 (-[WebCoreMovieObserver sizeChanged:]):
1082 (-[WebCoreMovieObserver timeChanged:]):
1083 (-[WebCoreMovieObserver volumeChanged:]):
1084 (-[WebCoreMovieObserver didEnd:]):
1085 (-[WebCoreMovieObserver setCallback:WebCore::]):
1086 * platform/mac/WebCoreSystemInterface.h:
1087 * platform/mac/WebCoreSystemInterface.mm:
1088 * rendering/RenderLayer.cpp:
1089 (WebCore::RenderLayer::collectLayers):
1090 * rendering/RenderVideo.cpp: Added.
1091 (WebCore::RenderVideo::RenderVideo):
1092 (WebCore::RenderVideo::~RenderVideo):
1093 (WebCore::RenderVideo::movie):
1094 (WebCore::RenderVideo::videoSizeChanged):
1095 (WebCore::RenderVideo::paint):
1096 (WebCore::RenderVideo::layout):
1097 (WebCore::RenderVideo::updateFromElement):
1098 (WebCore::RenderVideo::updateMovie):
1099 (WebCore::RenderVideo::isWidthSpecified):
1100 (WebCore::RenderVideo::isHeightSpecified):
1101 (WebCore::RenderVideo::calcReplacedWidth):
1102 (WebCore::RenderVideo::calcReplacedHeight):
1103 (WebCore::RenderVideo::calcAspectRatioWidth):
1104 (WebCore::RenderVideo::calcAspectRatioHeight):
1105 (WebCore::RenderVideo::calcPrefWidths):
1106 * rendering/RenderVideo.h: Added.
1107 (WebCore::RenderVideo::renderName):
1109 2007-10-30 Sam Weinig <sam@webkit.org>
1111 Reviewed by Adam Roben.
1113 Add Interface and Class UUIDs to the IDLs in preparation of adding
1114 autogeneration of the COM DOM bindings.
1116 * bindings/scripts/IDLParser.pm: Relax parsing rules to allow newlines as whitespace.
1117 * css/CSSCharsetRule.idl:
1118 * css/CSSFontFaceRule.idl:
1119 * css/CSSImportRule.idl:
1120 * css/CSSMediaRule.idl:
1121 * css/CSSPageRule.idl:
1122 * css/CSSPrimitiveValue.idl:
1124 * css/CSSRuleList.idl:
1125 * css/CSSStyleDeclaration.idl:
1126 * css/CSSStyleRule.idl:
1127 * css/CSSStyleSheet.idl:
1128 * css/CSSUnknownRule.idl:
1130 * css/CSSValueList.idl:
1132 * css/MediaList.idl:
1135 * css/StyleSheet.idl:
1136 * css/StyleSheetList.idl:
1138 * dom/CDATASection.idl:
1139 * dom/CharacterData.idl:
1141 * dom/DOMImplementation.idl:
1143 * dom/DocumentFragment.idl:
1144 * dom/DocumentType.idl:
1147 * dom/EntityReference.idl:
1149 * dom/EventListener.idl:
1150 * dom/EventTarget.idl:
1151 * dom/NamedNodeMap.idl:
1155 * dom/ProcessingInstruction.idl:
1157 * html/CanvasGradient.idl:
1158 * html/CanvasPattern.idl:
1159 * html/CanvasRenderingContext2D.idl:
1160 * html/HTMLAnchorElement.idl:
1161 * html/HTMLAppletElement.idl:
1162 * html/HTMLAreaElement.idl:
1163 * html/HTMLBRElement.idl:
1164 * html/HTMLBaseElement.idl:
1165 * html/HTMLBaseFontElement.idl:
1166 * html/HTMLBlockquoteElement.idl:
1167 * html/HTMLBodyElement.idl:
1168 * html/HTMLButtonElement.idl:
1169 * html/HTMLCanvasElement.idl:
1170 * html/HTMLCollection.idl:
1171 * html/HTMLDListElement.idl:
1172 * html/HTMLDirectoryElement.idl:
1173 * html/HTMLDivElement.idl:
1174 * html/HTMLDocument.idl:
1175 * html/HTMLElement.idl:
1176 * html/HTMLEmbedElement.idl:
1177 * html/HTMLFieldSetElement.idl:
1178 * html/HTMLFontElement.idl:
1179 * html/HTMLFormElement.idl:
1180 * html/HTMLFrameElement.idl:
1181 * html/HTMLFrameSetElement.idl:
1182 * html/HTMLHRElement.idl:
1183 * html/HTMLHeadElement.idl:
1184 * html/HTMLHeadingElement.idl:
1185 * html/HTMLHtmlElement.idl:
1186 * html/HTMLIFrameElement.idl:
1187 * html/HTMLImageElement.idl:
1188 * html/HTMLInputElement.idl:
1189 * html/HTMLIsIndexElement.idl:
1190 * html/HTMLLIElement.idl:
1191 * html/HTMLLabelElement.idl:
1192 * html/HTMLLegendElement.idl:
1193 * html/HTMLLinkElement.idl:
1194 * html/HTMLMapElement.idl:
1195 * html/HTMLMarqueeElement.idl:
1196 * html/HTMLMenuElement.idl:
1197 * html/HTMLMetaElement.idl:
1198 * html/HTMLModElement.idl:
1199 * html/HTMLOListElement.idl:
1200 * html/HTMLObjectElement.idl:
1201 * html/HTMLOptGroupElement.idl:
1202 * html/HTMLOptionElement.idl:
1203 * html/HTMLOptionsCollection.idl:
1204 * html/HTMLParagraphElement.idl:
1205 * html/HTMLParamElement.idl:
1206 * html/HTMLPreElement.idl:
1207 * html/HTMLQuoteElement.idl:
1208 * html/HTMLScriptElement.idl:
1209 * html/HTMLSelectElement.idl:
1210 * html/HTMLStyleElement.idl:
1211 * html/HTMLTableCaptionElement.idl:
1212 * html/HTMLTableCellElement.idl:
1213 * html/HTMLTableColElement.idl:
1214 * html/HTMLTableElement.idl:
1215 * html/HTMLTableRowElement.idl:
1216 * html/HTMLTableSectionElement.idl:
1217 * html/HTMLTextAreaElement.idl:
1218 * html/HTMLTitleElement.idl:
1219 * html/HTMLUListElement.idl:
1221 2007-10-30 Adele Peterson <adele@apple.com>
1225 * page/AnimationController.cpp: (WebCore::blendFunc): Use lround instead of round.
1227 2007-10-29 Timothy Hatcher <timothy@apple.com>
1229 Reviewed by John Sullivan.
1231 - Allow showing and closing the inspector programatically.
1232 - Add showConsole() and showTimeline() methods.
1234 * WebCore.base.exp: Add exports for WebKit.
1235 * page/InspectorController.cpp:
1236 (WebCore::callSimpleFunction): Renamed from callClearFunction().
1237 (WebCore::unloading): Renamed to close().
1238 (WebCore::InspectorController::InspectorController):
1239 (WebCore::InspectorController::inspect): Moved showing code to show().
1240 (WebCore::InspectorController::setWindowVisible): Show the timeline or console if needed.
1241 (WebCore::InspectorController::show): Code factored out of inspect().
1242 (WebCore::InspectorController::showConsole): Call show() and the JS showConsole().
1243 (WebCore::InspectorController::showTimeline): Call show() and the JS showTimeline().
1244 (WebCore::InspectorController::close):
1245 (WebCore::InspectorController::clearScriptResources): Call the new callSimpleFunction.
1246 (WebCore::InspectorController::clearDatabaseScriptResources): Ditto.
1247 (WebCore::InspectorController::clearScriptConsoleMessages): Ditto.
1248 (WebCore::InspectorController::clearNetworkTimeline): Ditto.
1249 * page/InspectorController.h: Add and rename methods.
1250 * page/inspector/inspector.js: Add showConsole() and showTimeline().
1252 2007-10-30 Adele Peterson <adele@apple.com>
1258 * page/AnimationController.cpp: (WebCore::blendFunc):
1260 2007-10-30 Adele Peterson <adele@apple.com>
1264 WebCore part of fix for http://bugs.webkit.org/show_bug.cgi?id=10577
1265 <rdar://problem/5103625> REGRESSION: Caps lock icon should show in password fields
1267 Test: manual-tests/password-caps-lock.html
1269 * WebCore.base.exp: Added symbol for capsLockStateMayHaveChanged.
1271 * page/Frame.cpp: (WebCore::Frame::setIsActive): Calls capsLockStateMayHaveChanged.
1272 * page/EventHandler.cpp: (WebCore::EventHandler::capsLockStateMayHaveChanged): Added. Tells the focused node's renderer that the capsLockStateMayHaveChanged.
1273 * page/EventHandler.h:
1275 * platform/PlatformKeyboardEvent.h:
1276 * platform/mac/KeyEventMac.mm: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
1277 * platform/win/KeyEventWin.cpp: (WebCore::PlatformKeyboardEvent::currentCapsLockState): Added.
1279 * rendering/RenderTextControl.cpp:
1280 (WebCore::RenderTextControl::RenderTextControl):
1281 (WebCore::RenderTextControl::paint): Added. If m_shouldDrawCapsLockIndicator is true, paints the caps lock indicator after the background.
1282 (WebCore::RenderTextControl::forwardEvent): When the control gets and loses focus, update the caps lock state.
1283 (WebCore::RenderTextControl::capsLockStateMayHaveChanged): Added. Updates m_shouldDrawCapsLockIndicator, which is true if the field is a password field,
1284 and the frame is active, and the element is focused, and the caps lock is on. Causes a repaint when m_shouldDrawCapsLockIndicator changes state.
1285 * rendering/RenderTextControl.h: Added m_shouldDrawCapsLockIndicator.
1286 * rendering/RenderObject.h: (WebCore::RenderObject::capsLockStateMayHaveChanged): Added.
1288 * rendering/RenderTheme.h: (WebCore::RenderTheme::paintCapsLockIndicator): Added.
1289 * rendering/RenderThemeMac.h:
1290 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintCapsLockIndicator): Added. Calls wkDrawCapsLockIndicator.
1291 * rendering/RenderThemeSafari.cpp: (WebCore::RenderThemeSafari::paintCapsLockIndicator): Added. Calls paintThemePart for the CapsLockPart.
1292 * rendering/RenderThemeSafari.h:
1294 2007-10-30 David Hyatt <hyatt@apple.com>
1296 Land support for implicit animation in CSS.
1298 Reviewed by mitz, darin
1300 * css/CSSParser.cpp:
1301 (WebCore::CSSParser::parseTimingFunctionValue):
1302 (WebCore::CSSParser::parseTransitionTimingFunction):
1303 (WebCore::CSSParser::parseTransitionProperty):
1304 * css/CSSStyleSelector.cpp:
1305 (WebCore::CSSStyleSelector::mapTransitionDuration):
1306 (WebCore::CSSStyleSelector::mapTransitionRepeatCount):
1307 (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
1308 (WebCore::CSSStyleSelector::mapTransitionProperty):
1309 * css/CSSTimingFunctionValue.h:
1310 (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
1311 (WebCore::CSSTimingFunctionValue::x1):
1312 (WebCore::CSSTimingFunctionValue::y1):
1313 (WebCore::CSSTimingFunctionValue::x2):
1314 (WebCore::CSSTimingFunctionValue::y2):
1316 (WebCore::Element::styleForRenderer):
1317 (WebCore::Element::createRenderer):
1319 (WebCore::Node::createRendererIfNeeded):
1320 (WebCore::Node::setRenderStyle):
1321 * page/AnimationController.cpp:
1322 (WebCore::CurveData::CurveData):
1323 (WebCore::CurveData::sampleCurveX):
1324 (WebCore::CurveData::sampleCurveY):
1325 (WebCore::CurveData::sampleCurveDerivativeX):
1326 (WebCore::CurveData::solveCurveX):
1327 (WebCore::solveEpsilon):
1328 (WebCore::solveCubicBezierFunction):
1329 (WebCore::ImplicitAnimation::finished):
1330 (WebCore::CompositeImplicitAnimation::~CompositeImplicitAnimation):
1331 (WebCore::CompositeImplicitAnimation::hasAnimationForProperty):
1332 (WebCore::ImplicitAnimation::ImplicitAnimation):
1333 (WebCore::ImplicitAnimation::~ImplicitAnimation):
1334 (WebCore::ImplicitAnimation::reset):
1335 (WebCore::ImplicitAnimation::progress):
1336 (WebCore::blendFunc):
1337 (WebCore::ImplicitAnimation::animate):
1338 (WebCore::CompositeImplicitAnimation::animate):
1339 (WebCore::CompositeImplicitAnimation::animating):
1340 (WebCore::CompositeImplicitAnimation::reset):
1341 (WebCore::AnimationControllerPrivate::hasImplicitAnimations):
1342 (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
1343 (WebCore::AnimationControllerPrivate::~AnimationControllerPrivate):
1344 (WebCore::AnimationControllerPrivate::get):
1345 (WebCore::AnimationControllerPrivate::clear):
1346 (WebCore::AnimationControllerPrivate::updateTimer):
1347 (WebCore::AnimationControllerPrivate::timerFired):
1349 (WebCore::AnimationController::~AnimationController):
1350 (WebCore::AnimationController::cancelImplicitAnimations):
1351 (WebCore::AnimationController::updateImplicitAnimations):
1352 (WebCore::AnimationController::suspendAnimations):
1353 (WebCore::AnimationController::resumeAnimations):
1354 * page/AnimationController.h:
1356 (WebCore::FramePrivate::FramePrivate):
1357 * rendering/RenderBox.cpp:
1358 (WebCore::RenderBox::setStyle):
1359 (WebCore::RenderBox::destroy):
1360 * rendering/RenderObject.cpp:
1361 (WebCore::RenderObject::setAnimatableStyle):
1362 (WebCore::RenderObject::destroy):
1363 * rendering/RenderObject.h:
1364 * rendering/RenderStyle.h:
1365 (WebCore::TimingFunction::TimingFunction):
1366 (WebCore::TimingFunction::operator==):
1367 (WebCore::TimingFunction::x1):
1368 (WebCore::TimingFunction::y1):
1369 (WebCore::TimingFunction::x2):
1370 (WebCore::TimingFunction::y2):
1371 (WebCore::TimingFunction::type):
1372 (WebCore::Transition::transitionProperty):
1373 (WebCore::Transition::setTransitionProperty):
1374 (WebCore::RenderStyle::initialTransitionProperty):
1375 * rendering/RenderWidget.cpp:
1376 (WebCore::RenderWidget::destroy):
1378 2007-10-29 Beth Dakin <bdakin@apple.com>
1382 Fix for <rdar://problem/5399614> anchor tag is not rendered without
1383 text content, works in Firefox with CSS background-image (13237)
1385 This patch allows empty inlines that have box decorations or width
1386 from border/padding/margin to have line boxes.
1388 * rendering/bidi.cpp:
1389 (WebCore::inlineFlowAllowsLineBox): Convenience function that
1390 defines when we allow an inline flow to have a line box.
1391 (WebCore::requiresLineBox): Call inlineFlowAllowsLineBox.
1392 (WebCore::shouldSkipWhitespaceAfterStartObject): New function to
1393 merge some shared code between list markers and empty inline flows
1394 that fall at the beginning of a line.
1395 (WebCore::RenderBlock::findNextLineBreak): Make flows more like
1398 One interesting side effect of this bug appeared in our xhtml/svg
1399 tests that generate parser error tags. The tag we generate was
1400 actually an empty inline with box decorations. This patch causes
1401 those inlines to draw now, and the parser errors looked strange. So
1402 I changed it so that the parsererror tag is display:block. This
1403 matches Firefox, and I think was the original intent of the tag
1404 since that causes its red background and border to show up.
1405 * dom/XMLTokenizer.cpp:
1406 (WebCore::createXHTMLParserErrorHeader):
1408 2007-10-29 Dan Bernstein <mitz@apple.com>
1410 Reviewed by Dave Hyatt.
1412 - fix crashing tests fast/frames/inline-object-inside-frameset.html and
1413 fast/forms/form-hides-table.html
1415 * rendering/RenderBox.cpp:
1416 (WebCore::RenderBox::destroy):
1417 * rendering/RenderWidget.cpp:
1418 (WebCore::RenderWidget::destroy):
1420 2007-10-29 Dan Bernstein <mitz@apple.com>
1422 Reviewed by Adam Roben.
1424 - fix http://bugs.webkit.org/show_bug.cgi?id=15750
1425 REGRESSION(r27173): Web Inspector freezes beneath Image::drawPattern()
1427 Test: fast/backgrounds/size/zero.html
1429 * platform/graphics/cg/ImageCG.cpp:
1430 (WebCore::Image::drawPattern): Added an ASSERT and an early return
1431 to guard against singular pattern transforms.
1432 * rendering/RenderBox.cpp:
1433 (WebCore::cacluateBackgroundSize): Changed to ensure a minimum tile
1436 2007-10-29 Alp Toker <alp@atoker.com>
1440 Add GTK+ convenience conversions for various primitives
1443 * platform/graphics/Color.h:
1444 * platform/graphics/IntPoint.h:
1445 * platform/graphics/IntRect.h:
1446 * platform/graphics/gtk/ColorGtk.cpp: Added.
1447 (WebCore::Color::Color):
1448 * platform/graphics/gtk/IntPointGtk.cpp: Added.
1449 (WebCore::IntPoint::IntPoint):
1450 (WebCore::IntPoint::operator GdkPoint):
1451 * platform/graphics/gtk/IntRectGtk.cpp: Added.
1452 (WebCore::IntRect::IntRect):
1453 (WebCore::IntRect::operator GdkRectangle):
1455 2007-10-29 Jon Honeycutt <jhoneycutt@apple.com>
1459 Speculative fix for <rdar://5538489> Safari 3.0.4 seed hangs at
1460 http://tgmonline.futuregamer.it/ (works fine on Safari 2.0.4 and Safari
1463 I cannot reproduce this hang, but it is likely due to our not limiting
1464 WM_USER+1 messages or InvalidateRect calls for a plugin with initially-
1465 unknown MIME type. The embed tag on the page is missing a type
1466 attribute, so as fallback, we choose to load the Flash plugin based on
1467 the file extension of "swf." However, we do not record this determined
1468 MIME type, and so our quirks cannot be established.
1470 Changed findPlugin() so that, if it fails to find a plugin for the
1471 given MIME type, it will lookup the MIME type for the file extension -
1472 overwriting its passed MIME type parameter - and search for a plugin
1475 * plugins/win/PluginDatabaseWin.cpp:
1476 (WebCore::PluginDatabaseWin::pluginForMIMEType): Added an early return
1477 if the MIME type is empty
1478 (WebCore::PluginDatabaseWin::MIMETypeForExtension): Added to replace
1479 pluginForExtension. Returns a String with the MIME type for the file
1480 extension. Also, changed to use case-insensitive compares
1481 (WebCore::PluginDatabaseWin::findPlugin): If we fail to find a plugin
1482 for the given extension, overwrite the incoming MIME type parameter
1483 with the MIME type for the file extension, and search for a plugin for
1484 that MIME type. Also, changed the way that the extension is determined
1485 (WebCore::PluginDatabaseWin::createPluginView): Pass a mutable String
1486 to findPlugin() so that it can be updated if necessary
1487 * plugins/win/PluginDatabaseWin.h: Changed findPlugin() to take a non-
1488 const String, removed definition of pluginForExtension, added
1489 definition for MIMETypeForExtension
1490 * plugins/win/PluginPackageWin.cpp:
1491 (WebCore::PluginPackageWin::fetchInfo): Store the MIME type in
1492 lowercase for easier compares
1494 2007-10-29 Andrew Wellington <proton@wiretapped.net>
1496 Not reviewed - build fix
1500 WebKit/WebCore/xml/XSLTProcessor.cpp:79: warning: 'level' may be used uninitialized
1503 * xml/XSLTProcessor.cpp:
1504 (WebCore::XSLTProcessor::parseErrorFunc):
1506 2007-10-29 Alp Toker <alp@atoker.com>
1508 Reviewed by Adam Roben.
1510 http://bugs.webkit.org/show_bug.cgi?id=15725
1511 [GTK] WebCore.pro header dependencies are incorrect
1513 Fix header dependencies in the build system
1515 INCLUDEPATH and DEPENDPATH are now up to date.
1519 2007-10-29 Beth Dakin <bdakin@apple.com>
1523 * css/CSSParser.cpp:
1524 (WebCore::CSSParser::parseTimingFunctionValue):
1525 * css/CSSStyleSelector.cpp:
1526 (WebCore::CSSStyleSelector::mapTransitionTimingFunction):
1528 2007-10-29 David Hyatt <hyatt@apple.com>
1530 Land the back end for CSS animated property transitions. I am landing this in stages, so the AnimationController
1531 class is deliberately left empty.
1533 Reviewed by darin/aroben
1536 * WebCore.vcproj/WebCore.vcproj:
1537 * WebCore.xcodeproj/project.pbxproj:
1538 * css/CSSComputedStyleDeclaration.cpp:
1539 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
1540 * css/CSSPropertyNames.in:
1541 * css/CSSTimingFunctionValue.cpp: Added.
1542 (WebCore::CSSTimingFunctionValue::cssText):
1543 * css/CSSTimingFunctionValue.h: Added.
1544 (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
1545 (WebCore::CSSTimingFunctionValue::firstPoint):
1546 (WebCore::CSSTimingFunctionValue::secondPoint):
1547 * css/CSSValueKeywords.in:
1548 * history/CachedPage.cpp:
1549 (WebCore::CachedPage::restore):
1550 * page/AnimationController.cpp: Added.
1551 (WebCore::AnimationController::AnimationController):
1552 (WebCore::AnimationController::~AnimationController):
1553 (WebCore::AnimationController::cancelTransitions):
1554 (WebCore::AnimationController::updateTransitions):
1555 (WebCore::AnimationController::suspendAnimations):
1556 (WebCore::AnimationController::resumeAnimations):
1557 * page/AnimationController.h: Added.
1559 (WebCore::Frame::animationController):
1560 (WebCore::Frame::clearTimers):
1562 * page/FramePrivate.h:
1563 * rendering/RenderBox.cpp:
1564 (WebCore::RenderBox::setStyle):
1565 (WebCore::RenderBox::destroy):
1566 * rendering/RenderObject.cpp:
1567 (WebCore::RenderObject::animationController):
1568 * rendering/RenderObject.h:
1569 * rendering/RenderStyle.cpp:
1570 (WebCore::Transition::Transition):
1571 (WebCore::Transition::~Transition):
1572 (WebCore::Transition::operator=):
1573 (WebCore::Transition::operator==):
1574 (WebCore::Transition::fillUnsetProperties):
1575 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
1576 (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
1577 (WebCore::StyleRareNonInheritedData::operator==):
1578 (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
1579 (WebCore::RenderStyle::diff):
1580 (WebCore::RenderStyle::adjustTransitions):
1581 (WebCore::RenderStyle::accessTransitions):
1582 * rendering/RenderStyle.h:
1583 (WebCore::BackgroundLayer::next):
1585 (WebCore::TimingFunction::TimingFunction):
1586 (WebCore::TimingFunction::operator==):
1587 (WebCore::Transition::next):
1588 (WebCore::Transition::isTransitionDurationSet):
1589 (WebCore::Transition::isTransitionRepeatCountSet):
1590 (WebCore::Transition::isTransitionTimingFunctionSet):
1591 (WebCore::Transition::isTransitionPropertySet):
1592 (WebCore::Transition::isEmpty):
1593 (WebCore::Transition::clearTransitionDuration):
1594 (WebCore::Transition::clearTransitionRepeatCount):
1595 (WebCore::Transition::clearTransitionTimingFunction):
1596 (WebCore::Transition::clearTransitionProperty):
1597 (WebCore::Transition::transitionDuration):
1598 (WebCore::Transition::transitionRepeatCount):
1599 (WebCore::Transition::transitionTimingFunction):
1600 (WebCore::Transition::transitionProperty):
1601 (WebCore::Transition::setTransitionDuration):
1602 (WebCore::Transition::setTransitionRepeatCount):
1603 (WebCore::Transition::setTransitionTimingFunction):
1604 (WebCore::Transition::setTransitionProperty):
1605 (WebCore::Transition::setNext):
1606 (WebCore::Transition::operator!=):
1607 (WebCore::RenderStyle::transitions):
1608 (WebCore::RenderStyle::clearTransitions):
1609 (WebCore::RenderStyle::inheritTransitions):
1610 (WebCore::RenderStyle::initialTransitionDuration):
1611 (WebCore::RenderStyle::initialTransitionRepeatCount):
1612 (WebCore::RenderStyle::initialTransitionTimingFunction):
1613 (WebCore::RenderStyle::initialTransitionProperty):
1614 * rendering/RenderWidget.cpp:
1615 (WebCore::RenderWidget::destroy):
1617 2007-10-29 Alexey Proskuryakov <ap@webkit.org>
1621 http://bugs.webkit.org/show_bug.cgi?id=6040
1622 XSLT does not report errors to the user
1624 Made parseErrorFunc a static member function of XSLTProcessor to be reusable from XSLStylesheet.
1625 Switched to xmlSetStructuredErrorFunc to get an error structure instead of pre-formatted console
1626 output. Got rid of DeprecatedString in XSLTProcessor.
1629 (WebCore::Document::applyXSLTransform):
1630 * xml/XSLStyleSheet.cpp:
1631 (WebCore::XSLStyleSheet::parseString):
1632 * xml/XSLTProcessor.cpp:
1633 (WebCore::XSLTProcessor::parseErrorFunc):
1634 (WebCore::docLoaderFunc):
1635 (WebCore::setXSLTLoadCallBack):
1636 (WebCore::writeToString):
1637 (WebCore::saveResultToString):
1638 (WebCore::transformTextStringToXHTMLDocumentString):
1639 (WebCore::xsltParamArrayFromParameterMap):
1640 (WebCore::freeXsltParamArray):
1641 (WebCore::XSLTProcessor::createDocumentFromSource):
1642 (WebCore::createFragmentFromSource):
1643 (WebCore::xsltStylesheetPointer):
1644 (WebCore::xmlDocPtrFromNode):
1645 (WebCore::resultMIMEType):
1646 (WebCore::XSLTProcessor::transformToString):
1647 (WebCore::XSLTProcessor::transformToDocument):
1648 (WebCore::XSLTProcessor::transformToFragment):
1649 * xml/XSLTProcessor.h:
1650 (WebCore::XSLTProcessor::setXSLStylesheet):
1651 (WebCore::XSLTProcessor::importStylesheet):
1652 (WebCore::XSLTProcessor::xslStylesheet):
1654 2007-10-29 Dan Bernstein <mitz@apple.com>
1656 Reviewed by John Sullivan.
1658 - fix <rdar://problem/5424455> REGRESSION (r21168-r21193, Tiger only): Safari scrollbar is clipped at top when loading particular RSS page
1660 Test: fast/repaint/layout-state-only-positioned.html
1662 * rendering/RenderBlock.cpp:
1663 (WebCore::RenderBlock::layoutOnlyPositionedObjects): Pop layout state
1664 before updating scroll info, which possibly repaints us.
1666 2007-10-29 David Kilzer <ddkilzer@webkit.org>
1668 REGRESSION (r17701): Favicons should be viewable as image documents
1669 <http://bugs.webkit.org/show_bug.cgi?id=15640>
1673 On Tiger and Leopard, the image/x-icon MIME type is not returned from
1674 CGImageSourceCopyTypeIdentifiers(), so opening a URL to a favicon caused
1675 the icon to be downloaded instead being displayed in an image document.
1677 Test: fast/images/favicon-as-image.html
1679 * platform/MIMETypeRegistry.cpp:
1680 (WebCore::initialiseSupportedImageMIMETypes): Manually add image/x-icon to
1681 supportedImageMIMETypes and supportedImageResourceMIMETypes. Also fixed
1682 comment about the image/bmp MIME type since it applies to both Tiger and
1685 2007-10-29 Maciej Stachowiak <mjs@apple.com>
1689 - fixed assertion failures detected by the new assertions
1691 * bindings/objc/DOMRGBColor.mm:
1692 (-[DOMRGBColor dealloc]): Clear _internal before calling [super dealloc]
1693 because it's not a pointer and shouldn't be in the normal wrapper cache.
1695 (WebCore::Document::addImageMap): Don't access hashmap if name is null.
1696 (WebCore::Document::removeImageMap): ditto
1697 * dom/StyledElement.cpp:
1698 (WebCore::StyledElement::parseMappedAttribute): Don't claim we have a class
1699 when the class attribute is empty.
1700 * platform/TextCodecICU.cpp:
1701 (WebCore::gbkCallbackEscape): Don't look up 0 code points.
1703 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
1707 http://bugs.webkit.org/show_bug.cgi?id=10734
1708 Made HTMLOptionElement.index read-only, matching IE and DOM standard.
1710 Test: fast/dom/HTMLOptionElement/set-option-index-text.html
1712 * html/HTMLOptionElement.idl: Marked index as readonly.
1714 * html/HTMLOptionElement.cpp:
1715 * html/HTMLOptionElement.h:
1718 2007-10-28 Eric Seidel <eric@webkit.org>
1722 Fix leaks on TOT and prevent Path code from logging to console so frequently
1724 * platform/graphics/svg/SVGResourceFilter.h:
1725 (WebCore::SVGResourceFilterPlatformData::SVGResourceFilterPlatformData):
1726 (WebCore::SVGResourceFilterPlatformData::~SVGResourceFilterPlatformData):
1727 * platform/graphics/svg/cg/CgSupport.cpp:
1728 (WebCore::strokeBoundingBox):
1729 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1730 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1732 2007-10-28 Mark Rowe <mrowe@apple.com>
1736 Replace uses of isNaN and isInf with isnan and isinf.
1738 * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
1739 (WebCore::JSHTMLOptionsCollection::setLength):
1741 2007-10-28 Maciej Stachowiak <mjs@apple.com>
1745 - fixed REGRESSION(r27176): Reproducible crash while trying to order dinner makes bdash sad
1746 http://bugs.webkit.org/show_bug.cgi?id=15731
1748 * bindings/js/kjs_window.cpp:
1749 (KJS::Window::installTimeout): Avoid putting in or accessing empty or deleted keys.
1750 (KJS::Window::clearTimeout): ditto
1751 * manual-tests/bad-clearTimeout-crash.html: Added. Automated test not possible.
1753 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
1755 wx port defines for graphics and network layers.
1757 Reviewed by Darin Adler.
1759 * platform/graphics/AffineTransform.h:
1760 * platform/graphics/BitmapImage.h:
1761 * platform/graphics/Color.h:
1762 * platform/graphics/FloatRect.h:
1763 * platform/graphics/GraphicsContext.h:
1764 * platform/graphics/ImageSource.h:
1765 * platform/graphics/IntPoint.h:
1766 * platform/graphics/IntRect.h:
1767 * platform/graphics/Path.h:
1768 * platform/graphics/Pen.h:
1769 * platform/network/ResourceHandle.h:
1772 2007-10-28 Alp Toker <alp@atoker.com>
1774 Reviewed by Anders Carlsson.
1776 http://bugs.webkit.org/show_bug.cgi?id=14124
1777 [CURL] Support data URLs
1779 Add data URL support (both Base64 and percent-encoded formats).
1781 Inspired by code from the Qt port.
1783 * platform/Base64.cpp:
1784 (WebCore::base64Decode):
1785 * platform/Base64.h:
1786 * platform/network/curl/ResourceHandleManager.cpp:
1787 (WebCore::ResourceHandleManager::startScheduledJobs):
1788 (WebCore::parseDataUrl):
1790 2007-10-28 Alp Toker <alp@atoker.com>
1792 Reviewed by Adam Roben.
1794 http://bugs.webkit.org/show_bug.cgi?id=15701
1795 The curl http backend does not deal properly with redirects
1797 Implement http redirect support.
1799 * platform/network/curl/ResourceHandleManager.cpp:
1800 (WebCore::headerCallback):
1802 2007-10-28 Kevin Ollivier <kevino@theolliviers.com>
1804 Define types and accessors needed for wx implementation
1805 of platform classes. Also, turn off DisallowCTypes.h because
1806 disallowed methods appear in wx headers.
1808 Reviewed by Adam Roben.
1811 * platform/ContextMenuItem.h:
1812 * platform/Cursor.h:
1813 * platform/DeprecatedString.h:
1814 * platform/DragData.h:
1815 * platform/DragImage.h:
1816 * platform/FontData.h:
1817 (WebCore::FontData::getWxFont):
1818 * platform/GlyphBuffer.h:
1819 (WebCore::GlyphBuffer::glyphAt):
1820 (WebCore::GlyphBuffer::advanceAt):
1821 (WebCore::GlyphBuffer::add):
1822 * platform/PlatformKeyboardEvent.h:
1823 (WebCore::PlatformKeyboardEvent::isWxCharEvent):
1824 * platform/PlatformMenuDescription.h:
1825 * platform/PlatformMouseEvent.h:
1826 * platform/PlatformString.h:
1827 * platform/PlatformWheelEvent.h:
1828 * platform/ScrollView.h:
1829 * platform/Widget.h:
1830 * platform/image-decoders/bmp/BMPImageDecoder.cpp:
1831 * platform/image-decoders/gif/GIFImageDecoder.cpp:
1832 * platform/image-decoders/gif/GIFImageReader.cpp:
1833 * platform/image-decoders/ico/ICOImageDecoder.cpp:
1834 * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
1835 * platform/image-decoders/png/PNGImageDecoder.cpp:
1836 * platform/image-decoders/xbm/XBMImageDecoder.cpp:
1838 2007-10-28 Mark Rowe <mrowe@apple.com>
1840 We don't include "config.h" in headers.
1842 * dom/XMLTokenizer.h:
1843 * platform/graphics/svg/SVGResourceFilter.h:
1844 * platform/image-decoders/ImageDecoder.h:
1845 * platform/wx/FontPlatformData.h:
1847 2007-10-28 Darin Adler <darin@apple.com>
1849 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1850 We don't include "config.h" in headers. Hope this desn't break
1851 the non-SVG build again.
1853 2007-10-28 Eric Seidel <eric@webkit.org>
1855 Build fix for non-SVG build, no review.
1857 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h:
1858 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm:
1860 2007-10-28 Eric Seidel <eric@webkit.org>
1864 Push SVGResourceFilter platform specific data down into m_platformData
1865 in preparation for implementing a non-mac filter solution.
1867 Also update a very old email address in copyright headers
1869 * WebCore.xcodeproj/project.pbxproj:
1870 * platform/graphics/FloatPoint3D.cpp:
1871 (WebCore::FloatPoint3D::FloatPoint3D):
1872 * platform/graphics/FloatPoint3D.h:
1873 * platform/graphics/svg/SVGResourceFilter.cpp:
1874 (WebCore::SVGResourceFilter::SVGResourceFilter):
1875 * platform/graphics/svg/SVGResourceFilter.h:
1876 (WebCore::SVGResourceFilter::platformData):
1877 (WebCore::SVGResourceFilter::effects):
1878 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
1879 (WebCore::SVGResourceFilter::createPlatformData):l
1880 (WebCore::SVGResourceFilter::prepareFilter):
1881 (WebCore::SVGResourceFilter::applyFilter):
1882 * platform/graphics/svg/filters/SVGDistantLightSource.h:
1883 * platform/graphics/svg/filters/SVGFEBlend.cpp:
1884 * platform/graphics/svg/filters/SVGFEBlend.h:
1885 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp:
1886 * platform/graphics/svg/filters/SVGFEColorMatrix.h:
1887 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp:
1888 * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
1889 * platform/graphics/svg/filters/SVGFEComposite.cpp:
1890 * platform/graphics/svg/filters/SVGFEComposite.h:
1891 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp:
1892 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
1893 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp:
1894 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
1895 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp:
1896 * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
1897 * platform/graphics/svg/filters/SVGFEFlood.cpp:
1898 * platform/graphics/svg/filters/SVGFEFlood.h:
1899 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp:
1900 * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
1901 * platform/graphics/svg/filters/SVGFEImage.cpp:
1902 * platform/graphics/svg/filters/SVGFEImage.h:
1903 * platform/graphics/svg/filters/SVGFEMerge.cpp:
1904 * platform/graphics/svg/filters/SVGFEMerge.h:
1905 * platform/graphics/svg/filters/SVGFEMorphology.cpp:
1906 * platform/graphics/svg/filters/SVGFEMorphology.h:
1907 * platform/graphics/svg/filters/SVGFEOffset.cpp:
1908 * platform/graphics/svg/filters/SVGFEOffset.h:
1909 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp:
1910 * platform/graphics/svg/filters/SVGFESpecularLighting.h:
1911 * platform/graphics/svg/filters/SVGFETile.h:
1912 * platform/graphics/svg/filters/SVGFETurbulence.cpp:
1913 * platform/graphics/svg/filters/SVGFETurbulence.h:
1914 * platform/graphics/svg/filters/SVGFilterEffect.cpp:
1915 * platform/graphics/svg/filters/SVGFilterEffect.h:
1916 * platform/graphics/svg/filters/SVGLightSource.cpp:
1917 * platform/graphics/svg/filters/SVGLightSource.h:
1918 * platform/graphics/svg/filters/SVGPointLightSource.h:
1919 * platform/graphics/svg/filters/SVGSpotLightSource.h:
1920 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm:
1921 (WebCore::SVGFEBlend::getCIFilter):
1922 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm:
1923 (WebCore::SVGFEColorMatrix::getCIFilter):
1924 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm:
1925 (WebCore::SVGFEComponentTransfer::getCIFilter):
1926 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm:
1927 (WebCore::SVGFEComposite::getCIFilter):
1928 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm:
1929 (WebCore::SVGFEDiffuseLighting::getCIFilter):
1930 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm:
1931 (WebCore::SVGFEDisplacementMap::getCIFilter):
1932 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm:
1933 (WebCore::SVGFEFlood::getCIFilter):
1934 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
1935 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm:
1936 (WebCore::SVGFEImage::getCIFilter):
1937 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm:
1938 (WebCore::SVGFEMerge::getCIFilter):
1939 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm:
1940 (WebCore::SVGFESpecularLighting::getCIFilter):
1941 * platform/graphics/svg/mac: Added.
1942 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.h: Added.
1943 * platform/graphics/svg/mac/SVGResourceFilterPlatformDataMac.mm: Added.
1944 (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):
1945 (WebCore::SVGResourceFilterPlatformDataMac::~SVGResourceFilterPlatformDataMac):
1946 (WebCore::SVGResourceFilterPlatformDataMac::getCIFilterStack):
1947 (WebCore::alphaImageForImage):
1948 (WebCore::SVGResourceFilterPlatformDataMac::imageForName):
1949 (WebCore::SVGResourceFilterPlatformDataMac::setImageForName):
1950 (WebCore::SVGResourceFilterPlatformDataMac::setOutputImage):
1951 (WebCore::SVGResourceFilterPlatformDataMac::inputImage):
1953 2007-10-28 Alexey Proskuryakov <ap@webkit.org>
1955 Reviewed by Adam Roben.
1957 http://bugs.webkit.org/show_bug.cgi?id=15217
1958 Plugin complains that xpcom_core.dll missing
1960 * plugins/win/PluginDatabaseWin.cpp:
1961 (WebCore::PluginDatabaseWin::isPluginBlacklisted): Blacklist npmozax.dll.
1963 2007-10-28 Timothy Hatcher <timothy@apple.com>
1967 Pass the Document's domain to InspectorController:didOpenDatabase. This matches
1968 what the Inspector shows for other resources.
1970 * storage/Database.cpp:
1971 (WebCore::Database::openDatabase):
1973 * dom/Document.h: Remove KURL.h, no longer needed.
1975 2007-10-28 Timothy Hatcher <timothy@apple.com>
1979 Bug 15728: Selected Resource background image gradient has banding
1980 http://bugs.webkit.org/show_bug.cgi?id=15728
1982 - Reduced images to 1px wide that are tiled horizontally in CSS.
1983 - Corrected the -webkit-background-size usage to specify auto for the width.
1985 * page/inspector/Images/attachedShadow.png:
1986 * page/inspector/Images/bottomShadow.png:
1987 * page/inspector/Images/darkShadow.png:
1988 * page/inspector/Images/gradient.png:
1989 * page/inspector/Images/gradientHighlight.png:
1990 * page/inspector/Images/gradientHighlightBottom.png:
1991 * page/inspector/Images/sidebarSelection.png:
1992 * page/inspector/Images/sidebarSelectionBlurred.png:
1993 * page/inspector/Images/sidebarSelectionBlurredTall.png:
1994 * page/inspector/Images/sidebarSelectionGray.png:
1995 * page/inspector/Images/sidebarSelectionGrayTall.png:
1996 * page/inspector/Images/sidebarSelectionTall.png:
1997 * page/inspector/inspector.css:
1999 2007-10-27 Timothy Hatcher <timothy@apple.com>
2003 Bug 15727: Resizing the resource sidebar doesn't scale the font preview or network timeline
2004 http://bugs.webkit.org/show_bug.cgi?id=15727
2006 Add one window resize listener and call the new resize function on the currentPanel.
2007 Also call the currentPanel's resize function when resizing the sidebar.
2009 * page/inspector/DocumentPanel.js: Implement resize and call updateTreeSelection() when
2010 the panel is shown and when resizing the DOM sidebar.
2011 * page/inspector/FontPanel.js: Implement resize.
2012 * page/inspector/NetworkPanel.js: Ditto.
2013 * page/inspector/inspector.js: Add a window resize listener.
2015 2007-10-27 Maciej Stachowiak <mjs@apple.com>
2019 - update for HashTable changes
2021 * bindings/js/JSSVGPODTypeWrapper.h:
2023 * dom/QualifiedName.cpp:
2024 * dom/StyledElement.cpp:
2025 * ksvg2/svg/SVGAnimatedTemplate.h:
2026 * platform/FontCache.cpp:
2027 * platform/StringHash.h:
2029 * platform/TextEncodingRegistry.cpp:
2030 * platform/graphics/IntSizeHash.h:
2032 * plugins/win/PluginPackageWin.h:
2034 2007-10-28 Alp Toker <alp@atoker.com>
2036 Reviewed by Adam Roben.
2038 http://bugs.webkit.org/show_bug.cgi?id=15646
2039 [GTK] caretBlinkFrequency is hard-coded in Frame.cpp
2041 Abstract caretBlinkFrequency to RenderTheme.
2044 (WebCore::Frame::selectionLayoutChanged):
2045 * platform/gtk/RenderThemeGtk.cpp:
2046 (WebCore::RenderThemeGtk::caretShouldBlink):
2047 (WebCore::RenderThemeGtk::caretBlinkFrequency):
2048 * platform/gtk/RenderThemeGtk.h:
2049 * rendering/RenderTheme.h:
2051 2007-10-27 Timothy Hatcher <timothy@apple.com>
2055 Don't print the line number in the Inspector Console if it is Zero.
2057 * page/inspector/ConsolePanel.js:
2059 2007-10-27 Sam Weinig <sam@webkit.org>
2061 Reviewed by Adam Roben.
2063 Fix http://bugs.webkit.org/show_bug.cgi?id=14953
2064 Implement window.console in WebCore
2066 - Adds a window.console object that has 4 methods (log, info, warn, and error)
2067 that send messages to the Chrome. This moves functionality that was in the
2068 app down into WebCore.
2070 * DerivedSources.make:
2072 * WebCore.vcproj/WebCore.vcproj:
2073 * WebCore.xcodeproj/project.pbxproj:
2074 * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
2075 to mark attributes as [Replacable] which indicates they can
2076 overridden when set.
2078 (WebCore::Chrome::addMessageToConsole): Allow all messages to go
2079 up to the ChromeClient.
2080 * page/Console.cpp: Added.
2081 (WebCore::Console::Console):
2082 (WebCore::Console::disconnectFrame):
2083 (WebCore::Console::error):
2084 (WebCore::Console::info):
2085 (WebCore::Console::log):
2086 (WebCore::Console::warn):
2087 * page/Console.h: Added.
2088 * page/Console.idl: Added.
2089 * page/DOMWindow.cpp:
2090 (WebCore::DOMWindow::clear):
2091 (WebCore::DOMWindow::console):
2093 * page/DOMWindow.idl:
2095 2007-10-27 Eric Seidel <eric@webkit.org>
2099 Remove legacy createFilterEffect function (causing extra filter tests to fail on windows)
2101 No functional changes, thus no tests.
2103 * ksvg2/svg/SVGFEBlendElement.cpp:
2104 (WebCore::SVGFEBlendElement::filterEffect):
2105 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2106 (WebCore::SVGFEColorMatrixElement::filterEffect):
2107 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
2108 (WebCore::SVGFEComponentTransferElement::filterEffect):
2109 * ksvg2/svg/SVGFECompositeElement.cpp:
2110 (WebCore::SVGFECompositeElement::filterEffect):
2111 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2112 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
2113 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2114 (WebCore::SVGFEDisplacementMapElement::filterEffect):
2115 * ksvg2/svg/SVGFEFloodElement.cpp:
2116 (WebCore::SVGFEFloodElement::filterEffect):
2117 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
2118 (WebCore::SVGFEGaussianBlurElement::filterEffect):
2119 * ksvg2/svg/SVGFEImageElement.cpp:
2120 (WebCore::SVGFEImageElement::filterEffect):
2121 * ksvg2/svg/SVGFEMergeElement.cpp:
2122 (WebCore::SVGFEMergeElement::filterEffect):
2123 * ksvg2/svg/SVGFEOffsetElement.cpp:
2124 (WebCore::SVGFEOffsetElement::filterEffect):
2125 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2126 (WebCore::SVGFESpecularLightingElement::filterEffect):
2127 * ksvg2/svg/SVGFETileElement.cpp:
2128 (WebCore::SVGFETileElement::filterEffect):
2129 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2130 (WebCore::SVGFETurbulenceElement::filterEffect):
2131 * platform/graphics/svg/SVGResourceFilter.h:
2132 * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
2133 * platform/graphics/svg/cg/SVGResourceFilterCg.mm:
2134 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp:
2136 2007-10-27 Dan Bernstein <mitz@apple.com>
2138 Reviewed by Darin Adler.
2140 - fix a crash when opening Zenoss server history view
2141 <rdar://problem/5530657>
2143 Test: fast/table/colgroup-relative.html
2145 * rendering/LayoutState.cpp:
2146 (WebCore::LayoutState::LayoutState): Added a hasLayer() check before
2149 2007-10-27 Julien <julien.chaffraix@gmail.com>
2153 http://bugs.webkit.org/show_bug.cgi?id=13141
2154 XMLHttpRequest should set readyState to 0 after abort()
2156 Test: http/tests/xmlhttprequest/xmlhttprequest-abort-readyState.html
2158 * xml/XMLHttpRequest.cpp:
2159 (WebCore::XMLHttpRequest::open):
2160 (WebCore::XMLHttpRequest::abort):
2162 2007-10-27 Dan Bernstein <mitz@apple.com>
2164 Reviewed by Dave Hyatt.
2166 - fix rotated border images by using a temporary subimage containing
2167 only the part we want to tile
2169 Test: fast/borders/border-image-rotate-transform.html
2171 * platform/graphics/cg/ImageCG.cpp:
2172 (WebCore::Image::drawPatternCallback):
2173 (WebCore::Image::drawPattern):
2175 2007-10-27 Jan Michael Alonzo <jmalonzo@unpluggable.com>
2179 http://bugs.webkit.org/show_bug.cgi?id=15722
2180 [GTK] Refactor gtk/RenderThemeGtk and implement a few more methods
2182 Refactor/enhance GTK RenderTheme
2184 * platform/gtk/RenderThemeGtk.cpp:
2185 (WebCore::RenderThemeGtk::supportsFocus): added TextArea, Menulist, Radio, and Checkbox Appearances
2186 (WebCore::RenderThemeGtk::supportsFocusRing): call supportsFocus() to check if focus on appearance is supported
2187 (WebCore::RenderThemeGtk::controlSupportsTints): copied from Qt and Safari ports
2188 (WebCore::RenderThemeGtk::baselinePosition): copied from Qt and Safari ports
2189 (WebCore::RenderThemeGtk::paintCheckbox): moved painting in paintButton
2190 (WebCore::RenderThemeGtk::paintRadio): moved painting in paintButton
2191 (WebCore::RenderThemeGtk::paintButton): paint the different buttons here, checking for the right appearance before doing so
2192 (WebCore::RenderThemeGtk::paintMenuList): use 0 instead of NULLs
2193 (WebCore::RenderThemeGtk::adjustTextFieldStyle):
2194 (WebCore::RenderThemeGtk::getThemeData):
2195 * platform/gtk/RenderThemeGtk.h:
2196 (WebCore::RenderThemeGtk::supportsControlTints):
2198 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
2202 http://bugs.webkit.org/show_bug.cgi?id=15555
2203 XMLHttpRequest does not support charset "x-user-defined", which can
2204 facilitate loading of binary data
2206 Test: http/tests/xmlhttprequest/binary-x-user-defined.html
2209 * WebCore.vcproj/WebCore.vcproj:
2210 * WebCore.xcodeproj/project.pbxproj:
2211 * platform/TextCodecUserDefined.cpp: Added.
2212 (WebCore::TextCodecUserDefined::registerEncodingNames):
2213 (WebCore::newStreamingTextDecoderUserDefined):
2214 (WebCore::TextCodecUserDefined::registerCodecs):
2215 (WebCore::TextCodecUserDefined::decode):
2216 (WebCore::encodeComplexUserDefined):
2217 (WebCore::TextCodecUserDefined::encode):
2218 * platform/TextCodecUserDefined.h: Added.
2219 * platform/TextEncodingRegistry.cpp:
2220 (WebCore::buildBaseTextCodecMaps):
2222 2007-10-27 Alexey Proskuryakov <ap@webkit.org>
2226 http://bugs.webkit.org/show_bug.cgi?id=15467
2227 Setting innerHTML to blank string in application/xhtml+xml mode
2228 throws DOM Exception 7
2230 Test: fast/dom/blank-innerHTML.xhtml
2232 * dom/XMLTokenizer.cpp:
2233 (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
2235 2007-10-26 Sam Weinig <sam@webkit.org>
2237 Enable dragging the left sidebar using the separator.
2239 Reviewed by Anders (unless Mitz says otherwise).
2241 * page/inspector/DocumentPanel.js:
2242 * page/inspector/inspector.css:
2243 * page/inspector/inspector.html:
2244 * page/inspector/inspector.js:
2246 2007-10-26 Sam Weinig <sam@webkit.org>
2248 Fix an off by one error when resizing the Inspector find window.
2252 * page/inspector/inspector.js:
2254 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
2258 Fix fallout from r26072, which leads to all plugin streams for local
2259 resources being cancelled
2261 * loader/win/NetscapePlugInStreamLoaderWin.cpp:
2262 (WebCore::NetscapePlugInStreamLoader::didReceiveResponse): Ensure this
2263 is an HTTP response before checking the HTTP response code
2265 2007-10-26 David Hyatt <hyatt@apple.com>
2267 Fix for http://bugs.webkit.org/show_bug.cgi?id=15719, transformed box doesn't repaint properly
2268 when only translation changes.
2270 Move the updating of the transform to in between the old repaint and the new repaint.
2274 fast/repaint/transform-translate.html
2276 * rendering/RenderLayer.cpp:
2277 (WebCore::RenderLayer::updateLayerPositions):
2279 2007-10-26 Jon Honeycutt <jhoneycutt@apple.com>
2283 <rdar://5557379> Crash in Silverlight when opening microsoft.com
2285 The crash is within Silverlight, and the latest version of the plugin
2286 does not exhibit this crash, so just avoid loading this version of the
2289 * plugins/win/PluginDatabaseWin.cpp: Added isPluginBlacklisted() and
2290 constants silverlightPluginMinRequiredVersionMSDWORD and
2291 silverlightPluginMinRequiredVersionLSDWORD. Their values are taken from
2292 the version info of Silverlight 1.0.20926.0, which is a version known
2293 not to exhibit this crash
2294 (WebCore::PluginDatabaseWin::isPluginBlacklisted): Determine whether
2295 this plugin is blacklisted
2296 * plugins/win/PluginDatabaseWin.h:
2297 * plugins/win/PluginPackageWin.cpp:
2298 (WebCore::PluginPackageWin::PluginPackageWin): Initialize m_fileVersion*
2299 (WebCore::PluginPackageWin::getFileVersion):
2300 (WebCore::PluginPackageWin::storeFileVersion): Read version info for
2301 the plugin, and store the file version
2302 (WebCore::PluginPackageWin::fetchInfo): After determining the name,
2303 description, and file version, determine whether this plug-in is
2304 blacklisted. If so, return false so this plug-in isn't loaded
2305 * plugins/win/PluginPackageWin.h:
2307 2007-10-26 Sam Weinig <sam@webkit.org>
2309 Reviewed by Adele Peterson.
2311 Fix for <rdar://problem/5421754>
2312 m_frameName member variable in HTMLPlugInElement unnecessary
2314 - Refactor the willRemove() method down into HTMLFrameOwnerElement now that
2315 we no longer need to use the m_frameName variable.
2317 * html/HTMLFrameElementBase.cpp:
2318 * html/HTMLFrameElementBase.h:
2319 * html/HTMLFrameOwnerElement.cpp:
2320 (WebCore::HTMLFrameOwnerElement::willRemove):
2321 * html/HTMLFrameOwnerElement.h:
2322 * html/HTMLPlugInElement.cpp:
2323 * html/HTMLPlugInElement.h:
2324 * loader/FrameLoader.cpp:
2325 (WebCore::FrameLoader::requestObject):
2327 2007-10-26 Adele Peterson <adele@apple.com>
2329 Export _wkDrawCapsLockIndicator.
2333 2007-10-26 Adele Peterson <adele@apple.com>
2337 Adding WebKitSystemInterface support for the caps lock indicator
2339 * platform/mac/WebCoreSystemInterface.h:
2340 * platform/mac/WebCoreSystemInterface.mm:
2342 2007-10-26 Tristan O'Tierney <tristan@apple.com>
2344 Reviewed by Darin Adler.
2346 <rdar://problem/5555053> REGRESSION:9A581: Window disappears when opening http://research.microsoft.com/users/darkok/
2347 The problem was caused by checkin r24654. This change moved explicit bounds checking into adjustWindowRect
2348 but failed to account for bounds checking (instead replaced with bounds clipping). This caused issues
2349 when NaN was used. This patch goes one step further and does NaN checking to prevent the possibility of
2350 setting window bounds to NaN before an update occurs.
2352 Test: fast/dom/Window/window-resize-nan.html
2354 * bindings/js/kjs_window.cpp:
2355 (KJS::adjustWindowRect):
2356 Added a new parameter, pendingChanges, which takes pending changes to the window
2357 rect, and if they are valid (not NaN) sets them on window.
2359 (KJS::WindowFunc::callAsFunction):
2360 Adjusted uses of adjustWindowRect to take new update parameter.
2362 2007-10-26 Sam Weinig <sam@webkit.org>
2364 Reviewed by Tim Hatcher.
2366 Fix for http://bugs.webkit.org/show_bug.cgi?id=15175
2367 Cannot copy text of errors from Web Inspector from Console view
2369 * page/inspector/inspector.css: add -webkit-user-select: text for console messages.
2371 2007-10-26 Sam Weinig <sam@webkit.org>
2373 Reviewed by Tim Hatcher.
2375 Fix for http://bugs.webkit.org/show_bug.cgi?id=15446
2376 Web Inspector find window is not resizable
2378 - Adds ability to resize the find window.
2379 - Fixes bug that messed up the find window when resizing the left sidebar.
2381 * page/inspector/inspector.css:
2382 * page/inspector/inspector.html:
2383 * page/inspector/inspector.js:
2385 2007-10-26 Ada Chan <adachan@apple.com>
2387 Update m_current index after we've removed an item:
2388 - if item removed is before m_current, decrement m_current
2389 - if the current item is removed, make sure m_current is within bounds.
2393 * history/BackForwardList.cpp:
2394 (WebCore::BackForwardList::removeItem):
2396 2007-10-26 Mark Rowe <mrowe@apple.com>
2400 * bindings/js/kjs_proxy.cpp:
2401 (WebCore::KJSProxy::~KJSProxy):
2403 2007-10-26 Maciej Stachowiak <mjs@apple.com>
2405 No review, build fix.
2407 * bindings/objc/WebScriptObject.mm:
2408 (+[WebScriptObject throwException:]):
2409 (-[WebScriptObject setException:]):
2411 2007-10-26 Maciej Stachowiak <mjs@apple.com>
2413 Rubber Stamped by Mark.
2417 * bridge/mac/WebCoreScriptDebugger.mm:
2418 (-[WebCoreScriptCallFrame scopeChain]):
2419 (-[WebCoreScriptCallFrame functionName]):
2420 (-[WebCoreScriptCallFrame evaluateWebScript:]):
2422 2007-10-26 Maciej Stachowiak <mjs@apple.com>
2426 - update for JavaScriptCore header changes
2428 * bindings/objc/WebScriptObject.mm:
2429 * bridge/mac/WebCoreScriptDebugger.mm:
2431 2007-10-26 Alp Toker <alp@atoker.com>
2433 Reviewed by Mark Rowe.
2435 http://bugs.webkit.org/show_bug.cgi?id=15693
2436 [GTK] Paging does not work when widget is added to a GtkScrolledWindow
2438 Eliminate MagicGtkScrollConstant in favour of the same calculations as
2439 GtkTextView for step and page increments. This also makes paging work,
2440 as the page increment was previously always 0.
2442 * platform/gtk/ScrollViewGtk.cpp:
2443 (WebCore::ScrollView::updateScrollbars):
2445 2007-10-25 Dan Bernstein <mitz@apple.com>
2447 Reviewed by Dave Hyatt and Sam Weinig.
2451 * platform/graphics/cg/ImageCG.cpp:
2452 (WebCore::Image::drawPattern):
2454 2007-10-23 Jan Michael Alonzo <jmalonzo@unpluggable.com>
2458 http://bugs.webkit.org/show_bug.cgi?id=15656
2459 [GTK] Implement WebCore::Widget::isEnabled/setEnabled
2461 * platform/gtk/WidgetGtk.cpp:
2462 (WebCore::Widget::isEnabled):
2463 (WebCore::Widget::setEnabled): Implemented.
2465 2007-10-25 David Hyatt <hyatt@apple.com>
2467 Fix for bug 15672, background images don't tile properly inside transforms. This patch fixes background
2468 tiling to work in the presence of transforms and fixes bugs in both SVG and CSS transforms.
2470 Reviewed by aroben and mitz
2473 * platform/graphics/Image.cpp:
2474 (WebCore::Image::setData):
2475 * platform/graphics/cg/ImageCG.cpp:
2476 (WebCore::ImageInfo::ImageInfo):
2477 (WebCore::Image::drawPatternCallback):
2478 (WebCore::Image::drawPattern):
2479 * platform/graphics/mac/GraphicsContextMac.mm:
2480 (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar):
2481 * platform/mac/WebCoreSystemInterface.h:
2482 * platform/mac/WebCoreSystemInterface.mm:
2484 2007-10-25 Brady Eidson <beidson@apple.com>
2486 Blind build fix attempt
2490 2007-10-25 Brady Eidson <beidson@apple.com>
2492 Reviewed by Anders and Sam
2494 Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
2496 This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
2497 tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in
2498 the HTML5 database API which we are adopting.
2500 * WebCore.vcproj/WebCore.vcproj:
2501 * WebCore.xcodeproj/project.pbxproj:
2502 * loader/icon/IconDatabase.cpp:
2503 (WebCore::IconDatabase::iconDatabaseSyncThread):
2504 (WebCore::databaseVersionNumber):
2505 (WebCore::isValidDatabase):
2506 (WebCore::createDatabaseTables):
2507 (WebCore::IconDatabase::performOpenInitialization):
2508 (WebCore::IconDatabase::checkIntegrity):
2509 (WebCore::IconDatabase::performURLImport):
2510 (WebCore::IconDatabase::writeToDatabase):
2511 (WebCore::IconDatabase::pruneUnretainedIcons):
2512 (WebCore::IconDatabase::checkForDanglingPageURLs):
2513 (WebCore::IconDatabase::imported):
2514 (WebCore::IconDatabase::setImported):
2515 (WebCore::readySQLiteStatement):
2516 (WebCore::IconDatabase::setIconIDForPageURLInSQLDatabase):
2517 (WebCore::IconDatabase::removePageURLFromSQLDatabase):
2518 (WebCore::IconDatabase::getIconIDForIconURLFromSQLDatabase):
2519 (WebCore::IconDatabase::addIconURLToSQLDatabase):
2520 (WebCore::IconDatabase::getImageDataForIconURLFromSQLDatabase):
2521 (WebCore::IconDatabase::removeIconFromSQLDatabase):
2522 (WebCore::IconDatabase::writeIconSnapshotToSQLDatabase):
2523 * loader/icon/IconDatabase.h:
2524 * loader/icon/IconRecord.cpp:
2525 * platform/sql/SQLAuthorizer.cpp: Removed.
2526 * platform/sql/SQLAuthorizer.h: Removed.
2527 * platform/sql/SQLDatabase.cpp: Removed.
2528 * platform/sql/SQLDatabase.h: Removed.
2529 * platform/sql/SQLStatement.cpp: Removed.
2530 * platform/sql/SQLStatement.h: Removed.
2531 * platform/sql/SQLTransaction.cpp: Removed.
2532 * platform/sql/SQLTransaction.h: Removed.
2533 * platform/sql/SQLiteAuthorizer.cpp: Copied from platform/sql/SQLAuthorizer.cpp.
2534 * platform/sql/SQLiteAuthorizer.h: Copied from platform/sql/SQLAuthorizer.h.
2535 (WebCore::SQLiteAuthorizer::~SQLiteAuthorizer):
2536 * platform/sql/SQLiteDatabase.cpp: Copied from platform/sql/SQLDatabase.cpp.
2537 (WebCore::SQLiteDatabase::SQLiteDatabase):
2538 (WebCore::SQLiteDatabase::~SQLiteDatabase):
2539 (WebCore::SQLiteDatabase::open):
2540 (WebCore::SQLiteDatabase::close):
2541 (WebCore::SQLiteDatabase::setFullsync):
2542 (WebCore::SQLiteDatabase::setSynchronous):
2543 (WebCore::SQLiteDatabase::setBusyTimeout):
2544 (WebCore::SQLiteDatabase::setBusyHandler):
2545 (WebCore::SQLiteDatabase::executeCommand):
2546 (WebCore::SQLiteDatabase::returnsAtLeastOneResult):
2547 (WebCore::SQLiteDatabase::tableExists):
2548 (WebCore::SQLiteDatabase::clearAllTables):
2549 (WebCore::SQLiteDatabase::runVacuumCommand):
2550 (WebCore::SQLiteDatabase::lastInsertRowID):
2551 (WebCore::SQLiteDatabase::lastChanges):
2552 (WebCore::SQLiteDatabase::lastError):
2553 (WebCore::SQLiteDatabase::lastErrorMsg):
2554 (WebCore::SQLiteDatabase::authorizerFunction):
2555 (WebCore::SQLiteDatabase::setAuthorizer):
2556 (WebCore::SQLiteDatabase::lock):
2557 (WebCore::SQLiteDatabase::unlock):
2558 * platform/sql/SQLiteDatabase.h: Copied from platform/sql/SQLDatabase.h.
2559 * platform/sql/SQLiteStatement.cpp: Copied from platform/sql/SQLStatement.cpp.
2560 (WebCore::SQLiteStatement::SQLiteStatement):
2561 (WebCore::SQLiteStatement::~SQLiteStatement):
2562 (WebCore::SQLiteStatement::prepare):
2563 * platform/sql/SQLiteStatement.h: Copied from platform/sql/SQLStatement.h.
2564 (WebCore::SQLiteStatement::database):
2565 * platform/sql/SQLiteTransaction.cpp: Copied from platform/sql/SQLTransaction.cpp.
2566 (WebCore::SQLiteTransaction::SQLiteTransaction):
2567 (WebCore::SQLiteTransaction::~SQLiteTransaction):
2568 (WebCore::SQLiteTransaction::begin):
2569 (WebCore::SQLiteTransaction::commit):
2570 (WebCore::SQLiteTransaction::rollback):
2571 * platform/sql/SQLiteTransaction.h: Copied from platform/sql/SQLTransaction.h.
2572 * storage/Database.cpp:
2573 (WebCore::retrieveTextResultFromDatabase):
2574 (WebCore::setTextValueInDatabase):
2575 (WebCore::Database::performExecuteSql):
2576 (WebCore::Database::performGetTableNames):
2577 (WebCore::Database::executeSql):
2578 * storage/Database.h:
2579 * storage/DatabaseAuthorizer.h:
2580 * storage/DatabaseTracker.cpp:
2581 (WebCore::DatabaseTracker::fullPathForDatabase):
2582 (WebCore::DatabaseTracker::populateOrigins):
2583 (WebCore::DatabaseTracker::databaseNamesForOrigin):
2584 (WebCore::DatabaseTracker::addDatabase):
2585 * storage/DatabaseTracker.h:
2587 2007-10-25 Alexey Proskuryakov <ap@webkit.org>
2591 http://bugs.webkit.org/show_bug.cgi?id=15650
2592 XML attribute nodes are not importable
2594 Tests: fast/dom/import-attribute-node.html
2595 fast/dom/import-document-fragment.html
2598 (WebCore::Document::importNode): Implemented for Attribute and DocumentFragment nodes.
2600 2007-10-25 Dan Bernstein <mitz@apple.com>
2602 Reviewed by Dave Hyatt.
2604 - fix http://bugs.webkit.org/show_bug.cgi?id=15362
2605 <rdar://problem/5558715> Safari Crashes when opening a JS TreeGrid widget
2607 Test: fast/dynamic/insert-before-table-part-in-continuation.html
2609 * rendering/RenderFlow.cpp:
2610 (WebCore::RenderFlow::addChildWithContinuation): If beforeChild's
2611 parent is an anonymous table part, let the table figure out where to
2612 insert the new child.
2614 2007-10-25 Alp Toker <alp@atoker.com>
2618 http://bugs.webkit.org/show_bug.cgi?id=15686
2619 GtkLauncher aborts on launch due to uninitialized threading subsystem
2621 Re-enable database support in the GTK+ port, with a fix.
2625 2007-10-25 Jon Honeycutt <jhoneycutt@apple.com>
2629 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
2632 Previous patch erroneously compared a path and a
2633 path-including-filename. This corrects that. It also caches the result
2634 of safariPluginsPath() and uses shell API funcs for determining filename
2635 and parent directory from a full path.
2638 * plugins/win/PluginDatabaseWin.cpp:
2639 (WebCore::safariPluginsPath): Cache return value. Use API functions to
2641 (WebCore::PluginDatabaseWin::pluginForMIMEType): Compare again plugin's
2642 parent directory, not full path
2643 (WebCore::PluginDatabaseWin::pluginForExtension): Same
2644 * plugins/win/PluginPackageWin.cpp:
2645 (WebCore::PluginPackageWin::PluginPackageWin): Store parent directory
2646 * plugins/win/PluginPackageWin.h:
2647 (WebCore::PluginPackageWin::parentDirectory):
2648 * plugins/win/PluginStreamWin.cpp:
2649 (WebCore::PluginStreamWin::didReceiveData):
2651 2007-10-25 Alp Toker <alp@atoker.com>
2653 Unreviewed fix to make the GTK+ port run.
2655 http://bugs.webkit.org/show_bug.cgi?id=15686
2656 GtkLauncher aborts on launch due to uninitialized threading subsystem
2658 Disable database support until #15686 is fixed.
2662 2007-10-25 Simon Hausmann <hausmann@kde.org>
2666 Fixed a crash in the Qt 4.4 based text iterators when they're called with a null string.
2668 * platform/qt/TextBreakIteratorQt.cpp:
2669 (WebCore::wordBreakIterator):
2670 (WebCore::characterBreakIterator):
2671 (WebCore::lineBreakIterator):
2672 (WebCore::sentenceBreakIterator):
2674 2007-10-25 Holger Freyther <zecke@selfish.org>
2676 Reviewed by Simon Hausmann <hausmann@kde.org>.
2678 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
2679 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
2680 * This is causing some regressions...
2683 * dom/XMLTokenizer.cpp:
2684 (WebCore::XMLTokenizer::XMLTokenizer):
2685 (WebCore::XMLTokenizer::write):
2686 (WebCore::XMLTokenizer::end):
2687 * dom/XMLTokenizer.h:
2689 2007-10-25 Holger Freyther <zecke@selfish.org>
2691 Reviewed by Simon Hausmann <hausmann@kde.org>.
2693 * 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.
2694 * Use the error message from Qt. It might or might not be translated.
2697 WARNING: NO TEST CASES ADDED OR CHANGED
2699 * platform/network/qt/ResourceHandleQt.cpp:
2700 (WebCore::WebCoreSynchronousLoader::didFail):
2702 2007-10-25 Holger Freyther <zecke@selfish.org>
2704 Reviewed by Simon Hausmann <hausmann@kde.org>.
2706 * 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.
2707 * This should be thread-safe besides QWebNetworkJob::{ref,deref}
2710 * platform/network/qt/ResourceHandleQt.cpp:
2711 (WebCore::ResourceHandle::loadResourceSynchronously):
2713 2007-10-25 Alp Toker <alp@atoker.com>
2715 Reviewed by Mark Rowe.
2717 Add support for list box theme colors and styled menu list buttons.
2719 Remove obsolete FIXMEs.
2721 * platform/gtk/RenderThemeGtk.cpp:
2722 (WebCore::RenderThemeGtk::RenderThemeGtk):
2723 (WebCore::RenderThemeGtk::paintCheckbox):
2724 (WebCore::RenderThemeGtk::paintRadio):
2725 (WebCore::RenderThemeGtk::paintButton):
2726 (WebCore::RenderThemeGtk::adjustMenuListStyle):
2727 (WebCore::RenderThemeGtk::paintMenuList):
2728 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor):
2729 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor):
2730 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor):
2731 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor):
2732 (WebCore::RenderThemeGtk::gtkTreeView):
2733 * platform/gtk/RenderThemeGtk.h:
2735 2007-10-25 Eric Seidel <eric@webkit.org>
2739 * bindings/js/kjs_window.h: fix bogus comment, s/DOMNode/DOMObject/
2741 2007-10-24 Eric Seidel <eric@webkit.org>
2745 Make Window subclass from JSGlobalObject (for a .5% win in Sunspider)
2746 http://bugs.webkit.org/show_bug.cgi?id=15681
2748 No test cases necessary, no functional changes.
2750 * WebCore.xcodeproj/project.pbxproj:
2751 * bindings/js/kjs_binding.cpp:
2752 (KJS::ScriptInterpreter::ScriptInterpreter):
2753 * bindings/js/kjs_binding.h:
2754 * bindings/js/kjs_proxy.cpp:
2755 (WebCore::KJSProxy::initScriptIfNeeded):
2756 * bindings/js/kjs_window.cpp:
2757 (KJS::Window::Window):
2758 * bindings/js/kjs_window.h:
2759 * bindings/objc/WebScriptObject.mm:
2761 * bridge/mac/WebCoreScriptDebugger.mm:
2763 2007-10-24 Adam Roben <aroben@apple.com>
2765 Add font database initialization code to WebCore
2769 * WebCore.vcproj/WebCore.vcproj: Added FontDatabase.{cpp,h}.
2770 * platform/win/FontDatabase.cpp: Added.
2771 (WebCore::systemFontsDirectory):
2772 (WebCore::fontsPlistPath):
2773 (WebCore::systemHasFontsNewerThanFontsPlist):
2774 (WebCore::readFontPlist):
2775 (WebCore::populateFontDatabaseFromPlist):
2776 (WebCore::populateFontDatabaseFromFileSystem):
2777 (WebCore::writeFontDatabaseToPlist):
2778 (WebCore::populateFontDatabase): This is the only function callable
2779 from outside this file. It populates the font database once, either
2780 from the fonts plist, or from the filesystem (and then saves a new
2782 * platform/win/FontDatabase.h: Added.
2784 2007-10-24 Justin Garcia <justin.garcia@apple.com>
2786 Reviewed by Darin Adler.
2788 Correcting the fix for:
2789 <rdar://problem/5544856>
2790 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
2792 Made removal of the previous composition part of the current Undo step in the
2793 case where the new composition is the empty string, too.
2795 * editing/Editor.cpp:
2796 (WebCore::Editor::confirmComposition): Call the new TypingCommand::deleteSelection,
2797 which either has the currently open typing command delete the current selection, or
2798 opens a new typing command (of type DeleteSelection) if one is not already open.
2799 (WebCore::Editor::setComposition): Ditto.
2800 * editing/TypingCommand.cpp:
2801 (WebCore::TypingCommand::deleteSelection): Added.
2802 (WebCore::TypingCommand::doApply): Handle DeleteSelection.
2803 (WebCore::TypingCommand::deleteKeyPressed): Clarified which deleteSelection
2805 (WebCore::TypingCommand::forwardDeleteKeyPressed): Ditto.
2806 (WebCore::TypingCommand::preservesTypingStyle): Handle DeleteSelection.
2807 * editing/TypingCommand.h:
2809 2007-10-24 Sam Weinig <sam@webkit.org>
2813 * WebCore.vcproj/WebCore.vcproj:
2815 2007-10-24 Alice Liu <alice.liu@apple.com>
2819 Fix <rdar://5410959> editing/selection/drag-to-contenteditable-iframe.html fails on Windows
2821 * page/win/EventHandlerWin.cpp:
2822 (WebCore::EventHandler::passMouseMoveEventToSubframe):
2823 Some mouse move events are actually drags, which on mac return early from this function.
2824 Adding the same logic to its Windows equivalent.
2826 2007-10-24 Brady Eidson <beidson@apple.com>
2830 <rdar://5554130> DatabaseTracker.o has a global initializer
2832 Since DatabaseTracker is a singleton, it makes much more sense to keep the database path as a member variable.
2833 Now constructing the shared DatabaseTracker no longer implicitly opens it - It is only opened when the databases
2836 * WebCore.vcproj/WebCore.vcproj: Copy WebCore/storage headers for WebKit build
2838 * storage/Database.cpp:
2839 (WebCore::Database::~Database): Remove bogus assertion
2841 * storage/DatabaseTracker.cpp:
2842 (WebCore::DatabaseTracker::DatabaseTracker): Does nothing now! Move this code to openTrackerDatabase
2843 (WebCore::DatabaseTracker::setDatabasePath): Set the member variable, also closing/opening the database if needed
2844 (WebCore::DatabaseTracker::databasePath):
2845 (WebCore::DatabaseTracker::openTrackerDatabase): To open and validate the Databases db, moved from the c'tor
2846 (WebCore::DatabaseTracker::fullPathForDatabase): Return the member variable
2847 * storage/DatabaseTracker.h:
2849 2007-10-24 David Hyatt <hyatt@apple.com>
2851 Don't try to gap fill transformed selections. Fix the invalidation of selection to use the clip to visible content
2852 code path so that it works with multi-column layouts and transforms.
2856 * rendering/RenderBlock.cpp:
2857 (WebCore::RenderBlock::isSelectionRoot):
2858 (WebCore::RenderBlock::fillSelectionGaps):
2859 * rendering/RenderView.cpp:
2860 (WebCore::RenderView::setSelection):
2862 2007-10-24 Eric Seidel <eric@webkit.org>
2864 No review, I want to tickle the CIA bot to test changes,
2865 and took this as an opportunity to clean up some old change logs.
2867 * ChangeLog-2005-08-23: update email address
2868 * ChangeLog-2006-12-31: fix spelling mistakes
2870 2007-10-24 Dan Bernstein <mitz@apple.com>
2872 Reviewed by Oliver Hunt.
2874 - add "(anonymous)" to the renderName of anonymous table cells, rows and sections
2876 * rendering/RenderTableCell.h:
2877 (WebCore::RenderTableCell::renderName):
2878 * rendering/RenderTableRow.h:
2879 (WebCore::RenderTableRow::renderName):
2880 * rendering/RenderTableSection.h:
2881 (WebCore::RenderTableSection::renderName):
2883 2007-10-24 Timothy Hatcher <timothy@apple.com>
2887 Bug 15476: DOM tree fully expands some elements when arrowing up
2888 http://bugs.webkit.org/show_bug.cgi?id=15476
2890 Add a new expandTreeElementsWhenArrowing option to TreeOutline. This option
2891 is used only for the sidebar and search results.
2893 * page/inspector/inspector.js: Opt-in for the sidebar and search results.
2894 * page/inspector/treeoutline.js: Add expandTreeElementsWhenArrowing and pass
2895 this option to traverseNextTreeElement and traversePreviousTreeElement.
2897 2007-10-24 Anders Carlsson <andersca@apple.com>
2899 Reviewed by Geoff and Mitz.
2901 <rdar://problem/5493833>
2902 REGRESSION: ~5MB of image data leaked @ cuteoverload.com (often seen while browsing other sites, too)
2904 * bindings/js/kjs_binding.cpp:
2905 (KJS::ScriptInterpreter::markDOMNodesForDocument):
2906 If an image element that is currently loading an image is not in the document,
2907 it should still be marked.
2909 * bindings/js/kjs_html.cpp:
2910 (WebCore::ImageConstructorImp::construct):
2911 Force the document wrapper to be created.
2913 * html/HTMLImageElement.h:
2914 (WebCore::HTMLImageElement::haveFiredLoadEvent):
2915 New method which calls down to the image loader.
2917 * html/HTMLImageLoader.cpp:
2918 (WebCore::HTMLImageLoader::HTMLImageLoader):
2919 (WebCore::HTMLImageLoader::~HTMLImageLoader):
2920 (WebCore::HTMLImageLoader::setLoadingImage):
2921 (WebCore::HTMLImageLoader::dispatchLoadEvent):
2922 Remove code that's not needed anymore.
2924 * html/HTMLImageLoader.h:
2925 (WebCore::HTMLImageLoader::haveFiredLoadEvent):
2928 2007-10-23 Adam Roben <aroben@apple.com>
2930 Move Windows safe file creation code into WebCore from WebPreferences
2934 * platform/FileSystem.h:
2935 * platform/win/FileSystemWin.cpp:
2936 (WebCore::safeCreateFile): Moved here from WebKit/win/WebPreferences.cpp.
2938 2007-10-23 Adam Roben <aroben@apple.com>
2940 Add methods to FileSystemWin to get some user profile directories
2942 These directories are used to hold things like preferences, caches,
2947 * platform/FileSystem.h: Added new method declarations for Windows
2949 * platform/win/FileSystemWin.cpp:
2950 (WebCore::bundleName): Added.
2951 (WebCore::storageDirectory): Added.
2952 (WebCore::cachedStorageDirectory): Added.
2953 (WebCore::localUserSpecificStorageDirectory): Added. Returns the
2954 directory where WebKit should store any user-specific data that should
2955 stay local to the current machine (i.e., shouldn't be stored in a
2957 (WebCore::roamingUserSpecificStorageDirectory): Added. Returns the
2958 directory where WebKit should store any user-specific data that should
2959 move with the user from machine to machine (i.e., should be stored in
2962 2007-10-24 Alp Toker <alp@atoker.com>
2964 Reviewed by Mark Rowe.
2966 http://bugs.webkit.org/show_bug.cgi?id=15659
2967 InlineTextBox does not setStrokeStyle() as needed
2969 GraphicsContextCairo workaround to support a GraphicsContextCG quirk:
2971 Save and restore the StrokeStyle manually.
2973 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2974 (WebCore::GraphicsContext::drawLineForText):
2976 2007-10-24 Julien Chaffraix <julien.chaffraix@gmail.com>
2980 Patch for http://bugs.webkit.org/show_bug.cgi?id=15356
2981 Bug 15356: getResponseHeader and getAllResponseHeaders do not throw exceptions
2983 - getAllResponseHeaders and getResponseHeader throws INVALID_STATE_ERR exception as specified in the specification
2985 - 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)
2987 - Updated XMLHttpRequest::responseMIMEType() to keep its behaviour
2989 Tests: http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getAllRequestHeaders.html
2990 http/tests/xmlhttprequest/xmlhttprequest-InvalidStateException-getRequestHeader.html
2991 http/tests/xmlhttprequest/xmlhttprequest-invalidHeader-getRequestHeader.html
2993 * bindings/js/JSXMLHttpRequest.cpp:
2994 (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction):
2995 * xml/XMLHttpRequest.cpp:
2996 (WebCore::XMLHttpRequest::getAllResponseHeaders):
2997 (WebCore::XMLHttpRequest::getResponseHeader):
2998 (WebCore::XMLHttpRequest::responseMIMEType):
2999 * xml/XMLHttpRequest.h:
3001 2007-10-24 Lars Knoll <lars@trolltech.com>
3005 implement most of DragData.
3007 WARNING: NO TEST CASES ADDED OR CHANGED
3009 * platform/qt/DragDataQt.cpp:
3010 (WebCore::DragData::containsColor):
3011 (WebCore::DragData::containsFiles):
3012 (WebCore::DragData::asFilenames):
3013 (WebCore::DragData::containsPlainText):
3014 (WebCore::DragData::asPlainText):
3015 (WebCore::DragData::asColor):
3016 (WebCore::DragData::containsCompatibleContent):
3017 (WebCore::DragData::containsURL):
3019 2007-10-24 Lars Knoll <lars@trolltech.com>
3023 remove a stupid notImplemented() warning and implement PasteBoad::clear().
3025 WARNING: NO TEST CASES ADDED OR CHANGED
3027 * platform/qt/PasteboardQt.cpp:
3029 2007-10-24 Lars Knoll <lars@trolltech.com>
3033 implement Pasteboard::documentFragment(), and fix a mem leak.
3035 WARNING: NO TEST CASES ADDED OR CHANGED
3037 * platform/qt/PasteboardQt.cpp:
3038 (WebCore::Pasteboard::generalPasteboard):
3039 (WebCore::Pasteboard::documentFragment):
3041 2007-10-24 Lars Knoll <lars@trolltech.com>
3045 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
3047 WARNING: NO TEST CASES ADDED OR CHANGED
3049 * platform/PlatformKeyboardEvent.h:
3050 * platform/qt/PlatformKeyboardEventQt.cpp:
3051 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
3053 2007-10-24 Lars Knoll <lars@trolltech.com>
3057 use the new QTextBoundaryFinder class in Qt.
3059 WARNING: NO TEST CASES ADDED OR CHANGED
3061 * platform/qt/TextBoundaries.cpp:
3062 (WebCore::findNextWordFromIndex):
3063 (WebCore::findWordBoundary):
3064 * platform/qt/TextBreakIteratorQt.cpp:
3065 (WebCore::wordBreakIterator):
3066 (WebCore::characterBreakIterator):
3067 (WebCore::lineBreakIterator):
3068 (WebCore::sentenceBreakIterator):
3069 (WebCore::textBreakFirst):
3070 (WebCore::textBreakNext):
3071 (WebCore::textBreakPreceding):
3072 (WebCore::textBreakFollowing):
3073 (WebCore::textBreakCurrent):
3074 (WebCore::isTextBreak):
3076 2007-10-24 Darin Adler <darin@apple.com>
3080 - http://bugs.webkit.org/show_bug.cgi?id=15657
3081 change static hash tables to use powers of two for speed
3083 * bindings/scripts/CodeGeneratorJS.pm: Updated to generate new format.
3085 2007-10-24 Simon Hausmann <hausmann@kde.org>
3089 Make the implementation of pathByAppendingComponent use QDir.
3091 * platform/qt/FileSystemQt.cpp:
3093 2007-10-24 David Hyatt <hyatt@apple.com>
3095 Make repainting work with transforms.
3097 Reviewed by John Sullivan
3099 * rendering/RenderBox.cpp:
3100 (WebCore::RenderBox::computeAbsoluteRepaintRect):
3102 2007-10-23 Alp Toker <alp@atoker.com>
3106 http://bugs.webkit.org/show_bug.cgi?id=14412
3107 [GDK] Clipboard support
3109 Initial clipboard implementation for the GTK+ port.
3111 * platform/gtk/ClipboardGtk.cpp:
3112 (WebCore::Editor::newGeneralClipboard):
3113 * platform/gtk/PasteboardGtk.cpp:
3114 (WebCore::Pasteboard::generalPasteboard):
3115 (WebCore::Pasteboard::Pasteboard):
3116 (WebCore::Pasteboard::~Pasteboard):
3117 (WebCore::Pasteboard::writeSelection):
3118 (WebCore::Pasteboard::writeImage):
3119 (WebCore::Pasteboard::clear):
3120 (WebCore::Pasteboard::plainText):
3121 * platform/gtk/TemporaryLinkStubs.cpp:
3123 2007-10-23 Timothy Hatcher <timothy@apple.com>
3127 Fixes the Network panel so that it refreshes as needed.
3129 * page/inspector/ConsolePanel.js: Call the base class show() and hide() first.
3130 * page/inspector/NetworkPanel.js: Add refreshNeeded and refreshIfNeeded back. Ditto.
3132 2007-10-23 Justin Garcia <justin.garcia@apple.com>
3134 Reviewed by Oliver Hunt.
3136 <rdar://problem/5544856>
3137 REGRESSION: After typing 2-byte text, undo only undoes one keystroke at a time
3139 No layout test for now because I'm having trouble getting Undo during a layout
3140 test to only undo the last Undo step, and I want to write a test that fails
3141 without the code change.
3143 * editing/Editor.cpp:
3144 (WebCore::Editor::confirmComposition): When we replace the previous composition,
3145 delete it with a sub-command of the command used to insert the new composition,
3146 instead of with a separate command. No new code was added because insertText
3147 already deletes the current selection.
3148 (WebCore::Editor::setComposition): Ditto.
3150 2007-10-23 Adam Roben <aroben@apple.com>
3152 Fix the behavior of pathByAppendingComponent when path is empty
3154 We now use the Windows Shell API function PathAppendW instead of
3155 rolling our own broken implementation.
3159 * platform/win/FileSystemWin.cpp:
3160 (WebCore::pathByAppendingComponent):
3162 2007-10-23 Adele Peterson <adele@apple.com>
3166 Fix for <rdar://problem/5543228> CrashTracer: [USER] 2 crashes in Safari at com.apple.WebCore: WebCore::HTMLInputElement::defaultEventHandler + 872
3168 Test: fast/forms/textfield-onchange-deletion.html
3170 * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::defaultEventHandler):
3171 Refetch the renderer since arbitrary JS code run during onchange can do anything, including destroying it.
3173 2007-10-23 Timothy Hatcher <timothy@apple.com>
3175 Reviewed by Sam Weinig.
3177 - Made seperate files for the various classes in ResourcePanel.js.
3178 - Broke up ResourcePanel.js and created seperate panel classes for different resource types.
3179 - Moved View code down to the Panel base-class.
3180 - Reduced code duplication in DatabasePanel.js by sub-classing from the new ResourcePanel.
3182 * page/inspector/DatabasePanel.js:
3183 * page/inspector/DocumentPanel.js: Added.
3184 * page/inspector/FontPanel.js: Added.
3185 * page/inspector/ImagePanel.js: Added.
3186 * page/inspector/Panel.js: Added.
3187 * page/inspector/PropertiesSection.js: Added.
3188 * page/inspector/Resource.js:
3189 * page/inspector/ResourcePanel.js:
3190 * page/inspector/SidebarPane.js: Added.
3191 * page/inspector/SourcePanel.js: Added.
3192 * page/inspector/inspector.css:
3193 * page/inspector/inspector.html:
3194 * page/inspector/inspector.js:
3196 2007-10-23 Anders Carlsson <andersca@apple.com>
3198 Correct the version #if check.
3200 * platform/sql/SQLDatabase.cpp:
3201 (WebCore::SQLDatabase::authorizerFunction):
3203 2007-10-23 Jon Honeycutt <jhoneycutt@apple.com>
3207 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
3210 It is possible to load Mozilla's Java plugin instead of our own, which
3211 can lead to a crash. The fix is to prefer plugins in our own Plugins
3212 directory when searching for a plugin.
3214 * plugins/win/PluginDatabaseWin.cpp:
3215 (WebCore::safariPluginsPath): Return the path to our own Plugins
3217 (WebCore::PluginDatabaseWin::defaultPluginPaths): Use new method
3219 (WebCore::PluginDatabaseWin::pluginForMIMEType): If the plugin's path is
3220 our Plugins path, return this plugin. Otherwise, continue scanning the
3222 (WebCore::PluginDatabaseWin::pluginForExtension): Same
3223 * plugins/win/PluginPackageWin.h:
3224 (WebCore::PluginPackageWin::path): Return this plugin's path
3226 2007-10-23 Jasper Bryant-Greene <m@ni.ac.nz>
3230 http://bugs.webkit.org/show_bug.cgi?id=15058
3231 Precedence fault in KeyEventGdk causes shift, control, alt etc to work incorrectly
3233 Corrected precendence fault which was causing Shift, Alt, Control and
3234 Meta to behave incorrectly on GTK.
3236 Coding style fix by Alp.
3238 * platform/gtk/KeyEventGtk.cpp:
3239 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
3241 2007-10-23 Sam Weinig <sam@webkit.org>
3243 Reviewed by Tim Hatcher.
3245 Add resizing of the DOM view right sidebar. This allows us to actually see the values now.
3247 * page/inspector/ResourcePanel.js:
3248 * page/inspector/inspector.css:
3249 * page/inspector/inspector.js:
3250 * page/inspector/utilities.js:
3252 2007-10-23 David Hyatt <hyatt@apple.com>
3254 Get basic hit testing right for transforms.
3258 * platform/graphics/AffineTransform.cpp:
3259 (WebCore::AffineTransform::mapPoint):
3260 * platform/graphics/AffineTransform.h:
3261 * rendering/InlineBox.cpp:
3262 (WebCore::InlineBox::nodeAtPoint):
3263 * rendering/RenderBlock.cpp:
3264 (WebCore::RenderBlock::nodeAtPoint):
3265 * rendering/RenderLayer.cpp:
3266 (WebCore::RenderLayer::paintLayer):
3267 (WebCore::RenderLayer::hitTest):
3268 (WebCore::RenderLayer::hitTestLayer):
3269 * rendering/RenderLayer.h:
3270 * rendering/RenderObject.cpp:
3271 (WebCore::RenderObject::hitTest):
3272 * rendering/RenderObject.h:
3274 2007-10-23 Eric Seidel <eric@webkit.org>
3276 Reviewed by Mark Rowe.
3278 Fix leaks seen on TOT from new font-face code.
3280 * ksvg2/svg/SVGFontFaceElement.cpp:
3281 (WebCore::SVGFontFaceElement::rebuildFontFace): use a stack allocated CSSProperty instead of mallocing
3283 2007-10-23 Eric Seidel <eric@webkit.org>
3285 Build fix only, no review.
3287 Sacrifice three virgin hours upon the altar of the heathen XCode gods
3288 and pray that our build troubles are finally over. :(
3290 * DerivedSources.make: add DOMSVGException.h
3291 * WebCore.xcodeproj/project.pbxproj: Remove DOMSVG*Interal.h files from "Copy Generated Headers" phase. Why? Who knows.
3293 2007-10-22 Steve Falkenburg <sfalken@apple.com>
3297 * plugins/win/PluginViewWin.cpp:
3299 2007-10-22 Eric Seidel <eric@webkit.org>
3301 Build fix only, no review.
3303 * WebCore.xcodeproj/project.pbxproj: re-add all DOMSVG headers to copy-files phase to make sure.
3305 2007-10-22 Eric Seidel <eric@webkit.org>
3307 Build fix only, no review.
3309 * WebCore.xcodeproj/project.pbxproj: make sure DOMSVGAnimateElement.h is copied into headers.
3311 2007-10-22 Eric Seidel <eric@webkit.org>
3315 Fix build by properly exposing SVG font-face dom bindings.
3317 * DerivedSources.make:
3318 * WebCore.vcproj/WebCore.vcproj: add font-face files to build
3319 * WebCore.xcodeproj/project.pbxproj: add missing DOM bindings files
3320 * bindings/js/JSSVGElementWrapperFactory.cpp:
3321 * bindings/objc/DOM.mm:
3322 (WebCore::createElementClassMap):
3323 * bindings/objc/DOMSVG.h:
3324 * ksvg2/svg/SVGDefinitionSrcElement.idl: inherit from SVGElement
3326 2007-10-22 Mark Rowe <mrowe@apple.com>
3332 2007-10-22 Darin Adler <darin@apple.com>
3334 - a first cut at fixing the Qt and GTK builds
3336 * WebCore.pro: Add new .idl and .cpp files.
3337 * DerivedSources.make: Re-sorted.
3339 2007-10-22 Eric Seidel <eric@webkit.org>
3343 Implement <font-face> and friends for SVG.
3344 http://bugs.webkit.org/show_bug.cgi?id=10652
3346 * DerivedSources.make:
3347 * WebCore.xcodeproj/project.pbxproj:
3348 * bindings/js/JSSVGElementWrapperFactory.cpp:
3350 (WebCore::Document::mappedElementSheet):
3351 (WebCore::Document::recalcStyleSelector):
3353 * ksvg2/scripts/make_names.pl:
3354 * ksvg2/svg/SVGDefinitionSrcElement.cpp: Added.
3355 (WebCore::SVGDefinitionSrcElement::SVGDefinitionSrcElement):
3356 (WebCore::SVGDefinitionSrcElement::~SVGDefinitionSrcElement):
3357 (WebCore::SVGDefinitionSrcElement::childrenChanged):
3358 * ksvg2/svg/SVGDefinitionSrcElement.h: Added.
3359 * ksvg2/svg/SVGDefinitionSrcElement.idl: Added.
3360 * ksvg2/svg/SVGFontFaceElement.cpp: Added.
3361 (WebCore::SVGFontFaceElement::SVGFontFaceElement):
3362 (WebCore::SVGFontFaceElement::~SVGFontFaceElement):
3363 (WebCore::cssPropertyIdForName):
3364 (WebCore::mapAttributeToCSSProperty):
3365 (WebCore::cssPropertyIdForSVGAttributeName):
3366 (WebCore::SVGFontFaceElement::parseMappedAttribute):
3367 (WebCore::SVGFontFaceElement::rebuildFontFace):
3368 (WebCore::SVGFontFaceElement::childrenChanged):
3369 * ksvg2/svg/SVGFontFaceElement.h: Added.
3370 * ksvg2/svg/SVGFontFaceElement.idl: Added.
3371 * ksvg2/svg/SVGFontFaceFormatElement.cpp: Added.
3372 (WebCore::SVGFontFaceFormatElement::SVGFontFaceFormatElement):
3373 (WebCore::SVGFontFaceFormatElement::~SVGFontFaceFormatElement):
3374 (WebCore::SVGFontFaceFormatElement::childrenChanged):
3375 * ksvg2/svg/SVGFontFaceFormatElement.h: Added.
3376 * ksvg2/svg/SVGFontFaceFormatElement.idl: Added.
3377 * ksvg2/svg/SVGFontFaceNameElement.cpp: Added.
3378 (WebCore::SVGFontFaceNameElement::SVGFontFaceNameElement):
3379 (WebCore::SVGFontFaceNameElement::~SVGFontFaceNameElement):
3380 (WebCore::SVGFontFaceNameElement::srcValue):
3381 * ksvg2/svg/SVGFontFaceNameElement.h: Added.
3382 * ksvg2/svg/SVGFontFaceNameElement.idl: Added.
3383 * ksvg2/svg/SVGFontFaceSrcElement.cpp: Added.
3384 (WebCore::SVGFontFaceSrcElement::SVGFontFaceSrcElement):
3385 (WebCore::SVGFontFaceSrcElement::~SVGFontFaceSrcElement):
3386 (WebCore::SVGFontFaceSrcElement::srcValue):
3387 (WebCore::SVGFontFaceSrcElement::childrenChanged):
3388 * ksvg2/svg/SVGFontFaceSrcElement.h: Added.
3389 * ksvg2/svg/SVGFontFaceSrcElement.idl: Added.
3390 * ksvg2/svg/SVGFontFaceUriElement.cpp: Added.
3391 (WebCore::SVGFontFaceUriElement::SVGFontFaceUriElement):
3392 (WebCore::SVGFontFaceUriElement::~SVGFontFaceUriElement):
3393 (WebCore::SVGFontFaceUriElement::srcValue):
3394 (WebCore::SVGFontFaceUriElement::childrenChanged):
3395 * ksvg2/svg/SVGFontFaceUriElement.h: Added.
3396 * ksvg2/svg/SVGFontFaceUriElement.idl: Added.
3397 * ksvg2/svg/svgtags.in:
3399 2007-10-22 Jon Honeycutt <jhoneycutt@apple.com>
3403 <rdar://5548217>: [NTS] Java 6 update 3 crashes Safari when loading a
3406 We purposefully do not destroy our Java VM when its reference count
3407 reaches 0, but we were unloading our JavaPlugin.dll when its reference
3408 count reached 0, which lost the reference to the VM. This led to our
3409 process trying to create a new VM the next time a page using Java was
3410 loaded, and the JNI spec states that a single process is not allowed to
3411 create more than one VM. The fix is to avoid unloading the Java plugin
3412 via our PluginQuirkDontUnloadPlugin.
3414 * plugins/win/PluginViewWin.cpp:
3415 (WebCore::PluginViewWin::determineQuirks):
3417 2007-10-22 David Hyatt <hyatt@apple.com>
3419 Fix for bug 15624, make transforms work properly with opacity.
3421 Make sure a unitless 0 is allowed as an angle argument to rotation/skew.
3423 Reviewed by Mitz Pettel
3425 fast/transforms/transforms-with-opacity.html
3426 fast/transforms/skew-with-unitless-zero.html
3428 * css/CSSParser.cpp:
3429 (WebCore::CSSParser::validUnit):
3430 * rendering/RenderLayer.cpp:
3431 (WebCore::transparencyClipBox):
3432 (WebCore::RenderLayer::beginTransparencyLayers):
3433 (WebCore::RenderLayer::paintLayer):
3434 (WebCore::RenderLayer::calculateClipRects):
3435 * rendering/RenderLayer.h:
3436 (WebCore::RenderLayer::transform):
3438 2007-10-22 Adam Roben <aroben@apple.com>
3442 * WebCore.vcproj/WebCore.vcproj: Copy header files from platform/sql.
3443 * page/Page.cpp: Touched to force the header files to be copied.
3445 2007-10-22 Nikolas Zimmermann <zimmermann@kde.org>
3449 Move textPath related SVGChar data in it's own structure SVGCharOnPath.
3450 Store a pointer to that datastructure inside SVGChar, instead of 4 floats & one bool.
3452 Saves space for the common case. And allows me to add more data (another float) to support
3453 glyph-orientation-* on textPath later on...
3455 * rendering/SVGCharacterLayoutInfo.cpp:
3456 (WebCore::SVGChar::characterTransform):
3457 * rendering/SVGCharacterLayoutInfo.h:
3458 * rendering/SVGRootInlineBox.cpp:
3459 (WebCore::SVGRootInlineBoxPaintWalker::chunkPortionCallback):
3460 (WebCore::SVGRootInlineBox::buildLayoutInformationForTextBox):
3462 2007-10-22 Alp Toker <alp@atoker.com>
3464 Reviewed by Nikolas Zimmermann.
3466 Implement more GraphicsContextCairo stubs.
3468 Remove a hack "to work around no current point bug" that was breaking
3473 * platform/graphics/cairo/CairoPath.h:
3474 (WebCore::CairoPath::CairoPath):
3475 * platform/graphics/cairo/GraphicsContextCairo.cpp:
3476 (WebCore::GraphicsContext::addInnerRoundedRectClip):
3477 (WebCore::GraphicsContext::strokeRect):
3478 * platform/graphics/cairo/PathCairo.cpp:
3479 (WebCore::Path::isEmpty):
3480 * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp:
3481 (WebCore::SVGPaintServerGradient::setup):
3482 * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp:
3483 (WebCore::SVGPaintServerSolid::setup):
3485 2007-10-22 Simon Hausmann <hausmann@kde.org>
3487 Reviewed by Nikolas.
3489 Fix compilation from a clean build with the database feature disabled.
3490 JSCustomVersionChangeCallback.cpp doesn't actually need the SQL header file, just ScriptInterpreter.
3492 * bindings/js/JSCustomVersionChangeCallback.cpp:
3493 * page/InspectorController.cpp:
3495 2007-10-22 Andrew Wellington <proton@wiretapped.net>
3497 Reviewed by Mark Rowe.
3499 Fix for local database support after r26879
3500 Ensure that ENABLE_DATABASE and ENABLE_ICONDATABASE are correctly set
3502 * Configurations/WebCore.xcconfig:
3504 * WebCore.vcproj/build-generated-files.sh:
3506 2007-10-22 Simon Hausmann <hausmann@kde.org>
3510 Disable the Database feature for the qmake build for now.
3514 2007-10-22 Simon Hausmann <hausmann@kde.org>
3518 Make disabling the database feature (ENABLE_DATABASE=0) work by
3519 placing various #ifdefs into the code and making the compilation of
3520 some files optional.
3524 (WebCore::Document::~Document):
3525 (WebCore::Document::defaultEventHandler):
3527 * page/DOMWindow.cpp:
3529 * page/DOMWindow.idl:
3530 * page/InspectorController.cpp:
3531 (WebCore::InspectorController::windowScriptObjectAvailable):
3532 (WebCore::InspectorController::populateScriptResources):
3533 (WebCore::InspectorController::clearDatabaseScriptResources):
3534 (WebCore::InspectorController::didCommitLoad):
3535 * page/InspectorController.h:
3537 2007-10-22 Alp Toker <alp@atoker.com>
3539 Reviewed by Mark Rowe.
3541 http://bugs.webkit.org/show_bug.cgi?id=15611
3542 [GTK] Text selection behaviour different in Debug and Release builds
3544 http://bugs.webkit.org/show_bug.cgi?id=15578
3545 [GTK] Text editor caret does not blink
3547 Never allow control to reach the end of non-void functions.
3549 Return more sensible values, or in some cases, nulls.
3551 * page/gtk/EventHandlerGtk.cpp:
3552 (WebCore::isKeyboardOptionTab):
3553 (WebCore::EventHandler::tabsToAllControls):
3554 (WebCore::EventHandler::eventActivatedView):
3556 2007-10-22 Holger Freyther <zecke@selfish.org>
3558 Reviewed by Simon Hausmann <hausmann@kde.org>.
3560 Implement ResourceHandle::loadResourceSynchronously using ResourceHandle and a special ResourceHandleClient. This approach has the possible danger of reentrancy.
3562 * platform/network/qt/ResourceHandleQt.cpp:
3563 (WebCore::WebCoreSynchronousLoader::resourceResponse):
3564 (WebCore::WebCoreSynchronousLoader::resourceError):
3565 (WebCore::WebCoreSynchronousLoader::data):
3566 (WebCore::WebCoreSynchronousLoader::WebCoreSynchronousLoader):
3567 (WebCore::WebCoreSynchronousLoader::didReceiveResponse):
3568 (WebCore::WebCoreSynchronousLoader::didReceiveData):
3569 (WebCore::WebCoreSynchronousLoader::didFinishLoading):
3570 (WebCore::WebCoreSynchronousLoader::didFail):
3571 (WebCore::WebCoreSynchronousLoader::waitForCompletion):
3572 (WebCore::ResourceHandle::loadResourceSynchronously):
3574 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3576 Reviewed by Lars Knoll <lars@trolltech.com>.
3578 Style fix. It is allowed to attempt to delete 0.
3580 * platform/qt/ClipboardQt.cpp:
3582 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3584 Reviewed by Lars Knoll <lars@trolltech.com>.
3586 Make it actually localizable....
3588 * platform/qt/Localizations.cpp:
3589 (WebCore::submitButtonDefaultLabel):
3590 (WebCore::inputElementAltText):
3591 (WebCore::searchableIndexIntroduction):
3592 (WebCore::fileButtonChooseFileLabel):
3593 (WebCore::fileButtonNoFileSelectedLabel):
3594 (WebCore::contextMenuItemTagOpenLinkInNewWindow):
3595 (WebCore::contextMenuItemTagDownloadLinkToDisk):
3596 (WebCore::contextMenuItemTagCopyLinkToClipboard):
3597 (WebCore::contextMenuItemTagOpenImageInNewWindow):
3598 (WebCore::contextMenuItemTagDownloadImageToDisk):
3599 (WebCore::contextMenuItemTagCopyImageToClipboard):
3600 (WebCore::contextMenuItemTagOpenFrameInNewWindow):
3601 (WebCore::contextMenuItemTagCopy):
3602 (WebCore::contextMenuItemTagGoBack):
3603 (WebCore::contextMenuItemTagGoForward):
3604 (WebCore::contextMenuItemTagStop):
3605 (WebCore::contextMenuItemTagReload):
3606 (WebCore::contextMenuItemTagCut):
3607 (WebCore::contextMenuItemTagPaste):
3608 (WebCore::contextMenuItemTagNoGuessesFound):
3609 (WebCore::contextMenuItemTagIgnoreSpelling):
3610 (WebCore::contextMenuItemTagLearnSpelling):
3611 (WebCore::contextMenuItemTagSearchWeb):
3612 (WebCore::contextMenuItemTagLookUpInDictionary):
3613 (WebCore::contextMenuItemTagOpenLink):
3614 (WebCore::contextMenuItemTagIgnoreGrammar):
3615 (WebCore::contextMenuItemTagSpellingMenu):
3616 (WebCore::contextMenuItemTagShowSpellingPanel):
3617 (WebCore::contextMenuItemTagCheckSpelling):
3618 (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
3619 (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
3620 (WebCore::contextMenuItemTagFontMenu):
3621 (WebCore::contextMenuItemTagBold):
3622 (WebCore::contextMenuItemTagItalic):
3623 (WebCore::contextMenuItemTagUnderline):
3624 (WebCore::contextMenuItemTagOutline):
3625 (WebCore::contextMenuItemTagWritingDirectionMenu):
3626 (WebCore::contextMenuItemTagDefaultDirection):
3627 (WebCore::contextMenuItemTagLeftToRight):
3628 (WebCore::contextMenuItemTagRightToLeft):
3629 (WebCore::contextMenuItemTagInspectElement):
3630 (WebCore::searchMenuNoRecentSearchesText):
3631 (WebCore::searchMenuRecentSearchesText):
3633 2007-10-22 Holger Hans Peter Freyther <zecke@selfish.org>
3635 Reviewed by Lars Knoll <lars@trolltech.com>.