1 2006-10-06 Adam Roben <aroben@apple.com>
3 Backing out my previous change.
5 * WebCore.xcodeproj/project.pbxproj:
7 (WebCore::FrameView::adjustViewSize):
9 2006-10-06 Adam Roben <aroben@apple.com>
13 * WebCore.xcodeproj/project.pbxproj:
15 (WebCore::FrameView::windowResizerRect):
17 2006-10-06 Adam Roben <aroben@apple.com>
23 * platform/ResourceLoader.h:
24 * platform/ResourceLoaderInternal.h:
25 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
26 * platform/win/TemporaryLinkStubs.cpp:
27 (WebCore::ResourceLoader::newHTTPRequest):
29 2006-10-05 Steve Falkenburg <sfalken@apple.com>
33 Stub out some methods that we'll be able to use to dodge a window resizer.
35 * bridge/win/FrameWin.h:
37 (WebCore::Frame::windowResizerRect):
39 * platform/ScrollView.h:
40 (WebCore::ScrollView::windowResizerRect):
42 * platform/win/TemporaryLinkStubs.cpp:
43 (FrameView::windowResizerRect):
46 (FrameWin::windowResizerRect):
48 2006-10-05 Dave Hyatt <hyatt@apple.com>
50 Stub out setFrameGeometry.
52 * platform/ScrollView.h:
54 2006-10-05 Adele Peterson <adele@apple.com>
56 Reverting autoscroll fix. I need to rework this a little.
59 (WebCore::Frame::handleAutoscroll):
60 (WebCore::Frame::autoscrollTimerFired):
61 (WebCore::Frame::stopAutoscrollTimer):
63 * rendering/RenderLayer.cpp:
64 (WebCore::RenderLayer::~RenderLayer):
65 * rendering/RenderListBox.cpp:
66 (WebCore::RenderListBox::~RenderListBox):
68 2006-10-05 Alice <alice.liu@apple.com>
72 Fixed <rdar://problem/4731778>
74 * editing/CommandByName.cpp:
75 (WebCore::Frame::Command::):
76 was calling the wrong enabledFn for arrow selection and navigation
78 2006-10-05 Adele Peterson <adele@apple.com>
82 - Fix for <rdar://problem/4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
83 and <rdar://problem/4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
85 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
86 * rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
88 * page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
89 (WebCore::Frame::handleAutoscroll):
90 (WebCore::Frame::autoscrollTimerFired):
91 (WebCore::Frame::autoscrollRenderer):
92 (WebCore::Frame::setAutoscrollRenderer):
93 (WebCore::Frame::stopAutoscrollTimer):
96 2006-10-05 Don Gibson <dgibson77@gmail.com>
100 Fix win32 build bustage after ggaren's Scrollbar renaming changes.
101 Properly include PlatformScrollBar.h in WbCore.vcproj.
102 Clean up WidgetWin.cpp a bit.
104 * WebCore.vcproj/WebCore/WebCore.vcproj:
106 * platform/win/PlatformScrollBar.h:
107 * platform/win/ScrollViewWin.cpp:
108 (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
109 (WebCore::ScrollView::resizeContents):
110 (WebCore::ScrollView::scrollBy):
111 (WebCore::ScrollView::hScrollbarMode):
112 (WebCore::ScrollView::vScrollbarMode):
113 (WebCore::ScrollView::suppressScrollbars):
114 (WebCore::ScrollView::setHScrollbarMode):
115 (WebCore::ScrollView::setVScrollbarMode):
116 (WebCore::ScrollView::setScrollbarsMode):
117 (WebCore::ScrollView::updateScrollbars):
118 * platform/win/TemporaryLinkStubs.cpp:
119 (FrameView::passMousePressEventToScrollbar):
120 (Widget::removeFromParent):
121 (ScrollView::scrollbarUnderMouse):
122 (PlatformScrollbar::PlatformScrollbar):
123 (PlatformScrollbar::~PlatformScrollbar):
124 (PlatformScrollbar::width):
125 (PlatformScrollbar::height):
126 (PlatformScrollbar::setEnabled):
127 (PlatformScrollbar::paint):
128 (PlatformScrollbar::updateThumbPosition):
129 (PlatformScrollbar::updateThumbProportion):
130 (PlatformScrollbar::setRect):
131 (Scrollbar::Scrollbar):
132 (Scrollbar::setSteps):
134 (Scrollbar::setValue):
135 (Scrollbar::setProportion):
136 * platform/win/WidgetWin.cpp:
137 (WebCore::WidgetPrivate::WidgetPrivate):
138 (WebCore::Widget::Widget):
139 (WebCore::Widget::setContainingWindow):
140 (WebCore::Widget::containingWindow):
142 2006-10-05 Geoffrey Garen <ggaren@apple.com>
146 * WebCore.xcodeproj/project.pbxproj:
147 * bridge/mac/BrowserExtensionMac.mm:
148 (WebCore::BrowserExtensionMac::createNewWindow):
149 * bridge/mac/FrameMac.mm:
150 (WebCore::FrameMac::createFrame):
151 * bridge/mac/FrameViewMac.mm:
152 (WebCore::FrameView::passMousePressEventToScrollbar):
153 * bridge/mac/WebCoreFrameBridge.mm:
154 (-[WebCoreFrameBridge installInFrame:]):
155 * bridge/mac/WebCoreFrameView.h:
156 * platform/ScrollBar.cpp:
158 * platform/mac/PlatformScrollBar.h:
159 * platform/mac/PlatformScrollBarMac.mm:
160 (NSControlSizeForScrollBarControlSize):
161 (-[WebCoreScrollBar initWithPlatformScrollbar:]):
162 (-[WebCoreScrollBar detachPlatformScrollbar]):
163 (-[WebCoreScrollBar scroll:]):
164 (-[WebCoreScrollBar widget]):
165 (WebCore::PlatformScrollbar::PlatformScrollbar):
166 (WebCore::PlatformScrollbar::~PlatformScrollbar):
167 (WebCore::PlatformScrollbar::updateThumbPosition):
168 (WebCore::PlatformScrollbar::updateThumbProportion):
169 (WebCore::PlatformScrollbar::scrollbarHit):
170 (WebCore::PlatformScrollbar::width):
171 (WebCore::PlatformScrollbar::height):
172 (WebCore::PlatformScrollbar::setRect):
173 (WebCore::PlatformScrollbar::setEnabled):
174 (WebCore::PlatformScrollbar::paint):
175 * platform/mac/ScrollViewMac.mm:
176 (WebCore::ScrollView::setVScrollbarMode):
177 (WebCore::ScrollView::setHScrollbarMode):
178 (WebCore::ScrollView::setScrollbarsMode):
179 (WebCore::ScrollView::vScrollbarMode):
180 (WebCore::ScrollView::hScrollbarMode):
181 (WebCore::ScrollView::suppressScrollbars):
182 (WebCore::ScrollView::scrollbarUnderMouse):
183 * platform/mac/WidgetMac.mm:
184 (WebCore::Widget::removeFromParent):
185 * rendering/RenderLayer.cpp:
186 (WebCore::RenderLayer::destroyScrollbar):
188 2006-10-05 Geoffrey Garen <ggaren@apple.com>
193 * rendering/RenderLayer.cpp:
194 (WebCore::RenderLayer::destroyScrollbar):
196 2006-10-06 Mitz Pettel <mitz@webkit.org>
198 http://bugs.webkit.org/show_bug.cgi?id=8276
199 Fix broken manual test added back in r13990.
201 Add resource forks for test resources.
203 * manual-tests/resources/plain-text-paste/._1.textClipping: Added.
204 * manual-tests/resources/plain-text-paste/._2.textClipping: Added.
205 * manual-tests/resources/plain-text-paste/._4.txt: Added.
206 * manual-tests/resources/plain-text-paste/._5.webloc: Added.
208 2006-10-05 David Hyatt <hyatt@apple.com>
210 Rename addClip to clip.
214 * kcanvas/RenderForeignObject.cpp:
215 (WebCore::RenderForeignObject::paint):
216 * kcanvas/RenderSVGContainer.cpp:
217 (WebCore::RenderSVGContainer::paint):
218 * kcanvas/RenderSVGImage.cpp:
219 (WebCore::RenderSVGImage::paint):
220 * platform/GraphicsContext.h:
221 * platform/cairo/GraphicsContextCairo.cpp:
222 (WebCore::GraphicsContext::clip):
223 * platform/cg/GraphicsContextCG.cpp:
224 (WebCore::GraphicsContext::savePlatformState):
225 (WebCore::GraphicsContext::restorePlatformState):
226 (WebCore::GraphicsContext::clip):
227 (WebCore::GraphicsContext::addRoundedRectClip):
228 (WebCore::GraphicsContext::addInnerRoundedRectClip):
229 (WebCore::GraphicsContext::scale):
230 (WebCore::GraphicsContext::rotate):
231 (WebCore::GraphicsContext::translate):
232 (WebCore::GraphicsContext::concatCTM):
233 * platform/cg/GraphicsContextPlatformPrivate.h:
234 (WebCore::GraphicsContextPlatformPrivate::save):
235 (WebCore::GraphicsContextPlatformPrivate::restore):
236 (WebCore::GraphicsContextPlatformPrivate::clip):
237 (WebCore::GraphicsContextPlatformPrivate::scale):
238 (WebCore::GraphicsContextPlatformPrivate::rotate):
239 (WebCore::GraphicsContextPlatformPrivate::translate):
240 (WebCore::GraphicsContextPlatformPrivate::concatCTM):
241 * platform/qt/GraphicsContextQt.cpp:
242 (WebCore::GraphicsContext::clip):
243 (WebCore::GraphicsContext::addInnerRoundedRectClip):
244 (WebCore::GraphicsContext::addRoundedRectClip):
245 * rendering/InlineFlowBox.cpp:
246 (WebCore::InlineFlowBox::paintBackground):
247 (WebCore::InlineFlowBox::paintBackgroundAndBorder):
248 * rendering/InlineTextBox.cpp:
249 (WebCore::InlineTextBox::paintSelection):
250 (WebCore::InlineTextBox::paintTextMatchMarker):
251 * rendering/RenderBox.cpp:
252 (WebCore::RenderBox::paintBackgroundExtended):
253 * rendering/RenderButton.cpp:
254 (WebCore::RenderButton::paintObject):
255 * rendering/RenderFileUploadControl.cpp:
256 (WebCore::RenderFileUploadControl::paintObject):
257 * rendering/RenderLayer.cpp:
258 (WebCore::RenderLayer::beginTransparencyLayers):
260 * rendering/RenderListBox.cpp:
261 (WebCore::RenderListBox::paintObject):
262 * rendering/RenderMenuList.cpp:
263 (WebCore::RenderMenuList::paintObject):
264 * rendering/RenderTableCell.cpp:
265 (WebCore::RenderTableCell::paintBackgroundsBehindCell):
267 2006-10-05 Mitz Pettel <mitz@webkit.org>
271 - http://bugs.webkit.org/show_bug.cgi?id=10386
272 Delete RenderImageButton.* and remove references from .vcproj and .bkl files
275 * WebCore.vcproj/WebCore/WebCore.vcproj:
276 * WebCoreSources.bkl:
277 * rendering/RenderImageButton.cpp: Removed.
278 * rendering/RenderImageButton.h: Removed.
280 2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
284 - http://bugs.webkit.org/show_bug.cgi?id=11067
285 manual-tests/scrollbar-hittest2.html is invalid
287 * manual-tests/scrollbar-hittest2.html:
289 2006-10-05 David Carson <dacarson@gmail.com>
293 http://bugs.webkit.org/show_bug.cgi?id=11152
294 Adjust the tokenizer chunk size to be smaller for
295 mobile devices, and also decrease the yield timer
296 for the tokenizer so that it can resume earlier.
298 * html/HTMLTokenizer.cpp:
301 2006-10-05 Adam Roben <aroben@apple.com>
303 Removing accidentally-checked-in do-nothing code.
305 * html/HTMLInputElement.cpp:
306 (WebCore::HTMLInputElement::defaultEventHandler):
308 2006-10-05 David Carson <dacarson@gmail.com>
312 http://bugs.webkit.org/show_bug.cgi?id=11158
313 Initialize class variables
315 * rendering/RenderLayer.cpp:
316 (WebCore::RenderLayer::RenderLayer):
318 2006-10-05 Don Gibson <dgibson77@gmail.com>
320 Reviewed by Darin, landed by Adam.
322 http://bugs.webkit.org/show_bug.cgi?id=11176
323 Fix win32 build, adapt to Maciej's ResourceLoader changes.
325 * platform/win/ResourceLoaderWin.cpp:
326 (WebCore::ResourceLoader::start):
328 2006-10-05 Marvin Decker <marv.decker@gmail.com>
332 http://bugs.webkit.org/show_bug.cgi?id=10989
333 Provide a way for embedders to implement BrowserExtensionWin
335 * WebCore.vcproj/WebCore/WebCore.vcproj:
336 * bridge/win/BrowserExtensionWin.cpp: Added.
337 (BrowserExtensionWin::BrowserExtensionWin):
338 (BrowserExtensionWin::setTypedIconURL):
339 (BrowserExtensionWin::setIconURL):
340 (BrowserExtensionWin::getHistoryLength):
341 (BrowserExtensionWin::canRunModal):
342 (BrowserExtensionWin::createNewWindow):
343 (BrowserExtensionWin::canRunModalNow):
344 (BrowserExtensionWin::runModal):
345 (BrowserExtensionWin::goBackOrForward):
346 (BrowserExtensionWin::historyURL):
347 * bridge/win/BrowserExtensionWin.h:
348 * bridge/win/FrameWin.cpp:
349 (WebCore::FrameWin::createNewWindow):
350 * bridge/win/FrameWin.h:
351 * platform/win/TemporaryLinkStubs.cpp:
353 2006-10-05 Geoffrey Garen <ggaren@apple.com>
357 Fixed <rdar://problem/4766987>
359 - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
360 except for file names.
362 - fixed RenderLayer to properly tear down scrollbars, removing them from
365 * bindings/js/kjs_window.cpp:
366 (KJS::showModalDialog):
367 (KJS::setWindowFeature):
368 (KJS::parseWindowFeatures):
369 * bridge/BrowserExtension.h:
371 (WebCore::Document::setInPageCache):
372 * html/HTMLFrameElement.cpp:
373 (WebCore::HTMLFrameElement::init):
374 (WebCore::HTMLFrameElement::parseMappedAttribute):
375 * html/HTMLFrameElement.h:
376 (WebCore::HTMLFrameElement::scrollingMode):
378 (WebCore::Frame::finishedParsing):
379 (WebCore::Frame::scrollbarsVisible):
380 * page/FrameView.cpp:
381 (WebCore::FrameViewPrivate::FrameViewPrivate):
382 (WebCore::FrameViewPrivate::reset):
383 (WebCore::FrameView::~FrameView):
384 (WebCore::FrameView::resetScrollbars):
385 (WebCore::FrameView::clear):
386 (WebCore::FrameView::initScrollbars):
387 (WebCore::FrameView::applyOverflowToViewport):
388 (WebCore::FrameView::layout):
389 (WebCore::FrameView::handleMousePressEvent):
390 (WebCore::selectCursor):
391 (WebCore::FrameView::handleMouseMoveEvent):
392 (WebCore::FrameView::setScrollbarsMode):
393 (WebCore::FrameView::setVScrollbarMode):
394 (WebCore::FrameView::setHScrollbarMode):
395 (WebCore::FrameView::restoreScrollbar):
396 (WebCore::FrameView::dispatchMouseEvent):
397 (WebCore::FrameView::scrollbarMoved):
399 * page/MouseEventWithHitTestResults.cpp:
400 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
401 * page/MouseEventWithHitTestResults.h:
402 (WebCore::MouseEventWithHitTestResults::scrollbar):
403 * platform/ScrollBar.cpp:
404 (WebCore::Scrollbar::Scrollbar):
405 (WebCore::Scrollbar::setValue):
406 (WebCore::Scrollbar::setProportion):
407 (WebCore::Scrollbar::setSteps):
408 (WebCore::Scrollbar::scroll):
409 * platform/ScrollBar.h:
411 (WebCore::ScrollbarClient::~ScrollbarClient):
412 (WebCore::Scrollbar::~Scrollbar):
413 (WebCore::Scrollbar::orientation):
414 (WebCore::Scrollbar::controlSize):
415 (WebCore::Scrollbar::hasPlatformScrollbars):
416 (WebCore::Scrollbar::client):
417 * platform/ScrollBarMode.h:
419 * platform/ScrollView.h:
420 * rendering/RenderBlock.cpp:
421 (WebCore::RenderBlock::isPointInScrollbar):
422 * rendering/RenderLayer.cpp:
423 (WebCore::RenderLayer::RenderLayer):
424 (WebCore::RenderLayer::~RenderLayer):
425 (WebCore::RenderLayer::scrollToOffset):
426 (WebCore::RenderLayer::horizontaScrollbarWidget):
427 (WebCore::RenderLayer::verticalScrollbarWidget):
428 (WebCore::RenderLayer::valueChanged):
429 (WebCore::RenderLayer::createScrollbar):
430 (WebCore::RenderLayer::destroyScrollbar):
431 (WebCore::RenderLayer::setHasHorizontalScrollbar):
432 (WebCore::RenderLayer::setHasVerticalScrollbar):
433 (WebCore::RenderLayer::verticalScrollbarWidth):
434 (WebCore::RenderLayer::horizontalScrollbarHeight):
435 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
436 * rendering/RenderLayer.h:
437 (WebCore::RenderLayer::horizontalScrollbar):
438 (WebCore::RenderLayer::verticalScrollbar):
439 * rendering/RenderListBox.cpp:
440 (WebCore::RenderListBox::~RenderListBox):
441 (WebCore::RenderListBox::calcMinMaxWidth):
442 (WebCore::RenderListBox::isPointInScrollbar):
443 (WebCore::RenderListBox::optionAtPoint):
444 (WebCore::RenderListBox::valueChanged):
445 * rendering/RenderListBox.h:
446 * rendering/RenderObject.h:
447 (WebCore::RenderObject::NodeInfo::scrollbar):
448 (WebCore::RenderObject::NodeInfo::setScrollbar):
450 2006-10-05 Don Gibson <dgibson77@gmail.com>
454 http://bugs.webkit.org/show_bug.cgi?id=11138
455 Incorrect mouse event generation on Windows
457 * platform/win/MouseEventWin.cpp:
458 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
459 (1) Set mouse button even for non-click-related messages.
460 (2) Track clicks correctly for all buttons, not just the left button.
462 2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
464 Reviewed and landed by ap.
466 Fix Qt/Linux build, adapt to Eric's quartz changes and to Maciej's ResourceLoader changes.
468 * kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
469 (WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
470 (WebCore::KRenderingPaintServerLinearGradientQt::setup):
471 (WebCore::KRenderingPaintServerRadialGradientQt::setup):
472 (WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
473 * kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
474 (WebCore::KRenderingPaintServerPatternQt::renderPath):
475 * kcanvas/device/qt/KRenderingPaintServerQt.cpp:
476 (WebCore::KRenderingPaintServerQt::setPenProperties):
477 * kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
478 (WebCore::KRenderingPaintServerSolidQt::setup):
479 (WebCore::KRenderingPaintServerSolidQt::renderPath):
480 * kcanvas/device/qt/RenderPathQt.cpp:
481 (WebCore::getPathStroke):
483 2006-10-05 Alexey Proskuryakov <ap@nypop.com>
487 http://bugs.webkit.org/show_bug.cgi?id=11054
488 REGRESSION: Traditional Chinese encoding in login authentication
490 1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
491 2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
492 for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
494 * platform/StreamingTextDecoderICU.cpp:
495 (WebCore::TextCodecICU::registerEncodingNames):
497 2006-10-05 Eric Seidel <eric@eseidel.com>
502 Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
504 * WebCore.xcodeproj/project.pbxproj:
505 * ksvg2/ecma/GlobalObject.cpp: Removed.
506 * ksvg2/ecma/GlobalObject.h: Removed.
508 2006-10-05 Adam Roben <aroben@apple.com>
512 Small ResourceLoaderInternal tweak.
514 * platform/ResourceLoaderInternal.h:
515 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
517 2006-10-05 Eric Seidel <eric@eseidel.com>
521 More incremental KCanvas cleanup and optimization.
522 Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
523 Optimized dash array usage to not malloc.
524 Also removed un-needed KSVGRenderingStyle includes.
526 * kcanvas/KCanvasTreeDebug.cpp:
527 (WebCore::operator<<):
528 * kcanvas/RenderPath.cpp:
529 (WebCore::RenderPath::nodeAtPoint):
530 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
531 (WebCore::RenderPath::strokeBBox):
532 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
533 (WebCore::KRenderingPaintServerGradientQuartz::setup):
534 (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
535 (WebCore::KRenderingPaintServerGradientQuartz::teardown):
536 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
537 (WebCore::KRenderingPaintServerSolidQuartz::setup):
538 (WebCore::KRenderingPaintServerSolidQuartz::renderPath):
539 (WebCore::KRenderingPaintServerPatternQuartz::setup):
540 (WebCore::KRenderingPaintServerPatternQuartz::renderPath):
541 * kcanvas/device/quartz/QuartzSupport.mm:
542 (WebCore::applyStrokeStyleToContext):
543 * ksvg2/css/SVGRenderStyle.h:
544 (WebCore::SVGRenderStyle::hasStroke):
545 (WebCore::SVGRenderStyle::hasFill):
546 * ksvg2/misc/KCanvasRenderingStyle.cpp:
547 (WebCore::KSVGPainterFactory::fillPaintServer):
548 (WebCore::KSVGPainterFactory::strokePaintServer):
549 * ksvg2/misc/KCanvasRenderingStyle.h:
551 2006-10-05 Maciej Stachowiak <mjs@apple.com>
555 - changed ResourceLoader to be refcounted
557 It keeps a ref on itself while loading as well. This makes
558 for a much saner memory management model than the previous.
560 * bridge/mac/WebCoreResourceLoaderImp.mm:
561 (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
562 * dom/XMLTokenizer.cpp:
564 * loader/icon/IconLoader.cpp:
565 (IconLoader::IconLoader):
566 (IconLoader::~IconLoader):
567 (IconLoader::startLoading):
568 (IconLoader::stopLoading):
569 (IconLoader::receivedData):
570 * loader/icon/IconLoader.h:
572 (WebCore::Loader::servePendingRequests):
573 * platform/ResourceLoader.cpp:
574 (WebCore::ResourceLoader::create):
575 (WebCore::ResourceLoader::kill):
576 * platform/ResourceLoader.h:
577 * platform/ResourceLoaderInternal.h:
578 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
579 * platform/mac/ResourceLoaderMac.mm:
580 (WebCore::ResourceLoader::start):
581 * xml/XSLTProcessor.cpp:
582 (WebCore::docLoaderFunc):
583 * xml/xmlhttprequest.cpp:
584 (WebCore::XMLHttpRequest::send):
585 * xml/xmlhttprequest.h:
587 2006-10-05 Eric Seidel <eric@eseidel.com>
591 Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
592 http://bugs.webkit.org/show_bug.cgi?id=11163
594 No SVG performance tests yet.
596 * kcanvas/RenderForeignObject.cpp:
597 (WebCore::RenderForeignObject::paint):
598 * kcanvas/RenderSVGContainer.cpp:
599 (WebCore::RenderSVGContainer::paint):
600 * kcanvas/RenderSVGImage.cpp:
601 (WebCore::RenderSVGImage::paint):
602 * kcanvas/RenderSVGText.cpp:
603 (WebCore::RenderSVGText::paint):
605 2006-10-05 Dave Hyatt <hyatt@apple.com>
607 Stub out some stuff for widget focusability.
611 * page/FrameView.cpp:
612 (WebCore::FrameView::dispatchMouseEvent):
613 * platform/ScrollView.h:
616 2006-10-05 Adam Roben <aroben@apple.com>
618 Reviewed by Maciej and Tim H.
620 Copy some WebKit frame lifetime logic into WebCore -- just a step
621 along the path to frame lifetime being handled completely in WebCore.
623 * bridge/mac/FrameMac.mm:
624 (WebCore::FrameMac::setView): Move platform-independent parts of this
627 (WebCore::Frame::setView): Adding platform-independent parts of
629 (WebCore::Frame::detachChildren): New method to accomplish what
630 -[WebFrameBridge _detachChildren] currently does.
631 (WebCore::Frame::clear): Call detachChildren
632 * page/Frame.h: Add declaration for detachChildren
634 2006-10-04 Alice Liu <alice.liu@apple.com>
638 Fixed <rdar://problem/4758577> REGRESSION: Business and People widgets fails to complete search query
640 * xml/xmlhttprequest.cpp:
641 (WebCore::XMLHttpRequest::setRequestHeader):
642 removed exception set when the request is not open yet
644 2006-10-04 Anders Carlsson <acarlsson@apple.com>
646 Reviewed by John Sullivan.
648 <rdar://problem/4654328>
649 Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
651 * loader/PluginDocument.cpp:
652 (WebCore::PluginTokenizer::writeRawData):
653 Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
655 2006-10-03 Alexey Proskuryakov <ap@nypop.com>
659 http://bugs.webkit.org/show_bug.cgi?id=11130
660 Convert "undefined" to AE missing value
662 * bridge/mac/WebCoreFrameBridge.mm:
663 (aeDescFromJSValue): return missing value for UndefinedType.
665 2006-10-03 Dave Hyatt <hyatt@apple.com>
667 Scrolling work. Eliminate convertTo/FromContainingWindow as cross-platform functions. Add back in
668 the windowToContents/contentsToWindow functions.
672 * bridge/mac/FrameMac.mm:
673 (WebCore::FrameMac::eventMayStartDrag):
674 (WebCore::FrameMac::dragHysteresisExceeded):
675 (WebCore::FrameMac::mouseDown):
676 (WebCore::FrameMac::shouldDragAutoNode):
677 (WebCore::FrameMac::sendContextMenuEvent):
678 * bridge/mac/FrameViewMac.mm:
679 (WebCore::FrameView::passMousePressEventToScrollbar):
680 * bridge/mac/WebCoreFrameBridge.mm:
681 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
682 * dom/EventTargetNode.cpp:
683 (WebCore::EventTargetNode::dispatchMouseEvent):
684 (WebCore::EventTargetNode::dispatchWheelEvent):
686 (WebCore::Frame::selectClosestWordFromMouseEvent):
687 (WebCore::Frame::handleMousePressEventTripleClick):
688 (WebCore::Frame::handleMousePressEventSingleClick):
689 (WebCore::Frame::handleMouseMoveEvent):
690 (WebCore::Frame::handleMouseReleaseEvent):
691 * page/FrameView.cpp:
692 (WebCore::FrameView::handleMousePressEvent):
693 (WebCore::FrameView::handleMouseDoubleClickEvent):
694 (WebCore::selectCursor):
695 (WebCore::FrameView::handleMouseMoveEvent):
696 (WebCore::FrameView::handleMouseReleaseEvent):
697 (WebCore::FrameView::dispatchDragEvent):
698 (WebCore::FrameView::prepareMouseEvent):
699 (WebCore::FrameView::handleWheelEvent):
701 * platform/ScrollBar.cpp:
702 (WebCore::ScrollBar::setValue):
703 * platform/ScrollView.h:
705 (WebCore::Widget::scrolled):
706 * platform/mac/ScrollViewMac.mm:
707 (WebCore::ScrollView::contentsToWindow):
708 (WebCore::ScrollView::windowToContents):
709 (WebCore::ScrollView::scrollbarUnderMouse):
710 * platform/mac/WidgetMac.mm:
711 * rendering/RenderLayer.cpp:
712 (WebCore::RenderLayer::resize):
713 (WebCore::RenderLayer::positionScrollbars):
714 * rendering/RenderReplaced.cpp:
715 (WebCore::RenderReplaced::shouldPaint):
716 * rendering/RenderView.cpp:
717 * rendering/RenderView.h:
718 * rendering/RenderWidget.cpp:
719 (WebCore::RenderWidget::setWidget):
721 2006-09-26 David Smith <catfish.man@gmail.com>
725 http://bugs.webkit.org/show_bug.cgi?id=3723
726 Add -scrollDOMRangeToVisible:
728 No automated tests are possible as this code path isn't reachable from JavaScript.
730 * bridge/mac/WebCoreFrameBridge.h:
731 * bridge/mac/WebCoreFrameBridge.mm:
732 (-[WebCoreFrameBridge scrollDOMRangeToVisible:]):
734 2006-10-03 Graham Dennis <graham.dennis@gmail.com>
738 <http://bugs.webkit.org/show_bug.cgi?id=10338>
739 When contentEditable, cursor doesn't change to hand
741 Allow the behaviour of editable links to be specified by a WebPreference
742 The preference WebKitEditableLinkBehavior has four options:
743 - AlwaysLive: Safari 2.0 behaviour
744 - OnlyLiveWithShiftKey: Firefox/WinIE behaviour (and prior WebKit-ToT behaviour)
745 - LiveWhenNotFocused: Editable links are live only when their editable block is not
746 focused, or when the shift key is pressed
747 - DefaultBehavior: This is the same as OnlyLiveWithShiftKey.
749 No layout tests, just a modification of a manual-test as it isn't possible to test
752 * bridge/mac/WebCoreSettings.h:
753 * bridge/mac/WebCoreSettings.mm:
754 (-[WebCoreSettings setEditableLinkBehavior:]):
755 (-[WebCoreSettings editableLinkBehavior]):
756 * html/HTMLAnchorElement.cpp:
757 (WebCore::HTMLAnchorElement::HTMLAnchorElement):
758 (WebCore::HTMLAnchorElement::defaultEventHandler):
759 (WebCore::HTMLAnchorElement::setActive):
760 * html/HTMLAnchorElement.h:
761 * manual-tests/contenteditable-link.html:
762 * page/FrameView.cpp:
763 (WebCore::nodeIsNotBeingEdited):
764 (WebCore::selectCursor):
766 (WebCore::Settings::):
767 (WebCore::Settings::Settings):
768 (WebCore::Settings::editableLinkBehavior):
769 (WebCore::Settings::setEditableLinkBehavior):
771 2006-10-03 Beth Dakin <bdakin@apple.com>
775 No test cases needed.
777 Implemented a version of StringImpl::append that takes a UChar* and
780 * platform/StringImpl.cpp:
781 (WebCore::StringImpl::append):
782 (WebCore::StringImpl::insert): Call new append instead of making a
784 * platform/StringImpl.h:
786 2006-10-03 MorganL <morganl.webkit@yahoo.com>
790 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11099
791 HttpSendRequestEx results in ERROR_HTTP_HEADER_NOT_FOUND
793 * platform/win/ResourceLoaderWin.cpp:
794 (WebCore::ResourceLoader::onHandleCreated):
796 2006-10-02 Geoffrey Garen <ggaren@apple.com>
798 Feared, loathed, reviewed by Darin.
800 More frame/iframe merging. Merged IFRAME::willRemove and IFRAME::detach
801 into FRAME, plus other cleanup.
803 No new behavior, so no new test. Layout tests pass. Basic browsing and
804 Mail editing seem to work.
807 (WebCore::Node::detach): Removed random commented-out code.
808 * html/HTMLFrameElement.cpp:
809 (WebCore::HTMLFrameElement::isURLAllowed):
810 (1) Removed reference to FrameView, to dissociate frame loading from rendering.
811 (2) Renamed newURL to completeURL because the difference between newURL
812 and URLString is that newURL is a KURL that is the complete version of URLString,
814 (WebCore::HTMLFrameElement::willRemove):
815 (1) Removed close() call and moved close() code into willRemove(), also removing
816 close() call from detach(), since willRemove is the well-defined place
817 from DOM tear-down, not detach().
818 (2) Removed manual renderer detach code because the DOM is not responsible
819 for managing the render tree. I confirmed that this change not
820 regress <rdar://problem/4132581>.
821 (3) Removed questionable ASSERT. The ASSERT assumed that iframe elements
822 lost their content frames after being removed from the DOM. That's our
823 current behavior, but it's going to change in future rounds of refactoring.
824 This also fixes <rdar://problem/4750835>.
825 (WebCore::HTMLFrameElement::setLocation): Removed wacky manual calls to
826 attach/detach, because the render tree should not be in charge of deciding
828 * html/HTMLFrameElement.h:
829 * html/HTMLIFrameElement.cpp:
830 (WebCore::HTMLIFrameElement::attach): Renamed renderPart to renderPartObject,
831 because the renderer is a renderPartObject, not a renderPart.
832 * html/HTMLIFrameElement.h:
834 2006-10-03 Mark Rowe <bdash@webkit.org>
838 http://bugs.webkit.org/show_bug.cgi?id=11137
839 Bug 11137: GdkLauncher dies with "pure virtual method called" if
840 window is closed while page still loading
842 * platform/gdk/FrameGdk.cpp:
843 (WebCore::FrameGdk::~FrameGdk): Call cancelAndClear to allow virtual
844 methods to be called before the FrameGdk portion of "this" is torn down.
846 2006-10-03 Adam Roben <aroben@apple.com>
850 Handle tab key presses in the DOM.
852 * dom/EventTargetNode.cpp:
853 (WebCore::EventTargetNode::defaultEventHandler): Add tab key handling.
854 * page/FrameView.cpp:
855 (WebCore::FrameView::advanceFocus): Rename and reimplement
856 focusNextPrevNode. Now we just call Element::focus().
857 * page/FrameView.h: Rename focusNextPrevNode to advanceFocus and make
860 2006-10-03 Justin Garcia <justin.garcia@apple.com>
864 <rdar://problem/4760612>
865 TOT REGRESSION: Repro assertion failure when forwarding draft in Range::compareBoundaryPoints
867 No layout test possible, attributedStringFrom:(DOMNode*)...etc isn't available to DRT.
870 (WebCore::Range::boundaryPointsValid): compareBoundaryPoints asserts that the incoming
871 positions are non-null since most of it's callers would be in a bad state if the positions
872 were null. boundaryPointsValid, which calls compareBoundaryPoints, is an exception.
873 Instead of removing the assert I've added nil checks in boundaryPointsValid, to keep it
874 from entering compareBoundaryPoints and hitting the assert.
876 2006-10-03 Adele Peterson <adele@apple.com>
880 Make code for turning off new listbox implementation mac-only, since there's no implementation on other platforms.
882 * html/HTMLSelectElement.cpp:
883 (WebCore::HTMLSelectElement::recalcStyle):
884 (WebCore::HTMLSelectElement::isKeyboardFocusable):
885 (WebCore::HTMLSelectElement::isMouseFocusable):
886 (WebCore::HTMLSelectElement::createRenderer):
887 (WebCore::HTMLSelectElement::setRecalcListItems):
888 (WebCore::HTMLSelectElement::notifyOptionSelected):
889 (WebCore::HTMLSelectElement::defaultEventHandler):
891 2006-10-04 Darin Adler <darin@apple.com>
895 - fix http://bugs.webkit.org/show_bug.cgi?id=11132
896 Caret disappears when you're typing
898 * editing/SelectionController.cpp:
899 (WebCore::SelectionController::setSelection): Remove unnecessary call to
900 clearCaretRectIfNeeded. The recomputeCaretRect now takes care of this.
901 (WebCore::SelectionController::recomputeCaretRect): Explicitly set m_needsLayout
902 to false so we can get the old caret repaint rect. Later we need to change the
903 design so getting the rect doesn't have a side effect of causing a layout without
906 2006-10-03 David Harrison <harrison@apple.com>
910 <rdar://problem/4671286> Candidate Window isn't displayed and only first candidate is displayed at typing location.
913 * fast/text/justified-text-rect.html
915 * bridge/mac/WebCoreFrameBridge.mm:
916 (-[WebCoreFrameBridge convertToNSRange:]):
917 (-[WebCoreFrameBridge convertToDOMRange:]):
918 Make the selection's root editable element (or the document itself) be
919 the basis for NSRange conversions. This supports "shadow DOM" like
920 that for text fields and text areas.
922 * editing/CompositeEditCommand.cpp:
923 (WebCore::CompositeEditCommand::moveParagraphs):
924 Pass the document element as the scope.
926 * editing/TextIterator.cpp:
927 (WebCore::TextIterator::rangeFromLocationAndLength):
928 Make the first parameter the scope.
930 * editing/TextIterator.h:
931 Make the first parameter of rangeFromLocationAndLength() the scope.
933 2006-10-03 Nikolas Zimmermann <zimmermann@kde.org>
939 * CMakeLists.txt: Add counter related files.
941 2006-10-03 Mark Rowe <bdash@webkit.org>
945 http://bugs.webkit.org/show_bug.cgi?id=10981
946 Linux/GDK build fixes
948 Based on a patch by Krzysztof Kowalczyk.
950 * WebCoreSources.bkl:
951 * platform/gdk/FrameGdk.cpp:
953 (WebCore::FrameGdk::handleGdkEvent):
954 * platform/gdk/PlatformScrollBar.h: Added.
955 (WebCore::PlatformScrollBar::isWidget):
956 * platform/gdk/ScrollViewGdk.cpp:
957 * platform/gdk/TemporaryLinkStubs.cpp:
958 (FrameView::passMousePressEventToScrollbar):
959 (FrameView::passMousePressEventToSubframe):
960 (FrameView::passMouseReleaseEventToSubframe):
961 (FrameView::passMouseMoveEventToSubframe):
962 (FrameView::passWheelEventToSubframe):
964 (Widget::invalidate):
965 (Widget::invalidateRect):
966 (ScrollView::wheelEvent):
967 (ScrollView::convertToContainingWindow):
968 (ScrollView::convertFromContainingWindow):
969 (GraphicsContext::clip):
970 (PlatformScrollBar::PlatformScrollBar):
971 (PlatformScrollBar::updateThumbPosition):
972 (PlatformScrollBar::updateThumbProportion):
973 (ScrollBar::ScrollBar):
974 (ScrollBar::setProportion):
975 (WebCore::supportedKeySizes):
976 (WebCore::signedPublicKeyAndChallengeString):
977 * platform/gdk/WheelEventGdk.cpp:
978 (WebCore::PlatformWheelEvent::PlatformWheelEvent):
979 * platform/gdk/WidgetGdk.cpp:
980 (WebCore::Widget::convertToContainingWindow):
981 (WebCore::Widget::convertFromContainingWindow):
983 2006-10-02 Adam Roben <aroben@apple.com>
987 Let Windows determine which mouse button is pressed.
989 * platform/PlatformMouseEvent.h: Add message parameter to constructor.
990 * platform/win/MouseEventWin.cpp:
991 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Use message
992 parameter to determine which mouse button is pressed.
994 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1000 * editing/SelectionController.cpp:
1001 (WebCore::SelectionController::empty):
1002 * editing/SelectionController.h:
1004 2006-10-02 Justin Garcia <justin.garcia@apple.com>
1008 <rdar://problem/4755287>
1009 Writely Editor: Crash occurs at WebCore::maxDeepOffset(WebCore::Node const*) when attempting to create a OL/UL following a HR element
1011 * editing/markup.cpp:
1012 (WebCore::createMarkup): Migrate to isBlock (isBlockFlow is true for inline replaced
1013 elements). Don't skip blocks that aren't containers (like horizontal rules).
1015 2006-10-03 Darin Adler <darin@apple.com>
1017 Reviewed by Justin Garcia.
1019 - correct mistaken code that would restart blinking every
1020 time "invalidateSelection" is called even if the caret
1023 * editing/SelectionController.h:
1024 * editing/SelectionController.cpp:
1025 (WebCore::SelectionController::setSelection): Update for name change.
1026 (WebCore::SelectionController::recomputeCaretRect): New function.
1027 Computes caret rect and does any necessary invalidation if the rect
1029 (WebCore::SelectionController::invalidateCaretRect): Renamed from
1030 needsCaretRepaint. Invalidates the caret rect unconditionally. Also
1031 calls recomputeCaretRect as a side effect.
1034 (WebCore::Frame::invalidateSelection): Remove unneeded call to
1035 clearCaretRectIfNeeded.
1036 (WebCore::Frame::clearCaretRectIfNeeded): Updated for name change.
1037 (WebCore::Frame::selectionLayoutChanged): Restructured to use the new
1038 recomputeCaretRect function and not restart blinking if caret has
1039 not changed position.
1040 (WebCore::Frame::caretBlinkTimerFired): Removed some checks that
1041 are not needed since selectionLayoutChanged already checks these.
1043 * page/FramePrivate.h: Removed unused m_blinkCaret.
1045 2006-10-02 Beth Dakin <bdakin@apple.com>
1049 Build fix. Add counters to vcproj.
1051 * WebCore.vcproj/WebCore/WebCore.vcproj:
1053 2006-10-02 Brady Eidson <beidson@apple.com>
1057 If the Icon DB schema changes underneath you, the latest ToT can crash and burn when writing
1058 icon data out because we don't correctly check SQL error conditions.
1060 * loader/icon/IconDataCache.cpp:
1061 (WebCore::IconDataCache::writeToDatabase):
1063 2006-10-02 Steve Falkenburg <sfalken@apple.com>
1067 Added method to find out whether a layout has occurred.
1069 * page/FrameView.cpp:
1070 (WebCore::FrameView::didFirstLayout):
1073 2006-10-02 Beth Dakin <bdakin@apple.com>
1077 Initial implementation of CSS2 counters. See http://
1078 bugs.webkit.org/show_bug.cgi?id=4980 for more details.
1080 * WebCore.xcodeproj/project.pbxproj:
1081 * css/CSSComputedStyleDeclaration.cpp:
1082 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): Return
1083 the increment/reset list now that this is implemented.
1084 * css/CSSPrimitiveValue.cpp:
1085 (WebCore::CSSPrimitiveValue::cssText):
1087 (WebCore::Counter::Counter):
1088 (WebCore::Counter::~Counter):
1089 (WebCore::Counter::identifier):
1090 (WebCore::Counter::listStyle):
1091 (WebCore::Counter::separator):
1092 (WebCore::Counter::listStyleNumber):
1093 (WebCore::Counter::setIdentifier):
1094 (WebCore::Counter::setListStyle):
1095 (WebCore::Counter::setSeparator):
1096 * css/cssparser.cpp:
1097 (WebCore::CSSParser::addProperty): Take care of reset/increment
1098 (WebCore::CSSParser::parseValue):
1099 (WebCore::CSSParser::parseContent): content can now take counters
1100 (WebCore::CSSParser::parseCounterContent): Parse counter() and
1102 (WebCore::CSSParser::parseCounter): Parse counter-reset and
1105 * css/cssstyleselector.cpp:
1106 (WebCore::CSSStyleSelector::matchUARules):
1107 (WebCore::CSSStyleSelector::applyProperty):
1108 * platform/PlatformString.h:
1109 * platform/String.cpp:
1110 (WebCore::String::insert): Implemented a version of insert that
1111 accepts a UChar* and a length.
1112 * platform/StringImpl.cpp:
1113 (WebCore::StringImpl::insert): Same as above.
1114 * platform/StringImpl.h:
1115 * rendering/CounterListItem.h: Added.
1116 * rendering/CounterNode.cpp: Added.
1117 (WebCore::CounterNode::CounterNode):
1118 (WebCore::CounterNode::insertAfter):
1119 (WebCore::CounterNode::removeChild):
1120 (WebCore::CounterNode::remove):
1121 (WebCore::CounterNode::setUsesSeparator):
1122 (WebCore::CounterNode::recountAndGetNext):
1123 (WebCore::CounterNode::recountTree):
1124 (WebCore::CounterNode::setSelfDirty):
1125 (WebCore::CounterNode::setParentDirty):
1126 * rendering/CounterNode.h: Added.
1127 (WebCore::CounterNode::~CounterNode):
1128 (WebCore::CounterNode::parent):
1129 (WebCore::CounterNode::previousSibling):
1130 (WebCore::CounterNode::nextSibling):
1131 (WebCore::CounterNode::firstChild):
1132 (WebCore::CounterNode::lastChild):
1133 (WebCore::CounterNode::value):
1134 (WebCore::CounterNode::setValue):
1135 (WebCore::CounterNode::count):
1136 (WebCore::CounterNode::setCount):
1137 (WebCore::CounterNode::setHasSeparator):
1138 (WebCore::CounterNode::isReset):
1139 (WebCore::CounterNode::hasSeparator):
1140 (WebCore::CounterNode::willNeedLayout):
1141 (WebCore::CounterNode::setWillNeedLayout):
1142 (WebCore::CounterNode::isRoot):
1143 (WebCore::CounterNode::setRenderer):
1144 (WebCore::CounterNode::renderer):
1145 * rendering/CounterResetNode.cpp: Added.
1146 (WebCore::CounterResetNode::CounterResetNode):
1147 (WebCore::CounterResetNode::insertAfter):
1148 (WebCore::CounterResetNode::removeChild):
1149 (WebCore::CounterResetNode::recountAndGetNext):
1150 (WebCore::CounterResetNode::setParentDirty):
1151 (WebCore::CounterResetNode::updateTotal):
1152 * rendering/CounterResetNode.h: Added.
1153 (WebCore::CounterResetNode::firstChild):
1154 (WebCore::CounterResetNode::lastChild):
1155 (WebCore::CounterResetNode::isReset):
1156 (WebCore::CounterResetNode::total):
1157 * rendering/RenderContainer.cpp:
1158 (WebCore::RenderContainer::updatePseudoChildForObject): Account for
1160 * rendering/RenderCounter.cpp: Added.
1161 (WebCore::RenderCounter::RenderCounter):
1162 (WebCore::RenderCounter::layout):
1164 (WebCore::toLetterString):
1165 (WebCore::toHebrew):
1166 (WebCore::RenderCounter::convertValueToType):
1167 (WebCore::RenderCounter::calcMinMaxWidth):
1168 * rendering/RenderCounter.h: Added.
1169 (WebCore::RenderCounter::renderName):
1170 (WebCore::RenderCounter::isCounter):
1171 * rendering/RenderObject.cpp:
1172 (WebCore::getRenderObjectsToCounterNodeMaps): Maps RenderObjects to
1173 maps of CounterNodes
1174 (WebCore::RenderObject::RenderObject):
1175 (WebCore::RenderObject::destroy): Destroy the maps.
1176 (WebCore::RenderObject::findCounter): Finds/creates counters.
1177 * rendering/RenderObject.h:
1178 (WebCore::RenderObject::isCounter):
1179 * rendering/RenderStyle.cpp:
1180 (WebCore::StyleVisualData::StyleVisualData):
1181 (WebCore::RenderStyle::arenaDelete):
1182 (WebCore::RenderStyle::RenderStyle):
1183 (WebCore::RenderStyle::diff):
1184 (WebCore::RenderStyle::setContent):
1185 (WebCore::ContentData::clearContent):
1186 (WebCore::RenderStyle::counterDataEquivalent):
1187 (WebCore::hasCounter):
1188 (WebCore::RenderStyle::hasCounterReset):
1189 (WebCore::RenderStyle::hasCounterIncrement):
1190 (WebCore::readCounter):
1191 (WebCore::RenderStyle::counterReset):
1192 (WebCore::RenderStyle::counterIncrement):
1193 * rendering/RenderStyle.h:
1194 (WebCore::StyleVisualData::operator==):
1195 (WebCore::CounterData::CounterData):
1196 (WebCore::CounterData::identifier):
1197 (WebCore::CounterData::listStyle):
1198 (WebCore::CounterData::separator):
1199 (WebCore::ContentData::contentCounter):
1200 (WebCore::ContentData::):
1201 (WebCore::RenderStyle::counterIncrement):
1202 (WebCore::RenderStyle::counterReset):
1203 (WebCore::RenderStyle::setCounterIncrement):
1204 (WebCore::RenderStyle::setCounterReset):
1205 (WebCore::RenderStyle::setCounterResetList):
1206 (WebCore::RenderStyle::setCounterIncrementList):
1207 (WebCore::RenderStyle::counterResetValueList):
1208 (WebCore::RenderStyle::counterIncrementValueList):
1210 2006-10-02 Adele Peterson <adele@apple.com>
1214 - Fix for <rdar://problem/4463841> Switch to use new list box implementation for <select multiple>
1216 There are a few outstanding issues, so I've left the old code in for now. So you can use the old-style listboxes
1217 by using "-webkit-appearance:none".
1221 2006-10-02 David Harrison <harrison@apple.com>
1223 Reverted the code part of r16696, my patch for <rdar://problem/4641262>, because the problem was
1224 addressed at a deeper level by r16696, the patch for <http://bugs.webkit.org/show_bug.cgi?id=10842>.
1225 Left the layout test.
1227 * rendering/bidi.cpp:
1228 (WebCore::checkMidpoints):
1230 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1232 Reviewed by eseidel. Landed by eseidel.
1236 * platform/qt/TemporaryLinkStubs.cpp: s/DeprecatedStringList/Vector<String>/
1237 (WebCore::supportedKeySizes):
1239 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
1241 Reviewed by eseidel & mjs. Landed by eseidel.
1243 Fix Qt/Linux build with older gcc 3.3.4.
1244 http://bugs.webkit.org/show_bug.cgi?id=11116
1246 As discussed with Maciej, the GCC_ROOT_NS_HACK
1247 can be completely removed, as well as the friendship
1248 between cacheGlobalObject & the JS* objects.
1250 * bindings/scripts/CodeGeneratorJS.pm: Remove friendship.
1251 * platform/image-decoders/png/pnggccrd.c: Fix comments for gcc3.
1252 (png_read_filter_row_mmx_avg):
1253 * platform/image-decoders/png/pngvcrd.c: Ditto.
1255 (png_read_filter_row_mmx_avg):
1257 2006-10-01 Maciej Stachowiak <mjs@apple.com>
1259 Rubber stamped by Alexey.
1261 - reverted fix for http://bugs.webkit.org/show_bug.cgi?id=10893 since it led to layout test crashes
1265 2006-10-01 Eric Seidel <eric@webkit.org>
1269 Eliminate a few more hotspots in SVG drawing code.
1271 No test cases were harmed in the making of this patch. (And SVG has no perf tests.)
1273 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
1274 (WebCore::KRenderingPaintServerSolidQuartz::setup): use a single shared colorspace, avoid a few mallocs
1275 * platform/mac/ColorMac.mm:
1276 (+[WebCoreControlTintObserver WebCore]): store a single shared colorspace instance
1278 2006-10-01 Geoffrey Garen <ggaren@apple.com>
1282 More frame/iframe merging.
1284 - Removed needWidgetUpdate and related code. needWidgetUpdate is always
1285 false, so this was dead code.
1286 - Removed FIXME about setInViewSourceMode inside openURL(). openURL(), rather
1287 than attach(), is the correct place for setInViewSourceMode, because
1288 openURL() is the function that creates our frame.
1289 - Moved IFRAME insertedIntoDocument() code into FRAME, and removed FRAME
1290 code that did the same thing in other places.
1291 - Made FRAME's attach() method suffuciently generic so that IFRAME could
1292 call up to it, rather than skipping its superclass and calling up directly
1294 - Changed a few IFRAME up-calls to ELEMENT into up-calls to FRAME.
1295 - Replaced ad hoc frame loading code in FRAME::attach() with call to
1296 openURL(), the designated frame loading function.
1298 Layout tests pass. I added a layout test for viewsource mode, since I
1299 broke it in the course of writing this patch.
1301 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1306 (WebCore::Document::recalcStyleSelector):
1308 Get rid of availableStyleSheets() and remove DeprecatedStringList.h include.
1311 Remove DeprecatedStringList class forward declaration.
1313 * editing/markup.cpp:
1314 Include DeprecatedStringList.h here since it's not included by Document.h anymore.
1316 * kcanvas/KCanvasTreeDebug.cpp:
1317 * kcanvas/KCanvasTreeDebug.h:
1318 Remove unused functions.
1320 * loader/loader.cpp:
1324 Fixup DeprecatedStringList.h includes.
1326 2006-09-30 David Harrison <harrison@apple.com>
1328 Reviewed by John Sullivan.
1330 <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point
1332 Problem was that the decision to trim was based only on whether the character
1333 is a soft hyphen, which caused pretty much any Japanese character to go.
1334 Changed to decide based on whether the character is ignorable whitespace.
1337 * fast/text/international/wrap-CJK-001.html
1339 * rendering/bidi.cpp:
1340 (WebCore::isTrimmableChar):
1341 New. Checks whether character is whitespace that can be ignored
1342 according to the text node's style.
1343 trimmed from the end of wrapped line.
1344 (WebCore::checkMidpoints):
1345 Call isTrimmable() rather than checking for char != SOFT_HYPHEN.
1347 2006-10-01 Anders Carlsson <acarlsson@apple.com>
1349 Reviewed by Mitz Pettel.
1351 Convert the SVG code to use Vector<String> instead of DeprecatedStringList.
1353 * ksvg2/svg/SVGColor.cpp:
1354 (WebCore::SVGColor::setRGBColor):
1355 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
1356 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
1357 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
1358 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
1359 (WebCore::SVGFEGaussianBlurElement::parseMappedAttribute):
1360 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
1361 (SVGFESpecularLightingElement::parseMappedAttribute):
1362 * ksvg2/svg/SVGFETurbulenceElement.cpp:
1363 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
1364 * ksvg2/svg/SVGLengthList.cpp:
1365 * ksvg2/svg/SVGNumberList.cpp:
1366 (SVGNumberList::parse):
1367 * ksvg2/svg/SVGNumberList.h:
1368 * ksvg2/svg/SVGPreserveAspectRatio.cpp:
1369 (WebCore::SVGPreserveAspectRatio::parsePreserveAspectRatio):
1370 * ksvg2/svg/SVGStringList.cpp:
1371 (WebCore::SVGStringList::reset):
1372 * ksvg2/svg/SVGStringList.h:
1373 * ksvg2/svg/SVGTransformable.cpp:
1374 (SVGTransformable::parseTransformAttribute):
1376 2006-10-01 Nikolas Zimmermann <zimmermann@kde.org>
1378 Reviewed by Eric, tweaked and landed by ap.
1383 * platform/qt/PlatformScrollBar.h:
1384 * platform/qt/TemporaryLinkStubs.cpp:
1385 (WebCore::ScrollBar::ScrollBar):
1386 (WebCore::PlatformScrollBar::PlatformScrollBar):
1387 (FrameView::passMousePressEventToSubframe):
1388 (FrameView::passMouseMoveEventToSubframe):
1389 (FrameView::passMouseReleaseEventToSubframe):
1390 (FrameView::passWheelEventToSubframe):
1391 (FrameView::passMousePressEventToScrollbar):
1392 * ksvg2/svg/SVGDocument.h:
1394 2006-10-01 Mitz Pettel <opendarwin.org@mitzpettel.com>
1398 Fix for http://bugs.webkit.org/show_bug.cgi?id=10190
1399 REGRESSION: Repro crash when navigating away from an image document that hasn't finished loading
1401 No test case added (probably requires new DumpRenderTree functionality)
1403 * rendering/RenderImage.cpp:
1404 (WebCore::RenderImage::imageChanged): Added early return if the document is
1407 2006-10-01 Graham Dennis <graham.dennis@gmail.com>
1411 Fix for http://bugs.webkit.org/show_bug.cgi?id=10842
1412 REGRESSION (r15418): contenteditable div truncates rightmost Japanese character
1414 Make sure we only break after a space (and not any other valid line-break) if
1415 the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
1416 I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
1417 twice in quick succession.
1419 * rendering/bidi.cpp:
1420 (WebCore::RenderBlock::findNextLineBreak):
1422 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1424 Reviewed by Maciej and Darin.
1426 http://bugs.webkit.org/show_bug.cgi?id=4372
1427 JavaScript document.write page form does not submit in Safari
1429 Test: fast/forms/document-write.html
1432 (WebCore::Frame::submitForm): Don't check for parsing().
1434 2006-10-01 Alexey Proskuryakov <ap@nypop.com>
1438 * bridge/mac/FrameViewMac.mm: Add missing #imports.
1440 2006-10-01 Dave Hyatt <hyatt@apple.com>
1442 Refactor the code that passes mouse presses to the Mac scrollbar and make it cross-platform.
1446 * bridge/mac/FrameMac.mm:
1447 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1448 * bridge/mac/FrameViewMac.mm:
1449 (WebCore::FrameView::passMousePressEventToScrollbar):
1450 * page/FrameView.cpp:
1451 (WebCore::FrameView::handleMousePressEvent):
1452 (WebCore::FrameView::setMousePressed):
1454 * platform/win/TemporaryLinkStubs.cpp:
1455 (FrameView::passMousePressEventToScrollbar):
1457 2006-09-30 Sam Weinig <sam.weinig@gmail.com>
1461 Patch for http://bugs.webkit.org/show_bug.cgi?id=11102
1462 Add more SVG Objective-C DOM bindings
1464 - Auto-generate Objective-C DOM bindings for DOMSVGAElement,
1465 DOMSVGAnimateColorElement, DOMSVGAnimateElement, DOMSVGAnimateTransformElement,
1466 DOMSVGAnimatedPathData, DOMSVGAnimatedPoints, DOMSVGAnimatedPreserveAspectRatio,
1467 DOMSVGAnimationElement, DOMSVGCircleElement, DOMSVGClipPathElement, DOMSVGColor,
1468 DOMSVGCursorElement, DOMSVGDefsElement, DOMSVGDescElement, DOMSVGDocument,
1469 DOMSVGEllipseElement, DOMSVGPreserveAspectRatio, and DOMSVGURIReference.
1471 * DerivedSources.make:
1472 * WebCore.xcodeproj/project.pbxproj:
1473 * bindings/objc/DOMInternal.h:
1474 * bindings/objc/DOMSVG.h:
1475 * bindings/scripts/CodeGeneratorObjC.pm:
1476 * ksvg2/svg/SVGAElement.idl:
1477 * ksvg2/svg/SVGAnimateColorElement.idl:
1478 * ksvg2/svg/SVGAnimateElement.idl:
1479 * ksvg2/svg/SVGAnimateTransformElement.idl:
1480 * ksvg2/svg/SVGAnimatedPathData.idl:
1481 * ksvg2/svg/SVGAnimatedPoints.idl:
1482 * ksvg2/svg/SVGAnimatedPreserveAspectRatio.idl:
1483 * ksvg2/svg/SVGAnimationElement.idl:
1484 * ksvg2/svg/SVGCircleElement.idl:
1485 * ksvg2/svg/SVGClipPathElement.idl:
1486 * ksvg2/svg/SVGColor.idl:
1487 * ksvg2/svg/SVGCursorElement.idl:
1488 * ksvg2/svg/SVGDefsElement.idl:
1489 * ksvg2/svg/SVGDescElement.idl:
1490 * ksvg2/svg/SVGDocument.idl:
1491 * ksvg2/svg/SVGEllipseElement.idl:
1492 * ksvg2/svg/SVGPointList.idl:
1493 * ksvg2/svg/SVGPreserveAspectRatio.idl:
1494 * ksvg2/svg/SVGRect.idl:
1495 * ksvg2/svg/SVGSVGElement.idl:
1497 2006-09-30 Maciej Stachowiak <mjs@apple.com>
1503 * platform/FloatRect.h:
1504 (WebCore::FloatRect::contains): Added; not exactly the same semantic as IntRect containment
1505 but more appropriate for path-type stuff.
1506 * platform/cg/PathCG.cpp:
1507 (WebCore::Path::contains): Don't use enclosingIntRect, just use FloatRect::contains.
1509 2006-09-30 Alexey Proskuryakov <ap@nypop.com>
1513 http://bugs.webkit.org/show_bug.cgi?id=11011
1514 External CSS is parsed as iso-8859-1 even though the main document is utf-8
1516 Test: fast/encoding/css-charset-default.xhtml
1518 * loader/CachedResourceClient.h:
1519 (WebCore::CachedResourceClient::setCSSStyleSheet):
1520 (WebCore::CachedResourceClient::setXSLStyleSheet):
1521 Divided setStyleSheet into setCSSStyleSheet and setXSLStyleSheet. The former
1522 takes an additional charset parameter, to be passed to CSSStyleSheet constructor.
1524 * css/CSSImportRule.cpp:
1525 (WebCore::CSSImportRule::setCSSStyleSheet):
1526 (WebCore::CSSImportRule::insertedIntoParent): Default to parent stylesheet's charset.
1527 * css/CSSImportRule.h:
1529 * css/CSSStyleSheet.cpp:
1530 (WebCore::CSSStyleSheet::CSSStyleSheet):
1531 * css/CSSStyleSheet.h:
1532 Added an m_charset member to be used when loading child stylesheets. Removed an unused m_implicit
1533 member. Changed some String parameters to const String&.
1535 * css/StyleSheet.cpp:
1536 (WebCore::StyleSheet::StyleSheet):
1538 Changed some String parameters to const String&. Removed an unused (even unimplemented) constructor.
1540 * css/StyleSheetList.cpp:
1541 (WebCore::StyleSheetList::length):
1542 (WebCore::StyleSheetList::item):
1543 * css/StyleSheetList.h:
1544 Special-casing implicit stylesheets seemed to be dead code, removed.
1547 (WebCore::Document::setCSSStyleSheet):
1548 (WebCore::Document::recalcStyleSelector):
1550 Renamed setStyleSheet() to setCSSStyleSheet().
1552 * dom/ProcessingInstruction.cpp:
1553 (WebCore::ProcessingInstruction::checkStyleSheet): Pass a correct charset to requestCSSStyleSheet().
1554 (WebCore::ProcessingInstruction::setCSSStyleSheet):
1555 (WebCore::ProcessingInstruction::setXSLStyleSheet):
1556 (WebCore::ProcessingInstruction::parseStyleSheet):
1557 * dom/ProcessingInstruction.h:
1559 * html/HTMLLinkElement.cpp:
1560 (WebCore::HTMLLinkElement::process): Default to document encoding if a charset attribute
1562 (WebCore::HTMLLinkElement::setCSSStyleSheet):
1563 * html/HTMLLinkElement.h:
1565 * html/HTMLStyleElement.cpp:
1566 (WebCore::HTMLStyleElement::childrenChanged):
1567 * ksvg2/svg/SVGStyleElement.cpp:
1568 (WebCore::SVGStyleElement::childrenChanged):
1569 Inherit URL and charset from the document.
1572 (WebCore::Cache::requestCSSStyleSheet):
1574 Adjust for setStyleSheet() renaming.
1576 * loader/CachedCSSStyleSheet.h: Removed an unused constructor.
1577 * loader/CachedCSSStyleSheet.cpp:
1578 (WebCore::CachedCSSStyleSheet::ref):
1579 (WebCore::CachedCSSStyleSheet::deref):
1580 (WebCore::CachedCSSStyleSheet::checkNotify):
1581 Pass the encoding to setCSSStyleSheet().
1583 * loader/CachedXSLStyleSheet.cpp:
1584 (WebCore::CachedXSLStyleSheet::ref):
1585 (WebCore::CachedXSLStyleSheet::checkNotify):
1586 * loader/DocLoader.cpp:
1587 (WebCore::DocLoader::requestCSSStyleSheet):
1588 * loader/DocLoader.h:
1590 (WebCore::UserStyleSheetLoader::UserStyleSheetLoader):
1591 (WebCore::UserStyleSheetLoader::setCSSStyleSheet):
1592 * xml/XSLImportRule.cpp:
1593 (WebCore::XSLImportRule::setXSLStyleSheet):
1594 (WebCore::XSLImportRule::loadSheet):
1595 * xml/XSLImportRule.h:
1596 Adjust for setStyleSheet() renaming.
1598 2006-09-30 Rob Buis <buis@kde.org>
1600 Reviewed by eseidel.
1602 http://bugs.webkit.org/show_bug.cgi?id=11096
1603 Hit testing for polylines fails
1605 Fix Path::contains so it handles filled, non-closed paths too.
1607 * platform/cg/PathCG.cpp:
1608 (WebCore::Path::contains):
1610 2006-09-30 Dave Hyatt <hyatt@apple.com>
1612 Refactor subframe event handling to hide more of the Mac-specific logic from the cross-platform code.
1613 Stub out a capturing API that mimics the way Web browsers capture events and route them to specific
1614 subframes while the mouse is down.
1616 Reviewed by mitzpettel
1618 * bridge/mac/FrameMac.h:
1619 * bridge/mac/FrameMac.mm:
1620 (WebCore::FrameMac::passWidgetMouseDownEventToWidget):
1621 (WebCore::FrameMac::passWheelEventToWidget):
1622 * bridge/mac/FrameViewMac.mm:
1623 (WebCore::FrameView::passMousePressEventToSubframe):
1624 (WebCore::FrameView::passMouseMoveEventToSubframe):
1625 (WebCore::FrameView::passMouseReleaseEventToSubframe):
1626 (WebCore::FrameView::passWheelEventToSubframe):
1629 * page/FrameView.cpp:
1630 (WebCore::subframeForTargetNode):
1631 (WebCore::FrameView::handleMousePressEvent):
1632 (WebCore::FrameView::handleMouseDoubleClickEvent):
1633 (WebCore::FrameView::handleMouseMoveEvent):
1634 (WebCore::FrameView::handleMouseReleaseEvent):
1635 (WebCore::FrameView::handleWheelEvent):
1637 * platform/ScrollBar.h:
1638 (WebCore::ScrollBar::handleMouseMoveEvent):
1639 (WebCore::ScrollBar::handleMouseOutEvent):
1640 * platform/Widget.h:
1641 (WebCore::Widget::handleMouseMoveEvent):
1642 (WebCore::Widget::handleMouseReleaseEvent):
1643 * platform/win/TemporaryLinkStubs.cpp:
1644 (FrameView::passMousePressEventToSubframe):
1645 (FrameView::passMouseMoveEventToSubframe):
1646 (FrameView::passMouseReleaseEventToSubframe):
1647 (FrameView::passWheelEventToSubframe):
1648 (Widget::capturingMouse):
1649 (Widget::setCapturingMouse):
1650 (Widget::capturingTarget):
1651 (Widget::capturingChild):
1652 (Widget::setCapturingChild):
1653 * rendering/RenderView.cpp:
1654 (WebCore::RenderView::paintBoxDecorations):
1656 2006-09-29 MorganL <morganl.webkit@yahoo.com>
1660 Fixes windows bustage:
1661 http://bugs.webkit.org/show_bug.cgi?id=11093
1663 * platform/win/PlatformScrollBar.h:
1664 * platform/win/TemporaryLinkStubs.cpp:
1665 (PlatformScrollBar::PlatformScrollBar):
1666 (ScrollBar::ScrollBar):
1668 2006-09-29 David Hyatt <hyatt@apple.com>
1670 Eliminate RenderLayer::gScrollBar in favor of caching the scrollbar hit
1671 in RenderObject::NodeInfo (and then propagating that Widget to
1672 MouseEventWithHitTestResults).
1674 This allows RenderListBox and RenderBlock to do the same thing when the
1675 mouse is over the scrollbar.
1677 Also land fix to support font-size: 0.
1679 Reviewed by mjs (scrollbar), eric (font-size)
1682 (WebCore::Document::prepareMouseEvent):
1684 (WebCore::Frame::passWidgetMouseDownEventToWidget):
1685 * page/FrameView.cpp:
1686 (WebCore::selectCursor):
1687 (WebCore::FrameView::handleMouseMoveEvent):
1688 (WebCore::FrameView::dispatchMouseEvent):
1689 * page/MouseEventWithHitTestResults.cpp:
1690 (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
1691 * page/MouseEventWithHitTestResults.h:
1692 (WebCore::MouseEventWithHitTestResults::scrollbar):
1693 * rendering/RenderBlock.cpp:
1694 (WebCore::RenderBlock::isPointInScrollbar):
1695 (WebCore::RenderBlock::nodeAtPoint):
1696 * rendering/RenderBlock.h:
1697 * rendering/RenderLayer.cpp:
1698 (WebCore::RenderLayer::hitTest):
1699 * rendering/RenderLayer.h:
1700 (WebCore::RenderLayer::getHiddenBehavior):
1701 * rendering/RenderListBox.cpp:
1702 (WebCore::RenderListBox::RenderListBox):
1703 (WebCore::RenderListBox::~RenderListBox):
1704 (WebCore::RenderListBox::isPointInScrollbar):
1705 * rendering/RenderListBox.h:
1706 * rendering/RenderObject.h:
1707 (WebCore::RenderObject::NodeInfo::NodeInfo):
1708 (WebCore::RenderObject::NodeInfo::scrollbar):
1709 (WebCore::RenderObject::NodeInfo::setScrollbar):
1711 2006-09-29 MorganL <morganl.webkit@yahoo.com>
1715 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11092
1717 * platform/win/ScrollViewWin.cpp:
1718 (WebCore::ScrollView::convertToContainingWindow):
1719 (WebCore::ScrollView::convertFromContainingWindow):
1720 * platform/win/WidgetWin.cpp:
1721 (WebCore::Widget::convertToContainingWindow):
1722 (WebCore::Widget::convertFromContainingWindow):
1724 2006-09-29 Adele Peterson <adele@apple.com>
1726 Updated with new argument for PlatformScrollBar.
1728 * platform/win/TemporaryLinkStubs.cpp:
1729 (PlatformScrollBar::PlatformScrollBar):
1731 2006-09-29 Adele Peterson <adele@apple.com>
1735 Fixing build bustage with cast to int.
1737 * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::lastSelectedListIndex):
1739 2006-09-29 Adele Peterson <adele@apple.com>
1741 Fixing accidental include.
1743 * rendering/RenderListBox.cpp:
1745 2006-09-29 Adele Peterson <adele@apple.com>
1747 Adding RenderListBox files.
1749 * WebCore.vcproj/WebCore/WebCore.vcproj:
1751 2006-09-29 Adele Peterson <adele@apple.com>
1755 Initial implementation of engine-based list box control.
1757 * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
1759 * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
1760 * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
1761 (WebCore::FrameMac::FrameMac):
1762 (WebCore::FrameMac::handleMousePressEvent):
1763 (WebCore::FrameMac::handleMouseMoveEvent):
1764 (WebCore::FrameMac::mouseDown):
1767 (WebCore::Frame::handleMouseMoveEvent):
1768 (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
1769 (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
1770 (WebCore::Frame::autoscrollTimerFired): ditto.
1771 (WebCore::Frame::stopAutoscrollTimer): ditto.
1772 (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
1774 * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
1776 * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
1777 (WebCore::FrameViewPrivate::reset):
1778 (WebCore::FrameView::currentMousePosition):
1779 (WebCore::FrameView::handleMousePressEvent):
1780 (WebCore::FrameView::handleMouseDoubleClickEvent):
1781 (WebCore::selectCursor):
1782 (WebCore::FrameView::handleMouseMoveEvent):
1783 (WebCore::FrameView::handleMouseReleaseEvent):
1786 * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument. The list box will use a smaller scroll bar size.
1787 * platform/ScrollBar.h:
1789 (WebCore::ScrollBar::controlSize):
1790 * platform/mac/PlatformScrollBar.h:
1791 * platform/mac/PlatformScrollBarMac.mm:
1792 (NSControlSizeForScrollBarControlSize):
1793 (-[WebCoreScrollBar initWithPlatformScrollBar:]):
1794 (WebCore::PlatformScrollBar::PlatformScrollBar):
1796 * rendering/RenderBlock.h:
1797 * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
1798 * rendering/RenderLayer.h:
1799 * rendering/RenderObject.cpp:
1800 (WebCore::RenderObject::shouldAutoscroll):
1801 (WebCore::RenderObject::autoscroll):
1802 * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
1804 * css/html4.css: Added properties for new list boxes.
1806 * html/HTMLOptionElement.cpp:
1807 (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
1808 (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
1809 * html/HTMLOptionElement.h: Added disabled method.
1811 * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
1812 (WebCore::HTMLSelectElement::recalcStyle):
1813 (WebCore::HTMLSelectElement::lastSelectedListIndex):
1814 (WebCore::HTMLSelectElement::deselectItems):
1815 (WebCore::HTMLSelectElement::setSelectedIndex):
1816 (WebCore::HTMLSelectElement::isKeyboardFocusable):
1817 (WebCore::HTMLSelectElement::isMouseFocusable):
1818 (WebCore::HTMLSelectElement::createRenderer):
1819 (WebCore::HTMLSelectElement::recalcListItems):
1820 (WebCore::HTMLSelectElement::setRecalcListItems):
1821 (WebCore::HTMLSelectElement::reset):
1822 (WebCore::HTMLSelectElement::notifyOptionSelected):
1823 (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
1824 (WebCore::HTMLSelectElement::nextSelectableListIndex):
1825 (WebCore::HTMLSelectElement::previousSelectableListIndex):
1826 * html/HTMLSelectElement.h:
1828 * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
1829 (WebCore::RenderTheme::paint):
1830 (WebCore::RenderTheme::paintBorderOnly):
1831 (WebCore::RenderTheme::paintDecorations):
1832 (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
1833 (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
1834 (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
1835 (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
1836 (WebCore::RenderTheme::isControlStyled):
1837 (WebCore::RenderTheme::supportsFocusRing):
1838 * rendering/RenderTheme.h:
1839 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
1841 * rendering/RenderListBox.cpp: Added.
1842 (WebCore::RenderListBox::RenderListBox):
1843 (WebCore::RenderListBox::~RenderListBox):
1844 (WebCore::RenderListBox::setStyle):
1845 (WebCore::RenderListBox::updateFromElement):
1846 (WebCore::RenderListBox::calcMinMaxWidth):
1847 (WebCore::RenderListBox::size):
1848 (WebCore::RenderListBox::numItems):
1849 (WebCore::RenderListBox::calcHeight):
1850 (WebCore::RenderListBox::baselinePosition):
1851 (WebCore::RenderListBox::itemBoundingBoxRect):
1852 (WebCore::RenderListBox::paintObject):
1853 (WebCore::RenderListBox::paintScrollbar):
1854 (WebCore::RenderListBox::paintItemForeground):
1855 (WebCore::RenderListBox::paintItemBackground):
1856 (WebCore::RenderListBox::scrollBarTarget):
1857 (WebCore::RenderListBox::isPointInScrollbar):
1858 (WebCore::RenderListBox::optionAtPoint):
1859 (WebCore::RenderListBox::autoscroll):
1860 (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
1861 (WebCore::RenderListBox::scroll):
1862 (WebCore::RenderListBox::valueChanged):
1863 * rendering/RenderListBox.h: Added.
1864 (WebCore::RenderListBox::isListBox):
1865 (WebCore::RenderListBox::selectionChanged):
1866 (WebCore::RenderListBox::setSelectionChanged):
1867 (WebCore::RenderListBox::canHaveChildren):
1868 (WebCore::RenderListBox::renderName):
1869 (WebCore::RenderListBox::setOptionsChanged):
1870 (WebCore::RenderListBox::shouldAutoscroll):
1871 (WebCore::RenderListBox::listIndexIsVisible):
1873 2006-09-29 Beth Dakin <bdakin@apple.com>
1877 We had a bug where html4.css was ignoring Media Queries. In the end
1878 the problem was that we were trying to send a char* to the
1879 MediaQueryEvaluator constructor that expects a String, but the
1880 char* got interpreted as a bool, the wrong constructor was called,
1881 and the media type was never set.
1883 No test case possible since this only affects html4.css
1885 * css/MediaQueryEvaluator.cpp: New constructor that expects takes a
1887 (WebCore::MediaQueryEvaluator):
1888 * css/MediaQueryEvaluator.h: Same.
1890 2006-09-29 Geoffrey Garen <ggaren@apple.com>
1892 Reviewed by John, Maciej.
1894 Integrated some frame and iframe code. I'm trying to fix up frame ownership
1895 and loading. Reducing the number of different code paths involved
1896 seemed like a good first step.
1898 As a side effect, I fixed a bug where FRAME elements would report their
1899 src attributes as relative, rather than compelete, URLs. (IFRAME elements
1900 had the correct complete URL behavior.)
1902 * html/HTMLFrameElement.cpp:
1903 (WebCore::HTMLFrameElement::isURLAllowed): Fixed comment typo
1904 (WebCore::HTMLFrameElement::openURL):
1905 (1) Removed checks that requestFrame does for us
1906 (2) Added isURLAllowed check, to have one clear bottleneck for it
1907 (3) Added viewsource check, to have one clear bottleneck for it
1908 (WebCore::HTMLFrameElement::close): Changed to use the common contentFrame()
1909 method, instead of finding our content frame in our own unique way.
1910 (WebCore::HTMLFrameElement::setLocation): Removed isURLAllowed check,
1911 since openURL does this for us now.
1912 (WebCore::HTMLFrameElement::src): Return complete URL instead of relative.
1913 This is what FF does, and it made no sense to have different behaviors
1914 for FRAME and IFRAME elements.
1915 * html/HTMLIFrameElement.cpp:
1916 (WebCore::HTMLIFrameElement::HTMLIFrameElement): Removed duplicate init
1918 * html/HTMLIFrameElement.h: Removed src() and openURL() methods, since
1919 HTMLFrameElement now does everything we need.
1921 2006-09-30 Nikolas Zimmermann <zimmermann@kde.org>
1928 * platform/qt/ScrollViewQt.cpp:
1929 (WebCore::ScrollView::convertToContainingWindow):
1930 (WebCore::ScrollView::convertFromContainingWindow):
1931 * platform/qt/TemporaryLinkStubs.cpp:
1932 (WebCore::signedPublicKeyAndChallengeString):
1933 * platform/qt/WidgetQt.cpp:
1934 (WebCore::Widget::convertToContainingWindow):
1935 (WebCore::Widget::convertFromContainingWindow):
1937 2006-09-29 Sam Weinig <sam.weinig@gmail.com>
1941 Patch for http://bugs.webkit.org/show_bug.cgi?id=11082
1942 Simplify Internal methods for the auto-generated Objective-C DOM code
1944 - Auto-generate the internal methods for more Objective-C classes.
1946 * WebCore.xcodeproj/project.pbxproj:
1947 * bindings/objc/DOM.mm:
1948 * bindings/objc/DOMCSS.mm:
1949 (-[DOMStyleSheet WebCore::]):
1950 (+[DOMStyleSheet _styleSheetWith:WebCore::]):
1951 (-[DOMCSSRule WebCore::]):
1952 (-[DOMCSSRule _initWithCSSRule:WebCore::]):
1953 (+[DOMCSSRule _CSSRuleWith:WebCore::]):
1954 (-[DOMCSSValue WebCore::]):
1955 (-[DOMCSSValue _initWithCSSValue:WebCore::]):
1956 (+[DOMCSSValue _CSSValueWith:WebCore::]):
1957 * bindings/objc/DOMHTMLAppletElement.mm:
1958 (-[DOMHTMLAppletElement WebCore::]):
1959 (+[DOMHTMLAppletElement _HTMLOptionElementWith:WebCore::]):
1960 * bindings/objc/DOMHTMLEmbedElement.mm:
1961 (-[DOMHTMLEmbedElement WebCore::]):
1962 (+[DOMHTMLEmbedElement _HTMLEmbedElementWith:WebCore::]):
1963 * bindings/objc/DOMInternal.h:
1964 * bindings/objc/DOMInternal.mm:
1965 * bindings/scripts/CodeGeneratorObjC.pm:
1966 * css/CSSCharsetRule.idl:
1967 * css/CSSFontFaceRule.idl:
1968 * css/CSSImportRule.idl:
1969 * css/CSSMediaRule.idl:
1970 * css/CSSPageRule.idl:
1971 * css/CSSPrimitiveValue.idl:
1972 * css/CSSStyleRule.idl:
1973 * css/CSSStyleSheet.idl:
1974 * css/CSSUnknownRule.idl:
1975 * css/CSSValueList.idl:
1976 * dom/KeyboardEvent.idl:
1977 * dom/MouseEvent.idl:
1978 * dom/MutationEvent.idl:
1979 * dom/NodeIterator.idl:
1980 * dom/OverflowEvent.idl:
1982 * dom/WheelEvent.idl:
1984 2006-09-29 David Harrison <harrison@apple.com>
1986 Reviewed by John Sullivan.
1988 <rdar://problem/4663772> REGRESSION: Cannot type in Japanese after replying to a particular message
1989 <rdar://problem/4673293> REGRESSION: Can't enter the Japanese characters in Mail or Blot
1992 * fast/text/attributed-substring-from-range-001.html
1994 * bridge/mac/FrameMac.mm:
1995 (WebCore::FrameMac::attributedString):
1996 Handle non-zero offsets when start and/or end node is a container. Offset used to be ignored in this case.
1997 Also, add validation of the range.
1999 2006-09-29 Rob Buis <buis@kde.org>
2003 http://bugs.webkit.org/show_bug.cgi?id=10893
2004 InsertRule can not handle @import statements
2006 Allow @import as part of a css rule.
2010 2006-09-28 David Hyatt <hyatt@apple.com>
2012 Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
2014 * bridge/mac/FrameMac.mm:
2015 (WebCore::FrameMac::eventMayStartDrag):
2016 (WebCore::FrameMac::dragHysteresisExceeded):
2017 (WebCore::FrameMac::mouseDown):
2018 (WebCore::FrameMac::shouldDragAutoNode):
2019 (WebCore::FrameMac::sendContextMenuEvent):
2020 * bridge/mac/WebCoreFrameBridge.mm:
2021 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
2023 2006-09-28 Dave Hyatt <hyatt@apple.com>
2025 This patch eliminates viewportToContents/contentsToViewport in favor of convertTo/FromContainingWindow.
2026 ScrollView now subclasses these methods to factor in its scrollOffset and to deal with the document
2029 Reviewed by mjs (the convertTo/From changes), (I added the elimination of viewportToContents to
2030 the patch after review, once I realized that these new functions essentially do the same thing.)
2032 * dom/EventTargetNode.cpp:
2033 (WebCore::EventTargetNode::dispatchMouseEvent):
2034 (WebCore::EventTargetNode::dispatchWheelEvent):
2036 (WebCore::Frame::selectClosestWordFromMouseEvent):
2037 (WebCore::Frame::handleMousePressEventTripleClick):
2038 (WebCore::Frame::handleMousePressEventSingleClick):
2039 (WebCore::Frame::handleMouseMoveEvent):
2040 (WebCore::Frame::handleMouseReleaseEvent):
2041 * page/FrameView.cpp:
2042 (WebCore::FrameView::handleMousePressEvent):
2043 (WebCore::selectCursor):
2044 (WebCore::FrameView::dispatchDragEvent):
2045 (WebCore::FrameView::prepareMouseEvent):
2046 (WebCore::FrameView::handleWheelEvent):
2047 * platform/ScrollView.h:
2048 * platform/Widget.cpp:
2049 (WebCore::Widget::convertToContainingWindow):
2050 * platform/Widget.h:
2051 * platform/mac/ScrollViewMac.mm:
2052 (WebCore::ScrollView::convertToContainingWindow):
2053 (WebCore::ScrollView::convertFromContainingWindow):
2054 * platform/mac/WidgetMac.mm:
2055 (WebCore::Widget::convertToContainingWindow):
2056 (WebCore::Widget::convertFromContainingWindow):
2057 * platform/win/ScrollViewWin.cpp:
2058 (WebCore::ScrollView::convertToContainingWindow):
2059 (WebCore::ScrollView::convertFromContainingWindow):
2060 * rendering/RenderLayer.cpp:
2061 (WebCore::RenderLayer::resize):
2063 2006-09-28 Alice Liu <alice.liu@apple.com>
2065 Build fix by adding missing files for CommandByName
2067 * WebCore.xcodeproj/project.pbxproj:
2069 2006-09-28 Alice Liu <alice.liu@apple.com>
2071 Adding CommandByName files to the vcproj
2073 * WebCore.vcproj/WebCore/WebCore.vcproj:
2075 2006-09-28 Alice Liu <alice.liu@apple.com>
2077 Reviewed by Adam Roben.
2079 This patch adds a command class that is attached to the frame so the frame can more easily execute commands such as copy, paste, select, etc.
2080 This patch also exposes some UBRK-related utilities so that they can be used elsewhere.
2081 This patch also changes windows PlatformMouseEvent so that we can detect multiple-click mouse events
2083 * editing/CommandByName.cpp: Added.
2084 Added a command class that hangs off the frame so the frame can call commands more easily.
2085 (WebCore::Frame::commandImp):
2086 (WebCore::Frame::execCopy):
2087 (WebCore::Frame::execCut):
2088 (WebCore::Frame::execDelete):
2089 (WebCore::Frame::execForwardDelete):
2090 (WebCore::Frame::execPaste):
2091 (WebCore::Frame::execMoveLeft):
2092 (WebCore::Frame::execMoveRight):
2093 (WebCore::Frame::execMoveUp):
2094 (WebCore::Frame::execMoveDown):
2095 (WebCore::Frame::execSelectAll):
2096 (WebCore::Frame::execSelectLeft):
2097 (WebCore::Frame::execSelectRight):
2098 (WebCore::Frame::execSelectUp):
2099 (WebCore::Frame::execSelectDown):
2100 (WebCore::Frame::enabled):
2101 (WebCore::Frame::enabledAnySelection):
2102 (WebCore::Frame::enabledAnyEditableSelection):
2103 (WebCore::Frame::enabledPaste):
2104 (WebCore::Frame::enabledAnyRangeSelection):
2105 (WebCore::Frame::enabledAnyEditableRangeSelection):
2106 (WebCore::Frame::createCommandDictionary):
2107 (WebCore::Frame::Command::):
2108 (WebCore:::m_frame):
2109 (WebCore::CommandByName::execCommand):
2110 * editing/CommandByName.h: Added.
2112 Added implementation of accessor for CommandByName member
2113 (WebCore::Frame::command):
2115 Added accessor for CommandByName member
2116 * page/FramePrivate.h:
2117 Added a CommandByName member
2118 (WebCore::FramePrivate::FramePrivate):
2119 * platform/PlatformMouseEvent.h:
2120 Changed constructor prototype
2121 * platform/StringImpl.cpp:
2122 Exposing getWordBreakIterator to be used elsewhere
2123 (WebCore::getWordBreakIterator):
2124 * platform/StringImpl.h:
2125 Exposing getWordBreakIterator to be used elsewhere
2126 * platform/win/MouseEventWin.cpp:
2127 Changed the PlatformMouseEvent on windows so that we "roll our own" multi-click mouse events instead of relying on the system to tell us, enabling us to detect triple-clicks
2128 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
2130 2006-09-28 Adam Roben <aroben@apple.com>
2134 Remove no-longer-used PopUpButton.
2136 * WebCore.vcproj/WebCore/WebCore.vcproj: Remove PopUpButton.h
2137 * WebCore.xcodeproj/project.pbxproj: Remove PopUpButton.h,
2139 * platform/PopUpButton.h: Removed.
2140 * platform/mac/PopUpButtonMac.mm: Removed.
2141 * platform/win/TemporaryLinkStubs.cpp: Remove PopUpButton:: methods
2142 * rendering/DeprecatedRenderSelect.cpp: Change #include of
2143 PopUpButton.h to ListBox.h
2145 2006-09-28 Darin Adler <darin@apple.com>
2149 - change that should fix <rdar://problem/4733044> REGRESSION: XML iBench shows
2150 10% perf. regression (copying strings while decoding)
2152 Use Vector<UChar> instead of String when building up the decoded string in
2153 the ICU and Mac decoders. Using String leads to O(n^2) behavior because
2154 String grows the buffer every single time that append is called. Using
2155 Vector::append instead of String::append also avoids constructing a string
2156 each time just to append and a questionable copy that is done inside the
2157 String::append function which also contributed to the slowness.
2159 * platform/PlatformString.h:
2160 * platform/String.cpp: (WebCore::String::adopt): Added. Makes a String from a
2161 Vector<UChar>, adopting the buffer from the vector to avoid copying and memory
2163 * platform/StringImpl.h:
2164 * platform/StringImpl.cpp: (WebCore::StringImpl::adopt): Ditto.
2166 * platform/StreamingTextDecoder.h:
2167 * platform/StreamingTextDecoder.cpp: (WebCore::TextCodec::appendOmittingBOM):
2168 Change to use a Vector<UChar> instead of a String, since vectors have better
2169 resizing performance (they store a separate capacity).
2171 * platform/StreamingTextDecoderICU.cpp: (WebCore::TextCodecICU::decode):
2172 * platform/mac/StreamingTextDecoderMac.cpp: (WebCore::TextCodecMac::decode):
2173 Change to use Vector<UChar> instead of String and then create a string at
2174 the end of the process using the new adopt function.
2176 2006-09-28 Sam Weinig <sam.weinig@gmail.com>
2180 Patch for http://bugs.webkit.org/show_bug.cgi?id=11057
2181 Auto-generate more SVG Objective-C bindings
2183 - Auto-generates DOMSVGAnimatedAngle, DOMSVGAnimatedBoolean,
2184 DOMSVGAnimatedEnumeration, DOMSVGAnimatedInteger, DOMSVGAnimatedLength,
2185 DOMSVGAnimatedLengthList, DOMSVGAnimatedNumber, DOMSVGAnimatedString,
2186 DOMSVGAnimatedTransformList, DOMSVGExternalResourcesRequired,
2187 DOMSVGLangSpace, DOMSVGLocatable, DOMSVGMetadataElement, DOMSVGRectElement,
2188 DOMSVGStringList, DOMSVGStylable, DOMSVGStyleElement, DOMSVGTests,
2189 and DOMSVGTransformable.
2191 - Adds ability to CodeGeneratorObjC.pm to handle interfaces with mulitple
2192 parent interfaces and the SVG animated classes.
2194 - Corrects CodeGenerator.pm to only skip the first parent for the main
2197 * DerivedSources.make:
2198 * WebCore.xcodeproj/project.pbxproj:
2199 * bindings/objc/DOMInternal.h:
2200 * bindings/objc/DOMSVG.h:
2201 * bindings/scripts/CodeGenerator.pm:
2202 * bindings/scripts/CodeGeneratorObjC.pm:
2203 * ksvg2/svg/SVGAnimatedAngle.idl:
2204 * ksvg2/svg/SVGAnimatedBoolean.idl:
2205 * ksvg2/svg/SVGAnimatedEnumeration.idl:
2206 * ksvg2/svg/SVGAnimatedInteger.idl:
2207 * ksvg2/svg/SVGAnimatedLength.idl:
2208 * ksvg2/svg/SVGAnimatedLengthList.idl:
2209 * ksvg2/svg/SVGAnimatedNumber.idl:
2210 * ksvg2/svg/SVGAnimatedPathData.idl:
2211 * ksvg2/svg/SVGAnimatedString.idl:
2212 * ksvg2/svg/SVGAnimatedTransformList.idl:
2213 * ksvg2/svg/SVGExternalResourcesRequired.idl:
2214 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.idl:
2215 * ksvg2/svg/SVGFitToViewBox.idl:
2216 * ksvg2/svg/SVGLangSpace.idl:
2217 * ksvg2/svg/SVGLocatable.idl:
2218 * ksvg2/svg/SVGMetadataElement.idl:
2219 * ksvg2/svg/SVGStringList.idl:
2220 * ksvg2/svg/SVGStylable.idl:
2221 * ksvg2/svg/SVGStyleElement.idl:
2222 * ksvg2/svg/SVGTests.idl:
2223 * ksvg2/svg/SVGTransformable.idl:
2224 * ksvg2/svg/SVGURIReference.idl:
2225 * ksvg2/svg/SVGUnitTypes.idl:
2226 * ksvg2/svg/SVGZoomAndPan.idl:
2228 2006-09-28 Brady Eidson <beidson@apple.com>
2230 Reviewed by Mitz Pettel!!!
2232 Change the error code check for common functions from SQLResultOk to SQLResultDone
2234 * loader/icon/IconDatabase.cpp:
2235 (WebCore::IconDatabase::forgetPageURLQuery):
2236 (WebCore::IconDatabase::setIconIDForPageURLQuery):
2237 (WebCore::IconDatabase::addIconForIconURLQuery):
2239 2006-09-28 Dave Hyatt <hyatt@apple.com>
2241 Just eliminate MapWindowPoints usage and use the HWND as
2244 * platform/win/MouseEventWin.cpp:
2245 (WebCore::positionForEvent):
2246 * platform/win/ScrollViewWin.cpp:
2247 (WebCore::ScrollView::viewportToContents):
2248 (WebCore::ScrollView::contentsToViewport):
2250 2006-09-27 David Hyatt <hyatt@apple.com>
2252 Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas. Make sure
2253 selectCursor checks for whether or not a scrollbar was hit. Also stub out a mouseMoved method for
2254 scrollbars to provide hover feedback if needed.
2258 * page/FrameView.cpp:
2259 (WebCore::selectCursor):
2260 (WebCore::FrameView::handleMouseMoveEvent):
2261 * platform/ScrollBar.h:
2262 (WebCore::ScrollBar::mouseMoved):
2264 2006-09-27 MorganL <morganl.webkit@yahoo.com>
2266 Reviewed by Maciej and Adam, landed by Adam
2268 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11072
2269 Windows build is busted
2271 * platform/win/TemporaryLinkStubs.cpp:
2272 (ScrollView::paint):
2273 (ScrollView::themeChanged):
2275 2006-09-27 Eric Seidel <eric@eseidel.com>
2279 paths with no fill specified default to black but do not recieve paint-related mouse events
2280 http://bugs.webkit.org/show_bug.cgi?id=11069
2281 The default fill was being applied at the wrong place in the rendering chain, causing this problem.
2283 Test: svg/custom/hover-default-fill.svg
2285 * kcanvas/RenderPath.cpp:
2286 (WebCore::RenderPath::nodeAtPoint): use isFilled and isStroked
2287 * ksvg2/css/SVGRenderStyle.h: use defaultFill() and defaultStroke()
2288 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2289 (WebCore::KSVGPainterFactory::isFilled): remove null check
2290 (WebCore::KSVGPainterFactory::fillPaintServer): remove null check
2291 (WebCore::KSVGPainterFactory::isStroked): remove null check
2292 (WebCore::KSVGPainterFactory::strokePaintServer): remove null check
2293 * ksvg2/svg/SVGPaint.cpp:
2294 (WebCore::SVGPaint::defaultFill): added.
2295 (WebCore::SVGPaint::defaultStroke): added.
2296 * ksvg2/svg/SVGPaint.h:
2298 2006-09-27 Rob Buis <buis@kde.org>
2300 Reviewed by eseidel.
2302 http://bugs.webkit.org/show_bug.cgi?id=11015
2303 SVG handles em units incorrectly
2305 Calculate viewport coordinates at layout time, since
2306 at this point the font size is known and lengths depending
2307 on font sizes can be calculated correctly.
2309 * kcanvas/RenderSVGContainer.cpp:
2310 (WebCore::RenderSVGContainer::layout):
2311 (WebCore::RenderSVGContainer::viewport):
2312 (WebCore::RenderSVGContainer::calcViewport):
2313 * kcanvas/RenderSVGContainer.h:
2314 * ksvg2/svg/SVGLength.cpp:
2315 (WebCore::SVGLength::updateValue):
2316 * ksvg2/svg/SVGMarkerElement.cpp:
2317 (WebCore::SVGMarkerElement::createRenderer):
2318 * ksvg2/svg/SVGSVGElement.cpp:
2319 (WebCore::SVGSVGElement::createRenderer):
2320 (WebCore::SVGSVGElement::attributeChanged):
2321 * ksvg2/svg/SVGSVGElement.h:
2323 2006-09-27 Eric Seidel <eric@eseidel.com>
2327 Change our invalid-fill error behavior to match Opera (and soon Firefox)
2328 http://bugs.webkit.org/show_bug.cgi?id=11017
2330 * ksvg2/misc/KCanvasRenderingStyle.cpp:
2331 (WebCore::KSVGPainterFactory::isFilled):
2332 (WebCore::KSVGPainterFactory::fillPaintServer):
2333 (WebCore::KSVGPainterFactory::isStroked):
2334 (WebCore::KSVGPainterFactory::strokePaintServer):
2336 2006-09-27 Brady Eidson <beidson@apple.com>
2340 * loader/icon/IconDatabase.cpp:
2341 (WebCore::readySQLStatement):
2343 2006-09-27 Brady Eidson <beidson@apple.com>
2347 In very specific circumstances, prepared SQLStatements can become invalid without
2348 any warning. This checks for that state and re-prepares the statement and also
2349 adds more aggressive error-checking everywhere these statements are used.
2351 * loader/icon/IconDatabase.cpp:
2352 (WebCore::readySQLStatement): Check if the statement is expired - reprepare it
2353 (WebCore::IconDatabase::imageDataForIconURLQuery): More thoroughly catch error cases
2354 (WebCore::IconDatabase::timeStampForIconURLQuery): Ditto
2355 (WebCore::IconDatabase::iconURLForPageURLQuery): Ditto
2356 (WebCore::IconDatabase::forgetPageURLQuery): Ditto
2357 (WebCore::IconDatabase::setIconIDForPageURLQuery): Ditto
2358 (WebCore::IconDatabase::getIconIDForIconURLQuery): Ditto
2359 (WebCore::IconDatabase::addIconForIconURLQuery): Ditto
2360 (WebCore::IconDatabase::hasIconForIconURLQuery): Ditto
2361 * loader/icon/SQLStatement.cpp:
2362 (WebCore::SQLStatement::isExpired): Added (accessor to sqlite3_expired())
2363 * loader/icon/SQLStatement.h:
2365 2006-09-26 Darin Adler <darin@apple.com>
2369 - clean up options for font code path
2372 * platform/Font.cpp:
2373 (WebCore::Font::setCodePath): Added. Replaces boolean version.
2374 (WebCore::Font::canUseGlyphCache): Update to handle "never use complex" case too.
2376 * platform/mac/WebCoreTextRenderer.mm:
2377 (WebCoreSetAlwaysUseATSU): Change to call setCodePath.
2379 2006-09-26 John Sullivan <sullivan@apple.com>
2383 * bridge/mac/WebCoreFrameBridge.h:
2384 * bridge/mac/WebCoreFrameBridge.mm:
2385 (-[WebCoreFrameBridge markAllMatchesForText:caseSensitive:limit:]):
2386 Added limit parameter, passed down to Frame
2390 (WebCore::Frame::markAllMatchesForText):
2391 Added limit parameter. Stop the search if it hits limit.
2393 2006-09-26 Sean Gies <seangies@apple.com>
2395 Reviewed by Brady Eidson.
2397 * platform/cg/ImageCG.cpp: Removed #if's -- Darin said we don't need these.
2399 2006-09-26 Justin Garcia <justin.garcia@apple.com>
2403 <rdar://problem/4747695>
2404 Gmail Editor: Crash at WebCore::Range::startPosition() when decreasing a indent
2406 * editing/DeleteSelectionCommand.cpp:
2407 (WebCore::DeleteSelectionCommand::initializeStartEnd): Stop expanding
2408 to select special elements that are fully selected after expansion
2409 moves to positions that are visually distinct from the originals.
2410 * editing/InsertListCommand.cpp:
2411 (WebCore::InsertListCommand::doApply): If the content of the list
2412 item will be moved into another list, put it in a list item.
2414 2006-09-26 Geoffrey Garen <ggaren@apple.com>
2418 Temporary work-around for frame lifetime issue.
2421 (WebCore::Frame::clear):
2422 (WebCore::Frame::disconnectOwnerElement):
2424 2006-09-26 Sam Weinig <sam.weinig@gmail.com>
2428 Patch for http://bugs.webkit.org/show_bug.cgi?id=11038
2429 Auto-generate DOMSVGElement for the Objective-C bindings
2431 - Auto-generates DOMSVGElement.
2433 - Make SVGExceptions work like all the other ExceptionCode
2434 extensions (Range, XPath, etc.) by adding SVGExceptionOffset
2435 and SVGExceptionMax.
2437 * DerivedSources.make:
2438 * WebCore.xcodeproj/project.pbxproj:
2439 * bindings/js/kjs_binding.cpp:
2441 (KJS::setDOMException):
2442 * bindings/objc/DOMInternal.h:
2443 * bindings/objc/DOMInternal.mm:
2444 (raiseDOMException):
2445 * bindings/objc/DOMSVG.h:
2446 * bindings/objc/DOMSVGExecption.h: Added.
2448 * ksvg2/svg/SVGElement.cpp:
2449 (WebCore::SVGElement::setId):
2450 (WebCore::SVGElement::setXmlbase):
2451 * ksvg2/svg/SVGElement.h:
2452 * ksvg2/svg/SVGElement.idl:
2453 * ksvg2/svg/SVGException.h: Added.
2456 2006-09-26 Eric Seidel <eric@eseidel.com>
2460 viewbox parser does not allow <tab> as a delimiter
2461 http://bugs.webkit.org/show_bug.cgi?id=11014
2463 Test: svg/hixie/viewbox/003.xml
2465 * ksvg2/svg/svgpathparser.cpp:
2466 (WebCore::isWhitespace): new function
2467 (WebCore::skipOptionalSpaces):
2468 (WebCore::skipOptionalSpacesOrComma):
2470 2006-09-26 Eric Seidel <eric@eseidel.com>
2474 SVGDocument::createElement does not create elements in the SVG namespace
2475 http://bugs.webkit.org/show_bug.cgi?id=10932
2477 Test: svg/custom/createelement.svg
2479 * ksvg2/svg/SVGDocument.cpp:
2480 (WebCore::SVGDocument::createElement):
2481 * ksvg2/svg/SVGDocument.h:
2483 2006-09-26 Eric Seidel <eric@eseidel.com>
2487 RenderPath::nodeAtPoint does not respect stroke width
2488 http://bugs.webkit.org/show_bug.cgi?id=10829
2490 Test: svg/custom/stroke-width-click.svg
2492 * kcanvas/device/quartz/KCanvasItemQuartz.mm:
2493 (WebCore::RenderPath::strokeContains):
2494 * kcanvas/device/quartz/QuartzSupport.h:
2495 * kcanvas/device/quartz/QuartzSupport.mm:
2497 2006-09-26 Eric Seidel <eric@eseidel.com>
2501 Bring animation back to life
2502 http://bugs.webkit.org/show_bug.cgi?id=11021
2504 Register/unregister SVGSVGElements as time containers on insertion/removal.
2505 Replace uses of DeprecatedString with String in SVGAnimationElement
2506 Various whitespace clean-up.
2508 * ksvg2/misc/KSVGTimeScheduler.cpp:
2509 (WebCore::SVGTimer::notifyAll):
2510 * ksvg2/misc/SVGDocumentExtensions.cpp:
2511 (WebCore::SVGDocumentExtensions::startAnimations):
2512 (WebCore::SVGDocumentExtensions::pauseAnimations):
2513 (WebCore::SVGDocumentExtensions::unpauseAnimations):
2514 * ksvg2/svg/SVGAnimateTransformElement.cpp:
2515 (WebCore::SVGAnimateTransformElement::handleTimerEvent):
2516 (WebCore::SVGAnimateTransformElement::parseTransformValue):
2517 * ksvg2/svg/SVGAnimateTransformElement.h:
2518 * ksvg2/svg/SVGAnimationElement.cpp:
2519 (WebCore::SVGAnimationElement::SVGAnimationElement):
2520 (WebCore::SVGAnimationElement::parseMappedAttribute):
2521 (WebCore::SVGAnimationElement::parseClockValue):
2522 (WebCore::SVGAnimationElement::targetAttribute):
2523 (WebCore::SVGAnimationElement::setTargetAttribute):
2524 (WebCore::SVGAnimationElement::attributeName):
2525 * ksvg2/svg/SVGAnimationElement.h:
2526 (WebCore::SVGAnimationElement::rendererIsNeeded):
2527 * ksvg2/svg/SVGSVGElement.cpp:
2528 (WebCore::SVGSVGElement::getScreenCTM):
2529 (WebCore::SVGSVGElement::createRenderer):
2530 (WebCore::SVGSVGElement::insertedIntoDocument): added, calls addTimeContainer(this)
2531 (WebCore::SVGSVGElement::removedFromDocument): added, calls removeTimeContainer(this)
2532 * ksvg2/svg/SVGSVGElement.h:
2533 * ksvg2/svg/SVGSetElement.cpp:
2534 (WebCore::SVGSetElement::handleTimerEvent):
2535 * ksvg2/svg/SVGURIReference.cpp:
2536 (WebCore::SVGURIReference::getTarget):
2537 * ksvg2/svg/SVGURIReference.h:
2539 2006-09-26 Graham Dennis <graham.dennis@gmail.com>
2541 Reviewed by mitzpettel.
2543 - fix http://bugs.webkit.org/show_bug.cgi?id=11020
2544 No-SVG build broken since r16549
2546 Change #if SVG_SUPPORT to #ifdef SVG_SUPPORT
2548 * css/cssparser.cpp:
2549 (WebCore::CSSParser::parseValue):
2550 * css/cssstyleselector.cpp:
2551 (WebCore::CSSStyleSelector::applyProperty):
2552 * page/FrameView.cpp:
2553 (WebCore::selectCursor):
2554 * platform/qt/GraphicsContextQt.cpp:
2556 2006-09-26 Anders Carlsson <acarlsson@apple.com>
2560 http://bugs.webkit.org/show_bug.cgi?id=10820
2561 Add StringImpl::toDouble() and remove uses of .deprecatedString().toDouble()
2563 (Originally written by Eric Seidel).
2565 * bindings/js/kjs_window.cpp:
2566 (KJS::floatFeature):
2567 * ksvg2/svg/SVGAngle.cpp:
2568 (SVGAngle::setValueAsString):
2569 * ksvg2/svg/SVGAnimationElement.cpp:
2570 (SVGAnimationElement::parseMappedAttribute):
2571 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
2572 (SVGComponentTransferFunctionElement::parseMappedAttribute):
2573 * ksvg2/svg/SVGFECompositeElement.cpp:
2574 (WebCore::SVGFECompositeElement::parseMappedAttribute):
2575 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2576 (WebCore::SVGFEDiffuseLightingElement::parseMappedAttribute):
2577 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2578 (SVGFEDisplacementMapElement::parseMappedAttribute):
2579 * ksvg2/svg/SVGFELightElement.cpp:
2580 (SVGFELightElement::parseMappedAttribute):
2581 * ksvg2/svg/SVGFEOffsetElement.cpp:
2582 (WebCore::SVGFEOffsetElement::parseMappedAttribute):
2583 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
2584 (SVGFESpecularLightingElement::parseMappedAttribute):
2585 * ksvg2/svg/SVGFETurbulenceElement.cpp:
2586 (WebCore::SVGFETurbulenceElement::parseMappedAttribute):
2587 * ksvg2/svg/SVGStopElement.cpp:
2588 (SVGStopElement::parseMappedAttribute):
2589 * platform/AtomicString.h:
2590 (WebCore::AtomicString::toDouble):
2591 * platform/PlatformString.h:
2592 * platform/String.cpp:
2593 (WebCore::String::toDouble):
2594 * platform/StringImpl.cpp:
2595 (WebCore::StringImpl::toDouble):
2596 * platform/StringImpl.h:
2597 * rendering/DeprecatedSlider.cpp:
2598 (WebCore::DeprecatedSlider::updateFromElement):
2599 * xml/XPathGrammar.y:
2601 2006-09-25 David Harrison <harrison@apple.com>
2603 Reviewed by Tim Omernick and Tim Hatcher.
2605 <rdar://problem/4717965> Text Field text parameterized attributes should work
2606 <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
2608 * bridge/mac/WebCoreAXObject.mm:
2609 (-[WebCoreAXObject accessibilityAttributeValue:]):
2610 Use new line number support to implement NSAccessibilityInsertionPointLineNumberAttribute.
2612 (-[WebCoreAXObject accessibilityParameterizedAttributeNames]):
2613 Cleaned up. Added text field and text area parameterzed attributes.
2615 (-[WebCoreAXObject doAXLineForTextMarker:]):
2616 Fixed to be zero-based and to deal with the first position properly.
2618 (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
2621 (-[WebCoreAXObject textMarkerForIndex:lastIndexOK:]):
2622 (-[WebCoreAXObject indexForTextMarker:]):
2623 (-[WebCoreAXObject textMarkerRangeForRange:]):
2624 (-[WebCoreAXObject rangeForTextMarkerRange:]):
2625 New utility methods.
2627 (-[WebCoreAXObject doAXLineForIndex:]):
2628 (-[WebCoreAXObject doAXRangeForLine:]):
2629 (-[WebCoreAXObject doAXStringForRange:]):
2630 (-[WebCoreAXObject doAXRangeForPosition:]):
2631 (-[WebCoreAXObject doAXRangeForIndex:]):
2632 (-[WebCoreAXObject doAXBoundsForRange:]):
2633 (-[WebCoreAXObject doAXAttributedStringForRange:]):
2634 (-[WebCoreAXObject doAXRTFForRange:]):
2635 (-[WebCoreAXObject doAXStyleRangeForIndex:]):
2636 Implement text field and text area parameterized attributes.
2638 (-[WebCoreAXObject accessibilityAttributeValue:forParameter:]):
2639 Added text field and text area parameterzed attributes.
2641 * rendering/RenderTextControl.h:
2642 Made indexForVisiblePosition() and visiblePositionForIndex() public.
2644 2006-09-25 Adam Roben <aroben@apple.com>
2650 * WebCore.vcproj/WebCore/WebCore.vcproj: Fix malformed XML.
2651 * platform/ResourceLoader.h: Store whether a particular job
2652 has received a response within the ResourceLoader object itself, since
2653 it's possible that we will enter the InternetReadFileExA while loop
2654 twice for the same job.
2655 * platform/ResourceLoaderInternal.h: Add private instance variable to
2656 store whether we've received a response.
2657 (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
2658 * platform/win/GraphicsContextWin.cpp: Fix order of preprocessor
2660 * platform/win/ResourceLoaderWin.cpp:
2661 (WebCore::ResourceLoader::onRequestComplete): Ask the ResourceLoader
2662 whether it has received a response instead of assuming it hasn't.
2663 (WebCore::ResourceLoader::setHasReceivedResponse): Added.
2664 (WebCore::ResourceLoader::hasReceivedResponse): Added.
2665 * platform/win/TemporaryLinkStubs.cpp: Rename setKnobProportion to
2667 (ScrollBar::setProportion):
2669 2006-09-25 Brady Eidson <beidson@apple.com>
2673 Disabled IconDatabase logging by default
2675 * platform/Logging.cpp:
2678 2006-09-25 Steve Falkenburg <sfalken@apple.com>
2682 * platform/cf/ResourceLoaderCFNet.cpp:
2683 (WebCore::willCacheResponse):
2685 2006-09-25 Justin Garcia <justin.garcia@apple.com>
2689 <http://bugs.webkit.org/show_bug.cgi?id=11002>
2690 Gmail Editor: Crash at WebCore::SplitElementCommand::doApply() when attempting to indent in a new message
2692 * editing/IndentOutdentCommand.cpp:
2693 (WebCore::IndentOutdentCommand::indentRegion): Special case
2694 an empty root editable element.
2696 2006-09-25 Brady Eidson <beidson@apple.com>
2700 Math error in SystemTimeWin
2702 * platform/win/SystemTimeWin.cpp:
2703 (WebCore::currentTime):
2705 2006-09-25 Alexey Proskuryakov <ap@nypop.com>
2709 Whitespace cleanup; rename *job variables to *loader.
2711 * bindings/js/JSXMLHttpRequest.cpp:
2712 (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp):
2713 (KJS::JSXMLHttpRequestConstructorImp::implementsConstruct):
2714 (KJS::JSXMLHttpRequestConstructorImp::construct):
2715 (KJS::JSXMLHttpRequest::getOwnPropertySlot):
2716 (KJS::JSXMLHttpRequest::getValueProperty):
2717 (KJS::JSXMLHttpRequest::put):
2718 (KJS::JSXMLHttpRequest::putValueProperty):
2719 (KJS::JSXMLHttpRequest::mark):
2720 (KJS::JSXMLHttpRequest::JSXMLHttpRequest):
2721 (KJS::JSXMLHttpRequest::~JSXMLHttpRequest):
2722 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
2723 * bindings/js/JSXMLHttpRequest.h:
2724 (KJS::JSXMLHttpRequest::toBoolean):
2725 * xml/xmlhttprequest.cpp:
2726 (WebCore::XMLHttpRequest::XMLHttpRequest):
2727 (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
2728 (WebCore::XMLHttpRequest::send):
2729 (WebCore::XMLHttpRequest::abort):
2730 (WebCore::XMLHttpRequest::receivedAllData):
2731 (WebCore::XMLHttpRequest::receivedData):
2732 * xml/xmlhttprequest.h:
2735 2006-09-25 Timothy Hatcher <timothy@apple.com>
2739 - Deprecate the rest of the old-style methods that are not generated.
2740 - Add @property syntax to DOMRange.
2742 * WebCore.xcodeproj/project.pbxproj:
2743 * bindings/objc/DOM.mm:
2744 (-[DOMRange setStart:offset:]):
2745 (-[DOMRange setEnd:offset:]):
2746 (-[DOMRange compareBoundaryPoints:sourceRange:]):
2747 (-[DOMRange setStart::]):
2748 (-[DOMRange setEnd::]):
2749 (-[DOMRange compareBoundaryPoints::]):
2750 (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
2751 (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
2752 (-[DOMDocument createNodeIterator::::]):
2753 (-[DOMDocument createTreeWalker::::]):
2754 * bindings/objc/DOMCSS.h:
2755 * bindings/objc/DOMCSS.mm:
2756 (-[DOMDocument getComputedStyle:pseudoElement:]):
2757 (-[DOMDocument getComputedStyle::]):
2758 (-[DOMDocument getMatchedCSSRules:pseudoElement:]):
2759 * bindings/objc/DOMExtensions.h:
2760 * bindings/objc/DOMHTML.h:
2761 * bindings/objc/DOMRange.h:
2762 * bindings/objc/DOMTraversal.h:
2764 2006-09-25 Eric Seidel <eric@eseidel.com>
2768 Outermost <svg> element should clip to viewport
2769 http://bugs.webkit.org/show_bug.cgi?id=11007
2771 Test: svg/custom/viewport-clip.svg
2773 * css/svg.css: change svg:root overflow: from 'visible' to 'hidden'
2775 2006-09-25 Anders Carlsson <acarlsson@apple.com>
2779 * css/MediaList.cpp:
2780 Remove unused header.
2783 (WebCore::Document::clear):
2784 Use clear instead of iterating through the list of event listeners, removing each one.
2785 (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
2787 * html/HTMLKeygenElement.cpp:
2788 (WebCore::HTMLKeygenElement::HTMLKeygenElement):
2789 (WebCore::HTMLKeygenElement::appendFormData):
2790 Update due to changes in the SSL key generator.
2792 * ksvg2/svg/SVGAngle.cpp:
2793 Remove unused header.
2795 * ksvg2/svg/SVGAnimationElement.cpp:
2796 (SVGAnimationElement::parseMappedAttribute):
2797 Rename methods and pass Strings instead of DeprecatedStrings to
2800 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
2801 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
2802 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
2803 * ksvg2/svg/SVGFEMergeElement.cpp:
2804 * ksvg2/svg/SVGFEOffsetElement.cpp:
2805 Remove unused headers.
2807 * ksvg2/svg/SVGHelper.cpp:
2808 (WebCore::SVGHelper::parseSeparatedList):
2809 * ksvg2/svg/SVGHelper.h:
2810 Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a
2811 DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
2813 * ksvg2/svg/SVGLengthList.cpp:
2814 (WebCore::SVGLengthList::parse):
2815 * ksvg2/svg/SVGLengthList.h:
2816 Use Vector<String> instead of DeprecatedStringList.
2819 (WebCore::Cache::requestImage):
2820 (WebCore::Cache::requestStyleSheet):
2821 (WebCore::Cache::requestScript):
2822 (WebCore::Cache::requestXSLStyleSheet):
2823 (WebCore::Cache::requestXBLDocument):
2824 (WebCore::Cache::remove):
2825 (WebCore::Cache::get):
2826 Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
2828 * loader/DocLoader.cpp:
2829 (WebCore::DocLoader::needReload):
2830 * loader/DocLoader.h:
2831 Use a HashSet instead of DeprecatedStringList.
2834 Remove declarations that have no functions.
2836 * platform/SSLKeyGenerator.h:
2837 * platform/mac/SSLKeyGeneratorMac.mm:
2838 (WebCore::supportedKeySizes):
2839 (WebCore::signedPublicKeyAndChallengeString):
2840 Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
2843 2006-09-25 Dave Hyatt <hyatt@apple.com>
2845 Shunt the RenderTheme world transform adoption between
2846 Cairo and Windows into getWindowsContext and move the method
2847 out of GraphicsContextCairo and into GraphicsContextWin.
2850 * WebCore.vcproj/WebCore/WebCore.vcproj:
2851 * platform/cairo/GraphicsContextCairo.cpp:
2852 * platform/win/GraphicsContextWin.cpp: Added.
2853 (WebCore::GraphicsContext::getWindowsContext):
2854 (WebCore::GraphicsContext::releaseWindowsContext):
2855 * rendering/RenderThemeWin.cpp:
2856 (WebCore::prepareForDrawing):
2858 2006-09-24 Eric Seidel <eric@eseidel.com>
2862 <svg:a> cannot be styled with a:hover
2863 http://bugs.webkit.org/show_bug.cgi?id=11005
2865 Test: svg/hixie/cascade/002.xml
2867 * css/cssstyleselector.cpp:
2868 (WebCore::checkPseudoState):
2870 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
2874 Patch for http://bugs.webkit.org/show_bug.cgi?id=10882
2875 SVG needs Obj-C DOM bindings
2877 - Auto-generate the first 8 Objective-C SVG DOM bindings. The
2878 auto-generated classes are DOMSVGAngle, DOMSVGLength, DOMSVGLengthList,
2879 DOMSVGMatrix, DOMSVGPathSeg, DOMSVGPathSegList, DOMSVGTransform, and
2880 DOMSVGTransformList.
2882 * DerivedSources.make:
2883 * WebCore.xcodeproj/project.pbxproj:
2884 * bindings/objc/DOMInternal.h:
2885 * bindings/objc/DOMSVG.h: Added.
2886 * ksvg2/svg/SVGAngle.idl:
2887 * ksvg2/svg/SVGLength.idl:
2888 * ksvg2/svg/SVGLengthList.idl:
2889 * ksvg2/svg/SVGMatrix.idl:
2890 * ksvg2/svg/SVGPathSeg.idl:
2891 * ksvg2/svg/SVGPathSegList.idl:
2892 * ksvg2/svg/SVGTransform.idl:
2893 * ksvg2/svg/SVGTransformList.idl:
2895 2006-09-24 Rob Buis <buis@kde.org>
2897 Reviewed by eseidel.
2899 Fix for http://bugs.webkit.org/show_bug.cgi?id=6001
2900 WebKit does not handle fallback custom cursors
2901 Fix for http://bugs.webkit.org/show_bug.cgi?id=6002
2902 WebKit does not properly handle SVG <cursor> element
2904 Add support for svg cursor images. Also make sure hotspot
2905 settings are handled correctly. Add tests for handling of css3
2906 cursor syntax with hotspots in strict and quirks mode. Finally
2909 * WebCore.xcodeproj/project.pbxproj:
2910 * css/CSSComputedStyleDeclaration.cpp:
2911 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2912 * css/CSSCursorImageValue.cpp: Added.
2913 (WebCore::CSSCursorImageValue::CSSCursorImageValue):
2914 (WebCore::CSSCursorImageValue::~CSSCursorImageValue):
2915 * css/CSSCursorImageValue.h: Added.
2916 (WebCore::CSSCursorImageValue::hotspot):
2917 * css/cssparser.cpp:
2918 (WebCore::CSSParser::parseValue):
2919 * css/cssstyleselector.cpp:
2920 (WebCore::CSSStyleSelector::applyProperty):
2921 * ksvg2/svg/SVGCursorElement.cpp:
2922 * manual-tests/css3-cursor-fallback-quirks.html: Added.
2923 * manual-tests/css3-cursor-fallback-strict.html: Added.
2924 * manual-tests/cursorfallback.xml: Added.
2925 * page/FrameView.cpp:
2926 (WebCore::selectCursor):
2927 * platform/Cursor.h:
2928 * platform/mac/CursorMac.mm:
2929 (WebCore::createCustomCursor):
2930 (WebCore::Cursor::Cursor):
2931 * platform/qt/CursorQt.cpp:
2932 (WebCore::Cursor::Cursor):
2933 * rendering/RenderStyle.cpp:
2934 (WebCore::StyleInheritedData::StyleInheritedData):
2935 (WebCore::StyleInheritedData::operator==):
2936 (WebCore::RenderStyle::diff):
2937 (WebCore::RenderStyle::addCursor):
2938 (WebCore::RenderStyle::addSVGCursor):
2939 (WebCore::RenderStyle::setCursorList):
2940 (WebCore::RenderStyle::clearCursorList):
2941 * rendering/RenderStyle.h:
2942 (WebCore::CursorData::CursorData):
2943 (WebCore::CursorList::operator[]):
2944 (WebCore::CursorList::size):
2945 (WebCore::CursorList::append):
2946 (WebCore::RenderStyle::cursors):
2948 2006-09-24 Sam Weinig <sam.weinig@gmail.com>
2952 Patch for http://bugs.webkit.org/show_bug.cgi?id=11009
2953 Auto-generate the internal methods interfaces for the Objective-C bindings
2955 - Auto-generate the internal method declarations into their own files
2956 named in the form DOMFooBarInternal.h for class DOMFooBar.
2958 - Remove all use of DOM_cast from code.
2960 - Assorted cleanups.
2962 * WebCore.xcodeproj/project.pbxproj:
2963 * bindings/objc/DOM.mm:
2964 (-[DOMNode _initWithNode:WebCore::]):
2965 (-[DOMNode WebCore::]):
2966 (-[DOMRange dealloc]):
2967 (-[DOMRange finalize]):
2968 (-[DOMRange _initWithRange:WebCore::]):
2969 (-[DOMRange WebCore::]):
2970 (-[DOMNodeFilter _initWithNodeFilter:WebCore::]):
2971 (-[DOMNodeFilter WebCore::]):
2972 (-[DOMNodeFilter dealloc]):
2973 (-[DOMNodeFilter finalize]):
2974 (-[DOMNodeIterator _initWithNodeIterator:WebCore::filter:]):
2975 (-[DOMNodeIterator WebCore::]):
2976 (-[DOMTreeWalker _initWithTreeWalker:WebCore::filter:]):
2977 (-[DOMTreeWalker WebCore::]):
2978 * bindings/objc/DOMAbstractView.mm:
2979 (-[DOMAbstractView _initWithAbstractView:WebCore::]):
2980 * bindings/objc/DOMCSS.mm:
2981 (-[DOMStyleSheet _initWithStyleSheet:WebCore::]):
2982 (-[DOMCSSRule _initWithRule:WebCore::]):
2983 (-[DOMCSSValue _initWithValue:WebCore::]):
2984 * bindings/objc/DOMEvents.mm:
2985 (-[DOMEvent _initWithEvent:WebCore::]):
2986 * bindings/objc/DOMHTMLAppletElement.mm:
2987 (-[DOMHTMLAppletElement align]):
2988 (-[DOMHTMLAppletElement setAlign:]):
2989 (-[DOMHTMLAppletElement alt]):
2990 (-[DOMHTMLAppletElement setAlt:]):
2991 (-[DOMHTMLAppletElement archive]):
2992 (-[DOMHTMLAppletElement setArchive:]):
2993 (-[DOMHTMLAppletElement code]):
2994 (-[DOMHTMLAppletElement setCode:]):
2995 (-[DOMHTMLAppletElement codeBase]):
2996 (-[DOMHTMLAppletElement setCodeBase:]):
2997 (-[DOMHTMLAppletElement height]):
2998 (-[DOMHTMLAppletElement setHeight:]):
2999 (-[DOMHTMLAppletElement hspace]):
3000 (-[DOMHTMLAppletElement setHspace:]):
3001 (-[DOMHTMLAppletElement name]):
3002 (-[DOMHTMLAppletElement setName:]):
3003 (-[DOMHTMLAppletElement object]):
3004 (-[DOMHTMLAppletElement setObject:]):
3005 (-[DOMHTMLAppletElement vspace]):
3006 (-[DOMHTMLAppletElement setVspace:]):
3007 (-[DOMHTMLAppletElement width]):
3008 (-[DOMHTMLAppletElement setWidth:]):
3009 * bindings/objc/DOMInternal.h:
3013 * bindings/objc/DOMXPath.mm:
3014 (-[DOMNativeXPathNSResolver _initWithXPathNSResolver:WebCore::]):
3015 * bindings/scripts/CodeGeneratorObjC.pm:
3017 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3019 Reviewed by eseidel.
3021 Fix Qt/Linux build after Dave's Scrollbar changes.
3023 * platform/qt/PlatformScrollBar.h: (Somehow this contained the file twice! Removed one instance!)
3024 * platform/qt/TemporaryLinkStubs.cpp:
3025 (WebCore::ScrollBar::setProportion):
3026 (WebCore::PlatformScrollBar::updateThumbPosition):
3027 (WebCore::PlatformScrollBar::updateThumbProportion):
3029 2006-09-24 Nikolas Zimmermann <zimmermann@kde.org>
3031 Reviewed by eseidel.
3033 Qt/Linux build system changes: enable xpath/xslt by default.
3034 Offer possibility to change all of these using 'ccmake'.
3038 2006-09-24 Dave Hyatt <hyatt@apple.com>
3040 Cleanup of Scrollbar APIs. Rename setKnobProportion to setProportion. Rename setScrollbarValue to updateThumbPosition.
3041 Give setProportion a base class implementation and implement it using the same pattern as setValue/updateThumbPosition (so that
3042 the base calls a protected virtual function, updateThumbProportion, implemented by the derived class to update the actual scrollbar itself).
3044 * platform/ScrollBar.cpp:
3045 (WebCore::ScrollBar::setValue):
3046 (WebCore::ScrollBar::setProportion):
3047 * platform/ScrollBar.h:
3048 (WebCore::ScrollBar::value):
3049 * platform/mac/PlatformScrollBar.h:
3050 * platform/mac/PlatformScrollBarMac.mm:
3051 (WebCore::PlatformScrollBar::updateThumbPosition):
3052 (WebCore::PlatformScrollBar::updateThumbProportion):
3053 * platform/win/PlatformScrollBar.h:
3054 * platform/win/TemporaryLinkStubs.cpp:
3055 (PlatformScrollBar::updateThumbPosition):
3056 (PlatformScrollBar::updateThumbProportion):
3057 * rendering/RenderLayer.cpp:
3058 (WebCore::RenderLayer::updateScrollInfoAfterLayout):
3060 2006-09-23 Alexey Proskuryakov <ap@nypop.com>
3064 http://bugs.webkit.org/show_bug.cgi?id=4872
3065 XMLHttpRequest fails to throw an exception when there is a security violation
3066 (mismatching domains)
3068 Raise an exception if there is a security violation, and also in cases required by
3069 the current draft of XHR specification.
3071 * bindings/js/JSXMLHttpRequest.cpp:
3072 (KJS::JSXMLHttpRequest::getValueProperty): Raise an exception if a DOM method reports one.
3073 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction): Raise an exception if a DOM method
3074 reports one, and also if there were too few arguments passed.
3076 * bindings/js/kjs_binding.cpp:
3077 (KJS::setDOMException): Added support for custom XHR exceptions.
3079 * xml/xmlhttprequest.h: Changed state names to match the current spec. Defined an
3080 exception code range for XHR exceptions.
3082 * xml/xmlhttprequest.cpp:
3083 (WebCore::XMLHttpRequest::open): Removed a check for m_aborted that could never succeed.
3084 (WebCore::XMLHttpRequest::send):
3085 (WebCore::XMLHttpRequest::setRequestHeader):
3086 (WebCore::XMLHttpRequest::getStatus):
3087 (WebCore::XMLHttpRequest::getStatusText):
3088 (WebCore::XMLHttpRequest::processSyncLoadResults):
3089 (WebCore::XMLHttpRequest::receivedAllData):
3090 (WebCore::XMLHttpRequest::receivedData):
3092 2006-09-22 Steve Falkenburg <sfalken@apple.com>
3094 Reviewed by Jeff Jenkins.
3098 * platform/cf/ResourceLoaderCFNet.cpp:
3099 (WebCore::willCacheResponse):
3101 2006-09-22 Justin Garcia <justin.garcia@apple.com>
3105 <http://bugs.webkit.org/show_bug.cgi?id=8029>
3106 Rename Node::isAncestor and RenderObject::hasAncestor to isDescendantOf
3109 (WebCore::Document::clearSelectionIfNeeded):
3111 (WebCore::Element::contains):
3113 (WebCore::Node::traverseNextNode):
3114 (WebCore::Node::traverseNextSibling):
3115 (WebCore::Node::traversePreviousNodePostOrder):
3116 (WebCore::Node::checkAddChild):
3117 (WebCore::Node::isDescendantOf):
3119 * dom/NodeIterator.cpp:
3120 (WebCore::NodeIterator::notifyBeforeNodeRemoval):
3121 * editing/ApplyStyleCommand.cpp:
3122 (WebCore::ApplyStyleCommand::applyBlockStyle):
3123 (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
3124 (WebCore::ApplyStyleCommand::applyInlineStyle):
3125 (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode):
3126 * editing/CompositeEditCommand.cpp:
3127 (WebCore::CompositeEditCommand::mergeIdenticalElements):
3128 (WebCore::CompositeEditCommand::moveParagraphContentsToNewBlockIfNecessary):
3129 * editing/DeleteSelectionCommand.cpp:
3130 (WebCore::updatePositionForNodeRemoval):
3131 (WebCore::DeleteSelectionCommand::handleGeneralDelete):
3132 (WebCore::DeleteSelectionCommand::mergeParagraphs):
3133 * editing/FormatBlockCommand.cpp:
3134 (WebCore::FormatBlockCommand::doApply):
3135 * editing/IndentOutdentCommand.cpp:
3136 (WebCore::enclosingListOrBlockquote):
3137 * editing/Selection.cpp:
3138 (WebCore::Selection::validate):
3139 * editing/SelectionController.cpp:
3140 (WebCore::SelectionController::nodeWillBeRemoved):
3141 * editing/TextIterator.cpp:
3142 (WebCore::SimplifiedBackwardsTextIterator::advance):
3143 * editing/VisiblePosition.cpp:
3144 (WebCore::VisiblePosition::next):
3145 (WebCore::VisiblePosition::previous):
3146 (WebCore::VisiblePosition::canonicalPosition):
3147 (WebCore::isFirstVisiblePositionInNode):
3148 (WebCore::isLastVisiblePositionInNode):
3149 * editing/htmlediting.cpp:
3150 (WebCore::firstEditablePositionAfterPositionInRoot):
3151 (WebCore::lastEditablePositionBeforePositionInRoot):
3152 (WebCore::enclosingNodeWithTag):
3153 (WebCore::enclosingList):
3154 (WebCore::enclosingListChild):
3155 * editing/markup.cpp:
3156 (WebCore::createMarkup):
3158 2006-09-22 Timothy Hatcher <timothy@apple.com>
3162 - Added @property syntax to non-generated headers
3163 inside #ifndef BUILDING_ON_TIGER.
3164 - Changed the DOMEventTarget protocol to have have new versions
3165 of addEventListener and removeEventListener with named parameters.
3166 These old style methods can be removed once Mail changes to use
3167 the new methods <rdar://problem/4746649>.
3169 * WebCorePrefix.h: define BUILDING_ON_TIGER when Tiger is the target
3170 * bindings/objc/DOM.mm:
3171 (-[DOMNode addEventListener:listener:useCapture:]):
3172 (-[DOMNode addEventListener:::]): call the new method
3173 (-[DOMNode removeEventListener:listener:useCapture:]):
3174 (-[DOMNode removeEventListener:::]): call the new method
3175 * bindings/objc/DOMAbstractView.h:
3176 * bindings/objc/DOMEventTarget.h:
3177 * bindings/objc/DOMHTMLAppletElement.h:
3178 * bindings/objc/DOMHTMLEmbedElement.h:
3179 * bindings/objc/DOMHTMLOptionElement.h:
3180 * bindings/objc/DOMObject.h:
3181 * bindings/objc/DOMRGBColor.h:
3183 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3187 Fix Qt/Linux build and a really stupid mixup in GraphicsContextQt.
3189 * platform/qt/FrameQt.cpp:
3190 * platform/qt/GraphicsContextQt.cpp:
3191 (WebCore::GraphicsContext::translate): Make it actually translate, not scale! :-)
3192 (WebCore::GraphicsContext::origin):
3193 * platform/qt/PlatformScrollBar.h: Added.
3194 (WebCore::PlatformScrollBar::isWidget):
3195 * platform/qt/WidgetQt.cpp:
3196 (WebCore::Widget::invalidate):
3197 (WebCore::Widget::invalidateRect):
3199 2006-09-22 Dave Hyatt <hyatt@apple.com>
3201 Super-minor tweaks to the systemFont function on Mac.
3202 Set the generic family to None rather than to Serif, and
3203 don't waste time setting the computed size, since that is
3204 set from the specified size over in CSSStyleSelector anyway.
3206 * rendering/RenderThemeMac.mm:
3207 (WebCore::RenderThemeMac::systemFont):
3209 2006-09-22 Timothy Hatcher <timothy@apple.com>
3213 Build fix for Xcode 2.3. Convert GraphicsContext::translate() to
3214 take floats. There was already an implicit conversion to float/double
3215 when calling CGContextTranslateCTM or cairo_translate.
3217 * platform/GraphicsContext.h:
3218 * platform/cairo/GraphicsContextCairo.cpp:
3219 (WebCore::GraphicsContext::translate):
3220 * platform/cg/GraphicsContextCG.cpp:
3221 (WebCore::GraphicsContext::translate):
3223 2006-09-22 Brady Eidson <beidson@apple.com>
3227 Add redirect and other cleanup to ResourceLoaderWin.cpp
3228 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10927
3229 Fixes bug http://bugs.webkit.org/show_bug.cgi?id=10744
3231 * WebCore.xcodeproj/project.pbxproj:
3232 * platform/ResourceLoader.h:
3233 * platform/win/ResourceLoaderWin.cpp:
3234 (WebCore::ResourceLoaderWndProc):
3235 (WebCore::initializeOffScreenResourceLoaderWindow):
3236 (WebCore::ResourceLoader::onHandleCreated):
3237 (WebCore::ResourceLoader::onRequestRedirected):
3238 (WebCore::ResourceLoader::onRequestComplete):
3239 (WebCore::transferJobStatusCallback):
3241 2006-09-22 Alexey Proskuryakov <ap@nypop.com>
3245 http://bugs.webkit.org/show_bug.cgi?id=10803
3246 REGRESSION (r15536-r15544): manual-tests/bugzilla-6821.html failing
3248 * page/FrameView.cpp:
3249 (WebCore::FrameView::hoverTimerFired): Use the current event.
3251 2006-09-22 Nikolas Zimmermann <zimmermann@kde.org>
3255 Fix (last) svg memory leak.
3257 * ksvg2/svg/SVGTransformable.cpp: delete 't' in error case.
3258 (SVGTransformable::parseTransformAttribute):
3260 2006-09-22 Eric Seidel <eric@eseidel.com>
3262 No review necessary, just removing a dead file.
3264 Remove unused file (added previously by mistake) to make room for real implementation.
3266 * platform/mac/BitmapImageMac.mm: Removed.
3268 2006-09-22 Dave Hyatt <hyatt@apple.com>
3270 Move PlatformScrollBar.h down into the platforms.
3272 Reviewed by andersca
3274 * platform/PlatformScrollBar.h: Removed.
3275 * platform/win/PlatformScrollBar.h: Added.
3276 * platform/mac/PlatformScrollBar.h: Added.
3278 2006-09-22 Dave Hyatt <hyatt@apple.com>
3280 Add support for invalidation of widgets. This will be needed for the Win32 widget subsystem (and for
3281 any widget subsystems that don't have any underlying native objects backing the widgets.
3285 * platform/Widget.h:
3286 * platform/mac/WidgetMac.mm:
3287 (WebCore::Widget::invalidate):
3288 (WebCore::Widget::invalidateRect):
3289 * platform/win/TemporaryLinkStubs.cpp:
3290 (Widget::invalidate):
3291 (Widget::invalidateRect):
3293 2006-09-22 Rob Buis <buis@kd.org>
3295 Reviewed by eseidel.
3297 http://bugs.webkit.org/show_bug.cgi?id=10901
3298 Merge build fixes from unity
3302 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3304 Reviewed by eseidel.
3306 http://bugs.webkit.org/show_bug.cgi?id=10977
3307 SVGDocument does not expose 'rootElement' property
3309 Enable 'rootElement' property.
3311 * ksvg2/svg/SVGDocument.idl:
3313 2006-09-21 Steve Falkenburg <sfalken@apple.com>
3317 * platform/ResourceLoaderInternal.h:
3319 2006-09-21 Geoffrey Garen <ggaren@apple.com>
3321 build fixed. band happy.
3323 * platform/cg/GraphicsContextCG.cpp:
3324 (WebCore::GraphicsContext::translate):
3325 * platform/mac/WidgetMac.mm:
3327 2006-09-21 Geoffrey Garen <ggaren@apple.com>
3331 Some Widget refactoring.
3333 * WebCore.vcproj/WebCore/WebCore.vcproj:
3334 * bridge/mac/FrameMac.mm:
3335 * bridge/win/FrameWin.cpp:
3336 (WebCore::FrameWin::runJavaScriptAlert):
3337 (WebCore::FrameWin::runJavaScriptConfirm):
3338 * bridge/win/PageWin.cpp:
3339 (WebCore::Page::Page):
3340 (WebCore::rootWindowForFrame):
3341 * html/CanvasRenderingContext2D.cpp:
3342 (WebCore::CanvasRenderingContext2D::translate):
3343 * page/FrameView.cpp:
3344 (WebCore::FrameView::isFrameView):
3346 (WebCore::Page::setInstanceHandle):
3347 (WebCore::Page::instanceHandle):
3348 * platform/GraphicsContext.h:
3349 * platform/ScrollView.h:
3350 * platform/Widget.h:
3351 * platform/cairo/GraphicsContextCairo.cpp:
3352 (WebCore::GraphicsContext::translate):
3353 (WebCore::GraphicsContext::origin):
3354 * platform/mac/WidgetMac.mm:
3355 (WebCore::Widget::clearFocus):
3356 * platform/win/ResourceLoaderWin.cpp:
3357 (WebCore::initializeOffScreenResourceLoaderWindow):
3358 * platform/win/ScreenWin.cpp:
3359 (WebCore::monitorInfo):
3360 * platform/win/ScrollViewWin.cpp:
3361 (WebCore::ScrollView::updateContents):
3362 (WebCore::ScrollView::visibleWidth):
3363 (WebCore::ScrollView::visibleHeight):
3364 (WebCore::ScrollView::visibleContentRect):
3365 (WebCore::ScrollView::viewportToContents):
3366 (WebCore::ScrollView::contentsToViewport):
3367 (WebCore::ScrollView::scrollBy):
3368 (WebCore::ScrollView::updateScrollInfo):
3369 (WebCore::ScrollView::updateScrollBars):
3370 * platform/win/SharedTimerWin.cpp:
3371 (WebCore::initializeOffScreenTimerWindow):
3372 * platform/win/TemporaryLinkStubs.cpp:
3373 (FrameView::updateBorder):
3374 (ScrollView::paint):
3375 (GraphicsContext::clip):
3376 * platform/win/WidgetWin.cpp:
3377 (WebCore::Widget::Widget):
3378 (WebCore::Widget::parentWindow):
3379 (WebCore::Widget::setParentWindow):
3380 (WebCore::Widget::frameGeometry):
3381 (WebCore::Widget::hasFocus):
3382 (WebCore::Widget::setFocus):
3383 (WebCore::Widget::show):
3384 (WebCore::Widget::hide):
3385 (WebCore::Widget::setFrameGeometry):
3387 2006-09-22 Anders Carlsson <acarlsson@apple.com>
3391 * platform/TextEncoding.cpp:
3392 (WebCore::TextEncoding::backslashAsCurrencySymbol):
3393 Add comment clarifying why backslashAsCurrencySymbol is needed.
3395 2006-09-21 Sean Gies <seangies@apple.com>
3397 Reviewed by Adam Roben.
3399 Add utility functions to get and release HDC from GraphicsContext.
3401 * platform/GraphicsContext.h: Add utilities to get and release HDC.
3402 * platform/cairo/GraphicsContextCairo.cpp: Implement new utilities.
3403 * rendering/RenderThemeWin.cpp: Switch to new utilities.
3405 2006-09-21 Justin Garcia <justin.garcia@apple.com>
3409 <rdar://problem/4426622>
3410 Plain text paste slow. Time spent mostly in WebCore::rebalanceWhitespaceInTextNode(...)
3412 * editing/htmlediting.cpp:
3413 (WebCore::rebalanceWhitespaceInTextNode): We no longer need to use a RegExp replace because we
3414 aren't producing complicated sequences here. Use multiple UChar -> UChar replaces instead for speed.
3415 Got rid of uses of DepricatedString.
3417 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3419 Reviewed by eseidel.
3421 Don't crash if no IconDatabase is available (ie. on Qt/Gdk)
3424 (WebCore::Frame::endIfNotLoading):
3426 2006-09-21 Nikolas Zimmermann <zimmermann@kde.org>
3428 Reviewed by eseidel.
3433 * kcanvas/device/qt/KCanvasClipperQt.h:
3434 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
3435 * platform/qt/FrameQt.cpp:
3436 (WebCore::FrameQt::isLoadTypeReload):
3437 (WebCore::FrameQt::originalRequestURL):
3438 * platform/qt/FrameQt.h:
3439 * platform/qt/GraphicsContextQt.cpp:
3440 (WebCore::GraphicsContext::concatCTM):
3441 * platform/qt/ScrollViewQt.cpp:
3442 (WebCore::ScrollView::wheelEvent):
3443 * platform/qt/TemporaryLinkStubs.cpp:
3444 (WebCore::IconDatabase::setIconURLForPageURL):
3446 2006-09-20 Justin Garcia <justin.garcia@apple.com>
3450 <http://bugs.webkit.org/show_bug.cgi?id=7165>
3451 TinyMCE: Dragging & dropping content always leaves a copy when editing inside a subframe
3453 * editing/MoveSelectionCommand.cpp:
3454 (WebCore::MoveSelectionCommand::MoveSelectionCommand): Set the document
3455 to the position-to-move-to's document, not the fragment's document. The
3456 fragment's document is the document used to create the fragment and is irrelavant.
3458 === Safari-521.27 ===
3460 2006-09-21 Brady Eidson <beidson@apple.com>
3464 When your assumption is "IconDatabase::sharedIconDatabase()" will never fail but it does, you're in trouble
3465 This fixes Spinneret so it won't crash on its first load!
3468 (WebCore::Frame::endIfNotLoading):
3470 2006-09-21 Brady Eidson <beidson@apple.com>
3474 * platform/win/TemporaryLinkStubs.cpp:
3475 (ScrollView::wheelEvent):
3477 2006-09-20 Rob Buis <buis@kde.org>
3479 Reviewed by eseidel.
3481 http://bugs.webkit.org/show_bug.cgi?id=10946
3482 new marker code draws end-marker in wrong place
3484 Keep track of the start of the subpath so we can handle
3485 closeTo/moveTo correctly.
3487 * kcanvas/RenderPath.cpp:
3488 (WebCore::DrawMarkersData::DrawMarkersData):
3489 (WebCore::updateMarkerDataForElement):
3491 2006-09-21 David Hyatt <hyatt@apple.com>
3493 Wheel scrolling prep for Win32.
3495 WARNING: NO TEST CASES ADDED OR CHANGED
3497 * platform/PlatformWheelEvent.h:
3498 * platform/ScrollBar.h:
3499 * platform/ScrollView.h:
3500 * platform/mac/ScrollViewMac.mm:
3501 (WebCore::ScrollView::wheelEvent):
3502 * rendering/RenderLayer.cpp:
3504 2006-09-20 Timothy Hatcher <timothy@apple.com>
3508 Bug 10917: REGRESSION (r16027): iFrame transparency broken
3509 http://bugs.webkit.org/show_bug.cgi?id=10917
3511 Don't paint the base background color if we transparent.
3513 * rendering/RenderBox.cpp:
3514 (WebCore::RenderBox::paintBackgroundExtended):
3516 2006-09-20 Adam Roben <aroben@apple.com>
3518 Reviewed by andersca.
3520 * platform/FileChooser.h: Remove no-longer-necessary namespace std
3522 2006-09-20 Eric Seidel <eric@eseidel.com>
3526 Cleanup style in KCanvas.
3527 Remove extra white-space, unneeded arguments, etc.
3529 * WebCore.xcodeproj/project.pbxproj:
3530 * kcanvas/KCanvasClipper.cpp:
3531 (WebCore::operator<<):
3532 (WebCore::KCanvasClipper::externalRepresentation):
3533 * kcanvas/KCanvasClipper.h:
3534 * kcanvas/KCanvasFilters.cpp:
3535 (WebCore::KCanvasFilter::externalRepresentation):
3536 (WebCore::operator<<):
3537 (WebCore::KCanvasFilterEffect::externalRepresentation):
3538 (WebCore::KCPointLightSource::externalRepresentation):
3539 (WebCore::KCSpotLightSource::externalRepresentation):
3540 (WebCore::KCDistantLightSource::externalRepresentation):
3541 (WebCore::KCanvasFEBlend::externalRepresentation):
3542 (WebCore::KCanvasFEColorMatrix::externalRepresentation):
3543 (WebCore::KCanvasFEComponentTransfer::externalRepresentation):
3544 (WebCore::KCanvasFEComposite::externalRepresentation):
3545 (WebCore::KCanvasFEConvolveMatrix::externalRepresentation):
3546 (WebCore::KCanvasFEDiffuseLighting::externalRepresentation):
3547 (WebCore::KCanvasFEDisplacementMap::externalRepresentation):
3548 (WebCore::KCanvasFEFlood::externalRepresentation):
3549 (WebCore::KCanvasFEGaussianBlur::externalRepresentation):
3550 (WebCore::KCanvasFEImage::externalRepresentation):
3551 (WebCore::KCanvasFEMerge::externalRepresentation):
3552 (WebCore::KCanvasFEMorphology::externalRepresentation):
3553 (WebCore::KCanvasFEOffset::externalRepresentation):
3554 (WebCore::KCanvasFESpecularLighting::externalRepresentation):
3555 (WebCore::KCanvasFETile::externalRepresentation):
3556 (WebCore::KCanvasFETurbulence::externalRepresentation):
3557 * kcanvas/KCanvasFilters.h:
3558 (WebCore::KCanvasFEDiffuseLighting::lightSource):
3559 (WebCore::KCanvasFESpecularLighting::lightSource):
3560 * kcanvas/KCanvasImage.h:
3561 * kcanvas/KCanvasMarker.cpp:
3562 (WebCore::KCanvasMarker::externalRepresentation):
3563 * kcanvas/KCanvasMarker.h:
3564 * kcanvas/KCanvasResource.cpp:
3565 (WebCore::operator<<):
3566 * kcanvas/KCanvasResource.h:
3567 * kcanvas/KCanvasTreeDebug.cpp:
3568 (WebCore::operator<<):
3569 (WebCore::writeIndent):
3570 (WebCore::writeStyle):
3572 (WebCore::writeRenderResources):
3573 * kcanvas/KCanvasTreeDebug.h:
3574 (WebCore::operator<<):
3575 * kcanvas/RenderForeignObject.cpp:
3576 (WebCore::RenderForeignObject::paint):
3577 * kcanvas/RenderPath.cpp:
3578 (WebCore::RenderPath::paint):
3579 (WebCore::drawStartAndMidMarkers):
3580 * kcanvas/RenderSVGContainer.cpp:
3581 (WebCore::RenderSVGContainer::paint):
3582 * kcanvas/RenderSVGImage.cpp:
3583 (WebCore::RenderSVGImage::translateForAttributes):
3584 * kcanvas/RenderSVGImage.h:
3585 * kcanvas/device/KRenderingDevice.cpp:
3586 (WebCore::KRenderingDevice::currentContext):
3587 (WebCore::KRenderingDevice::popContext):
3588 (WebCore::KRenderingDevice::pushContext):
3589 * kcanvas/device/KRenderingDevice.h:
3590 * kcanvas/device/KRenderingFillPainter.h:
3591 * kcanvas/device/KRenderingPaintServer.h:
3592 (WebCore::KRenderingPaintServer::KRenderingPaintServer):
3593 (WebCore::KRenderingPaintServer::activeClient):
3594 (WebCore::KRenderingPaintServer::setActiveClient):
3595 * kcanvas/device/KRenderingPaintServerGradient.cpp:
3596 (WebCore::operator<<):
3597 (WebCore::KRenderingPaintServerGradient::externalRepresentation):
3598 (WebCore::KRenderingPaintServerLinearGradient::externalRepresentation):
3599 (WebCore::KRenderingPaintServerGradient::listener):
3600 (WebCore::KRenderingPaintServerGradient::setListener):
3601 (WebCore::KRenderingPaintServerRadialGradient::externalRepresentation):
3602 * kcanvas/device/KRenderingPaintServerGradient.h:
3603 * kcanvas/device/KRenderingPaintServerPattern.cpp:
3604 (WebCore::KRenderingPaintServerPattern::tile):
3605 (WebCore::KRenderingPaintServerPattern::setTile):
3606 (WebCore::KRenderingPaintServerPattern::listener):
3607 (WebCore::KRenderingPaintServerPattern::setListener):
3608 (WebCore::KRenderingPaintServerPattern::externalRepresentation):
3609 * kcanvas/device/KRenderingPaintServerPattern.h:
3610 * kcanvas/device/KRenderingPaintServerSolid.cpp:
3611 (WebCore::KRenderingPaintServerSolid::externalRepresentation):
3612 * kcanvas/device/KRenderingPaintServerSolid.h:
3613 * kcanvas/device/KRenderingStrokePainter.cpp:
3614 (WebCore::KRenderingStrokePainter::strokeMiterLimit):
3615 (WebCore::KRenderingStrokePainter::setStrokeMiterLimit):
3616 * kcanvas/device/KRenderingStrokePainter.h:
3617 * kcanvas/device/quartz/KCanvasFilterQuartz.h:
3618 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
3619 (WebCore::KCanvasFilterQuartz::prepareFilter):
3620 * kcanvas/device/quartz/KCanvasItemQuartz.h: Removed.
3621 * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
3622 (WebCore::KCanvasMaskerQuartz::applyMask):
3623 * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
3624 (WebCore::KCanvasImageQuartz::init):
3625 * kcanvas/device/quartz/KCanvasResourcesQuartz.mm: