1 2007-07-06 Jungshik Shin <jungshik.shin@gmail.com>
5 - Add UTF-32 encoding support
6 http://bugs.webkit.org/show_bug.cgi?id=13415
9 - fast/encoding/utf-32-big-endian-bom.html
10 - fast/encoding/utf-32-big-endian-nobom.xml
11 - fast/encoding/utf-32-little-endian-bom.html
12 - fast/encoding/utf-32-little-endian-nobom.xml
14 * loader/TextResourceDecoder.cpp:
15 (WebCore::TextResourceDecoder::checkForBOM):
16 (WebCore::TextResourceDecoder::checkForHeadCharset):
17 * platform/TextDecoder.cpp:
18 (WebCore::TextDecoder::checkForBOM):
19 * platform/TextDecoder.h:
20 * platform/TextEncoding.cpp:
21 (WebCore::UTF32BigEndianEncoding):
22 (WebCore::UTF32LittleEndianEncoding):
23 * platform/TextEncoding.h:
25 2007-07-06 Holger Hans Peter Freyther <zecke@selfish.org>
29 Start implementening RenderThemeGdk/Gtk using GtkStyle. The approach is
30 to allocate one native control for each widget type. And use margins, spacing,
31 style properties from the Widget. And for drawing use GtkStyle on the rect supplied.
33 This should allow nice integration and be relative resource friendly. Mozilla is using
34 a similiar approach. They seem to share the GdkPixmap among several operations and this
35 will be an obvious candidate for improvements. Create a normally big enough GdkPixmap and
36 use that for drawing and then set clip regions for cairo to make sure to not go beyond the
39 The next steps will be to introduce states for the widgets, add more widgets, handle focus,
40 and various other style attributes, honor the size and margin and use that to propagate this
43 * platform/gdk/RenderThemeGdk.cpp:
44 (WebCore::RenderThemeGdk::RenderThemeGdk):
45 (WebCore::RenderThemeGdk::setCheckboxSize):
46 (WebCore::RenderThemeGdk::paintCheckbox):
47 (WebCore::RenderThemeGdk::setRadioSize):
48 (WebCore::RenderThemeGdk::paintRadio):
49 (WebCore::RenderThemeGdk::paintButton):
50 (WebCore::RenderThemeGdk::copyToContext):
51 (WebCore::RenderThemeGdk::gtkButton):
52 (WebCore::RenderThemeGdk::gtkCheckbox):
53 (WebCore::RenderThemeGdk::gtkRadioButton):
54 (WebCore::RenderThemeGdk::gtkWindowContainer):
55 * platform/gdk/RenderThemeGdk.h:
57 2007-07-06 Rob Buis <buis@kde.org>
61 http://bugs.webkit.org/show_bug.cgi?id=14442
62 Adding a stop with value 1.0 to a gradient that has already been used has no effect
64 Implement start and end stop handling differently so they are not
65 in the color stop array.
67 * html/CanvasGradient.cpp:
68 (WebCore::compareStops):
69 (WebCore::CanvasGradient::getColor):
70 (WebCore::CanvasGradient::findStop):
72 2007-07-06 Adam Roben <aroben@apple.com>
74 Fix <rdar://problem/5301994> Garbled text still showing on some sites
76 Replace calls to GetGlyphIndices with wkGetGlyphs.
80 * platform/win/GlyphPageTreeNodeWin.cpp:
81 (WebCore::GlyphPage::fill): Use wkGetGlyphs.
82 * platform/win/FontDataWin.cpp:
83 (WebCore::FontData::containsCharacters):
85 2007-07-06 Matt Lilek <pewtermoose@gmail.com>
87 Not reviewed - Windows build fix.
89 * bridge/win/FrameWin.cpp:
90 (WebCore::imageFromSelection):
92 2007-07-06 George Staikos <staikos@kde.org>
96 Switch USE(ICONDATABASE) to ENABLE(ICONDATABASE) and activate the
97 flag via the .pro file
100 * loader/icon/IconDatabase.h:
102 2007-07-05 John Sullivan <sullivan@apple.com>
106 - WebCore part of fix for <rdar://problem/5315033>
108 * rendering/RenderObject.h:
109 replaced PaintRestrictionSelectionOnlyWhiteText with PaintRestrictionSelectionOnlyBlackText
110 (WebCore::RenderObject::PaintInfo::PaintInfo):
111 replaced forceWhiteText with forceBlackText
113 * rendering/RenderObject.cpp:
114 (WebCore::RenderObject::addLineBoxRects):
115 added a useSelectionHeight parameter, which defaults to false; this method is unimplemented
116 at this level so this has no effect.
118 * rendering/RenderText.h:
119 * rendering/RenderText.cpp:
120 (WebCore::RenderText::addLineBoxRects):
121 added a useSelectionHeight parameter, which defaults to false. If true, use the vertical position
122 and height returned by selectionRect rather than replacing it with the more tight-fitting position
123 and height of the line box.
127 (WebCore::Range::addLineBoxRects):
128 added a useSelectionHeight parameter, which defaults to false. Passes this along to RenderObject.
131 renamed parameter to selectionImage
133 (WebCore::Frame::selectionTextRects):
134 pass true for addLineBoxRects new useSelectionHeight parameter, so the rects returned by this new
135 method will match the height that the selection would be painted here
136 (WebCore::Frame::paint):
137 updated for white->black name changes
139 * page/mac/FrameMac.mm:
140 (WebCore::Frame::selectionImage):
141 updated for white->black name changes
143 * rendering/InlineFlowBox.cpp:
144 (WebCore::InlineFlowBox::paintTextDecorations):
145 updated for white->black name changes
147 * rendering/RenderLayer.cpp:
148 (WebCore::RenderLayer::paintLayer):
149 updated for white->black name changes
151 * rendering/InlineTextBox.cpp:
152 (WebCore::InlineTextBox::paint):
153 updated for white->black name changes, and actually use black instead of white. This was the goal
154 of all the name changes.
156 2007-07-05 Anders Carlsson <andersca@apple.com>
160 Fix layout test failures.
162 * loader/FrameLoader.cpp:
163 (WebCore::FrameLoader::commitProvisionalLoad):
164 Don't make a representation if we're creating the initial document.
166 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
168 Fix Bug 14388: Input in text fields limited to 1024 characters
169 http://bugs.webkit.org/show_bug.cgi?id=14388
171 Slightly modified by Adam Roben.
175 Tests: fast/forms/input-implicit-length-limit.html
176 fast/forms/input-maxlength.html
178 * html/HTMLInputElement.cpp: Bump limit to 524288.
179 (WebCore::HTMLInputElement::init):
180 (WebCore::HTMLInputElement::parseMappedAttribute):
181 * html/HTMLInputElement.h:
183 2007-07-05 Anders Carlsson <andersca@apple.com>
187 * loader/FrameLoader.cpp:
188 (WebCore::FrameLoader::init):
190 2007-07-05 Sam Weinig <sam@webkit.org>
194 Add focus, blur and close functions to DOMWindow implementation class
195 and move bindings from Window to JSDOMWindow.
197 * bindings/js/JSDOMWindowCustom.cpp:
198 (WebCore::JSDOMWindow::customGetOwnPropertySlot):
199 * bindings/js/kjs_window.cpp:
200 (KJS::Window::getOwnPropertySlot):
201 (KJS::WindowFunc::callAsFunction):
202 * bindings/js/kjs_window.h:
204 * bindings/scripts/CodeGeneratorJS.pm: Move prototype function declaration from
205 the implementation to the header.
206 * page/DOMWindow.cpp:
207 (WebCore::DOMWindow::focus):
208 (WebCore::DOMWindow::blur):
209 (WebCore::DOMWindow::close):
211 * page/DOMWindow.idl:
213 2007-07-05 Justin Garcia <justin.garcia@apple.com>
215 Reviewed by Harrison.
217 <rdar://problem/5279521> REGRESSION: In Mail, a crash occurs at WebCore::Range::startPosition() when attempting to apply alignment to selected image/text in message body
219 * editing/TextIterator.cpp:
220 (WebCore::TextIterator::exitNode): Previously emitted content shouldn't have
221 to come from a text node in order to emit a '\n' as we exit block containers.
223 2007-07-05 Anders Carlsson <andersca@apple.com>
227 <rdar://problem/5315284> REGRESSION: Leopard Launch Time - plugins are being accessed at startup.
229 Set a response that has a MIME type of "text/html" on the document loader so WebKit won't refresh the
230 plugin database looking for a plug-in that can handle the document's MIME type (which will be null anyway).
232 * loader/FrameLoader.cpp:
233 (WebCore::FrameLoader::init):
235 2007-07-05 Anders Carlsson <andersca@apple.com>
239 <rdar://problem/5106788>
240 WebKit loads user style sheets too late as seen in Mail (breaks DataDetectors; Mail flashes wrong font)
242 Let the document know when the user style sheet is loading so that it try not to display anything
243 until the user style sheet has finished loading.
246 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
247 (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader):
248 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
249 (WebCore::Frame::setUserStyleSheetLocation):
251 2007-07-05 Sam Weinig <sam@webkit.org>
255 Move JSDOMWindow overriding getOwnPropertySlot logic from KJS::Window
256 up into JSDOMWindow. No change in functionality so no testcase required.
258 * bindings/js/JSDOMWindowCustom.cpp:
259 (WebCore::JSDOMWindow::customGetOwnPropertySlot):
260 * bindings/js/kjs_window.cpp:
261 (KJS::Window::getOwnPropertySlot):
262 * bindings/js/kjs_window.h:
264 2007-07-05 Mitz Pettel <mitz@webkit.org>
266 Reviewed and Landed by Sam.
268 - fix bug 14465 for window.showModalDialog
270 * bindings/js/kjs_window.cpp:
271 (KJS::parseModalDialogFeatures):
272 (KJS::showModalDialog):
274 2007-07-05 Sam Weinig <sam@webkit.org>
278 Patch for http://bugs.webkit.org/show_bug.cgi?id=14465
279 window.open() uses the literal "undefined" as the URL
281 * bindings/js/kjs_window.cpp:
282 (KJS::WindowFunc::callAsFunction): add checks for undefined and null values when setting the url.
283 * manual-tests/open-url-undefined.html: Added.
285 2007-07-05 Holger Hans Peter Freyther <zecke@selfish.org>
287 Reviewed by Rob Buis.
289 Rework FontData and FontPlatformData for the Gdk work to make valgrind
292 Move destroying of FontConfig and Cairo objects held in FontPlatformData
293 to FontData::platformDestroy. The ownership of these objects is held by
294 FontData. This is following the Mac and Qt port at least.
296 Currently it is possible that FontPlatformData will not create cairo resources
297 in this case at least make sure the variables are initialized to 0.
298 Initialize x,y of the cairo_glyph_t with zero to avoid extents.x_advance depending
299 on subtracing with not defined values.
301 FontPlatformData::hash. Using FontDescription is a bad idea as we don't have a clue
302 about how it is packed, if holes are present, etc. The FcPattern and the m_fontMatrix
303 should be good enough to describe the Font. All other objects are created using these
306 Replace C-style casts with C++ casts, in this case reinterpret_cast.
308 * platform/gdk/FontDataGdk.cpp:
309 (WebCore::FontData::platformInit): Don't assert
310 (WebCore::FontData::platformDestroy): Take over ownership
311 (WebCore::FontData::platformWidthForGlyph): initialize
312 (WebCore::FontData::setFont): be paranoid and assert
313 * platform/gdk/FontPlatformData.h:
314 (WebCore::FontPlatformData::FontPlatformData): Initialize everything
315 (WebCore::FontPlatformData::hash): make valgrind happy and don't use m_fontDescription
316 * platform/gdk/FontPlatformDataGdk.cpp:
317 (WebCore::FontPlatformData::FontPlatformData):
318 (WebCore::FontPlatformData::~FontPlatformData): FontData::platformDestroy will do this
319 (WebCore::FontPlatformData::list): Don't use C-style casts.
320 (WebCore::FontPlatformData::setFont): m_fontFace, m_fontMatrix, m_options might not be initialized
321 (WebCore::FontPlatformData::operator==): Don't use C-style casts.
323 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
325 Reviewed by Mark Rowe.
327 http://bugs.webkit.org/show_bug.cgi?id=14445
328 GraphicsContextCairo code style cleanup
330 Follow the cr naming convention for cairo_t*.
331 Remove trailing whitespace.
332 Replace C casts with C++ casts.
333 Avoid needless casts.
335 * platform/graphics/cairo/GraphicsContextCairo.cpp:
336 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
337 (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
338 (WebCore::GraphicsContext::GraphicsContext):
339 (WebCore::GraphicsContext::platformContext):
340 (WebCore::GraphicsContext::savePlatformState):
341 (WebCore::GraphicsContext::restorePlatformState):
342 (WebCore::GraphicsContext::drawRect):
343 (WebCore::adjustLineToPixelBoundaries):
344 (WebCore::GraphicsContext::drawLine):
345 (WebCore::GraphicsContext::drawEllipse):
346 (WebCore::GraphicsContext::strokeArc): Save/restore the graphics state.
347 (WebCore::GraphicsContext::drawConvexPolygon):
348 (WebCore::GraphicsContext::fillRect):
349 (WebCore::GraphicsContext::clip):
350 (WebCore::GraphicsContext::drawFocusRing):
351 (WebCore::GraphicsContext::roundToDevicePixels):
352 (WebCore::GraphicsContext::translate):
353 (WebCore::GraphicsContext::origin):
354 (WebCore::GraphicsContext::setPlatformStrokeThickness):
355 (WebCore::GraphicsContext::setPlatformStrokeStyle):
356 (WebCore::GraphicsContext::setPlatformFont):
357 (WebCore::GraphicsContext::concatCTM):
358 (WebCore::GraphicsContext::addInnerRoundedRectClip):
359 (WebCore::GraphicsContext::beginTransparencyLayer):
360 (WebCore::GraphicsContext::endTransparencyLayer):
361 (WebCore::GraphicsContext::clearRect):
362 (WebCore::GraphicsContext::setLineCap):
363 (WebCore::GraphicsContext::setLineJoin):
364 (WebCore::GraphicsContext::setMiterLimit):
365 (WebCore::GraphicsContext::setCompositeOperation):
366 (WebCore::GraphicsContext::beginPath):
367 (WebCore::GraphicsContext::addPath):
368 (WebCore::GraphicsContext::rotate):
369 (WebCore::GraphicsContext::scale):
370 * platform/graphics/cairo/ImageBufferCairo.cpp:
371 (WebCore::ImageBuffer::ImageBuffer):
372 * platform/graphics/cairo/ImageCairo.cpp: Avoid the confusing ctxt/context naming scheme.
373 (WebCore::BitmapImage::draw):
374 (WebCore::Image::drawPattern):
376 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
378 Reviewed by Mark Rowe.
380 http://bugs.webkit.org/show_bug.cgi?id=14531
381 Cairo SVGImage::nativeImageForCurrentFrame() has no return
383 Return the Cairo surface from the frame cache.
385 Also add a fall-through else macro with notImplemented() so that future
386 ports do not make the same mistake.
388 * platform/graphics/svg/SVGImage.cpp:
389 (WebCore::SVGImage::nativeImageForCurrentFrame):
391 2007-07-05 Alp Toker <alp.toker@collabora.co.uk>
393 Reviewed by Mark Rowe.
395 http://bugs.webkit.org/show_bug.cgi?id=14513
396 Cairo animated GIF support is broken
398 Implement ImageSource::frameIsCompleteAtIndex() to enable animated GIFs.
400 * platform/graphics/cairo/ImageSourceCairo.cpp:
401 (WebCore::ImageSource::frameIsCompleteAtIndex):
403 2007-07-04 Matt Perry <mpComplete@gmail.com>
407 Fix for http://bugs.webkit.org/show_bug.cgi?id=13400
408 Bug 13400: REGRESSION (r20809-20814): No back entry created for navigations created by assigning to document.location
409 <rdar://problem/5153025>
411 Treat userGesture as always true for setLocation, forcing a back/forward
414 * bindings/js/JSHTMLDocumentCustom.cpp:
415 (WebCore::JSHTMLDocument::setLocation):
417 2007-07-04 Adam Roben <aroben@apple.com>
419 Restore MouseEventWithHitTestResults::targetNode's old behavior
423 Fixes fast/images/imagemap-case and fast/replace/image-map.
425 * page/MouseEventWithHitTestResults.cpp:
426 (WebCore::MouseEventWithHitTestResults::targetNode): Use the inner
427 node, not the inner non-shared node.
429 2007-07-04 Adam Roben <aroben@apple.com>
431 Mac, Qt, and Gdk build fixes.
433 * page/EventHandler.h:
434 * page/gdk/EventHandlerGdk.cpp:
435 * page/mac/EventHandlerMac.mm:
436 (WebCore::EventHandler::passSubframeEventToSubframe):
437 * page/qt/EventHandlerQt.cpp:
439 2007-07-04 Adam Roben <aroben@apple.com>
441 Fix the Qt/Gdk builds.
443 * page/gdk/EventHandlerGdk.cpp:
444 * page/qt/EventHandlerQt.cpp:
446 2007-07-04 Adam Roben <aroben@apple.com>
448 Move tooltip logic down into WebCore so that it can be shared cross-platform
453 (WebCore::Chrome::setToolTip): Added.
455 * page/ChromeClient.h:
456 * page/EventHandler.cpp:
457 (WebCore::EventHandler::mouseMoved): Call Chrome::setToolTip.
458 * platform/graphics/svg/SVGImageEmptyClients.h:
462 * platform/gdk/ChromeClientGdk.h:
463 * platform/gdk/TemporaryLinkStubs.cpp:
464 (ChromeClientGdk::setToolTip):
466 2007-07-04 Adam Roben <aroben@apple.com>
468 Add Settings::showsURLsInToolTips
474 (WebCore::Settings::Settings):
477 2007-07-04 Adam Roben <aroben@apple.com>
479 Move logic for calling mouseDidMoveOverElement into WebCore
483 * page/EventHandler.cpp:
484 (WebCore::EventHandler::mouseMoved): Added. Calls Chrome::mouseDidMoveOverElement.
485 (WebCore::EventHandler::handleMouseMoveEvent): Now takes an optional
486 HitTestResult* parameter which is used to communicate to the caller the
487 node the mouse is over.
488 * page/EventHandler.h:
489 * page/mac/EventHandlerMac.mm:
490 (WebCore::EventHandler::mouseMoved): Changed to call the overloaded
492 (WebCore::EventHandler::passMouseMoveEventToSubframe): Pass hoveredNode
493 through to the subframe so we can get the deepest node hovered, not
494 just the node's parent frame.
495 * page/win/EventHandlerWin.cpp:
496 (WebCore::EventHandler::passMouseMoveEventToSubframe): Ditto.
498 2007-07-04 Adam Roben <aroben@apple.com>
500 Add Chrome::mouseDidMoveOverElement
502 This does the work of calling up to the ChromeClient (which will call
508 (WebCore::Chrome::mouseDidMoveOverElement): Added.
510 * page/ChromeClient.h:
511 * platform/graphics/svg/SVGImageEmptyClients.h: Updated for change to
513 * platform/gdk/ChromeClientGdk.h:
514 * platform/gdk/TemporaryLinkStubs.cpp:
515 (ChromeClientGdk::mouseDidMoveOverElement):
517 2007-07-04 Adam Roben <aroben@apple.com>
519 Changed PlatformMouseEvent to store the modifier flags of the event
523 * platform/PlatformMouseEvent.h:
524 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
525 * platform/mac/PlatformMouseEventMac.mm:
526 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
527 * platform/win/PlatformMouseEventWin.cpp:
528 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
530 2007-07-04 Adam Roben <aroben@apple.com>
532 Add HitTestResult::setToNonShadowAncestor
536 * page/EventHandler.cpp:
537 (WebCore::EventHandler::hitTestResultAtPoint): Moved logic into
538 HitTestResult::setToNonShadowAncestor.
539 * rendering/HitTestResult.cpp:
540 (WebCore::HitTestResult::setToNonShadowAncestor):
541 * rendering/HitTestResult.h:
543 2007-07-04 Adam Roben <aroben@apple.com>
545 Change MouseEventWithHitTestResults to hold onto a HitTestResult
550 (WebCore::Document::prepareMouseEvent):
551 * page/MouseEventWithHitTestResults.cpp:
552 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
553 (WebCore::MouseEventWithHitTestResults::targetNode):
554 (WebCore::MouseEventWithHitTestResults::localPoint):
555 (WebCore::MouseEventWithHitTestResults::scrollbar):
556 * page/MouseEventWithHitTestResults.h:
557 (WebCore::MouseEventWithHitTestResults::event):
558 (WebCore::MouseEventWithHitTestResults::hitTestResult):
560 2007-07-04 Matt Lilek <pewtermoose@gmail.com>
562 Not reviewed, gdk build fix.
564 * platform/gdk/FrameGdk.cpp:
566 2007-07-05 Antti Koivisto <antti@apple.com>
570 Fix Repro crash due to infinite recursion in HTMLParser::handleError @ youos.com
571 <rdar://problem/5237811>
573 It is possible to add table parts (thead etc) without table ancestor to a document fragment. If a new table element
574 was added to such a part, as in
576 div.innerHTML = '<tbody><table>';
578 the parser error handling code would try to pop the previous table as normal. However since
579 the table does not actually exist nothing would happen and parser would go to infinite recursion.
581 Solution here is to pop table parts one by one when handling the error inside a fragment instead of trying to pop
582 the table straight away (as it might not exist).
584 * html/HTMLParser.cpp:
585 (WebCore::HTMLParser::handleError):
587 2007-07-04 Qing Zhao <qing@staikos.net>
589 Reviewed by George Staikos.
591 Draw menulist (comboboxes) without text overlap on the button.
593 * platform/qt/RenderThemeQt.cpp:
594 (WebCore::RenderThemeQt::setPopupPadding):
596 2007-07-04 George Staikos <staikos@kde.org>
600 * page/qt/FrameQt.cpp:
603 2007-07-04 Sam Weinig <sam@webkit.org>
607 Patch for http://bugs.webkit.org/show_bug.cgi?id=14504
608 REGRESSION (r23573): Amazon Book Excerpt can not be viewed in recent nightly
610 - Made it possible (again) to shadow window properties with local variable names.
612 Test: fast/dom/Window/window-property-shadowing.html
614 * bindings/js/JSDOMWindowCustom.cpp:
615 (WebCore::JSDOMWindow::customPut):
616 * bindings/js/kjs_window.cpp:
618 * bindings/scripts/CodeGeneratorJS.pm:
619 * page/DOMWindow.idl:
621 2007-07-03 Alice Liu <alice.liu@apple.com>
625 Fixed <rdar://problem/5225119> support smart pasting on Windows
627 * WebCore.vcproj/WebCore.vcproj:
628 * WebCore.xcodeproj/project.pbxproj:
630 * editing/SmartReplace.cpp: Added.
631 (WebCore::isCharacterSmartReplaceExempt):
632 Added non-CF implementation placeholder
633 * editing/SmartReplace.h: Added.
634 * editing/SmartReplaceCF.cpp: Added.
635 (WebCore::getSmartSet):
636 (WebCore::isCharacterSmartReplaceExempt):
637 Added new implementation
639 * bridge/win/FrameWin.cpp:
641 * page/mac/FrameMac.mm:
642 Removed old declaration and implementation
644 * editing/ReplaceSelectionCommand.cpp:
645 (WebCore::ReplaceSelectionCommand::doApply):
646 Changed to call the new function instead of old
648 * page/mac/WebCoreFrameBridge.h:
649 * page/mac/WebCoreFrameBridge.mm:
650 Removed old declaration and implementation
651 (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
652 Changed to call the new function instead of old
654 * platform/win/PasteboardWin.cpp:
655 (WebCore::Pasteboard::Pasteboard):
656 Register new clipboard format
657 (WebCore::Pasteboard::writeSelection):
658 Set data for smartpaste format on clipboard
659 (WebCore::Pasteboard::canSmartReplace):
660 Added non-stub implementation
662 2007-07-04 Qing Zhao <qing@staikos.net>
664 Reviewed by George Staikos.
666 Similar to the PlatformScrollbar fixes, adjust the painter to make the
667 styler draw all subcontrols, and in this case the focus rect, in the
670 * platform/qt/RenderThemeQt.cpp:
671 (WebCore::RenderThemeQt::paintMenuList):
673 2007-07-04 Mitz Pettel <mitz@webkit.org>
677 - fix http://bugs.webkit.org/show_bug.cgi?id=14495
678 REGRESSION: Wrong cursor is displayed during drag and drop when text is selected
679 <rdar://problem/5312384>
681 No test possible because DumpRenderTree cannot query the current cursor.
683 * page/EventHandler.cpp:
684 (WebCore::EventHandler::selectCursor): Changed into a member function and
685 added that if the last mouse down event could not have started a
686 selection, then the cursor should not change to an I-beam unconditionally.
687 (WebCore::EventHandler::handleMouseMoveEvent):
688 * page/EventHandler.h:
690 2007-07-04 Holger Hans Peter Freyther <zecke@selfish.org>
692 Reviewed by Rob Buis.
694 A little progress in tracking dependencies.
696 * WebCore.pro: Add DEPENDPATH for the Gdk port.
698 2007-07-03 Darin Adler <darin@apple.com>
700 Reviewed by Tim Hatcher.
702 - fix <rdar://problem/5221297> Font family name in the cssText for a DOMCSSStyleDeclaration needs quotes
704 Test: editing/style/font-family-with-space.html
706 * css/FontFamilyValue.cpp:
707 (WebCore::isValidCSSIdentifier): Added. Implements the same rule that the CSS lexer does.
708 (WebCore::quoteStringIfNeeded): Changed to call isValidCSSIdentifier instead of just
709 checking for a leading "#" character.
710 * editing/markup.cpp:
711 (WebCore::escapeTextForMarkup): Changed to take a String parameter for better efficiency.
712 (WebCore::renderedText): Changed to return a String for better efficiency.
713 (WebCore::addNamespace): Updated to pass String to escapeTextForMarkup.
714 (WebCore::startMarkup): Updated to pass String to escapeTextForMarkup. Added missing call
715 to escapeTextForMarkup in the special case for the style property.
716 (WebCore::createMarkup): Changed from single quotes to double quotes and also added missing
717 call to escapeTextForMarkup in two special cases for the style property.
719 2007-07-03 Sam Weinig <sam@webkit.org>
723 Twelfth round of fixes for implicit 64-32 bit conversion errors.
724 <rdar://problem/5292262>
726 - Add casts and accompanying FIXMEs to avoid remaining compiler errors.
728 * WebCore.xcodeproj/project.pbxproj:
729 * loader/FrameLoader.cpp:
730 (WebCore::FrameLoader::opened):
731 (WebCore::FrameLoader::sendRemainingDelegateMessages):
732 * loader/FrameLoader.h:
733 * loader/ResourceLoader.cpp:
734 (WebCore::ResourceLoader::didReceiveData):
735 * platform/network/mac/ResourceHandleMac.mm:
736 (-[WebCoreResourceHandleAsDelegate connection:didReceiveData:lengthReceived:]):
737 (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
738 * platform/network/mac/ResourceResponseMac.mm:
739 (WebCore::ResourceResponse::nsURLResponse):
741 2007-07-03 Anders Carlsson <andersca@apple.com>
745 <rdar://problem/5093862>
746 Nothing shown in plugin area when trying to play content using the DivX plugin
748 Defer calling SetWindow for the DivX plugin, just like we do with the WMP plugin.
750 * plugins/win/PluginViewWin.cpp:
751 (WebCore::PluginViewWin::determineQuirks):
753 2007-07-03 Sam Weinig <sam@webkit.org>
755 Reviewed by Brady Eidson.
757 Ninth round of fixes for implicit 64-32 bit conversion errors.
758 <rdar://problem/5292262>
760 - Fix function signature to use unsigned long instead of unsigned long long.
762 * loader/ProgressTracker.cpp:
763 (WebCore::ProgressTracker::completeProgress):
764 * loader/ProgressTracker.h:
766 2007-07-03 Sam Weinig <sam@webkit.org>
770 Eighth round of fixes for implicit 64-32 bit conversion errors.
771 <rdar://problem/5292262>
773 - Convert SVG implementation files to use floats instead of doubles
774 to match the spec/IDLs.
776 * bindings/scripts/CodeGeneratorJS.pm:
777 * ksvg2/svg/SVGAngle.cpp:
778 * ksvg2/svg/SVGAnimatedTemplate.h:
779 * ksvg2/svg/SVGAnimationElement.cpp:
780 (WebCore::SVGAnimationElement::getEndTime):
781 (WebCore::SVGAnimationElement::getStartTime):
782 (WebCore::SVGAnimationElement::getCurrentTime):
783 (WebCore::SVGAnimationElement::getSimpleDuration):
784 * ksvg2/svg/SVGAnimationElement.h:
785 * ksvg2/svg/SVGFitToViewBox.cpp:
786 (WebCore::SVGFitToViewBox::parseViewBox):
787 * ksvg2/svg/SVGLength.cpp:
788 (WebCore::SVGLength::setValueAsString):
789 * ksvg2/svg/SVGLinearGradientElement.cpp:
790 (WebCore::SVGLinearGradientElement::buildGradient):
791 * ksvg2/svg/SVGMatrix.idl:
792 * ksvg2/svg/SVGNumber.idl:
793 * ksvg2/svg/SVGParserUtilities.cpp:
794 (WebCore::SVGPathParser::parseSVG):
795 (WebCore::SVGPathParser::calculateArc):
796 (WebCore::SVGPathParser::svgLineToHorizontal):
797 (WebCore::SVGPathParser::svgLineToVertical):
798 (WebCore::SVGPathParser::svgCurveToCubicSmooth):
799 (WebCore::SVGPathParser::svgCurveToQuadratic):
800 (WebCore::SVGPathParser::svgCurveToQuadraticSmooth):
801 (WebCore::SVGPathParser::svgArcTo):
802 * ksvg2/svg/SVGParserUtilities.h:
803 * ksvg2/svg/SVGPathElement.cpp:
804 (WebCore::SVGPathElement::SVGPathElement):
805 (WebCore::SVGPathElement::getTotalLength):
806 (WebCore::SVGPathElement::getPointAtLength):
807 (WebCore::SVGPathElement::getPathSegAtLength):
808 (WebCore::SVGPathElement::createSVGPathSegMovetoAbs):
809 (WebCore::SVGPathElement::createSVGPathSegMovetoRel):
810 (WebCore::SVGPathElement::createSVGPathSegLinetoAbs):
811 (WebCore::SVGPathElement::createSVGPathSegLinetoRel):
812 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicAbs):
813 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicRel):
814 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticAbs):
815 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticRel):
816 (WebCore::SVGPathElement::createSVGPathSegArcAbs):
817 (WebCore::SVGPathElement::createSVGPathSegArcRel):
818 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalAbs):
819 (WebCore::SVGPathElement::createSVGPathSegLinetoHorizontalRel):
820 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalAbs):
821 (WebCore::SVGPathElement::createSVGPathSegLinetoVerticalRel):
822 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothAbs):
823 (WebCore::SVGPathElement::createSVGPathSegCurvetoCubicSmoothRel):
824 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothAbs):
825 (WebCore::SVGPathElement::createSVGPathSegCurvetoQuadraticSmoothRel):
826 (WebCore::SVGPathElement::svgMoveTo):
827 (WebCore::SVGPathElement::svgLineTo):
828 (WebCore::SVGPathElement::svgLineToHorizontal):
829 (WebCore::SVGPathElement::svgLineToVertical):
830 (WebCore::SVGPathElement::svgCurveToCubic):
831 (WebCore::SVGPathElement::svgCurveToCubicSmooth):
832 (WebCore::SVGPathElement::svgCurveToQuadratic):
833 (WebCore::SVGPathElement::svgCurveToQuadraticSmooth):
834 (WebCore::SVGPathElement::svgArcTo):
835 (WebCore::SVGPathElement::parseMappedAttribute):
836 * ksvg2/svg/SVGPathElement.h:
837 * ksvg2/svg/SVGPathSegArc.cpp:
838 (WebCore::SVGPathSegArcAbs::SVGPathSegArcAbs):
839 (WebCore::SVGPathSegArcAbs::setX):
840 (WebCore::SVGPathSegArcAbs::x):
841 (WebCore::SVGPathSegArcAbs::setY):
842 (WebCore::SVGPathSegArcAbs::y):
843 (WebCore::SVGPathSegArcAbs::setR1):
844 (WebCore::SVGPathSegArcAbs::r1):
845 (WebCore::SVGPathSegArcAbs::setR2):
846 (WebCore::SVGPathSegArcAbs::r2):
847 (WebCore::SVGPathSegArcAbs::setAngle):
848 (WebCore::SVGPathSegArcAbs::angle):
849 (WebCore::SVGPathSegArcRel::SVGPathSegArcRel):
850 (WebCore::SVGPathSegArcRel::setX):
851 (WebCore::SVGPathSegArcRel::x):
852 (WebCore::SVGPathSegArcRel::setY):
853 (WebCore::SVGPathSegArcRel::y):
854 (WebCore::SVGPathSegArcRel::setR1):
855 (WebCore::SVGPathSegArcRel::r1):
856 (WebCore::SVGPathSegArcRel::setR2):
857 (WebCore::SVGPathSegArcRel::r2):
858 (WebCore::SVGPathSegArcRel::setAngle):
859 (WebCore::SVGPathSegArcRel::angle):
860 * ksvg2/svg/SVGPathSegArc.h:
861 * ksvg2/svg/SVGPathSegCurvetoCubic.cpp:
862 (WebCore::SVGPathSegCurvetoCubicAbs::SVGPathSegCurvetoCubicAbs):
863 (WebCore::SVGPathSegCurvetoCubicAbs::setX):
864 (WebCore::SVGPathSegCurvetoCubicAbs::x):
865 (WebCore::SVGPathSegCurvetoCubicAbs::setY):
866 (WebCore::SVGPathSegCurvetoCubicAbs::y):
867 (WebCore::SVGPathSegCurvetoCubicAbs::setX1):
868 (WebCore::SVGPathSegCurvetoCubicAbs::x1):
869 (WebCore::SVGPathSegCurvetoCubicAbs::setY1):
870 (WebCore::SVGPathSegCurvetoCubicAbs::y1):
871 (WebCore::SVGPathSegCurvetoCubicAbs::setX2):
872 (WebCore::SVGPathSegCurvetoCubicAbs::x2):
873 (WebCore::SVGPathSegCurvetoCubicAbs::setY2):
874 (WebCore::SVGPathSegCurvetoCubicAbs::y2):
875 (WebCore::SVGPathSegCurvetoCubicRel::SVGPathSegCurvetoCubicRel):
876 (WebCore::SVGPathSegCurvetoCubicRel::setX):
877 (WebCore::SVGPathSegCurvetoCubicRel::x):
878 (WebCore::SVGPathSegCurvetoCubicRel::setY):
879 (WebCore::SVGPathSegCurvetoCubicRel::y):
880 (WebCore::SVGPathSegCurvetoCubicRel::setX1):
881 (WebCore::SVGPathSegCurvetoCubicRel::x1):
882 (WebCore::SVGPathSegCurvetoCubicRel::setY1):
883 (WebCore::SVGPathSegCurvetoCubicRel::y1):
884 (WebCore::SVGPathSegCurvetoCubicRel::setX2):
885 (WebCore::SVGPathSegCurvetoCubicRel::x2):
886 (WebCore::SVGPathSegCurvetoCubicRel::setY2):
887 (WebCore::SVGPathSegCurvetoCubicRel::y2):
888 * ksvg2/svg/SVGPathSegCurvetoCubic.h:
889 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.cpp:
890 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::SVGPathSegCurvetoCubicSmoothAbs):
891 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX):
892 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x):
893 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY):
894 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y):
895 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setX2):
896 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::x2):
897 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::setY2):
898 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::y2):
899 (WebCore::SVGPathSegCurvetoCubicSmoothRel::SVGPathSegCurvetoCubicSmoothRel):
900 (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX):
901 (WebCore::SVGPathSegCurvetoCubicSmoothRel::x):
902 (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY):
903 (WebCore::SVGPathSegCurvetoCubicSmoothRel::y):
904 (WebCore::SVGPathSegCurvetoCubicSmoothRel::setX2):
905 (WebCore::SVGPathSegCurvetoCubicSmoothRel::x2):
906 (WebCore::SVGPathSegCurvetoCubicSmoothRel::setY2):
907 (WebCore::SVGPathSegCurvetoCubicSmoothRel::y2):
908 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
909 * ksvg2/svg/SVGPathSegCurvetoQuadratic.cpp:
910 (WebCore::SVGPathSegCurvetoQuadraticAbs::SVGPathSegCurvetoQuadraticAbs):
911 (WebCore::SVGPathSegCurvetoQuadraticAbs::setX):
912 (WebCore::SVGPathSegCurvetoQuadraticAbs::x):
913 (WebCore::SVGPathSegCurvetoQuadraticAbs::setY):
914 (WebCore::SVGPathSegCurvetoQuadraticAbs::y):
915 (WebCore::SVGPathSegCurvetoQuadraticAbs::setX1):
916 (WebCore::SVGPathSegCurvetoQuadraticAbs::x1):
917 (WebCore::SVGPathSegCurvetoQuadraticAbs::setY1):
918 (WebCore::SVGPathSegCurvetoQuadraticAbs::y1):
919 (WebCore::SVGPathSegCurvetoQuadraticRel::SVGPathSegCurvetoQuadraticRel):
920 (WebCore::SVGPathSegCurvetoQuadraticRel::setX):
921 (WebCore::SVGPathSegCurvetoQuadraticRel::x):
922 (WebCore::SVGPathSegCurvetoQuadraticRel::setY):
923 (WebCore::SVGPathSegCurvetoQuadraticRel::y):
924 (WebCore::SVGPathSegCurvetoQuadraticRel::setX1):
925 (WebCore::SVGPathSegCurvetoQuadraticRel::x1):
926 (WebCore::SVGPathSegCurvetoQuadraticRel::setY1):
927 (WebCore::SVGPathSegCurvetoQuadraticRel::y1):
928 * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
929 (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
930 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.cpp:
931 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::SVGPathSegCurvetoQuadraticSmoothAbs):
932 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setX):
933 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::x):
934 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::setY):
935 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::y):
936 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::SVGPathSegCurvetoQuadraticSmoothRel):
937 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setX):
938 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::x):
939 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::setY):
940 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::y):
941 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
942 * ksvg2/svg/SVGPathSegLineto.cpp:
943 (WebCore::SVGPathSegLinetoAbs::SVGPathSegLinetoAbs):
944 (WebCore::SVGPathSegLinetoAbs::setX):
945 (WebCore::SVGPathSegLinetoAbs::x):
946 (WebCore::SVGPathSegLinetoAbs::setY):
947 (WebCore::SVGPathSegLinetoAbs::y):
948 (WebCore::SVGPathSegLinetoRel::SVGPathSegLinetoRel):
949 (WebCore::SVGPathSegLinetoRel::setX):
950 (WebCore::SVGPathSegLinetoRel::x):
951 (WebCore::SVGPathSegLinetoRel::setY):
952 (WebCore::SVGPathSegLinetoRel::y):
953 * ksvg2/svg/SVGPathSegLineto.h:
954 * ksvg2/svg/SVGPathSegLinetoHorizontal.cpp:
955 (WebCore::SVGPathSegLinetoHorizontalAbs::SVGPathSegLinetoHorizontalAbs):
956 (WebCore::SVGPathSegLinetoHorizontalAbs::setX):
957 (WebCore::SVGPathSegLinetoHorizontalAbs::x):
958 (WebCore::SVGPathSegLinetoHorizontalRel::SVGPathSegLinetoHorizontalRel):
959 (WebCore::SVGPathSegLinetoHorizontalRel::setX):
960 (WebCore::SVGPathSegLinetoHorizontalRel::x):
961 * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
962 * ksvg2/svg/SVGPathSegLinetoVertical.cpp:
963 (WebCore::SVGPathSegLinetoVerticalAbs::SVGPathSegLinetoVerticalAbs):
964 (WebCore::SVGPathSegLinetoVerticalAbs::setY):
965 (WebCore::SVGPathSegLinetoVerticalAbs::y):
966 (WebCore::SVGPathSegLinetoVerticalRel::SVGPathSegLinetoVerticalRel):
967 (WebCore::SVGPathSegLinetoVerticalRel::setY):
968 (WebCore::SVGPathSegLinetoVerticalRel::y):
969 * ksvg2/svg/SVGPathSegLinetoVertical.h:
970 * ksvg2/svg/SVGPathSegList.cpp:
971 (WebCore::SVGPathSegList::getPathSegAtLength):
972 * ksvg2/svg/SVGPathSegList.h:
973 * ksvg2/svg/SVGPathSegMoveto.cpp:
974 (WebCore::SVGPathSegMovetoAbs::SVGPathSegMovetoAbs):
975 (WebCore::SVGPathSegMovetoAbs::setX):
976 (WebCore::SVGPathSegMovetoAbs::x):
977 (WebCore::SVGPathSegMovetoAbs::setY):
978 (WebCore::SVGPathSegMovetoAbs::y):
979 (WebCore::SVGPathSegMovetoRel::SVGPathSegMovetoRel):
980 (WebCore::SVGPathSegMovetoRel::setX):
981 (WebCore::SVGPathSegMovetoRel::x):
982 (WebCore::SVGPathSegMovetoRel::setY):
983 (WebCore::SVGPathSegMovetoRel::y):
984 * ksvg2/svg/SVGPathSegMoveto.h:
985 * ksvg2/svg/SVGPolyElement.cpp:
986 (WebCore::SVGPolyElement::svgPolyTo):
987 * ksvg2/svg/SVGRadialGradientElement.cpp:
988 (WebCore::SVGRadialGradientElement::buildGradient):
989 * ksvg2/svg/SVGSVGElement.cpp:
990 (WebCore::SVGSVGElement::viewport):
991 (WebCore::SVGSVGElement::getCurrentTime):
992 * ksvg2/svg/SVGStopElement.cpp:
993 (WebCore::SVGStopElement::SVGStopElement):
994 (WebCore::SVGStopElement::parseMappedAttribute):
995 * ksvg2/svg/SVGStopElement.h:
996 * ksvg2/svg/SVGTransform.cpp:
997 (SVGTransform::translate):
998 (SVGTransform::scale):
999 * ksvg2/svg/SVGTransformDistance.cpp:
1000 (WebCore::SVGTransformDistance::addToSVGTransform):
1001 (WebCore::SVGTransformDistance::distance):
1002 * ksvg2/svg/SVGTransformable.cpp:
1003 (WebCore::SVGTransformable::parseTransformAttribute):
1005 2007-07-03 Anders Carlsson <andersca@apple.com>
1009 <rdar://problem/5289718>
1010 http://bugs.webkit.org/show_bug.cgi?id=14437
1011 CrashTracer: [REGRESSION] 76 crashes in Safari at com.apple.WebCore: WebCore::Frame::settings const + 6 (14437)
1013 Based on a patch from Maxime Britto.
1015 * page/mac/WebCoreFrameBridge.mm:
1016 (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
1017 If the script caused the frame to go away, return nil. This can only happen if a plugin in a subframe destroys
1020 (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
1021 ASSERT that this is only called on the main frame.
1023 2007-07-03 John Sullivan <sullivan@apple.com>
1025 Written by Darin, reviewed by me
1027 - fixed <rdar://problem/5249730> REGRESSION (Leopard, around 9A464): Safari opens the same local
1028 documents more than once due to canonicalization change
1030 * loader/mac/LoaderNSURLExtras.m:
1032 pass URL through KURL so we get KURL's version of canonicalization as well as
1033 NSURLProtocol's version of canonicalization
1035 2007-07-03 Sam Weinig <sam@webkit.org>
1039 Seventh round of fixes for implicit 64-32 bit conversion errors.
1040 <rdar://problem/5292262>
1042 - Adds more narrowPrecision functions to FloatPoint, FloatSize and FloatRect.
1043 - Changes over more implicit conversions to use new functions.
1045 * bindings/js/kjs_window.cpp:
1046 (KJS::WindowFunc::callAsFunction):
1047 * platform/graphics/FloatPoint.cpp:
1048 (WebCore::FloatPoint::matrixTransform):
1049 (WebCore::FloatPoint::narrowPrecision):
1050 * platform/graphics/FloatPoint.h:
1051 * platform/graphics/FloatRect.cpp:
1052 (WebCore::FloatRect::narrowPrecision):
1053 * platform/graphics/FloatRect.h:
1054 * platform/graphics/FloatSize.cpp:
1055 (WebCore::FloatSize::narrowPrecision):
1056 * platform/graphics/FloatSize.h:
1057 * platform/graphics/Path.cpp:
1058 (WebCore::Path::createRoundedRectangle):
1059 (WebCore::Path::createRectangle):
1060 (WebCore::Path::createEllipse):
1061 * platform/graphics/mac/ColorMac.mm:
1063 * platform/graphics/mac/IconMac.mm:
1064 (WebCore::Icon::paint):
1065 * platform/graphics/svg/cg/CgSupport.cpp:
1066 (WebCore::applyStrokeStyleToContext):
1067 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
1068 (WebCore::CGShadingRefForRadialGradient):
1069 (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
1070 (WebCore::SVGPaintServerGradient::handleBoundingBoxModeAndGradientTransformation):
1071 * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
1072 (WebCore::applyLuminanceToAlphaFilter):
1073 (WebCore::applyExpandAlphatoGrayscaleFilter):
1074 (WebCore::transformImageIntoGrayscaleMask):
1075 * platform/mac/WebCoreTextRenderer.mm:
1076 (WebCoreDrawTextAtPoint):
1077 * rendering/RenderPath.cpp:
1078 (WebCore::RenderPath::mapAbsolutePointToLocal):
1079 * rendering/RenderSVGContainer.cpp:
1080 (WebCore::RenderSVGContainer::calcViewport):
1081 * rendering/RenderSVGImage.cpp:
1082 (WebCore::RenderSVGImage::nodeAtPoint):
1083 * rendering/RenderSVGText.cpp:
1084 (WebCore::RenderSVGText::relativeBBox):
1086 2007-07-03 Anders Carlsson <andersca@apple.com>
1090 <rdar://problem/5261523>
1091 Crash playing MP11 on cnbc.com
1093 The WMP Netscape plugin still creates a window even when windowless mode is turned on. Work around this by
1094 always removing the "windowlessvideo" parameter before passing it to the plugin.
1095 According to http://msdn2.microsoft.com/en-us/library/bb249373.aspx, "The windowlessVideo property is not
1096 supported for Netscape Navigator. Setting a value for this property in Navigator may yield unexpected results."
1098 * plugins/win/PluginViewWin.cpp:
1099 (WebCore::PluginViewWndProc):
1100 (WebCore::PluginViewWin::paint):
1101 (WebCore::PluginViewWin::invalidateRect):
1102 (WebCore::PluginViewWin::determineQuirks):
1103 (WebCore::PluginViewWin::setParameters):
1104 (WebCore::PluginViewWin::PluginViewWin):
1105 (WebCore::PluginViewWin::init):
1106 * plugins/win/PluginViewWin.h:
1109 2007-07-03 Qing Zhao <qing@staikos.net>
1111 Reviewed by George Staikos.
1113 Only draw sunken state for appropriate widgets. Not, for example, for
1116 * platform/qt/RenderThemeQt.cpp:
1117 (WebCore::RenderThemeQt::applyTheme):
1119 2007-07-03 Antti Koivisto <antti@apple.com>
1123 REGRESSION: misplaced selection ring remains after link is no longer focused.
1124 <rdar://problem/5205580>
1126 Fix placement of selection ring when part of the ring is in a different layer.
1128 * rendering/RenderFlow.cpp:
1129 (WebCore::RenderFlow::addFocusRingRects): Get coordinates right when moving to a different layer.
1130 * rendering/RenderObject.cpp:
1131 (WebCore::RenderObject::setStyle):
1132 Don't reset state variables when not necessary. When repaint() was called at the end of setSyle() it would
1133 get repaint rects wrong in some cases.
1135 2007-07-03 Antti Koivisto <antti@apple.com>
1139 Blind fix for CrashTracer: [USER] 25 crashes in Safari at com.apple.WebCore: WebCore::Frame::document const + 6
1140 <rdar://problem/5263939>
1142 No one has managed to reproduce this but it looks like null check is needed here. There are plausible ways
1143 m_frame could be null for a live FrameView object.
1145 * page/FrameView.cpp:
1146 (WebCore::FrameView::needsLayout):
1148 2007-07-02 Oliver Hunt <oliver@apple.com>
1152 Fix for <rdar://problem/5098378> single-pixel image optimization needs to be rewritten to not depend on floating point bitmap
1153 Tested by fast/replaced/image-solid-color-with-alpha.html
1155 Switch from float to byte based bitmap when pulling the color from 1x1 pixel images so
1156 that we can use the single pixel image optimisation in WebKit/win.
1158 * platform/graphics/cg/ImageCG.cpp:
1159 (WebCore::BitmapImage::checkForSolidColor):
1161 2007-07-02 Adam Roben <aroben@apple.com>
1163 Fix Bug 14498: RenderContainer::positionForCoordinates contains an order of operations error
1164 http://bugs.webkit.org/show_bug.cgi?id=14498
1166 There were two bugs:
1167 1) xPos/yPos were flipped
1168 2) + binds tighter than ?:, so the order of operations was incorrect
1172 Test: fast/inline-block/14498-positionForCoordinates.html
1174 * rendering/RenderContainer.cpp:
1175 (WebCore::RenderContainer::positionForCoordinates):
1177 2007-07-02 Darin Adler <darin@apple.com>
1179 Reviewed by Kevin Decker and Tim Hatcher.
1181 - fix <rdar://problem/5307906> some classes need finalize methods because
1182 of non-trivial work done in dealloc methods
1184 * bindings/objc/DOMRGBColor.mm:
1185 (+[DOMRGBColor initialize]): Added. Tells finalizer to run on main thread,
1186 which is needed because we are sharing a CFDictionary here with no locking.
1188 * bridge/mac/WebCoreAXObject.mm:
1189 (+[WebCoreAXObject initialize]): Added. Tells finalizer to run on main thread.
1190 (-[WebCoreAXObject finalize]): Added. Calls detach.
1192 * WebCore.xcodeproj/project.pbxproj: Let Xcode do what it wants to do.
1194 2007-07-02 Sam Weinig <sam@webkit.org>
1198 Sixth round of fixes for implicit 64-32 bit conversion errors.
1199 <rdar://problem/5292262>
1201 Use new narrowPrecisionToFloat() and narrowPrecisionToCGFloat() where
1204 * html/CanvasRenderingContext2D.cpp:
1205 (WebCore::CanvasRenderingContext2D::setShadow):
1206 (WebCore::CanvasRenderingContext2D::applyShadow):
1207 * html/CanvasStyle.cpp:
1208 (WebCore::CanvasStyle::applyStrokeColor):
1209 (WebCore::CanvasStyle::applyFillColor):
1210 * ksvg2/svg/SVGAngle.cpp:
1211 * ksvg2/svg/SVGAnimationElement.cpp:
1212 (WebCore::SVGAnimationElement::parseKeyNumbers):
1213 (WebCore::parseKeySplines):
1214 (WebCore::SVGAnimationElement::handleTimerEvent):
1215 (WebCore::SVGAnimationElement::updateAnimatedValueForElapsedSeconds):
1216 * ksvg2/svg/SVGPatternElement.cpp:
1217 (WebCore::SVGPatternElement::buildPattern):
1218 * ksvg2/svg/SVGRadialGradientElement.cpp:
1219 (WebCore::SVGRadialGradientElement::buildGradient):
1220 * platform/graphics/cg/AffineTransformCG.cpp:
1221 (WebCore::AffineTransform::AffineTransform):
1222 (WebCore::AffineTransform::setMatrix):
1223 (WebCore::AffineTransform::map):
1224 (WebCore::AffineTransform::setA):
1225 (WebCore::AffineTransform::setB):
1226 (WebCore::AffineTransform::setC):
1227 (WebCore::AffineTransform::setD):
1228 (WebCore::AffineTransform::setE):
1229 (WebCore::AffineTransform::setF):
1230 (WebCore::AffineTransform::scale):
1231 (WebCore::AffineTransform::rotate):
1232 (WebCore::AffineTransform::translate):
1233 (WebCore::AffineTransform::shear):
1235 2007-07-02 John Sullivan <sullivan@apple.com>
1237 * page/mac/WebCoreFrameBridge.mm:
1238 (-[WebCoreFrameBridge getAllResourceDatas:andResponses:]):
1241 2007-07-02 Sam Weinig <sam@webkit.org>
1243 Rubberstamped by Darin.
1245 Rename FloatConversionUtilities.h to FloatConversion.h.
1248 * WebCore.vcproj/WebCore.vcproj:
1249 * WebCore.xcodeproj/project.pbxproj:
1250 * platform/DeprecatedString.cpp:
1251 * platform/FloatConversion.h: Copied from platform/FloatConversionUtilities.h.
1252 * platform/FloatConversionUtilities.h: Removed.
1253 * platform/StringImpl.cpp:
1255 2007-07-02 Sam Weinig <sam@webkit.org>
1259 Fifth round of fixes for implicit 64-32 bit conversion errors.
1260 <rdar://problem/5292262>
1262 Add toFloat() method to string classes and use it where appropriate.
1264 * WebCore.xcodeproj/project.pbxproj:
1265 * css/cssparser.cpp:
1266 (WebCore::CSSParser::lex):
1267 * ksvg2/svg/SVGAngle.cpp:
1268 (WebCore::SVGAngle::setValueAsString):
1269 * platform/AtomicString.h:
1270 (WebCore::AtomicString::toFloat):
1271 * platform/DeprecatedString.cpp:
1272 (WebCore::DeprecatedString::toFloat):
1273 * platform/DeprecatedString.h:
1274 * platform/FloatConversionUtilities.h: Added.
1275 (WebCore::narrowPrecisionToFloat):
1276 (WebCore::narrowPrecisionToCGFloat):
1277 * platform/PlatformString.h:
1278 * platform/String.cpp:
1279 (WebCore::String::toFloat):
1280 * platform/StringImpl.cpp:
1281 (WebCore::StringImpl::toFloat):
1282 * platform/StringImpl.h:
1284 2007-07-02 Sam Weinig <sam@webkit.org>
1286 Reviewed by Kevin McCullough.
1288 Fourth round of fixes for implicit 64-32 bit conversion errors.
1289 <rdar://problem/5292262>
1291 Use new piDouble and piFloat constants instead of M_PI.
1293 * html/CanvasRenderingContext2D.cpp:
1294 (WebCore::CanvasRenderingContext2D::rotate):
1295 * ksvg2/svg/SVGParserUtilities.cpp:
1296 (WebCore::SVGPathParser::calculateArc):
1297 * platform/graphics/Path.cpp:
1298 (WebCore::pathLengthApplierFunction):
1299 (WebCore::Path::createEllipse):
1300 * platform/graphics/cg/GraphicsContextCG.cpp:
1301 (WebCore::GraphicsContext::drawEllipse):
1302 (WebCore::GraphicsContext::strokeArc):
1303 * platform/graphics/cg/PDFDocumentImage.cpp:
1304 (WebCore::PDFDocumentImage::setCurrentPage):
1305 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h:
1306 * rendering/RenderPath.cpp:
1307 (WebCore::drawMarkerWithData):
1309 2007-07-01 Adam Roben <aroben@apple.com>
1311 Clarify/fix {Shadow,BorderImage}ParseContext's memory management
1313 Prefast emitted warnings that drew my attention to
1314 {Shadow,BorderImage}ParseContext::failed(). It turned out that these
1315 methods were actually correct, but rather confusing. "failed" really
1316 meant "abort and clean up" rather than "did you fail?", which was
1317 unclear. However, once I figured that out, the "and clean up" part was
1318 still a bit confusing, because all failed() did was to set a flag that
1319 would later cause the ParseContext's members to be deleted in the
1320 destructor. To clear this up, I've gotten rid of the failed() method
1321 altogether. It always returned false, so I've replaced all calls to
1322 it with the value false.
1324 I also noticed that the lifetime management of the ParseContexts'
1325 members was in all cases confusing, and in some cases wrong. The
1326 m_border{Top,Right,Bottom,Left} members of BorderImageParseContext
1327 were leaked whenever a border-image property was successfully parsed.
1328 I fixed that by holding these members in OwnPtrs. The
1329 CSSPrimitiveValue members of {Shadow,BorderImage}ParseContext, which
1330 inherit from Shared, were being explicitly deleted, which is not a
1331 safe way to manage the lifetime of objects that inherit from Shared.
1332 To fix this, I put those members inside RefPtrs. These two changes
1333 allowed me to remove the destructors entirely.
1337 All regression tests pass.
1339 * css/cssparser.cpp:
1340 (WebCore::ShadowParseContext::commitValue): Use .release() to avoid
1342 (WebCore::ShadowParseContext::commitLength): Use a RefPtr for the new
1343 value to avoid a leak.
1344 (WebCore::CSSParser::parseShadow): Use 'false' instead of
1345 'context.failed()', and use .release() to avoid ref-count churn.
1346 (WebCore::BorderImageParseContext::commitWidth): Updated to use
1348 (WebCore::CSSParser::parseBorderImage): Use 'false' instead of
1351 2007-07-01 Anders Carlsson <andersca@apple.com>
1353 Reviewed by John Sullivan.
1355 <rdar://problem/5297146>
1356 Crash in Mail at WebCore::Frame::setUserStyleSheetLocation (reproducible w/ particular message)
1359 (WebCore::Cache::requestResource):
1360 Only insert the resource in the LRU list if the cache is enabled.
1362 (WebCore::Cache::insertInLRUList):
1363 (WebCore::Cache::resourceAccessed):
1364 Assert that the resource is in the cache.
1366 2007-07-01 Darin Adler <darin@apple.com>
1368 * css/tokenizer.flex: Rolled out the fix for 14453.
1369 The layout test wasn't passing. We'll try again.
1371 2007-07-01 Adam Roben <aroben@apple.com>
1373 Fix a crash in ~PluginViewWin()
1375 This crash was introduced in r23827.
1379 Fixes dom/html/level2/html/HTMLAnchorElement01.html
1381 * plugins/win/PluginViewWin.cpp:
1382 (WebCore::PluginViewWin::~PluginViewWin): Allow m_plugin to be null.
1384 2007-07-01 Rob Buis <buis@kde.org>
1388 http://bugs.webkit.org/show_bug.cgi?id=14453
1389 REGRESSION: www.nzherald.co.nz almost all the formating is gone
1391 * css/tokenizer.flex: Allow hex colors with 2, 4, or 5 hex digits.
1393 2007-07-01 Sam Weinig <sam@webkit.org>
1397 Third round of implicit 64-32 bit conversion errors fixes.
1398 <rdar://problem/5292262>
1400 - Use new CSSPrimitiveValue::getDoubleValue() and CSSPrimitiveValue::getIntValue()
1401 methods instead of CSSPrimitiveValue::getFloatValue() where appropriate.
1403 * css/CSSPrimitiveValue.cpp:
1404 (WebCore::CSSPrimitiveValue::computeLengthInt):
1405 (WebCore::CSSPrimitiveValue::computeLengthIntForLength):
1406 (WebCore::CSSPrimitiveValue::computeLengthShort):
1407 (WebCore::CSSPrimitiveValue::computeLengthFloat):
1408 (WebCore::CSSPrimitiveValue::computeLengthDouble):
1409 (WebCore::CSSPrimitiveValue::getDoubleValue):
1410 * css/CSSPrimitiveValue.h:
1411 (WebCore::CSSPrimitiveValue::getDoubleValue):
1412 (WebCore::CSSPrimitiveValue::getFloatValue):
1413 (WebCore::CSSPrimitiveValue::getIntValue):
1415 (WebCore::Counter::listStyleNumber):
1416 * css/MediaQueryEvaluator.cpp:
1417 (WebCore::parseAspectRatio):
1418 * css/cssparser.cpp:
1419 (WebCore::BorderImageParseContext::commitBorderImage):
1420 * css/cssstyleselector.cpp:
1421 (WebCore::convertToLength):
1422 (WebCore::applyCounterList):
1423 (WebCore::CSSStyleSelector::applyProperty):
1424 (WebCore::CSSStyleSelector::mapBackgroundSize):
1425 (WebCore::CSSStyleSelector::mapBackgroundXPosition):
1426 (WebCore::CSSStyleSelector::mapBackgroundYPosition):
1427 * html/HTMLTableElement.cpp:
1428 (WebCore::HTMLTableElement::parseMappedAttribute):
1429 * ksvg2/css/SVGCSSStyleSelector.cpp:
1430 (WebCore::CSSStyleSelector::applySVGProperty):
1431 * ksvg2/misc/KCanvasRenderingStyle.cpp:
1432 (WebCore::KSVGPainterFactory::cssPrimitiveToLength):
1433 (WebCore::KSVGPainterFactory::dashArrayFromRenderingStyle):
1435 2007-07-01 Pamela Greene <pamg.bugs@gmail.com>
1439 Fix for <http://bugs.webkit.org/show_bug.cgi?id=14320>
1440 Bug 14320: <canvas> gradient stops at identical offsets are applied in the wrong order
1441 <rdar://problem/5290084>
1443 Use std::stable_sort() instead of qsort() to sort gradient stops.
1444 Adjust the comparison function accordingly.
1446 * html/CanvasGradient.cpp:
1447 (WebCore::compareStops):
1448 (WebCore::CanvasGradient::findStop):
1450 2007-07-01 Holger Hans Peter Freyther <zecke@selfish.org>
1454 m_usesPageCache was not initialized. As the b/f cache is only
1455 implemented in the Mac port and WebView.mm is taking care of calling
1456 Settings::setUsesPageCache I decided to make it false by default.
1458 * page/Settings.cpp:
1459 (WebCore::Settings::Settings): m_usesPageCache was not initialized
1461 2007-07-01 Holger Hans Peter Freyther <zecke@selfish.org>
1465 Inherited- and NonInheritedFlags is a bit field. But for comparsion
1466 the other part of the union _iflags/_niflags is used for comparions.
1467 This will compare 5 uninitialized bits of _iflags and 22 of _niflags.
1468 Make sure the unused bits have a specified value.
1470 * ksvg2/css/SVGRenderStyle.h:
1471 (WebCore::SVGRenderStyle::setBitDefaults): Make sure the unused bits
1472 have a value as well.
1474 2007-06-30 Adam Roben <aroben@apple.com>
1476 Compile WebCore with /W4 on Windows
1478 Some more warnings were disabled globally, including assignment within
1479 a conditional, unused variable, and various warnings related to
1480 inability to instantiate opaque structs.
1482 In addition, the "unreachable code" warning was turned off for
1483 CSSGrammar.cpp and XPathGrammar.cpp.
1487 * WebCore.vcproj/WebCore.vcproj:
1489 2007-06-29 Adam Roben <aroben@apple.com>
1491 Give CString an equality operator to fix a bug in HTMLFormElement::formData
1493 The bug was spotted by MSVC /W4. The problem was that we were comparing
1494 a CString to a char* using ==, but CString had no equality operator.
1495 The result was that the CString was being cast to a const char* and a
1496 pointer comparison was being done, which would (essentially) always
1499 There are two parts to the fix: get rid of CString's const char*
1500 casting operator, and add an equality operator. Previous uses of the
1501 casting operator have been changed to use CString::data().
1503 Test: http/misc/isindex-formdata.html
1507 * dom/XMLTokenizer.cpp:
1508 (WebCore::parseXMLDocumentFragment):
1509 * html/HTMLDocument.cpp:
1510 (WebCore::HTMLDocument::determineParseMode):
1511 * html/HTMLFormElement.cpp:
1512 (WebCore::HTMLFormElement::formData):
1513 * loader/TextResourceDecoder.cpp:
1514 (WebCore::TextResourceDecoder::checkForCSSCharset):
1515 * platform/CString.cpp:
1516 (WebCore::operator==):
1517 * platform/CString.h:
1518 * platform/KURL.cpp:
1519 (WebCore::encodeRelativeString):
1520 * platform/StringImpl.cpp:
1521 (WebCore::StringImpl::toDouble):
1522 * platform/network/cf/FormDataStreamCFNet.cpp:
1523 (WebCore::setHTTPBody):
1524 * platform/network/mac/FormDataStreamMac.mm:
1525 (WebCore::setHTTPBody):
1526 * platform/win/ClipboardUtilitiesWin.cpp:
1527 (WebCore::markupToCF_HTML):
1528 * plugins/win/PluginPackageWin.cpp:
1529 (WebCore::splitString):
1530 * plugins/win/PluginStreamWin.cpp:
1531 (WebCore::PluginStreamWin::startStream):
1532 (WebCore::PluginStreamWin::destroyStream):
1533 (WebCore::PluginStreamWin::sendJavaScriptStream):
1534 (WebCore::PluginStreamWin::didFinishLoading):
1535 * plugins/win/PluginViewWin.cpp:
1536 (WebCore::PluginViewWin::start):
1537 (WebCore::createUTF8String):
1538 (WebCore::PluginViewWin::userAgent):
1539 * xml/XSLStyleSheet.cpp:
1540 (WebCore::XSLStyleSheet::locateStylesheetSubResource):
1541 * xml/XSLTProcessor.cpp:
1542 (WebCore::xsltParamArrayFromParameterMap):
1544 2007-06-29 Adam Roben <aroben@apple.com>
1546 Initialize two variables that MSVC /W4 isn't smart enough to realize always get initialized
1550 * editing/Editor.cpp:
1551 (WebCore::Editor::advanceToNextMisspelling):
1552 * html/HTMLParser.cpp:
1554 2007-06-29 Adam Roben <aroben@apple.com>
1556 Fix some possibly unitialized variables found by MSVC /W4
1560 * rendering/bidi.cpp:
1561 (WebCore::RenderBlock::layoutInlineChildren):
1563 2007-06-29 Adam Roben <aroben@apple.com>
1565 Remove bogus cast found by MSVC /W4
1567 Reviewed by John and Oliver.
1569 * ksvg2/css/SVGCSSParser.cpp:
1570 (WebCore::CSSParser::parseSVGValue):
1572 2007-06-29 Adam Roben <aroben@apple.com>
1574 Remove unused local functions uncovered by MSVC /W4
1576 Reviewed by John and Oliver.
1578 * platform/win/SearchPopupMenuWin.cpp:
1579 * rendering/RenderText.cpp:
1581 2007-06-29 Adam Roben <aroben@apple.com>
1583 Don't take the address of temporary values to appease MSVC /W4
1587 No regression test possible.
1589 * platform/win/PopupMenuWin.cpp:
1590 (WebCore::PopupMenu::invalidateItem):
1591 (WebCore::PopupMenu::valueChanged):
1592 (WebCore::PopupWndProc):
1593 * platform/win/ScrollViewWin.cpp:
1594 (WebCore::ScrollView::ScrollViewPrivate::scrollBackingStore):
1595 * platform/win/UniscribeController.cpp:
1596 (WebCore::UniscribeController::shapeAndPlaceItem):
1597 * platform/win/WidgetWin.cpp:
1598 (WebCore::Widget::invalidateRect):
1600 2007-06-29 Adam Roben <aroben@apple.com>
1602 Make an int -> UINT conversion explicit that MSVC /W4 complains about
1604 Reviewed by John and Oliver.
1606 No regression test possible.
1608 * platform/win/SoundWin.cpp:
1610 2007-06-29 Adam Roben <aroben@apple.com>
1612 Remove unreachable code uncovered by MSVC /W4
1616 No regression test possible.
1618 * html/CanvasRenderingContext2D.cpp:
1619 (WebCore::CanvasRenderingContext2D::createPattern):
1620 * html/HTMLAnchorElement.cpp:
1621 (WebCore::HTMLAnchorElement::isLiveLink):
1622 * html/HTMLElement.cpp:
1623 (WebCore::HTMLElement::contentEditable):
1624 * platform/DeprecatedString.cpp:
1625 (WebCore::allocateHandle):
1626 (WebCore::freeHandle):
1627 * plugins/win/npapi.cpp:
1628 (pluginViewForInstance):
1629 * rendering/RenderImage.cpp:
1630 (WebCore::RenderImage::isWidthSpecified):
1631 (WebCore::RenderImage::isHeightSpecified):
1632 * rendering/RenderTheme.cpp:
1633 (WebCore::RenderTheme::isControlStyled):
1635 2007-06-29 John Sullivan <sullivan@apple.com>
1637 Reviewed by Oliver Hunt.
1639 - WebCore support for accessing the set of rectangles that encompass the selected text
1643 (WebCore::Frame::selectionTextRects):
1644 new function, fills in a passed Vector with the line box rects that represent the selected range
1646 * rendering/RenderText.cpp:
1647 (WebCore::RenderText::addLineBoxRects):
1648 fixed off-by-one bug involving use of the confusing function InlineTextBox::end()
1651 exported symbol for this new function
1653 2007-06-29 Justin Garcia <justin.garcia@apple.com>
1655 Reviewed by Harrison.
1657 <rdar://problem/5299513> REGRESSION: In Mail, a crash occurs when attempting to undo a newly created To Do
1659 Rolled out a change made in r23787.
1661 * editing/DeleteSelectionCommand.cpp:
1662 (WebCore::DeleteSelectionCommand::handleGeneralDelete):
1664 2007-06-29 Geoffrey Garen <ggaren@apple.com>
1666 Reviewed by Darin Adler, Anders Carlsson.
1668 Fixed <rdar://problem/5303567> REGRESSION: XMLHttpRequest.responseXML
1669 returns NULL if response MIME type is not XML -- breaks Wikipedia widget
1671 The spec says that responseXML must return null for any HTTP response
1672 with a non-XML MIME type. Technically, that leaves non-HTTP responses
1673 free to do whatever they want.
1675 * xml/xmlhttprequest.cpp:
1676 (WebCore::XMLHttpRequest::getResponseXML): Only return null for non-XML
1677 MIME types if the response was HTTP.
1679 2007-06-29 Sam Weinig <sam@webkit.org>
1683 Second pass at fixing implicit 64-32 bit conversion errors.
1684 <rdar://problem/5292262>
1686 - Use new JSValue::toFloat() method instead of toNumber() where
1689 * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
1690 (WebCore::JSCanvasRenderingContext2D::setFillColor):
1691 (WebCore::JSCanvasRenderingContext2D::setStrokeColor):
1692 (WebCore::JSCanvasRenderingContext2D::strokeRect):
1693 (WebCore::JSCanvasRenderingContext2D::drawImage):
1694 (WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
1695 (WebCore::JSCanvasRenderingContext2D::setShadow):
1696 * bindings/js/JSHTMLSelectElementCustom.cpp:
1697 (WebCore::JSHTMLSelectElement::remove):
1698 * bindings/js/JSSVGMatrixCustom.cpp:
1699 (WebCore::JSSVGMatrix::rotateFromVector):
1700 * bindings/js/kjs_events.cpp:
1701 (KJS::JSClipboardPrototypeFunction::callAsFunction):
1702 * bindings/scripts/CodeGeneratorJS.pm:
1703 * ksvg2/svg/SVGScriptElement.cpp:
1704 (WebCore::SVGScriptElement::executeScript):
1706 2007-06-29 Adele Peterson <adele@apple.com>
1708 Rolling out fix for <rdar://problem/5301322> since it broke layout tests.
1710 * html/HTMLInputElement.h:
1711 * html/HTMLTextAreaElement.h:
1713 2007-06-29 Geoffrey Garen <ggaren@apple.com>
1715 Reviewed by Oliver Hunt.
1717 Fixed <rdar://problem/4962298> REGRESSION: Synchronous XHR for missing
1718 local file throws exception -- breaks Wikipedia widget
1720 * WebCore.xcodeproj/project.pbxproj:
1721 * xml/xmlhttprequest.cpp:
1722 (WebCore::XMLHttpRequest::send): Don't throw exceptions for local files.
1724 2007-06-29 Ada Chan <adachan@apple.com>
1728 Fixed a previous fix to a signed/unsigned mismatch.
1730 * plugins/win/PluginPackageWin.cpp:
1731 (WebCore::splitString):
1733 2007-06-29 Adele Peterson <adele@apple.com>
1735 Reviewed by Ada and Kevin McCullough.
1737 Fix for <rdar://problem/5301322> REGRESSION: Select All selects the whole page when used in readonly textareas
1739 Implemented canSelectAll and selectAll for text fields and textareas, since they're special cases even when they're not editable.
1742 fast/forms/input-readonly-select-all.html
1743 fast/forms/textarea-readonly-select-all.html
1745 * html/HTMLInputElement.h:
1746 (WebCore::HTMLInputElement::canSelectAll):
1747 (WebCore::HTMLInputElement::selectAll):
1748 * html/HTMLTextAreaElement.h:
1749 (WebCore::HTMLTextAreaElement::canSelectAll):
1750 (WebCore::HTMLTextAreaElement::selectAll):
1752 2007-06-29 Adam Roben <aroben@apple.com>
1756 This is what happens when you test your patch on two OSs and then
1757 commit from the wrong one.
1759 * rendering/RenderTextControl.cpp:
1760 (WebCore::RenderTextControl::valueChanged):
1761 (WebCore::RenderTextControl::itemText):
1762 (WebCore::RenderTextControl::itemIsSeparator):
1764 2007-06-29 Adam Roben <aroben@apple.com>
1766 Start compiling WebCore with /W3 under MSVC
1768 One warning was globally disabled: implicit conversion of int to bool.
1772 * WebCore.vcproj/WebCore.vcproj:
1774 2007-06-29 Adam Roben <aroben@apple.com>
1776 Turn DeprecatedStringData's copy constructor into a static method to appease MSVC /W3
1778 DeprecatedStringData now has no public copy constructor. The single
1779 call to the old one has been replaced with a call to the new
1780 DeprecatedStringData::createAndAdopt static method.
1784 All regression tests pass.
1786 * platform/DeprecatedString.cpp:
1787 (WebCore::DeprecatedStringData::createAndAdopt):
1788 (WebCore::DeprecatedStringData::adopt):
1789 (WebCore::DeprecatedString::detachIfInternal):
1790 * platform/DeprecatedString.h:
1792 2007-06-29 Adam Roben <aroben@apple.com>
1794 Fix more signed/unsigned mismatches uncovered by MSVC /W3
1798 No regression tests possible.
1800 * platform/network/cf/ResourceResponseCFNet.cpp:
1801 (WebCore::filenameHasSaneExtension):
1802 * platform/win/FontDataWin.cpp:
1803 (WebCore::FontData::containsCharacters):
1804 * platform/win/PlatformScrollBarSafari.cpp:
1806 * platform/win/UniscribeController.cpp:
1807 (WebCore::UniscribeController::advance):
1808 (WebCore::UniscribeController::shapeAndPlaceItem):
1809 * platform/win/WebCoreTextRenderer.cpp:
1810 (WebCore::doDrawTextAtPoint):
1811 * plugins/win/PluginDatabaseWin.cpp:
1812 (WebCore::parseVersionString):
1813 * plugins/win/PluginPackageWin.cpp:
1814 (WebCore::splitString):
1815 * plugins/win/PluginViewWin.cpp:
1816 (WebCore::freeStringArray):
1817 (WebCore::PluginViewWin::invalidateTimerFired):
1819 2007-06-29 Adam Roben <aroben@apple.com>
1821 Change PopupMenuClient::listSize to return an int to appease warnings from MSVC /W3
1825 No regression test possible.
1827 * html/HTMLSelectElement.cpp:
1828 (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
1829 * platform/PopupMenuClient.h:
1830 * platform/win/PopupMenuWin.cpp:
1831 (WebCore::PopupMenu::calculatePositionAndSize):
1832 (WebCore::PopupMenu::focusFirst):
1833 (WebCore::PopupMenu::focusLast):
1834 (WebCore::PopupMenu::down):
1835 (WebCore::PopupMenu::up):
1836 (WebCore::PopupMenu::paint):
1837 * rendering/RenderMenuList.cpp:
1838 * rendering/RenderMenuList.h:
1839 * rendering/RenderTextControl.cpp:
1840 * rendering/RenderTextControl.h:
1842 2007-06-29 Adam Roben <aroben@apple.com>
1844 Fix two typos spotted by MSVC /W3
1846 Both typos were a semicolon following the condition of an if. This
1847 would cause the intended body of the if to always execute.
1849 Unfortunately neither of these fixes are testable.
1850 BackForwardList::goForward is only called from WebBackForwardList, and
1851 the createDragImageFromImage bug would only manifest itself when
1852 CreateCompatibleDC failed.
1856 * history/BackForwardList.cpp:
1857 (WebCore::BackForwardList::goForward):
1858 * platform/win/DragImageWin.cpp:
1859 (WebCore::createDragImageFromImage):
1861 2007-06-29 Adam Treat <adam@staikos.net>
1863 Reviewed by george Staikos.
1865 Support horizontal and vertical scroll, and set the right units.
1867 * platform/qt/WheelEventQt.cpp:
1868 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
1870 2007-06-28 Adam Roben <aroben@apple.com>
1872 Get WebCore compiling with /W2 on Windows
1876 No regression tests affected.
1878 * WebCore.vcproj/WebCore.vcproj: Turn the warning level up to 2, and
1879 disable two warnings: implicit int <=> float conversion, and class vs.
1880 struct inconsistency.
1881 * dom/CharacterData.cpp:
1882 (WebCore::CharacterData::deleteData): Cast to int before negating.
1884 (WebCore::Cache::remove): Ditto.
1885 * platform/graphics/Path.cpp:
1886 (WebCore::pathLengthApplierFunction): Consistently use floats.
1887 * platform/graphics/cg/GraphicsContextCG.cpp:
1888 (WebCore::GraphicsContext::drawEllipse): Ditto.
1889 * platform/win/GraphicsContextWin.cpp:
1890 (WebCore::GraphicsContext::drawLineForMisspellingOrBadGrammar): Ditto.
1892 2007-06-28 Geoffrey Garen <ggaren@apple.com>
1894 Reviewed by Maciej Stachowiak.
1896 Fixed <rdar://problem/5299005> DOM timers fire without a local autorelease
1897 pool => pathologically high high water mark
1899 I couldn't measure any performance problems with iBench HTML or PLT.
1901 * WebCore.xcodeproj/project.pbxproj: Changed .cpp file to be ObjC++.
1902 * platform/mac/SharedTimerMac.cpp:
1903 (WebCore::timerFired): Added autorelease pool.
1905 2007-06-28 Mitz Pettel <mitz@webkit.org>
1909 - fix http://bugs.webkit.org/show_bug.cgi?id=14118
1910 ASSERTION FAILED: !needsLayout() seen again
1912 Test: fast/dynamic/recursive-layout.html
1914 * page/FrameView.cpp:
1915 (WebCore::FrameView::layout): Removed the midLayout guards around
1916 the calls to invalidateSelection() and updateWidgetPositions(). Those
1917 calls may dirty the layout, but in that case they also update it, so
1918 they should be allowed to do it. Added an ASSERT to make sure that when
1919 they return, the root is not marked for layout.
1921 2007-06-28 Sam Weinig <sam@webkit.org>
1923 Rubberstamped by Adam Roben.
1925 Roll out r23861. It caused the buildbot to fail on intel.
1928 (WebCore::Page::goToItem):
1930 2007-06-26 Maxime Britto <mbritto@pleyo.com>
1934 Patch for http://bugs.webkit.org/show_bug.cgi?id=13038
1935 ASSERTION FAILED: item->target().isEmpty() || m_mainFrame->tree()->find(item->target()) == m_mainFrame
1937 Modification of an ASSERT on goToItem related to go back/forward in
1938 history.Don't need to check the frameset if the target is _blank.
1941 (WebCore::Page::goToItem):
1943 2007-06-28 Anders Carlsson <andersca@apple.com>
1947 <rdar://problem/5234139>
1948 <object> with PNG src rendered as image document.
1950 Complete the URL before passing it to the frame loader client.
1952 * html/HTMLObjectElement.cpp:
1953 (WebCore::HTMLObjectElement::isImageType):
1955 2007-06-28 Rob Buis <buis@kde.org>
1959 http://bugs.webkit.org/show_bug.cgi?id=14373
1960 CSS1: selectors (classes and IDs) cannot start with a dash or with a digit
1962 Make sure the id selector validates against the CSS2.1 identfier
1963 definition, not the hexcolor/HASH definition.
1966 * css/cssparser.cpp:
1967 (WebCore::CSSParser::lex):
1968 (WebCore::CSSParser::text):
1969 * css/tokenizer.flex:
1971 2007-06-28 Simon Hausmann <hausmann@kde.org>
1975 Implemented PasteboardQt::writeSelection to copy the selected text into the Clipboard as well as PasteboardQt::plainText to retrieve plain text from the clipboard for pasting for example into form fields.
1977 * platform/qt/PasteboardQt.cpp:
1978 (WebCore::Pasteboard::writeSelection):
1980 2007-06-28 Antti Koivisto <antti@apple.com>
1984 Fix http://bugs.webkit.org/show_bug.cgi?id=14332
1985 Bug 14332: REGRESSION (r21145): <td> width ignored
1986 <rdar://problem/5290123>
1988 Cells in table with non-zero cellpadding are not considered empty.
1990 * rendering/AutoTableLayout.cpp:
1991 (WebCore::AutoTableLayout::recalcColumn):
1993 2007-06-28 Adam Roben <aroben@apple.com>
1995 Fix <rdar://problem/5300455> Prefast: typo in RenderBlock::paintObject
1999 No layout test possible, as this bug didn't have any effect since
2000 "bool & bool" has the same value as "bool && bool"
2002 * rendering/RenderBlock.cpp:
2003 (WebCore::RenderBlock::paintObject): Changed & to &&.
2005 2007-06-28 Adam Roben <aroben@apple.com>
2007 Fix <rdar://problem/5300443> word-break and -webkit-user-modify allow any value
2009 The bug was caused by two typos found by prefast.
2013 * css/cssparser.cpp:
2014 (WebCore::CSSParser::parseValue): Fixed typos.
2016 2007-06-20 Matt Perry <mpComplete@gmail.com>
2020 - Fix http://bugs.webkit.org/show_bug.cgi?id=14251:
2021 onchange handler for select controls doesn't fire when changing via keyboard
2023 * html/HTMLSelectElement.cpp:
2024 (WebCore::HTMLSelectElement::menuListDefaultEventHandler): Got rid of
2025 a call to saveLastSelection in the "Enter" key handler for select
2026 controls that was preventing onchange from firing.
2028 2007-06-27 Sam Weinig <sam@webkit.org>
2030 Fix Gdk, Qt, and Win32 builds.
2033 * WebCore.vcproj/WebCore.vcproj:
2035 2007-06-27 Sam Weinig <sam@webkit.org>
2039 Patch for http://bugs.webkit.org/show_bug.cgi?id=14319
2040 Move the Selection object out of the JS bindings
2042 - Renames JS Object Selection to DOMSelection to avoid a name
2045 * DerivedSources.make:
2046 * WebCore.xcodeproj/project.pbxproj:
2047 * bindings/js/kjs_window.cpp:
2048 (KJS::WindowPrivate::WindowPrivate):
2049 (KJS::Window::mark):
2050 (KJS::Window::clearHelperObjectProperties):
2051 (KJS::WindowFunc::callAsFunction):
2052 (KJS::Window::disconnectFrame):
2053 * bindings/js/kjs_window.h:
2055 * page/DOMSelection.cpp: Added.
2056 (WebCore::DOMSelection::DOMSelection):
2057 (WebCore::DOMSelection::frame):
2058 (WebCore::DOMSelection::disconnectFrame):
2059 (WebCore::DOMSelection::anchorNode):
2060 (WebCore::DOMSelection::baseNode):
2061 (WebCore::DOMSelection::anchorOffset):
2062 (WebCore::DOMSelection::baseOffset):
2063 (WebCore::DOMSelection::focusNode):
2064 (WebCore::DOMSelection::extentNode):
2065 (WebCore::DOMSelection::focusOffset):
2066 (WebCore::DOMSelection::extentOffset):
2067 (WebCore::DOMSelection::isCollapsed):
2068 (WebCore::DOMSelection::type):
2069 (WebCore::DOMSelection::rangeCount):
2070 (WebCore::DOMSelection::collapse):
2071 (WebCore::DOMSelection::collapseToEnd):
2072 (WebCore::DOMSelection::collapseToStart):
2073 (WebCore::DOMSelection::empty):
2074 (WebCore::DOMSelection::setBaseAndExtent):
2075 (WebCore::DOMSelection::setPosition):
2076 (WebCore::DOMSelection::modify):
2077 (WebCore::DOMSelection::getRangeAt):
2078 (WebCore::DOMSelection::removeAllRanges):
2079 (WebCore::DOMSelection::addRange):
2080 (WebCore::DOMSelection::toString):
2081 * page/DOMSelection.h: Added.
2082 * page/DOMSelection.idl: Added.
2083 * page/DOMWindow.cpp:
2084 (WebCore::DOMWindow::disconnectFrame):
2085 (WebCore::DOMWindow::getSelection):
2087 * page/DOMWindow.idl:
2089 2007-06-27 Sam Weinig <sam@webkit.org>
2093 2nd patch for http://bugs.webkit.org/show_bug.cgi?id=14111
2094 Autogenerate Event JS binding
2096 - Cleanup kjs_events
2098 * bindings/js/kjs_events.cpp:
2099 (WebCore::JSAbstractEventListener::JSAbstractEventListener):
2100 (WebCore::JSAbstractEventListener::handleEvent):
2101 (WebCore::JSAbstractEventListener::isHTMLEventListener):
2102 (WebCore::JSUnprotectedEventListener::JSUnprotectedEventListener):
2103 (WebCore::JSUnprotectedEventListener::~JSUnprotectedEventListener):
2104 (WebCore::JSUnprotectedEventListener::listenerObj):
2105 (WebCore::JSUnprotectedEventListener::windowObj):
2106 (WebCore::JSUnprotectedEventListener::clearWindowObj):
2107 (WebCore::JSUnprotectedEventListener::mark):
2108 (WebCore::JSEventListener::JSEventListener):
2109 (WebCore::JSEventListener::~JSEventListener):
2110 (WebCore::JSEventListener::listenerObj):
2111 (WebCore::JSEventListener::windowObj):
2112 (WebCore::JSEventListener::clearWindowObj):
2113 (WebCore::JSLazyEventListener::JSLazyEventListener):
2114 (WebCore::JSLazyEventListener::listenerObj):
2115 (WebCore::JSLazyEventListener::parseCode):
2116 (WebCore::getNodeEventListener):
2117 (WebCore::JSClipboard::JSClipboard):
2118 (WebCore::JSClipboard::getValueProperty):
2119 (WebCore::JSClipboard::putValueProperty):
2120 (WebCore::JSClipboardPrototypeFunction::callAsFunction):
2122 (WebCore::toClipboard):
2123 * bindings/js/kjs_events.h:
2124 (WebCore::JSClipboard::classInfo):
2125 (WebCore::JSClipboard::impl):
2126 * bindings/js/kjs_window.h:
2127 * ksvg2/events/JSSVGLazyEventListener.h:
2129 2007-06-27 Sam Weinig <sam@webkit.org>
2131 Reviewed by Adam Roben.
2133 Patch for http://bugs.webkit.org/show_bug.cgi?id=12045
2134 Crash under gmalloc at WTF::RefPtr<WebCore::HTMLSliderThumbElement>::operator->
2135 <rdar://problem/5286670>
2137 Test: fast/forms/thumbslider-no-parent-slider.html
2138 Test: fast/forms/thumbslider-crash.html
2140 * rendering/RenderObject.h:
2141 (WebCore::RenderObject::isSlider):
2142 * rendering/RenderSlider.h:
2143 (WebCore::RenderSlider::isSlider):
2144 * rendering/RenderTheme.cpp:
2145 (WebCore::RenderTheme::paint): Only paint thumbslider
2146 if the parent renderer is a RenderSlider.
2147 * rendering/RenderThemeMac.mm:
2148 (WebCore::RenderThemeMac::paintSliderThumb):
2149 * rendering/RenderThemeSafari.cpp:
2150 (WebCore::RenderThemeSafari::paintSliderThumb):
2152 2007-06-27 George Staikos <staikos@kde.org>
2154 Make Qt builds link when XSLT is turned off.
2158 2007-06-27 Steve Falkenburg <sfalken@apple.com>
2160 Turn on static code analysis (Windows only).
2162 Affects only folks that have Visual Studio Team Suite installed,
2163 or who have replaced their compiler with the version shipping in the
2168 * WebCore.vcproj/WebCore.vcproj:
2170 2007-06-27 George Staikos <staikos@kde.org>
2172 Remove old commented out files that no-longer exist.
2176 2007-06-27 Justin Garcia <justin.garcia@apple.com>
2180 <rdar://problem/5247341> REGRESSION: Pasting sometimes leaves out trailing newline
2182 Pasting with a trailing interchange newline doesn't work when pasting
2183 into an empty line. Code that handles removing brs at the insertion
2184 position tries to also handle trailing interchange newlines by re-using
2185 those brs and fails. Removed that code and handle all interchange
2186 newlines with code later in doApply().
2188 * editing/ReplaceSelectionCommand.cpp:
2189 (WebCore::ReplaceSelectionCommand::doApply): Don't try to re-use the
2190 endBR when there's a trailing interchange newline.
2192 2007-06-27 Anders Carlsson <andersca@apple.com>
2196 <rdar://problem/5253950>
2197 When Shockwave plugin has been loaded, exiting crashes Safari
2199 Add a "load count" for plugin packages. When the load count is zero, unload the plugin.
2201 * plugins/win/PluginPackageWin.cpp:
2202 (WebCore::PluginPackageWin::PluginPackageWin):
2203 (WebCore::PluginPackageWin::load):
2204 (WebCore::PluginPackageWin::unload):
2205 (WebCore::PluginPackageWin::unloadWithoutShutdown):
2206 * plugins/win/PluginPackageWin.h:
2208 * plugins/win/PluginViewWin.cpp:
2209 (WebCore::PluginViewWin::~PluginViewWin):
2210 Make sure to unload the plugin package and clear any references to plugin script objects.
2212 2007-06-27 George Staikos <staikos@kde.org>
2214 This was succeeding compile by luck. Setup dependencies properly.
2218 2007-06-27 Justin Garcia <justin.garcia@apple.com>
2222 <rdar://problem/4580583> Breaking blockquoted list should not automatically renumber the second list
2224 When a quoted numbered list is broken in half, it's cloned
2225 to make the second list. That second list needs its start attribute
2226 set so that the numbers of the list items in it will be preserved.
2228 * editing/BreakBlockquoteCommand.cpp:
2229 (WebCore::BreakBlockquoteCommand::doApply): Set the start attribute
2230 of a cloned list to be the original number of the first list item in it.
2232 2007-06-27 Alexey Proskuryakov <ap@webkit.org>
2236 http://bugs.webkit.org/show_bug.cgi?id=14413
2237 GIF animation throttling is different from MSIE
2239 * platform/graphics/cg/ImageSourceCG.cpp:
2240 (WebCore::ImageSource::frameDurationAtIndex):
2241 Change the cut-off value to 50ms to match MSIE.
2243 2007-06-27 Sam Weinig <sam@webkit.org>
2247 First pass at fixing implicit 64-32 bit conversion errors.
2248 <rdar://problem/5292262>
2250 - Add 'f' suffix where necessary.
2252 * bridge/mac/WebCoreAXObject.mm:
2253 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
2255 * css/cssstyleselector.cpp:
2257 (WebCore::CSSStyleSelector::largerFontSize):
2258 (WebCore::CSSStyleSelector::smallerFontSize):
2259 * html/CanvasGradient.cpp:
2260 (WebCore::CanvasGradient::addColorStop):
2261 * html/CanvasPattern.cpp:
2262 (WebCore::CanvasPattern::createPattern):
2263 * ksvg2/css/SVGCSSStyleSelector.cpp:
2264 (WebCore::CSSStyleSelector::applySVGProperty):
2265 * ksvg2/css/SVGRenderStyle.h:
2266 * ksvg2/events/SVGZoomEvent.cpp:
2267 (WebCore::SVGZoomEvent::SVGZoomEvent):
2268 * ksvg2/svg/SVGLength.cpp:
2269 (WebCore::SVGLength::SVGLength):
2270 (WebCore::SVGLength::value):
2271 (WebCore::SVGLength::setValue):
2272 (WebCore::SVGLength::valueAsPercentage):
2273 (WebCore::SVGLength::PercentageOfViewport):
2274 * ksvg2/svg/SVGSVGElement.cpp:
2275 (WebCore::SVGSVGElement::pixelUnitToMillimeterX):
2276 (WebCore::SVGSVGElement::pixelUnitToMillimeterY):
2277 (WebCore::SVGSVGElement::getScreenCTM):
2278 * ksvg2/svg/SVGTextContentElement.cpp:
2279 (WebCore::SVGTextContentElement::getComputedTextLength):
2280 (WebCore::SVGTextContentElement::getSubStringLength):
2281 (WebCore::SVGTextContentElement::getRotationOfChar):
2282 * ksvg2/svg/SVGTransformDistance.cpp:
2283 (WebCore::SVGTransformDistance::SVGTransformDistance):
2284 (WebCore::SVGTransformDistance::distance):
2285 * page/InspectorController.cpp:
2286 (WebCore::InspectorResource::InspectorResource):
2287 * platform/graphics/FloatPoint3D.cpp:
2288 (WebCore::FloatPoint3D::normalize):
2289 * platform/graphics/Path.cpp:
2290 (WebCore::pathLengthApplierFunction):
2291 (WebCore::Path::createRoundedRectangle):
2292 * platform/graphics/cg/GraphicsContextCG.cpp:
2293 (WebCore::GraphicsContext::drawLine):
2294 (WebCore::GraphicsContext::strokeArc):
2295 * platform/graphics/cg/ImageCG.cpp:
2296 (WebCore::FrameData::clear):
2297 * platform/graphics/cg/ImageSourceCG.cpp:
2298 (WebCore::ImageSource::frameDurationAtIndex):
2299 * platform/graphics/cg/PDFDocumentImage.cpp:
2300 (WebCore::PDFDocumentImage::setCurrentPage):
2301 * platform/graphics/svg/SVGPaintServerPattern.cpp:
2302 (WebCore::SVGPaintServerPattern::externalRepresentation):
2303 * platform/graphics/svg/SVGPaintServerRadialGradient.cpp:
2304 (WebCore::SVGPaintServerRadialGradient::SVGPaintServerRadialGradient):
2305 * platform/graphics/svg/cg/SVGPaintServerGradientCg.cpp:
2306 (WebCore::cgGradientCallback):
2307 (WebCore::CGShadingRefForRadialGradient):
2308 (WebCore::SVGPaintServerGradient::updateQuartzGradientStopsCache):
2309 * platform/mac/FontDataMac.mm:
2310 (WebCore::webFallbackFontFamily):
2311 * platform/mac/PopupMenuMac.mm:
2312 (WebCore::PopupMenu::show):
2313 * rendering/InlineFlowBox.cpp:
2314 (WebCore::InlineFlowBox::placeBoxesHorizontally):
2315 * rendering/RenderSlider.cpp:
2316 (WebCore::RenderSlider::setValueForPosition):
2317 (WebCore::RenderSlider::setPositionFromValue):
2319 2007-06-27 Alexey Proskuryakov <ap@webkit.org>
2323 http://bugs.webkit.org/show_bug.cgi?id=14288
2324 XMLHttpRequest doesn't use a correct content type for file:// URLs
2326 Test: fast/dom/xmlhttprequest-html-response-encoding.html
2328 * xml/xmlhttprequest.cpp:
2329 (WebCore::XMLHttpRequest::responseMIMEType): Use MIME type provided by
2330 the network layer, since it provides it even for non-HTTP responses.
2332 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
2334 Reviewed by Sam Weinig.
2336 http://bugs.webkit.org/show_bug.cgi?id=14061
2337 Implement more of FrameLoaderClientGdk
2339 Make FrameLoaderClientGdk work properly when the MIME type is set.
2341 * loader/gdk/FrameLoaderClientGdk.cpp:
2342 (WebCore::FrameLoaderClientGdk::objectContentType):
2343 (WebCore::FrameLoaderClientGdk::canShowMIMEType):
2345 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
2349 http://bugs.webkit.org/show_bug.cgi?id=14058
2350 Gdk font backend cleanup
2352 * platform/FontData.h: Remove obsolete function.
2353 * platform/gdk/FontDataGdk.cpp:
2354 (WebCore::FontData::containsCharacters): Lock/unlock only once.
2355 (WebCore::FontData::platformWidthForGlyph): Remove needless cast.
2356 * platform/gdk/FontPlatformData.h: Remove obsolete function.
2357 * platform/gdk/FontPlatformDataGdk.cpp:
2358 (WebCore::FontPlatformData::FontPlatformData): Pass the actual size,
2360 (WebCore::FontPlatformData::~FontPlatformData): Free m_fontMatrix.
2361 * platform/gdk/GlyphPageTreeNodeGdk.cpp:
2362 (WebCore::GlyphPage::fill): Lock/unlock only once.
2364 2007-06-26 Mitz Pettel <mitz@webkit.org>
2368 - fix http://bugs.webkit.org/show_bug.cgi?id=14406
2369 <colgroup>'s borders are ignored when it has <col> children
2371 Covered by existing tests.
2373 * rendering/RenderTableCell.cpp:
2374 (WebCore::RenderTableCell::collapsedLeftBorder):
2375 (WebCore::RenderTableCell::collapsedRightBorder):
2376 (WebCore::RenderTableCell::collapsedTopBorder):
2377 (WebCore::RenderTableCell::collapsedBottomBorder):
2379 2007-06-26 Mitz Pettel <mitz@webkit.org>
2383 - fix http://bugs.webkit.org/show_bug.cgi?id=14329
2384 REGRESSION: TEXTAREA - cannot drag-and-drop text at en.wikipedia.org/
2386 Test: fast/repaint/text-selection-rect-in-overflow-2.html
2388 * rendering/RenderObject.cpp:
2389 (WebCore::RenderObject::computeAbsoluteRepaintRect): Added code to account
2390 for overflow scroll and columns.
2391 * rendering/RenderText.cpp:
2392 (WebCore::RenderText::selectionRect): Adjust for columns only in the
2393 non-clipped case, since RenderObject::absolutePosition() does not.
2395 2007-06-26 Mitz Pettel <mitz@webkit.org>
2399 - http://bugs.webkit.org/show_bug.cgi?id=14415
2400 Remove the unused method RenderObject::setTable()
2402 * rendering/RenderObject.h:
2404 2007-06-26 MorganL <morganl.webkit@yahoo.com>
2408 Implement http://bugs.webkit.org/show_bug.cgi?id=14225
2409 Bug 14225: Make it possible to define platform-specific ResourceRequest without #ifdefs
2411 This change moves the bulk of ResourceRequest into a base class named
2412 ResourceRequestBase with all platform-specific bits pushed into
2413 ResourceRequest. This allows ports to easily add new members to a
2414 ResourceRequest without having to #ifdef the code that is shared
2419 * WebCore.vcproj/WebCore.vcproj:
2420 * WebCore.xcodeproj/project.pbxproj:
2421 * platform/network/ResourceRequest.cpp: Removed.
2422 * platform/network/ResourceRequest.h: Removed.
2423 * platform/network/ResourceRequestBase.cpp: Added.
2424 (WebCore::ResourceRequestBase::asResourceRequest):
2425 (WebCore::ResourceRequestBase::isEmpty):
2426 (WebCore::ResourceRequestBase::isNull):
2427 (WebCore::ResourceRequestBase::url):
2428 (WebCore::ResourceRequestBase::setURL):
2429 (WebCore::ResourceRequestBase::cachePolicy):
2430 (WebCore::ResourceRequestBase::setCachePolicy):
2431 (WebCore::ResourceRequestBase::timeoutInterval):
2432 (WebCore::ResourceRequestBase::setTimeoutInterval):
2433 (WebCore::ResourceRequestBase::mainDocumentURL):
2434 (WebCore::ResourceRequestBase::setMainDocumentURL):
2435 (WebCore::ResourceRequestBase::httpMethod):
2436 (WebCore::ResourceRequestBase::setHTTPMethod):
2437 (WebCore::ResourceRequestBase::httpHeaderFields):
2438 (WebCore::ResourceRequestBase::httpHeaderField):
2439 (WebCore::ResourceRequestBase::setHTTPHeaderField):
2440 (WebCore::ResourceRequestBase::httpBody):
2441 (WebCore::ResourceRequestBase::setHTTPBody):
2442 (WebCore::ResourceRequestBase::allowHTTPCookies):
2443 (WebCore::ResourceRequestBase::setAllowHTTPCookies):
2444 (WebCore::ResourceRequestBase::addHTTPHeaderField):
2445 (WebCore::ResourceRequestBase::addHTTPHeaderFields):
2446 (WebCore::operator==):
2447 (WebCore::ResourceRequestBase::isConditional):
2448 (WebCore::ResourceRequestBase::updatePlatformRequest):
2449 (WebCore::ResourceRequestBase::updateResourceRequest):
2450 * platform/network/ResourceRequestBase.h: Added.
2452 (WebCore::ResourceRequestBase::httpContentType):
2453 (WebCore::ResourceRequestBase::setHTTPContentType):
2454 (WebCore::ResourceRequestBase::httpReferrer):
2455 (WebCore::ResourceRequestBase::setHTTPReferrer):
2456 (WebCore::ResourceRequestBase::clearHTTPReferrer):
2457 (WebCore::ResourceRequestBase::httpUserAgent):
2458 (WebCore::ResourceRequestBase::setHTTPUserAgent):
2459 (WebCore::ResourceRequestBase::httpAccept):
2460 (WebCore::ResourceRequestBase::setHTTPAccept):
2461 (WebCore::ResourceRequestBase::ResourceRequestBase):
2462 (WebCore::operator!=):
2463 * platform/network/cf/ResourceRequest.h: Added.
2464 (WebCore::ResourceRequest::ResourceRequest):
2465 * platform/network/curl/ResourceRequest.h: Added.
2466 (WebCore::ResourceRequest::ResourceRequest):
2467 (WebCore::ResourceRequest::doUpdatePlatformRequest):
2468 (WebCore::ResourceRequest::doUpdateResourceRequest):
2469 * platform/network/mac/ResourceRequest.h: Added.
2470 (WebCore::ResourceRequest::ResourceRequest):
2471 * platform/network/qt/ResourceRequest.h: Added.
2472 (WebCore::ResourceRequest::ResourceRequest):
2473 (WebCore::ResourceRequest::doUpdatePlatformRequest):
2474 (WebCore::ResourceRequest::doUpdateResourceRequest):
2476 2007-06-26 Adam Roben <aroben@apple.com>
2478 Add ChangeLog entries from the Windows merge.
2484 2007-06-26 Sam Weinig <sam@webkit.org>
2488 Make sure not to enumerate the toString() function.
2489 <rdar://problem/5297118>
2491 * bindings/js/kjs_window.cpp:
2492 * bindings/scripts/CodeGeneratorJS.pm: Add support for [DontEnum].
2493 * html/HTMLAnchorElement.idl:
2495 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
2497 Reviewed by Mitz, landed by Anders.
2499 http://bugs.webkit.org/show_bug.cgi?id=14421
2500 Implement GraphicsContext::clearRect()
2502 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2503 (WebCore::GraphicsContext::clearRect):
2505 2007-06-26 Alp Toker <alp.toker@collabora.co.uk>
2507 Reviewed and landed by Anders.
2509 http://bugs.webkit.org/show_bug.cgi?id=14416
2510 Content does not render fully in some cases
2512 Fix mismatched calls to cairo_save/restore due to an early method return.
2514 * platform/graphics/cairo/GraphicsContextCairo.cpp:
2515 (WebCore::GraphicsContext::drawLine):
2517 2007-06-26 Tristan O'Tierney <tristan@apple.com>
2519 Reviewed by John Sullivan.
2521 Added two accessor functions for <rdar://problem/4119138>
2523 * bindings/objc/DOMHTML.mm:
2524 (-[DOMHTMLInputElement _isEdited]):
2525 (-[DOMHTMLTextAreaElement _isEdited]):
2526 Added an accessor to the isEdited value of a DOM node's render object
2528 * bindings/objc/DOMPrivate.h:
2529 Added header definitions for _isEdited
2531 2007-06-26 Sam Weinig <sam@webkit.org>
2535 * WebCore.vcproj/WebCore.vcproj:
2537 2007-06-26 Sam Weinig <sam@webkit.org>
2539 Fix Qt and Gdk builds.
2543 2007-06-26 Sam Weinig <sam@webkit.org>
2547 Patch for http://bugs.webkit.org/show_bug.cgi?id=14111
2548 Autogenerate Event JS binding
2550 - Moves the dataTransfer method into MouseEvent where it should be.
2552 * WebCore.xcodeproj/project.pbxproj:
2553 * bindings/js/JSEventCustom.cpp: Added.
2554 (WebCore::JSEvent::clipboardData):
2556 * bindings/js/JSEventTargetNode.cpp:
2557 * bindings/js/JSXMLHttpRequest.cpp:
2558 * bindings/js/kjs_events.cpp:
2559 * bindings/js/kjs_events.h:
2560 * bindings/objc/DOMUtility.mm:
2561 (KJS::createDOMWrapper):
2562 * bindings/scripts/CodeGeneratorJS.pm:
2564 (WebCore::Event::returnValue):
2565 (WebCore::Event::setReturnValue):
2566 (WebCore::Event::clipboardData):
2569 (WebCore::MouseEvent::dataTransfer):
2570 * dom/MouseEvent.idl:
2572 2007-06-26 Timothy Hatcher <timothy@apple.com>
2574 Reviewed by Mark Rowe.
2576 Follow up fix for: Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
2577 http://bugs.webkit.org/show_bug.cgi?id=14385
2579 Correctly remember the "Show implicit properties" setting as you switch nodes.
2581 * page/inspector/ResourcePanel.js:
2583 2007-06-26 Justin Garcia <justin.garcia@apple.com>
2587 <rdar://problem/5290534> Crash at RenderTextControl::calcHeight() after deleting text in a search field
2589 Editing removed a node that was part of a search field's internal
2590 structure that should not be removed.
2592 * editing/DeleteSelectionCommand.cpp:
2593 (WebCore::DeleteSelectionCommand::handleGeneralDelete): If the
2594 selection to delete ends at [container, x], where x is the number
2595 of children in container, don't remove container. Special case
2596 code elsewhere in this function will remove it if necessary.
2598 2007-06-25 Sam Weinig <sam@webkit.org>
2602 Patch for http://bugs.webkit.org/show_bug.cgi?id=11315
2603 Mutating document.constructor.prototype mutates Object.prototype
2605 Test: fast/js/constructor.html
2607 * bindings/scripts/CodeGeneratorJS.pm: add constructor attribute to
2608 classes with constructors. It is an non-enumeratable, non-deletable,
2611 2007-06-26 George Staikos <staikos@kde.org>
2613 Repair the OS X build.
2617 2007-06-26 Adam Treat <adam@staikos.net>
2619 Reviewed by Adam Roben.
2621 Make the SQLite icon database optional.
2623 * loader/icon/IconDatabase.cpp:
2624 (WebCore::IconDatabase::isOpen):
2625 (WebCore::IconDatabase::isPrivateBrowsingEnabled):
2626 (WebCore::IconDatabase::enabled):
2627 * loader/icon/IconDatabase.h:
2629 2007-06-25 Sam Weinig <sam@webkit.org>
2631 Reviewed by Adam Roben.
2633 Patch for http://bugs.webkit.org/show_bug.cgi?id=14369
2634 HTML syntax highlighting colors and DOM tree colors should be the same
2636 * css/view-source.css:
2637 * page/inspector/ResourcePanel.js:
2638 * page/inspector/inspector.css:
2639 * page/inspector/inspector.js:
2640 * page/inspector/utilities.js:
2642 2007-06-25 Adam Roben <aroben@apple.com>
2644 Fix Bug 14402: Main resource of http://www.apple.com/safari/ is called "www.apple.com" instead of "safari"
2645 http://bugs.webkit.org/show_bug.cgi?id=14402
2647 The solution was to make KURL::lastPathComponent ignore trailing
2648 slashes, which is what -[NSURL lastPathComponent] does, too.
2652 * platform/KURL.cpp:
2653 (WebCore::KURL::lastPathComponent):
2655 2007-06-25 Sam Weinig <sam@webkit.org>
2657 Reviewed by Adam Roben.
2659 Patch for http://bugs.webkit.org/show_bug.cgi?id=14257
2660 Web Inspector lists favicon.ico as "other" instead of "image"
2662 * page/InspectorController.cpp:
2663 (WebCore::InspectorResource::type):
2665 2007-06-25 Adele Peterson <adele@apple.com>
2669 Fix for <rdar://problem/5286410> Scrollbar and resize corner for overflow area is not hidden with style "visibility: hidden;"
2670 http://bugs.webkit.org/show_bug.cgi?id=14297
2672 Test: fast/overflow/hidden-scrollbar-resize.html
2674 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer):
2675 Updated our shouldPaint check to consider visibility.
2677 2007-06-25 Oliver Hunt <oliver@apple.com>
2681 <rdar://problem/5293444> REGRESSION: Dragging plain text into a styled text region does not acquire the correct style info
2683 Fixing logic error in DragController
2685 * manual-tests/drop-text-acquires-style.html: Added.
2686 * page/DragController.cpp:
2687 (WebCore::documentFragmentFromDragData):
2689 2007-06-25 Sam Weinig <sam@webkit.org>
2691 Reviewed by Adam Roben.
2693 Annotate prototypes by adding "Prototype" subtitle.
2695 * page/inspector/ResourcePanel.js:
2697 2007-06-25 George Staikos <staikos@kde.org>
2701 Start to add proxy and SSL support to WebKitQt. Proxying works.
2703 * platform/network/ResourceHandleInternal.h:
2704 (WebCore::ResourceHandleInternal::ResourceHandleInternal):
2705 * platform/network/qt/ResourceHandleQt.cpp:
2706 (WebCore::ResourceHandle::start):
2708 2007-06-25 Alp Toker <alp.toker@collabora.co.uk>
2710 Reviewed by Adam Roben.
2712 http://bugs.webkit.org/show_bug.cgi?id=14386
2715 * WebCore.pro: Fix gtk/gdk typo.
2717 2007-06-25 Timothy Hatcher <timothy@apple.com>
2721 Bug 14385: Web Inspector's computed style doesn't show implicitly set properties
2722 http://bugs.webkit.org/show_bug.cgi?id=14385
2724 Add a toggle to show implict computed properties.
2726 * page/inspector/ResourcePanel.js:
2727 * page/inspector/inspector.css:
2728 * page/inspector/inspector.js:
2730 2007-06-25 Alp Toker <alp.toker@collabora.co.uk>
2734 http://bugs.webkit.org/show_bug.cgi?id=13975
2735 Use system-provided libjpeg and libpng
2737 * WebCore.pro: Remove bundled libjpeg and libpng sources.
2738 * platform/image-decoders/jpeg: Remove sources.
2739 * platform/image-decoders/png: Remove sources.
2741 2007-06-25 Mitz Pettel <mitz@webkit.org>
2745 - fix http://bugs.webkit.org/show_bug.cgi?id=14202
2746 Table caption renders too narrow sometimes
2748 Test: fast/table/caption-relayout.html
2750 * rendering/RenderTable.cpp:
2751 (WebCore::RenderTable::layout): Mark the caption for layout if the table
2754 2007-06-25 Mitz Pettel <mitz@webkit.org>
2758 - fix http://bugs.webkit.org/show_bug.cgi?id=14245
2759 Underline painted under <br>, not repainted properly
2761 Test: fast/inline/br-text-decoration.html
2763 * platform/graphics/cg/GraphicsContextCG.cpp:
2764 (WebCore::GraphicsContext::drawLineForText): Added an early return if the line width
2765 is zero. Also changed the line stroke to a rect fill, so that lines with length shorter
2766 than their thickness paint correctly.
2768 2007-06-25 Mitz Pettel <mitz@webkit.org>
2772 - fix http://bugs.webkit.org/show_bug.cgi?id=14341
2773 rules="none" ignored in certain cases
2775 Covered by existing tests.
2777 * html/HTMLTableElement.cpp:
2778 (WebCore::HTMLTableElement::getSharedCellDecl):
2780 2007-06-24 Sam Weinig <sam@webkit.org>
2784 Patch for http://bugs.webkit.org/show_bug.cgi?id=14379
2785 Anchor elements show up as their href in the properties pane, not HTMLAnchorElement
2787 * page/inspector/ResourcePanel.js: make sure not to call an overriden
2788 toString() by using Object.prototype.toString.call().
2790 2007-06-24 Adam Roben <aroben@apple.com>
2792 Fix http://bugs.webkit.org/show_bug.cgi?id=14374
2793 Bug 14374: Computed Style section should be expanded by default
2797 No regression test possible.
2799 * page/inspector/ResourcePanel.js: Expand all style sections.
2801 2007-06-24 Adam Roben <aroben@apple.com>
2803 Unify the style of enums in the Inspector JS
2805 All our enums are now represented by an object with a property for
2810 No regression test possible.
2812 * page/inspector/ConsolePanel.js:
2813 * page/inspector/Resource.js:
2814 * page/inspector/ResourcePanel.js:
2815 * page/inspector/inspector.js:
2817 2007-06-23 Sam Weinig <sam@webkit.org>
2821 Patch for http://bugs.webkit.org/show_bug.cgi?id=14321
2822 getComputedStyle(...).zIndex returns string "normal"
2824 Test: fast/css/getComputedStyle-zIndex-auto.html
2826 * css/CSSComputedStyleDeclaration.cpp:
2827 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return 'auto' instead of 'normal'.
2829 2007-06-24 Matt Lilek <pewtermoose@gmail.com>
2831 Reviewed by Tim Hatcher.
2833 Bug 14265: Cannot resize columns in webinspector
2834 http://bugs.webkit.org/show_bug.cgi?id=14265
2836 * page/inspector/inspector.css:
2837 * page/inspector/inspector.html:
2838 * page/inspector/inspector.js:
2840 2007-06-23 Adam Roben <aroben@apple.com>
2842 Silence a build warning about not finding `num-cpus`
2844 Reviewed by Mark Rowe.
2846 * WebCore.vcproj/build-generated-files.sh: Look for num-cpus in its new
2849 2007-06-22 Anders Carlsson <andersca@apple.com>
2853 * plugins/win/PluginStreamWin.cpp:
2854 (WebCore::PluginStreamWin::didFinishLoading):
2855 No need to fetch the size from resourceData.
2857 2007-06-22 Anders Carlsson <andersca@apple.com>
2861 <rdar://problem/5288617>
2862 Crash playing a very large QuickTime movie inside Safari.
2864 Get rid of m_completeDeliveryData and use the loader's resource data instead. This reduces the memory usage for
2865 plug-ins which loads large files and use a transfer mode of NP_ASFILE or NP_ASFILEONLY.
2867 * plugins/win/PluginStreamWin.cpp:
2868 (WebCore::PluginStreamWin::PluginStreamWin):
2869 (WebCore::PluginStreamWin::~PluginStreamWin):
2870 (WebCore::PluginStreamWin::didReceiveData):
2871 (WebCore::PluginStreamWin::didFinishLoading):
2872 * plugins/win/PluginStreamWin.h:
2874 2007-06-22 Beth Dakin <bdakin@apple.com>
2876 Reviewed by Oliver and Darin.
2878 Fix for <rdar://problem/5266999> Loading page from MangleMe fuzz
2879 tester crashes in RenderTableRow::addChild (giant ROWSPAN)
2881 We already have code that tries to prevent allocating too-large
2882 rowspans. The rowspan in this test, however, was small enough that
2883 we thought it was okay in that code, even though clearly it was
2884 still too large. I did a bunch of testing in Firefox, and it seems
2885 that they set a hard limit on the maximum rowspan right in the DOM
2886 -- 8k. So that is what this patch implements.
2888 * html/HTMLTableCellElement.cpp:
2889 (WebCore::HTMLTableCellElement::parseMappedAttribute):
2891 2007-06-22 Justin Garcia <justin.garcia@apple.com>
2895 <rdar://problem/5272440> Adding To Do via Note received in e-mail adds newlines on delete
2897 Deletion inserts a placeholder after it removes full paragraphs if
2898 one doesn't already exist. The code that looked for a pre-existing
2899 placeholder didn't work because of a bug in enclosingNodeOfType.
2901 * editing/htmlediting.cpp:
2902 (WebCore::enclosingNodeOfType): We start looking at node->parentNode(),
2903 but don't go above an editing root.
2905 2007-06-22 Anders Carlsson <andersca@apple.com>
2907 Reviewed by Maciej and Geoff.
2909 <rdar://problem/5244734>
2910 WebKit shouldn't send delegate resource load methods for the user stylesheet (doing so causes assertions in Safari)
2912 Add a sendResourceLoadCallbacks argument to the ResourceLoader and only send resource load callbacks if it's true. Make it so that
2913 loading the user style sheet creates a resource loader with sendResourceLoadCallbacks set to false (done by adding a sendResourceLoadCallbacks
2914 argument to a bunch of classes).
2917 (WebCore::createResource):
2918 (WebCore::Cache::requestResource):
2920 * loader/CachedCSSStyleSheet.cpp:
2921 (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet):
2922 * loader/CachedCSSStyleSheet.h:
2923 * loader/CachedResource.cpp:
2924 (WebCore::CachedResource::CachedResource):
2925 * loader/CachedResource.h:
2926 (WebCore::CachedResource::sendResourceLoadCallbacks):
2927 * loader/DocLoader.cpp:
2928 (WebCore::DocLoader::requestCSSStyleSheet):
2929 (WebCore::DocLoader::requestResource):
2930 (WebCore::DocLoader::checkCacheObjectStatus):
2931 * loader/DocLoader.h:
2932 * loader/MainResourceLoader.cpp:
2933 (WebCore::MainResourceLoader::MainResourceLoader):
2934 * loader/Request.cpp:
2935 (WebCore::Request::Request):
2937 (WebCore::Request::sendResourceLoadCallbacks):
2938 * loader/ResourceLoader.cpp:
2939 (WebCore::ResourceLoader::ResourceLoader):
2940 (WebCore::ResourceLoader::willSendRequest):
2941 (WebCore::ResourceLoader::didReceiveResponse):
2942 (WebCore::ResourceLoader::didReceiveData):
2943 (WebCore::ResourceLoader::didFinishLoadingOnePart):
2944 (WebCore::ResourceLoader::didFail):
2945 (WebCore::ResourceLoader::didCancel):
2946 * loader/ResourceLoader.h:
2947 (WebCore::ResourceLoader::sendResourceLoadCallbacks):
2948 * loader/SubresourceLoader.cpp:
2949 (WebCore::SubresourceLoader::SubresourceLoader):
2950 (WebCore::SubresourceLoader::create):
2951 * loader/SubresourceLoader.h:
2952 * loader/loader.cpp:
2953 (WebCore::Loader::load):
2954 (WebCore::Loader::servePendingRequests):
2956 * loader/mac/NetscapePlugInStreamLoaderMac.mm:
2957 (WebCore::NetscapePlugInStreamLoader::NetscapePlugInStreamLoader):
2959 2007-06-21 Richard Connamacher <rich@indieimage.com>
2961 Reviewed by Tim Hatcher.
2963 Bug 14305: Web Inspector marks local files with server-side compression tip
2964 http://bugs.webkit.org/show_bug.cgi?id=14305
2966 * page/inspector/Resource.js:
2967 (WebInspector.Resource._shouldCompress): Prevent server-side compression tip
2968 from being given to local files
2970 2007-06-21 Mark Rowe <mrowe@apple.com>
2974 Fix for <rdar://problem/5266928> REGRESSION: crash/assert failure beneath RenderFrameSet::layOutAxis when loading
2976 * platform/StringImpl.cpp:
2977 (WebCore::StringImpl::toLengthArray): Simplify whitespace before checking for an empty string. This avoids returning
2978 a length of zero when the string is collapsed to empty by whitespace simplification.
2980 2007-06-21 Dave Hyatt <hyatt@apple.com>
2982 Fix for <rdar://problem/5286978>, large font sizes crash Windows.
2984 Limit the maximum font size to 1,000,000 to avoid crashes and issues with platforms that
2985 start failing to do anything useful if the font size is too big.
2989 * css/cssstyleselector.cpp:
2990 (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
2992 2007-06-21 Andrew Wellington <proton@wiretapped.net>
2994 Reviewed by Timothy.
2996 Stop shift+scroll wheel performing a horizontal scroll in Web Inspector
2998 * page/inspector/inspector.css: Set body margin to 0
3000 2007-06-21 Adam Treat <adam@staikos.net>
3002 Reviewed by George Staikos.
3004 Implement the default resources on Qt.
3006 * platform/graphics/BitmapImage.h:
3007 * platform/graphics/Image.h:
3008 * platform/graphics/qt/ImageQt.cpp:
3009 (WebCore::Image::loadPlatformResource):
3010 (WebCore::BitmapImage::BitmapImage):
3011 (WebCore::BitmapImage::initPlatformData):
3012 (WebCore::BitmapImage::invalidatePlatformData):
3013 (WebCore::BitmapImage::getPixmap):
3014 * platform/qt/TemporaryLinkStubs.cpp:
3016 2007-06-21 Oliver Hunt <oliver@apple.com>
3020 Use RetainPtr for holding currentEvent. This removes explicit HardRetain/Release calls
3021 and makes reference handling simpler in advance of IME refactoring.
3023 * WebCore.xcodeproj/project.pbxproj:
3024 * page/mac/EventHandlerMac.mm:
3025 (WebCore::currentEvent):
3026 (WebCore::EventHandler::currentNSEvent):
3027 (WebCore::EventHandler::wheelEvent):
3028 (WebCore::EventHandler::keyEvent):
3029 (WebCore::lastEventIsMouseUp):
3030 (WebCore::EventHandler::passMouseDownEventToWidget):
3031 (WebCore::EventHandler::eventLoopHandleMouseDragged):
3032 (WebCore::EventHandler::eventLoopHandleMouseUp):
3033 (WebCore::EventHandler::passSubframeEventToSubframe):
3034 (WebCore::EventHandler::passWheelEventToWidget):
3035 (WebCore::EventHandler::mouseDown):
3036 (WebCore::EventHandler::mouseDragged):
3037 (WebCore::EventHandler::mouseUp):
3038 (WebCore::EventHandler::mouseMoved):
3040 2007-06-21 George Staikos <staikos@kde.org>
3042 Reviewed by George & Marius.
3044 Patch by me, revision by Marius, minor rev by me. Adds rendered
3045 and stylable scrollbars.
3047 * page/qt/EventHandlerQt.cpp:
3048 (WebCore::EventHandler::passMousePressEventToScrollbar):
3049 * platform/Widget.h:
3050 * platform/qt/PlatformScrollBar.h:
3051 (WebCore::PlatformScrollbar::isWidget):
3052 * platform/qt/PlatformScrollBarQt.cpp:
3053 (WebCore::PlatformScrollbar::PlatformScrollbar):
3054 (WebCore::PlatformScrollbar::~PlatformScrollbar):
3055 (WebCore::PlatformScrollbar::updateThumbPosition):
3056 (WebCore::PlatformScrollbar::updateThumbProportion):
3057 (WebCore::PlatformScrollbar::width):
3058 (WebCore::PlatformScrollbar::height):
3059 (WebCore::PlatformScrollbar::setRect):
3060 (WebCore::PlatformScrollbar::isEnabled):
3061 (WebCore::PlatformScrollbar::setEnabled):
3062 (WebCore::PlatformScrollbar::paint):
3063 (WebCore::PlatformScrollbar::thumbPosition):
3064 (WebCore::PlatformScrollbar::thumbLength):
3065 (WebCore::PlatformScrollbar::trackLength):
3066 (WebCore::PlatformScrollbar::handleMouseMoveEvent):
3067 (WebCore::PlatformScrollbar::handleMouseOutEvent):
3068 (WebCore::PlatformScrollbar::handleMousePressEvent):
3069 (WebCore::PlatformScrollbar::handleMouseReleaseEvent):
3070 (WebCore::PlatformScrollbar::startTimerIfNeeded):
3071 (WebCore::PlatformScrollbar::stopTimerIfNeeded):
3072 (WebCore::PlatformScrollbar::autoscrollPressedPart):
3073 (WebCore::PlatformScrollbar::autoscrollTimerFired):
3074 (WebCore::PlatformScrollbar::pressedPartScrollDirection):
3075 (WebCore::PlatformScrollbar::pressedPartScrollGranularity):
3076 (WebCore::PlatformScrollbar::thumbUnderMouse):
3077 (WebCore::PlatformScrollbar::horizontalScrollbarHeight):
3078 (WebCore::PlatformScrollbar::verticalScrollbarWidth):
3079 (WebCore::PlatformScrollbar::windowClipRect):
3080 * platform/qt/ScrollViewQt.cpp:
3081 (WebCore::ScrollView::addChild):
3082 (WebCore::ScrollView::removeChild):
3083 * platform/qt/WidgetQt.cpp:
3084 (WebCore::WidgetPrivate::WidgetPrivate):
3085 (WebCore::Widget::setQWidget):
3086 (WebCore::Widget::invalidate):
3087 (WebCore::Widget::invalidateRect):
3088 (WebCore::Widget::setParent):
3089 (WebCore::Widget::parent):
3091 2007-06-21 Geoffrey Garen <ggaren@apple.com>
3093 Reviewed by Dave Hyatt.
3095 Fixed <rdar://problem/4977124> | http://bugs.webkit.org/show_bug.cgi?id=12646
3096 REGRESSION: RapidWeaver's "Hello" HTML page doesn't display any DHTML
3097 effects when clicking on its links (12646)
3099 I'm rolling our r7703 for these reasons:
3101 1. It broke RapidWeaver.
3103 2. WebKit is now orders of magnitude faster when handling deep nesting
3104 (5 seconds vs 3 minutes on my MBP in this particular case).
3106 3. Firefox, IE, and HTML5 all allow nested heading tags.
3110 * html/HTMLParser.cpp:
3111 (WebCore::HTMLParser::parseToken):
3113 2007-06-21 Sam Weinig <sam@webkit.org>
3115 Reviewed by Tim Hatcher.
3117 http://bugs.webkit.org/show_bug.cgi?id=14260
3118 ASSERTION FAILED: m_mainResource->loader == loader going back in history on any page
3120 Remove assert for now as it is causing the back button to not
3121 work in debug builds.
3123 * page/InspectorController.cpp:
3124 (WebCore::InspectorController::didCommitLoad):
3126 2007-06-21 Lars Knoll <lars@trolltech.com>
3128 Remove some debug output.
3130 * platform/qt/FontQt.cpp:
3131 (WebCore::generateComponents):
3132 (WebCore::Font::width):
3134 2007-06-21 George Staikos <staikos@kde.org>
3136 Repair Qt/Mac OS X build.
3140 2007-06-21 Alexey Proskuryakov <ap@webkit.org>
3144 http://bugs.webkit.org/show_bug.cgi?id=13905
3145 REGRESSION: A Chinese dictionary widget has a problem with XMLHttpRequest response encoding
3147 Tiger WebKit accidentally looked at HTML Http-Equiv META to determine the response encoding
3148 (regardless of the actual response MIME type). This was corrected a while ago to match other
3149 browsers and the draft XHR spec.
3151 Now restoring this functionality for "text/html", with spec editor's blessing.
3153 * xml/xmlhttprequest.cpp:
3154 (WebCore::XMLHttpRequest::responseMIMEType):
3155 (WebCore::XMLHttpRequest::responseIsXML):
3156 (WebCore::XMLHttpRequest::didReceiveData):
3157 * xml/xmlhttprequest.h:
3159 2007-06-21 Andrew Wellington <proton@wiretapped.net>
3165 2007-06-21 Lars Knoll <lars@trolltech.com>
3169 another small fix for letter spacing
3171 * platform/qt/FontQt.cpp:
3172 (WebCore::generateComponents):
3174 2007-06-21 Lars Knoll <lars@trolltech.com>
3180 * platform/qt/FontQt.cpp:
3181 (WebCore::generateComponents):
3182 (WebCore::Font::width):
3184 2007-06-21 Lars Knoll <lars@trolltech.com>
3188 fix letterspacing and small caps.
3191 * platform/graphics/qt/GraphicsContextQt.cpp:
3192 (WebCore::GraphicsContext::setPlatformFont):
3193 * platform/qt/FileChooserQt.cpp:
3194 * platform/qt/FontQt.cpp:
3195 (WebCore::TextRunComponent::TextRunComponent):
3196 (WebCore::Font::Font):
3197 (WebCore::Font::operator=):
3198 (WebCore::Font::update):
3199 (WebCore::generateComponents):
3200 (WebCore::Font::selectionRectForText):
3201 * platform/qt/RenderThemeQt.cpp:
3203 2007-06-21 Lars Knoll <lars@trolltech.com>
3207 store the metrics and space width in the Font object
3210 * platform/qt/FontQt.cpp:
3211 (WebCore::Font::Font):
3212 (WebCore::Font::drawText):
3213 (WebCore::Font::width):
3214 (WebCore::Font::isFixedPitch):
3215 (WebCore::Font::ascent):
3216 (WebCore::Font::descent):
3217 (WebCore::Font::lineSpacing):
3219 2007-06-21 Lars Knoll <lars@trolltech.com>
3223 simplify some codepaths
3225 * platform/qt/FontQt.cpp:
3226 (WebCore::Font::drawText):
3227 (WebCore::Font::width):
3229 2007-06-21 Lars Knoll <lars@trolltech.com>
3233 fix copyright header
3235 * platform/qt/FontQt.cpp:
3237 2007-06-21 Lars Knoll <lars@trolltech.com>
3241 correctly load fonts when a list of font families is given
3243 * platform/qt/FontQt.cpp:
3244 (WebCore::Font::Font):
3246 2007-06-21 Lars Knoll <lars@trolltech.com>
3250 fix some more of the font support
3252 * platform/qt/FontQt.cpp:
3253 (WebCore::Font::drawText):
3254 (WebCore::Font::width):
3256 2007-06-21 Lars Knoll <lars@trolltech.com>
3263 (WebCore::Font::isRoundingHackCharacter):
3264 * platform/qt/FontQt.cpp:
3265 (WebCore::Font::drawText):
3267 2007-06-21 Lars Knoll <lars@trolltech.com>
3271 Some more work on the implementation of FontQt.
3273 * platform/qt/FontQt.cpp:
3274 (WebCore::Font::Font):
3275 (WebCore::Font::~Font):
3276 (WebCore::Font::operator=):
3278 2007-06-21 Lars Knoll <lars@trolltech.com>
3282 Started work on the new font infrastructure for the Qt port.
3285 * editing/Editor.cpp:
3286 (WebCore::Editor::fontForSelection):
3288 (WebCore::Font::treatAsSpace):
3289 (WebCore::Font::treatAsZeroWidthSpace):
3290 (WebCore::Font::isRoundingHackCharacter):
3291 * platform/qt/FontQt.cpp:
3292 (WebCore::Font::operator QFont):
3293 * platform/qt/TemporaryLinkStubs.cpp:
3295 2007-06-21 Adam Roben <aroben@apple.com>
3297 More Gdk build fixes.
3299 * page/gdk/ContextMenuClientGdk.cpp:
3300 (WebCore::ContextMenuClientGdk::shouldIncludeInspectElementItem):
3301 * page/gdk/ContextMenuClientGdk.h:
3302 * platform/gdk/TemporaryLinkStubs.cpp:
3304 2007-06-21 Adam Roben <aroben@apple.com>
3306 Speculative Gdk build fix.
3308 * page/InspectorController.h: Only include the JS headers we really
3309 need to avoid pulling in ones like JSStringRefCF.h.
3311 2007-06-20 Adam Roben <aroben@apple.com>
3313 Speculative Gdk build fix.
3315 * WebCore.pro: Don't try to build WebKitQt/Plugins on Gdk.
3317 2007-06-20 Adam Roben <aroben@apple.com>
3321 * WebCore.vcproj/WebCore.vcproj: Include ForwardingHeaders after
3322 everything but $WebKitLibrariesDir so that we will pick up
3323 JavaScriptCore headers directly.
3325 2007-06-15 George Staikos <staikos@kde.org>
3329 * platform/qt/TemporaryLinkStubs.cpp:
3330 (WebCore::contextMenuItemTagInspectElement):
3332 2007-06-20 Steve Falkenburg <sfalken@apple.com>
3334 Reviewed by Maciej, Anders.
3336 <rdar://problem/5283789> Crash after dismissing JavaScript alert at end of test on http://lcamtuf.coredump.cx/ierace/
3338 Keep a reference to the Page (via the main frame) for the
3339 load deferred pages.
3341 Reference is held via the frame since Page isn't refcounted.
3344 (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
3345 (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
3347 2007-06-15 Adam Treat <adam@staikos.net>
3349 Reviewed by George Staikos.
3351 Add ICO support to the Qt build.
3354 * platform/graphics/qt/ImageDecoderQt.cpp:
3357 2007-06-15 George Staikos <staikos@kde.org>
3361 * ForwardingHeaders/JavaScriptCore/APICast.h: Added.
3363 * page/InspectorController.h:
3365 2007-06-20 Adam Roben <aroben@apple.com>
3367 More speculative Qt/Gdk build fixes.
3369 * WebCore.pro: Add new files.
3371 2007-06-20 Adam Roben <aroben@apple.com>
3373 Speculative Qt/Gdk build fix.
3375 Added forwarding headers for JavaScriptCore. We may eventually move
3376 InspectorController off of the JSC API, but for now this is the
3377 quickest way to a working build.
3379 * ForwardingHeaders/JavaScriptCore/JSBase.h: Added.
3380 * ForwardingHeaders/JavaScriptCore/JSContextRef.h: Added.
3381 * ForwardingHeaders/JavaScriptCore/JSObjectRef.h: Added.
3382 * ForwardingHeaders/JavaScriptCore/JSStringRef.h: Added.
3383 * ForwardingHeaders/JavaScriptCore/JSStringRefCF.h: Added.
3384 * ForwardingHeaders/JavaScriptCore/JSValueRef.h: Added.
3385 * ForwardingHeaders/JavaScriptCore/JavaScriptCore.h: Added.
3387 2007-06-20 Sam Weinig <sam@webkit.org>
3389 Rubber stamped by Adam Roben.
3393 * page/inspector/ConsolePanel.js:
3394 * page/inspector/NetworkPanel.js:
3395 * page/inspector/Resource.js:
3396 * page/inspector/ResourceCategory.js:
3397 * page/inspector/ResourcePanel.js:
3399 2007-06-20 Mark Rowe <mrowe@apple.com>
3403 * WebCore.exp: Export InspectorController::inspect so WebKit can see it.
3405 2007-06-20 Geoffrey Garen <ggaren@apple.com>
3407 Reviewed by Adele Peterson, Oliver Hunt, Anders Carlsson.
3409 Fixed <rdar://problem/5222911> Leopard9A446 : VitalSource Bookshelf 4.5:
3410 Crashes when you click on sign in (stringByEvaluatingJavaScriptFromString
3411 returning nil instead of "")
3413 I'm basically rolling out the change for <rdar://problem/4782422> because
3414 my testing shows that it was backwards.
3416 * html/HTMLElement.cpp:
3417 (dumpInnerHTML): New debug-only function to work around gdb being
3418 perpetually suck-tastic.
3420 * page/mac/WebCoreFrameBridge.mm:
3421 (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
3423 Return "", not nil. This function never used to return nil, so let's not
3424 start now. I've filed <rdar://problem/5283271> to cover the documentation bug,
3426 2007-06-20 Adam Roben <aroben@apple.com>
3428 Addressed some of Geoff's comments.
3430 * page/ContextMenuController.cpp:
3431 (WebCore::ContextMenuController::handleContextMenuEvent): Added a
3433 * platform/ContextMenu.cpp:
3434 (WebCore::ContextMenu::addInspectElementItem): Null-check
3437 2007-06-20 Adam Roben <aroben@apple.com>
3439 Fix crash in fast/dom/dir-no-body.html
3443 * html/HTMLDocument.cpp:
3444 (WebCore::HTMLDocument::createTokenizer): Don't assume we have a
3445 Frame, since we won't if someone creates an HTMLDocument from JS.
3447 2007-06-20 Adam Roben <aroben@apple.com>
3449 Land the new Inspector.
3451 Co-written with Tim Hatcher.
3453 Reviewed by Anders, Adele, Hyatt, and Sam.
3455 No regression tests possible.
3457 Add a new InspectorController that is in charge of the Inspector. It
3458 has an InspectorClient that controls the Inspector's window and node
3461 * page/InspectorClient.h: Added.
3462 (WebCore::InspectorClient::~InspectorClient):
3463 * page/InspectorController.cpp: Added.
3464 (WebCore::ConsoleMessage::ConsoleMessage):
3465 (WebCore::InspectorResource::): Represents a single resource that the
3466 Inspector knows about.
3467 (WebCore::InspectorResource::InspectorResource):
3468 (WebCore::InspectorResource::~InspectorResource):
3469 (WebCore::InspectorResource::type):
3470 (WebCore::InspectorResource::setScriptObject):
3471 (WebCore::addSourceToFrame): Callback available from JS.
3472 (WebCore::getResourceDocumentNode): Ditto.
3473 (WebCore::highlightDOMNode): Ditto.
3474 (WebCore::hideDOMNodeHighlight): Ditto.
3475 (WebCore::loaded): Ditto.
3476 (WebCore::unloading): Ditto.
3477 (WebCore::attach): Ditto.
3478 (WebCore::detach): Ditto.
3479 (WebCore::log): Ditto.
3480 (WebCore::search): Ditto.
3481 (WebCore::inspectedWindow): Ditto.
3482 (WebCore::InspectorController::InspectorController):
3483 (WebCore::InspectorController::~InspectorController):
3484 (WebCore::InspectorController::inspect): Called by
3485 ContextMenuController to inspect a node.
3486 (WebCore::InspectorController::focusNode):
3487 (WebCore::InspectorController::highlight):
3488 (WebCore::InspectorController::hideHighlight):
3489 (WebCore::InspectorController::windowVisible):
3490 (WebCore::InspectorController::setWindowVisible):
3491 (WebCore::InspectorController::addMessageToConsole):
3492 (WebCore::InspectorController::attachWindow):
3493 (WebCore::InspectorController::detachWindow):
3494 (WebCore::InspectorController::windowScriptObjectAvailable):
3495 (WebCore::InspectorController::scriptObjectReady):
3496 (WebCore::InspectorController::windowUnloading):
3497 (WebCore::addHeaders): Static helper function.
3498 (WebCore::objectForRequest): Ditto.
3499 (WebCore::objectForResponse): Ditto.
3500 (WebCore::InspectorController::addScriptResource):
3501 (WebCore::InspectorController::addAndUpdateScriptResource):
3502 (WebCore::InspectorController::removeScriptResource):
3503 (WebCore::InspectorController::updateScriptResource):
3504 (WebCore::InspectorController::populateScriptResources):
3505 (WebCore::InspectorController::addScriptConsoleMessage):
3506 (WebCore::callClearFunction): Static helper function.
3507 (WebCore::InspectorController::clearScriptResources):
3508 (WebCore::InspectorController::clearScriptConsoleMessages):
3509 (WebCore::InspectorController::clearNetworkTimeline):
3510 (WebCore::InspectorController::pruneResources):
3511 (WebCore::InspectorController::didCommitLoad): Callback from
3513 (WebCore::InspectorController::frameDetachedFromParent): Ditto.
3514 (WebCore::InspectorController::addResource): Ditto.
3515 (WebCore::InspectorController::removeResource): Ditto.
3516 (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto.
3517 (WebCore::InspectorController::identifierForInitialRequest): Ditto.
3518 (WebCore::InspectorController::willSendRequest): Ditto.
3519 (WebCore::InspectorController::didReceiveResponse): Ditto.
3520 (WebCore::InspectorController::didReceiveContentLength): Ditto.
3521 (WebCore::InspectorController::didFinishLoading): Ditto.
3522 (WebCore::InspectorController::didFailLoading): Ditto.
3523 * page/InspectorController.h: Added.
3524 (WebCore::InspectorController::inspectedPage):
3525 (WebCore::InspectorController::scriptContext):
3526 (WebCore::InspectorController::setScriptContext):
3527 (WebCore::InspectorController::resources):
3528 (WebCore::InspectorController::removeAllResources):
3530 Add the JavaScript that defines most of the behavior of the Inspector.
3532 * page/inspector/ConsolePanel.js: Added.
3533 * page/inspector/NetworkPanel.js: Added.
3534 * page/inspector/Resource.js: Added.
3535 * page/inspector/ResourceCategory.js: Added.
3536 * page/inspector/ResourcePanel.js: Added.
3537 * page/inspector/inspector.js: Added.
3538 * page/inspector/treeoutline.js: Renamed from WebKit/WebInspector/webInspector/treeoutline.js.
3539 * page/inspector/utilities.js: Added.
3541 Add the Inspector's CSS and HTML.
3543 * page/inspector/inspector.css: Added.
3544 * page/inspector/inspector.html: Added.
3546 Hang the InspectorController off of Page. We only create an
3547 InspectorController if an InspectorClient is given to the Page.
3550 (WebCore::Page::Page):
3552 (WebCore::Page::inspectorController):
3554 Use FrameLoader to notify the InspectorController of resource loads.
3556 * loader/FrameLoader.cpp:
3557 (WebCore::FrameLoader::begin):
3558 (WebCore::FrameLoader::transitionToCommitted):
3559 (WebCore::FrameLoader::continueLoadAfterWillSubmitForm):
3560 (WebCore::FrameLoader::detachFromParent):
3561 (WebCore::FrameLoader::assignIdentifierToInitialRequest):
3562 (WebCore::FrameLoader::willSendRequest):
3563 (WebCore::FrameLoader::didReceiveResponse):
3564 (WebCore::FrameLoader::didReceiveData):
3565 (WebCore::FrameLoader::sendRemainingDelegateMessages):
3566 (WebCore::FrameLoader::requestFromDelegate):
3567 (WebCore::FrameLoader::didFinishLoad):
3568 (WebCore::FrameLoader::dispatchWindowObjectAvailable):
3569 (WebCore::FrameLoader::dispatchDidCommitLoad):
3570 (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest):
3571 (WebCore::FrameLoader::dispatchWillSendRequest):
3572 (WebCore::FrameLoader::dispatchDidReceiveResponse):
3573 (WebCore::FrameLoader::dispatchDidReceiveContentLength):
3574 (WebCore::FrameLoader::dispatchDidFinishLoading):
3575 (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache):
3576 * loader/FrameLoader.h:
3578 Send console messages to the InspectorController.
3581 (WebCore::Chrome::addMessageToConsole): Send all console messages to
3582 the InspectorController.
3583 * page/Chrome.h: Add a new MessageLevel and MessageSource that are
3584 used in the Inspector JS.
3586 Report HTML errors when the Inspector window is open.
3587 We don't report errors when the window is closed because we don't want
3588 to slow down the HTMLTokenizer.
3590 * html/HTMLDocument.cpp:
3591 (WebCore::HTMLDocument::createTokenizer):
3592 * html/HTMLParser.cpp:
3593 (WebCore::HTMLParser::HTMLParser):
3594 * html/HTMLParser.h:
3595 * html/HTMLTokenizer.cpp:
3596 (WebCore::HTMLTokenizer::HTMLTokenizer):
3597 * html/HTMLTokenizer.h:
3599 Append the "Inspect Element" context menu item after passing the
3600 context menu to the ContextMenuClient. This work used to be done in
3603 * page/ContextMenuClient.h:
3604 * page/ContextMenuController.cpp:
3605 (WebCore::ContextMenuController::handleContextMenuEvent): Add the
3606 "Inspect Element" item.
3607 (WebCore::ContextMenuController::contextMenuItemSelected): Handle the
3608 "Inspect Element" item.
3609 * platform/ContextMenu.cpp:
3610 (WebCore::ContextMenu::addInspectElementItem):
3611 (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for "Inspect
3613 * platform/ContextMenu.h:
3614 * platform/ContextMenuItem.h:
3615 (WebCore::): Add ContextMenuItemTagInspectElement.
3616 * platform/graphics/svg/SVGImageEmptyClients.h:
3617 * page/mac/WebCoreViewFactory.h: Add the "Inspect Element" localized
3619 * platform/LocalizedStrings.h: Ditto.
3620 * platform/mac/LocalizedStringsMac.mm:
3621 (WebCore::contextMenuItemTagInspectElement): Ditto.
3623 Miscellaneous changes:
3625 * css/view-source.css: Add message bubble styles.
3626 * loader/DocumentLoader.h: Add a frame getter.
3627 * platform/win/ScrollViewWin.cpp:
3628 (WebCore::ScrollView::updateScrollbars): Respect
3629 Frame::prohibitsScrolling.
3631 Add new images needed for the Inspector.
3633 * page/inspector/Images/attachedShadow.png: Added.
3634 * page/inspector/Images/bottomShadow.png: Added.
3635 * page/inspector/Images/breadcrumbBackground.png: Added.
3636 * page/inspector/Images/checker.png: Added.
3637 * page/inspector/Images/console.png: Added.
3638 * page/inspector/Images/darkShadow.png: Added.
3639 * page/inspector/Images/disclosureDownPressed.png: Added.
3640 * page/inspector/Images/disclosureRightDown.png: Added.
3641 * page/inspector/Images/disclosureRightPressed.png: Added.
3642 * page/inspector/Images/document.png: Added.
3643 * page/inspector/Images/domViewButton.png: Added.
3644 * page/inspector/Images/domViewButtonSelected.png: Added.
3645 * page/inspector/Images/downTriangle.png: Added.
3646 * page/inspector/Images/errorIcon.png: Added.
3647 * page/inspector/Images/errorMediumIcon.png: Added.
3648 * page/inspector/Images/folder.png: Added.
3649 * page/inspector/Images/goArrow.png: Added.
3650 * page/inspector/Images/gradient.png: Added.
3651 * page/inspector/Images/gradientHighlight.png: Added.
3652 * page/inspector/Images/gradientHighlightBottom.png: Added.
3653 * page/inspector/Images/hideStatusWidget.png: Added.
3654 * page/inspector/Images/hideStatusWidgetPressed.png: Added.
3655 * page/inspector/Images/network.png: Added.
3656 * page/inspector/Images/paneBottomGrow.png: Added.
3657 * page/inspector/Images/paneBottomGrowActive.png: Added.
3658 * page/inspector/Images/paneGrowHandleLine.png: Added.
3659 * page/inspector/Images/paneHeader.png: Added.
3660 * page/inspector/Images/paneHeaderActive.png: Added.
3661 * page/inspector/Images/plainDocument.png: Added.
3662 * page/inspector/Images/popupArrows.png: Added.
3663 * page/inspector/Images/rightTriangle.png: Added.
3664 * page/inspector/Images/segment.png: Added.
3665 * page/inspector/Images/segmentEnd.png: Added.
3666 * page/inspector/Images/segmentHover.png: Added.
3667 * page/inspector/Images/segmentHoverEnd.png: Added.
3668 * page/inspector/Images/segmentSelected.png: Added.
3669 * page/inspector/Images/segmentSelectedEnd.png: Added.
3670 * page/inspector/Images/showStatusWidget.png: Added.
3671 * page/inspector/Images/showStatusWidgetPressed.png: Added.
3672 * page/inspector/Images/sidbarItemBackground.png: Added.
3673 * page/inspector/Images/sidebarActionWidget.png: Added.
3674 * page/inspector/Images/sidebarActionWidgetPressed.png: Added.
3675 * page/inspector/Images/sidebarAttachWidget.png: Added.
3676 * page/inspector/Images/sidebarAttachWidgetPressed.png: Added.
3677 * page/inspector/Images/sidebarDetachWidget.png: Added.
3678 * page/inspector/Images/sidebarDetachWidgetPressed.png: Added.
3679 * page/inspector/Images/sidebarResizeWidget.png: Added.
3680 * page/inspector/Images/sidebarSelection.png: Added.
3681 * page/inspector/Images/sidebarSelectionBlurred.png: Added.
3682 * page/inspector/Images/sidebarSelectionBlurredTall.png: Added.
3683 * page/inspector/Images/sidebarSelectionGray.png: Added.
3684 * page/inspector/Images/sidebarSelectionGrayTall.png: Added.
3685 * page/inspector/Images/sidebarSelectionTall.png: Added.
3686 * page/inspector/Images/sidebarStatusAreaBackground.png: Added.
3687 * page/inspector/Images/sourceViewButton.png: Added.
3688 * page/inspector/Images/sourceViewButtonSelected.png: Added.
3689 * page/inspector/Images/splitviewDimple.png: Added.
3690 * page/inspector/Images/splitviewDividerBackground.png: Added.
3691 * page/inspector/Images/tab.png: Added.
3692 * page/inspector/Images/tabSelected.png: Added.
3693 * page/inspector/Images/timelinePillBlue.png: Added.
3694 * page/inspector/Images/timelinePillGray.png: Added.
3695 * page/inspector/Images/timelinePillGreen.png: Added.
3696 * page/inspector/Images/timelinePillOrange.png: Added.
3697 * page/inspector/Images/timelinePillPurple.png: Added.
3698 * page/inspector/Images/timelinePillRed.png: Added.
3699 * page/inspector/Images/timelinePillYellow.png: Added.
3700 * page/inspector/Images/tipBalloon.png: Added.
3701 * page/inspector/Images/tipBalloonBottom.png: Added.
3702 * page/inspector/Images/tipIcon.png: Added.
3703 * page/inspector/Images/tipIconPressed.png: Added.
3704 * page/inspector/Images/toggleDown.png: Added.
3705 * page/inspector/Images/toggleUp.png: Added.
3706 * page/inspector/Images/toolbarBackground.png: Added.
3707 * page/inspector/Images/toolbarBackgroundInactive.png: Added.
3708 * page/inspector/Images/toolbarButton.png: Added.
3709 * page/inspector/Images/toolbarButtonInactive.png: Added.
3710 * page/inspector/Images/toolbarButtonPressed.png: Added.
3711 * page/inspector/Images/toolbarButtonPressedInactive.png: Added.
3712 * page/inspector/Images/toolbarSplitButtonDivider.png: Added.
3713 * page/inspector/Images/toolbarSplitButtonDividerInactive.png: Added.
3714 * page/inspector/Images/treeDownTriangleBlack.png: Added.
3715 * page/inspector/Images/treeDownTriangleWhite.png: Added.
3716 * page/inspector/Images/treeLeftTriangleBlack.png: Added.
3717 * page/inspector/Images/treeRightTriangleBlack.png: Added.
3718 * page/inspector/Images/treeRightTriangleWhite.png: Added.
3719 * page/inspector/Images/warningIcon.png: Added.
3720 * page/inspector/Images/warningMediumIcon.png: Added.
3721 * page/inspector/Images/warningsErrors.png: Added.
3725 * WebCore.exp: Added new symbols.
3726 * WebCore.xcodeproj/project.pbxproj: Added new source files and
3728 * WebCore.vcproj/WebCore.vcproj: Ditto, and copy the resources to
3731 Windows build fixes:
3733 * history/HistoryItem.h: ResourceRequest is a struct.
3734 * loader/FrameLoaderClient.h: Ditto.
3736 2007-06-20 Mitz Pettel <mitz@webkit.org>
3740 - fix http://bugs.webkit.org/show_bug.cgi?id=14056
3741 REGRESSION (r21113-21143): TR background not repainted via style class change
3743 Test: fast/repaint/table-row.html
3745 * rendering/RenderTableRow.cpp:
3746 (WebCore::RenderTableRow::layout): Added a repaint to make up for the case where the
3747 table row also needs layout, so it doesn't get a repaint in setStyle().
3749 2007-06-20 Mitz Pettel <mitz@webkit.org>
3753 - fix http://bugs.webkit.org/show_bug.cgi?id=14040
3754 Top and bottom border images flipped when using -webkit-border-image when border end up tiled
3756 Test: fast/borders/border-image-01.html
3758 Correctly account for the fact that "pattern space" is flipped.
3760 * platform/graphics/Image.cpp: (WebCore::Image::drawTiled):
3761 * platform/graphics/cg/ImageCG.cpp:
3762 (WebCore::Image::drawPatternCallback):
3763 (WebCore::Image::drawPattern):
3765 2007-06-20 Anders Carlsson <andersca@apple.com>
3769 <rdar://problem/5245555> REGRESSION: HTTP header injection in XMLHttpRequest.setRequestHeader
3771 Check for either '\r' or '\n' in the header value.
3773 * xml/xmlhttprequest.cpp:
3774 (WebCore::isValidHeaderValue):
3776 2007-06-20 Patti Hoa <patti@apple.com>
3778 Reviewed by Geoffrey Garen.
3780 <rdar://problem/4882527> VO should speak URL of image links that lack tags
3781 Add additional change from review
3783 * bridge/mac/WebCoreAXObject.mm:
3784 (-[WebCoreAXObject accessibilityAttributeValue:]):
3785 Check if the element has imgTag before asking for its url
3787 2007-06-20 Patti Hoa <patti@apple.com>
3789 Reviewed by Tristan O'Tierney.
3791 <rdar://problem/4882527> VO should speak URL of image links that lack tags
3793 * bridge/mac/WebCoreAXObject.mm:
3794 (-[WebCoreAXObject accessibilityAttributeNames]):
3795 (-[WebCoreAXObject accessibilityAttributeValue:]):
3796 Return the url of images.
3798 2007-06-19 Anders Carlsson <andersca@apple.com>
3800 Reviewed by Kevin Decker.
3802 <rdar://problem/5266289> REGRESSION (Safari 3 Beta 1): Incoming iChat messages are delayed
3804 Add a new m_deferMainResourceDataLoad that can be used to control whether a data load should be deferred using a timer or not.
3806 * loader/DocumentLoader.cpp:
3807 (WebCore::DocumentLoader::DocumentLoader):
3808 * loader/DocumentLoader.h:
3809 (WebCore::DocumentLoader::deferMainResourceDataLoad):
3810 * loader/MainResourceLoader.cpp:
3811 (WebCore::MainResourceLoader::handleDataLoadSoon):
3812 (WebCore::MainResourceLoader::loadNow):
3813 (WebCore::MainResourceLoader::setDefersLoading):
3815 2007-06-19 Patti Hoa <patti@apple.com>
3817 Reviewed by Justin Garcia.
3819 <rdar://problem/5237325> Incorrect AXLeftLineTextMarkerRangeForTextMarker/AXPreviousLineStartTextMarkerForTextMarker for non-editable text
3821 * editing/visible_units.cpp:
3822 (WebCore::startPositionForLine):
3823 (WebCore::startOfLine):
3824 (WebCore::endPositionForLine):
3825 (WebCore::endOfLine):
3826 Break down the line routines to allow another try to ask for start/end of line if the returned position is not valid.
3827 An example would be when lineStart/lineEnd at different line than the input position.
3828 This can happen if the input position is before the space character at the end of a soft-wrapped non-editable line,
3829 specifically a line without webkit-line-break:after-white-space style.
3831 2007-06-19 Patti Hoa <patti@apple.com>
3833 Reviewed by Justin Garcia.
3835 <rdar://problem/3992645> VO view bounds misplaced when reading text after a line wrap
3837 * bridge/mac/WebCoreAXObject.mm:
3838 (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
3839 Improve the accuracy of the bounds for a given range
3841 2007-06-19 Anders Carlsson <andersca@apple.com>
3845 <rdar://problem/5130630>
3846 XPath fails LayoutTests on Windows
3848 * xml/XPathPredicate.cpp:
3849 Include MathExtras.h here so we get a version of fmod that works around a bug in the Microsoft CRT.
3851 * xml/XPathValue.cpp:
3852 (WebCore::XPath::Value::toNumber):
3853 Instead of using NAN, which isn't really the NaN value on Windows, use numeric_limits.
3855 2007-06-19 Geoffrey Garen <ggaren@apple.com>
3857 Reviewed by Darin Adler.
3859 Fixed cross-frame access. <rdar://problem/5251309>.
3861 * bindings/js/kjs_window.cpp:
3862 (KJS::Window::getValueProperty):
3863 * bindings/scripts/CodeGeneratorJS.pm:
3864 * page/DOMWindow.idl:
3866 2007-06-19 Anders Carlsson <andersca@apple.com>
3870 * platform/win/PopupMenuWin.cpp:
3872 2007-06-19 Lars Knoll <lars@trolltech.com>
3876 Implement these methods correctly.
3878 * platform/qt/PlatformScreenQt.cpp:
3879 (WebCore::screenRect):
3880 (WebCore::screenAvailableRect):
3882 2007-06-19 Sam Weinig <sam@webkit.org>
3886 Patch for http://bugs.webkit.org/show_bug.cgi?id=14226
3887 Move the History object out of the JS bindings
3889 - Autogenerate JSHistory.
3891 * DerivedSources.make:
3893 * WebCore.vcproj/WebCore.vcproj:
3894 * WebCore.xcodeproj/project.pbxproj:
3895 * bindings/js/kjs_window.cpp:
3896 (KJS::WindowPrivate::WindowPrivate):
3897 (KJS::Window::mark):
3898 (KJS::Window::getValueProperty):
3899 (KJS::Window::clearHelperObjectProperties):
3900 (KJS::Window::disconnectFrame):
3901 * bindings/js/kjs_window.h:
3903 * bridge/GlobalHistory.h: Copied from WebCore/bridge/History.h.
3904 * bridge/History.h: Removed.
3905 * bridge/mac/GlobalHistoryMac.mm: Copied from WebCore/bridge/mac/HistoryMac.mm.
3906 * bridge/mac/HistoryMac.mm: Removed.
3907 * bridge/win/GlobalHistoryWin.cpp: Copied from WebCore/bridge/win/HistoryWin.cpp.
3908 * bridge/win/HistoryWin.cpp: Removed.
3909 * css/cssstyleselector.cpp:
3910 * page/DOMWindow.cpp:
3911 (WebCore::DOMWindow::disconnectFrame):
3912 (WebCore::DOMWindow::history):
3914 * page/DOMWindow.idl:
3915 * page/History.cpp: Added.
3916 (WebCore::History::History):
3917 (WebCore::History::frame):
3918 (WebCore::History::disconnectFrame):
3919 (WebCore::History::length):
3920 (WebCore::History::back):
3921 (WebCore::History::forward):
3922 (WebCore::History::go):
3923 * page/History.h: Added.
3924 * page/History.idl: Added.
3925 * platform/gdk/TemporaryLinkStubs.cpp:
3926 * platform/qt/TemporaryLinkStubs.cpp:
3927 * platform/wx/TemporaryLinkStubs.cpp:
3929 2007-06-18 Sam Weinig <sam@webkit.org>
3933 * platform/qt/PlatformScreenQt.cpp:
3934 (WebCore::screenDepth):
3935 (WebCore::screenDepthPerComponent):
3936 (WebCore::screenIsMonochrome):
3937 (WebCore::screenRect):
3938 (WebCore::screenAvailableRect):
3940 2007-06-18 Sam Weinig <sam@webkit.org>
3944 Fix build and update licenses.
3946 * WebCore.xcodeproj/project.pbxproj:
3951 (WebCore::Screen::height):
3952 (WebCore::Screen::width):
3953 (WebCore::Screen::colorDepth):
3954 (WebCore::Screen::pixelDepth):
3955 (WebCore::Screen::availLeft):
3956 (WebCore::Screen::availTop):
3957 (WebCore::Screen::availHeight):
3958 (WebCore::Screen::availWidth):
3962 2007-06-18 Anders Carlsson <andersca@apple.com>
3964 Reviewed by John Sullivan.
3966 <rdar://problem/5277008> Assertion in [LocationChangeHandler finishedLoadingFrame:]
3968 Don't send any frame load callbacks if the document load hasn't been
3971 * loader/FrameLoader.cpp:
3972 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3974 2007-06-18 Sam Weinig <sam@webkit.org>
3978 Patch for http://bugs.webkit.org/show_bug.cgi?id=14193
3979 Move the Screen object out of the JS bindings
3981 - Renames Screen.h to PlatformScreen.h to accommodate new class.
3982 - Autogenerates JSScreen.
3984 * DerivedSources.make:
3986 * WebCore.vcproj/WebCore.vcproj:
3987 * WebCore.xcodeproj/project.pbxproj:
3988 * bindings/js/kjs_window.cpp:
3989 (KJS::WindowPrivate::WindowPrivate):
3990 (KJS::Window::mark):
3991 (KJS::Window::getValueProperty):
3992 (KJS::Window::clearHelperObjectProperties):
3993 * bindings/js/kjs_window.h:
3995 * css/MediaQueryEvaluator.cpp:
3996 * page/DOMWindow.cpp:
3997 (WebCore::DOMWindow::DOMWindow):
3998 (WebCore::DOMWindow::~DOMWindow):
3999 (WebCore::DOMWindow::frame):
4000 (WebCore::DOMWindow::disconnectFrame):
4001 (WebCore::DOMWindow::screen):
4003 * page/DOMWindow.idl:
4004 * page/Screen.cpp: Added.
4005 (WebCore::Screen::Screen):
4006 (WebCore::Screen::disconnectFrame):
4007 (WebCore::Screen::height):
4008 (WebCore::Screen::width):
4009 (WebCore::Screen::colorDepth):
4010 (WebCore::Screen::pixelDepth):
4011 (WebCore::Screen::availLeft):
4012 (WebCore::Screen::availTop):
4013 (WebCore::Screen::availHeight):
4014 (WebCore::Screen::availWidth):
4015 * page/Screen.h: Added.
4016 * page/Screen.idl: Added.
4017 * page/mac/WebCoreFrameBridge.mm:
4018 * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h.
4019 * platform/Screen.h: Removed.
4020 * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp.
4021 * platform/gdk/ScreenGdk.cpp: Removed.
4022 * platform/mac/PlatformMouseEventMac.mm:
4023 * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm.
4024 * platform/mac/ScreenMac.mm: Removed.
4025 * platform/qt/PlatformScreenQt.cpp: Added.
4026 (WebCore::WebCore::screenDepth):
4027 (WebCore::WebCore::screenDepthPerComponent):
4028 (WebCore::WebCore::screenIsMonochrome):
4029 (WebCore::WebCore::screenRect):
4030 (WebCore::WebCore::screenAvailableRect):
4031 * platform/qt/TemporaryLinkStubs.cpp:
4032 * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp.
4033 * platform/win/ScreenWin.cpp: Removed.
4034 * rendering/RenderObject.cpp:
4036 2007-06-18 Sam Weinig <sam@webkit.org>
4040 Patch for http://bugs.webkit.org/show_bug.cgi?id=14211
4041 Move the BarInfo object out of the JS bindings
4043 * DerivedSources.make:
4045 * WebCore.vcproj/WebCore.vcproj:
4046 * WebCore.xcodeproj/project.pbxproj:
4047 * bindings/js/kjs_window.cpp:
4048 (KJS::WindowPrivate::WindowPrivate):
4049 (KJS::Window::mark):
4050 (KJS::Window::getValueProperty):
4051 (KJS::Window::clearHelperObjectProperties):
4052 (KJS::Window::disconnectFrame):
4053 * bindings/js/kjs_window.h:
4055 * page/BarInfo.cpp: Added.
4056 (WebCore::BarInfo::BarInfo):
4057 (WebCore::BarInfo::disconnectFrame):
4058 (WebCore::BarInfo::visible):
4059 * page/BarInfo.h: Added.
4060 (WebCore::BarInfo::):
4061 * page/BarInfo.idl: Added.
4062 * page/DOMWindow.cpp:
4063 (WebCore::DOMWindow::~DOMWindow):
4064 (WebCore::DOMWindow::disconnectFrame):
4065 (WebCore::DOMWindow::locationbar):
4066 (WebCore::DOMWindow::menubar):
4067 (WebCore::DOMWindow::personalbar):
4068 (WebCore::DOMWindow::scrollbars):
4069 (WebCore::DOMWindow::statusbar):
4070 (WebCore::DOMWindow::toolbar):
4072 * page/DOMWindow.idl:
4074 2007-06-18 Sam Weinig <sam@webkit.org>
4078 Remove the FrameArray class and instead make window.frames another
4079 self-reference for window (like window.window, window.self, etc).
4080 This is what Firefox and what the HTML5 dictates.
4082 * bindings/js/kjs_window.cpp:
4083 (KJS::WindowPrivate::WindowPrivate):
4084 (KJS::Window::mark):
4085 (KJS::Window::getValueProperty):
4086 (KJS::Window::clearHelperObjectProperties):
4087 (KJS::Window::disconnectFrame):
4088 * bindings/js/kjs_window.h:
4090 2007-06-18 Mitz Pettel <mitz@webkit.org>
4094 - fix http://bugs.webkit.org/show_bug.cgi?id=13413
4095 Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets
4097 Test: fast/forms/input-zero-height-focus.html
4099 * rendering/RenderTextControl.cpp:
4100 (WebCore::RenderTextControl::setSelectionRange): Avoid setting the
4101 selection in a zero-height text control.
4103 2007-06-18 Alp Toker <alp.toker@collabora.co.uk>
4105 Reviewed by Sam Weinig.
4107 http://bugs.webkit.org/show_bug.cgi?id=14052
4111 * platform/gdk/SoundGdk.cpp: Added.
4112 (WebCore::systemBeep):
4113 * platform/gdk/TemporaryLinkStubs.cpp:
4114 (WebCore::systemBeep):
4116 2007-06-18 Dave Hyatt <hyatt@apple.com>
4118 Add support for horizontal mouse wheeling on Windows.
4122 * platform/PlatformWheelEvent.h:
4123 * platform/win/WheelEventWin.cpp:
4124 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
4126 2007-06-17 Sam Weinig <sam@webkit.org>
4130 * WebCore.vcproj/WebCore.vcproj:
4132 2007-06-15 David Hyatt <hyatt@apple.com>
4134 Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image
4135 because of a botched 'round' support removal. Also update for a change in
4136 the spec that has the second stretch/round/repeat keyword match the first
4141 * css/cssparser.cpp:
4142 (WebCore::BorderImageParseContext::commitBorderImage):
4143 * platform/graphics/Image.cpp:
4144 (WebCore::Image::drawTiled):
4145 * platform/graphics/Image.h:
4148 2007-06-15 Sam Weinig <sam@webkit.org>
4152 Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
4153 Autogenerate JS binding for Rect
4155 - Renames RectImpl to Rect, DOMStyleSheetList to JSStyleSheetList
4156 and DOMRGBColor to JSRGBColor
4157 - Moves JSStyleSheetList and JSRGBColor into the WebCore namespace.
4159 * DerivedSources.make:
4161 * WebCore.xcodeproj/project.pbxproj:
4162 * bindings/js/kjs_css.cpp:
4164 (WebCore::JSStyleSheetList::JSStyleSheetList):
4165 (WebCore::JSStyleSheetList::~JSStyleSheetList):
4166 (WebCore::JSStyleSheetList::getValueProperty):
4167 (WebCore::JSStyleSheetList::indexGetter):
4168 (WebCore::JSStyleSheetList::nameGetter):
4169 (WebCore::JSStyleSheetList::getOwnPropertySlot):
4171 (WebCore::JSStyleSheetListFunc::callAsFunction):
4172 (WebCore::JSRGBColor::JSRGBColor):
4173 (WebCore::JSRGBColor::~JSRGBColor):
4174 (WebCore::JSRGBColor::getOwnPropertySlot):
4175 (WebCore::JSRGBColor::getValueProperty):
4176 (WebCore::getJSRGBColor):
4177 * bindings/js/kjs_css.h:
4178 (WebCore::JSStyleSheetList::classInfo):
4179 (WebCore::JSStyleSheetList::):
4180 (WebCore::JSStyleSheetList::impl):
4181 (WebCore::JSRGBColor::classInfo):
4182 (WebCore::JSRGBColor::):
4183 (WebCore::JSRGBColor::impl):
4184 * bindings/objc/DOMUtility.mm:
4185 (KJS::createDOMWrapper):
4186 * bindings/scripts/CodeGeneratorJS.pm:
4187 * bindings/scripts/CodeGeneratorObjC.pm:
4188 * css/CSSBorderImageValue.cpp:
4189 (WebCore::CSSBorderImageValue::CSSBorderImageValue):
4190 * css/CSSBorderImageValue.h:
4191 * css/CSSPrimitiveValue.cpp:
4192 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
4193 (WebCore::CSSPrimitiveValue::cssText):
4194 * css/CSSPrimitiveValue.h:
4195 (WebCore::CSSPrimitiveValue::getRectValue):
4196 (WebCore::CSSPrimitiveValue::):
4197 * css/DashboardRegion.h:
4198 * css/Rect.h: Copied from css/RectImpl.h.
4199 (WebCore::Rect::~Rect):
4200 (WebCore::Rect::top):
4201 (WebCore::Rect::right):
4202 (WebCore::Rect::bottom):
4203 (WebCore::Rect::left):
4204 (WebCore::Rect::setTop):
4205 (WebCore::Rect::setRight):
4206 (WebCore::Rect::setBottom):
4207 (WebCore::Rect::setLeft):
4209 * css/RectImpl.h: Removed.
4210 * css/cssparser.cpp:
4211 (WebCore::CSSParser::parseShape):
4212 (WebCore::BorderImageParseContext::commitBorderImage):
4213 * css/cssstyleselector.cpp:
4214 (WebCore::CSSStyleSelector::applyProperty):
4215 * page/DOMWindow.idl:
4217 2007-06-14 George Staikos <staikos@kde.org>
4221 Implement missing tab support and a slight refactor.
4223 * platform/qt/PlatformKeyboardEventQt.cpp:
4224 (WebCore::keyIdentifierForQtKeyCode):
4225 (WebCore::windowsKeyCodeForKeyEvent):
4226 (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent):
4228 2007-06-14 Dave Hyatt <hyatt@apple.com>
4230 Fix for Bugzilla bug 14806, missing text for bold/italic fonts in non-English Windows installs.
4232 This patch adds an additional step after the lookup by full name fails. It will then look up
4233 a PostScript name in a (localized full name) -> (PostScript name) cache. If the name is not
4234 found, then the font's name table is obtained and searched for a PostScript name (and the
4237 If lookup on PostScript name fails too, then we now properly fall back to the next font in the
4238 list (so text should never be missing).
4240 Reviewed by Darin (thoroughly reviewed, super reviewed even)
4242 * platform/win/FontCacheWin.cpp:
4243 * platform/win/FontPlatformDataWin.cpp:
4245 2007-06-14 Anders Carlsson <andersca@apple.com>
4249 Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
4250 for a given plug-in.
4254 (WebCore::Frame::cleanupScriptObjectsForPlugin):
4257 2007-06-14 Anders Carlsson <andersca@apple.com>
4261 <rdar://problem/5211677>
4262 -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object>
4264 * loader/FrameLoader.cpp:
4265 (WebCore::FrameLoader::requestObject):
4266 If the object is a Java MIME type and Java is disabled, don't load the plug-in.
4268 * platform/MimeTypeRegistry.cpp:
4269 (WebCore::MimeTypeRegistry::isJavaAppletMIMEType):
4270 Clean this up and add another applet MIME type.
4272 2007-06-14 George Staikos <staikos@kde.org>
4276 Implement the file chooser for Qt.
4278 * platform/qt/FileChooserQt.cpp:
4279 (WebCore::FileChooser::openFileChooser):
4280 (WebCore::FileChooser::basenameForWidth):
4282 2007-06-14 George Staikos <staikos@kde.org>
4286 Add missing initialization of pointer.
4288 * platform/qt/ContextMenuQt.cpp:
4289 (WebCore::ContextMenu::ContextMenu):
4291 2007-06-14 Anders Carlsson <andersca@apple.com>
4295 <rdar://problem/5244948>
4296 Safari keeps on complaining about slow script playing NBC TV video (14133)
4298 http://bugs.webkit.org/show_bug.cgi?id=14133
4299 Runaway JavaScript timer fires when spinning around in Google Maps street view
4301 Make sure to start and stop the timeout checker around calls to JS.
4303 * bindings/objc/WebScriptObject.mm:
4304 (-[WebScriptObject callWebScriptMethod:withArguments:]):
4305 (-[WebScriptObject evaluateWebScript:]):
4307 2007-06-14 George Staikos <staikos@kde.org>
4311 Keypress causes typeahead crash on empty selects due to modulo 0.
4313 * html/HTMLSelectElement.cpp:
4314 (WebCore::HTMLSelectElement::typeAheadFind):
4316 2007-06-13 George Staikos <staikos@kde.org>
4320 Compile without self-linking.
4324 2007-06-13 Darin Adler <darin@apple.com>
4326 Reviewed by Kevin Decker.
4328 - fix <rdar://problem/5264923> Safari frequently "stalls" beneath
4329 +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font)