1 2006-11-21 Alex Taylor <darwin@techvisual.co.nz>
5 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11587
7 Adds calculations for bottom right radius's position
8 which was being drawn incorrectly.
10 * rendering/RenderObject.cpp:
11 (WebCore::RenderObject::paintBorder):
13 2006-11-20 Rob Buis <buis@kde.org>
17 http://bugs.webkit.org/show_bug.cgi?id=11519
18 REGRESSION: Disabled file upload control doesn't have disabled appearance, failing fast/forms/file-input-disabled.html
20 Transport disabled state from DOM element to the shadow
23 * rendering/RenderFileUploadControl.cpp:
24 (WebCore::RenderFileUploadControl::updateFromElement):
25 * rendering/RenderTheme.h:
27 2006-11-20 Anders Carlsson <acarlsson@apple.com>
31 * loader/TextResourceDecoder.cpp:
32 (WebCore::findXMLEncoding):
33 Use CString instead of DeprecatedCString.
35 * platform/CString.cpp:
36 (WebCore::CString::find):
38 (WebCore::CString::data):
39 Add find method, make data method inline.
41 * platform/TextStream.cpp:
42 * platform/TextStream.h:
43 Remove DeprecatedCString functions.
45 2006-11-20 Anders Carlsson <acarlsson@apple.com>
49 Use CString instead of DeprecatedCString.
51 * html/FormDataList.cpp:
52 (WebCore::FormDataList::appendString):
53 (WebCore::fixLineBreaks):
54 (WebCore::FormDataList::appendFile):
56 2006-11-20 Samuel Weinig <sam@webkit.org>
60 Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
63 * WebCore.vcproj/WebCore/WebCore.vcproj:
64 * bridge/win/ContextMenuClientWin.h:
65 * bridge/win/EditorClientWin.h:
66 * bridge/win/FrameWin.h:
67 * platform/win/TemporaryLinkStubs.cpp:
68 (WebCore::ContextMenu::show):
69 (WebCore::ContextMenuClientWin::copyLinkToClipboard):
70 (WebCore::ContextMenuClientWin::downloadURL):
71 (WebCore::ContextMenuClientWin::copyImageToClipboard):
72 (WebCore::ContextMenuClientWin::lookUpInDictionary):
73 (WebCore::EditorClientWin::shouldInsertText):
74 (WebCore::FrameLoader::reload):
75 (WebCore::FrameWin::ignoreSpelling):
76 (WebCore::FrameWin::learnSpelling):
78 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
82 http://bugs.webkit.org/show_bug.cgi?id=10736
83 XMLHttpRequest.responseXML should be null on error
85 * dom/XMLTokenizer.cpp:
86 (WebCore::XMLTokenizer::wellFormed):
88 (WebCore::Tokenizer::wellFormed):
90 (WebCore::Document::Document):
91 (WebCore::Document::implicitClose):
93 (WebCore::Document::wellFormed):
94 Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
96 * xml/xmlhttprequest.cpp:
97 (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
99 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
101 Reviewed by Sam Weinig.
103 http://bugs.webkit.org/show_bug.cgi?id=11633
104 Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
107 (WebCore::Document::Document):
108 (WebCore::Document::setXMLVersion):
109 (WebCore::Document::setXMLStandalone):
111 (WebCore::Document::xmlEncoding):
112 (WebCore::Document::xmlVersion):
113 (WebCore::Document::xmlStandalone):
114 (WebCore::Document::setXMLEncoding):
116 * dom/XMLTokenizer.cpp:
117 (WebCore::XMLTokenizer::startDocument):
118 (WebCore::startDocumentHandler):
119 (WebCore::XMLTokenizer::initializeParserContext):
120 Added support for these properties, getting them from an libxml2 context.
122 * html/HTMLDocument.cpp:
123 (WebCore::HTMLDocument::HTMLDocument):
124 HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
126 * bindings/scripts/CodeGeneratorJS.pm:
127 * bindings/scripts/CodeGeneratorObjC.pm:
128 Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
130 2006-11-20 Nikolas Zimmermann <zimmermann@kde.org>
136 * platform/qt/ContextMenuClientQt.cpp:
137 (WebCore::ContextMenuClientQt::ref):
138 (WebCore::ContextMenuClientQt::deref):
139 (WebCore::ContextMenuClientQt::copyLinkToClipboard):
140 (WebCore::ContextMenuClientQt::downloadURL):
141 (WebCore::ContextMenuClientQt::copyImageToClipboard):
142 (WebCore::ContextMenuClientQt::lookUpInDictionary):
143 * platform/qt/ContextMenuClientQt.h:
144 * platform/qt/ContextMenuQt.cpp:
145 (WebCore::ContextMenu::appendItem):
146 (WebCore::ContextMenu::show):
147 (WebCore::ContextMenu::itemCount):
148 (WebCore::ContextMenu::insertItem):
149 * platform/qt/EditorClientQt.cpp:
150 (WebCore::EditorClientQt::shouldInsertText):
151 * platform/qt/EditorClientQt.h:
152 * platform/qt/FrameQt.cpp:
153 (WebCore::FrameQt::ignoreSpelling):
154 (WebCore::FrameQt::learnSpelling):
155 * platform/qt/FrameQt.h:
156 * platform/qt/TemporaryLinkStubs.cpp:
157 (FrameLoader::reload):
159 2006-11-20 Samuel Weinig <sam@webkit.org>
163 Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
166 * config.h: add #define NOMINMAX for windows build
167 * platform/win/FontCacheWin.cpp:
168 (WebCore::FontCache::createFontPlatformData):
169 * platform/win/TemporaryLinkStubs.cpp: add definitions for
171 (WebCore::aliasCursor):
172 (WebCore::noDropCursor):
173 (WebCore::progressCursor):
175 2006-11-19 Beth Dakin <bdakin@apple.com>
179 Implementation of actions for the new context menus.
182 * WebCore.xcodeproj/project.pbxproj:
183 * bridge/EditorClient.h: Declaration of shouldInsertText.
184 * bridge/mac/FrameMac.h: Two new spelling functions.
185 * bridge/mac/FrameMac.mm:
186 (WebCore::FrameMac::ignoreSpelling):
187 (WebCore::FrameMac::learnSpelling):
188 * editing/Editor.cpp:
189 (WebCore::Editor::shouldInsertText): Call into the client.
191 * editing/EditorInsertAction.h: Added.
192 (WebCore::): The WebCore equivalent of WebViewInsertAction. This is
193 defined in its own header so that we can use it from Editor.h and
194 EditorClient.h without having one of the above include the other.
195 * page/ContextMenuClient.h: A few currently WebKit-implemented
196 function needed for menu actions.
197 * page/ContextMenuController.cpp:
198 (WebCore::makeGoogleSearchURL):
199 (WebCore::ContextMenuController::contextMenuActionSelected): The
201 * page/ContextMenuController.h:
202 * page/Frame.h: New pure-virtual spelling functions.
203 * platform/ContextMenu.cpp:
204 (WebCore::ContextMenu::controller): Get the controller from the
206 * platform/ContextMenu.h:
207 * platform/mac/ContextMenuMac.mm:
209 forwardContextMenuAction:initWithContextMenuController:WebCore::]):
210 Use the controller instead of the menu
211 (-[MenuTarget WebCore::]):
212 (-[MenuTarget setMenuController:WebCore::]):
213 (-[MenuTarget forwardContextMenuAction:]):
218 2006-11-19 Simon Hausmann <hausmann@kde.org>
222 http://bugs.webkit.org/show_bug.cgi?id=11649
223 Fix CMake files for Qt-only build without KDE cmake files.
224 Fix Qt/KDE build for the SVG support.
225 Fix Qt-only build in the resource handler.
228 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
229 (WebCore::SVGResourceFilter::SVGResourceFilter):
230 (WebCore::SVGResourceFilter::~SVGResourceFilter):
231 (WebCore::SVGResourceFilter::prepareFilter):
232 (WebCore::SVGResourceFilter::applyFilter):
233 * platform/network/qt/ResourceHandleManager.cpp:
234 (WebCore::ResourceHandleManager::cancel):
235 (WebCore::ResourceHandleManager::slotData):
236 (WebCore::ResourceHandleManager::slotMimetype):
237 (WebCore::ResourceHandleManager::slotResult):
238 (WebCore::ResourceHandleManager::deliverJobData):
239 * platform/network/qt/ResourceHandleManager.h:
240 * platform/network/qt/ResourceHandleQt.cpp:
241 * platform/qt/CursorQt.cpp:
242 (WebCore::noDropCursor):
243 (WebCore::progressCursor):
244 (WebCore::aliasCursor):
246 2006-11-19 Mitz Pettel <mitz@webkit.org>
250 - http://bugs.webkit.org/show_bug.cgi?id=11626
251 Automate test for rdar://problem/4056100
253 * manual-tests/delete-into-nested-block.html: Removed.
255 2006-11-19 Nikolas Zimmermann <zimmermann@kde.org>
259 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
261 Split up KCanvasFilters & KCanvasFilterQuartz into several
262 new classes (SVGFEBlend, SVGFEComposite...) and move them
263 into platform/graphics/svg. This is still a temporary location,
264 as discussed with Darin; the whole platform/graphics/svg directory
265 will probably be moved into ksvg2/ in near future.
267 This finally removes the duplicated enumerations in the svg filter
268 classes and within kcanvas. ksvg2/ and platform/graphics/svg share
269 their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
273 * WebCore.xcodeproj/project.pbxproj:
274 * bindings/scripts/CodeGeneratorJS.pm:
275 * kcanvas/KCanvasFilters.cpp: Removed.
276 * kcanvas/KCanvasFilters.h: Removed.
277 * kcanvas/device/KRenderingDevice.h:
278 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
279 (WebCore::KRenderingDeviceQt::createFilterEffect):
280 * kcanvas/device/qt/KRenderingDeviceQt.h:
281 * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
282 * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
283 * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
284 * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
285 (WebCore::KRenderingDeviceQuartz::createResource):
286 (WebCore::KRenderingDeviceQuartz::createFilterEffect):
287 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
288 * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
289 * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
290 * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
291 * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
292 * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
293 * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
294 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
295 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
296 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
297 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
298 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
299 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
300 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
301 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
302 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
303 * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
304 * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
305 * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
306 * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
307 * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
308 * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
309 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
310 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
311 * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
312 * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
313 * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
314 * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
315 * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
316 * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
317 * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
318 * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
319 * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
320 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
321 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
322 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
323 * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
324 * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
325 * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
326 * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
327 * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
328 * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
329 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
330 (WebCore::SVGComponentTransferFunctionElement::transferFunction):
331 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
332 * ksvg2/svg/SVGFEBlendElement.cpp:
333 (WebCore::SVGFEBlendElement::filterEffect):
334 * ksvg2/svg/SVGFEBlendElement.h:
335 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
336 (WebCore::SVGFEColorMatrixElement::filterEffect):
337 * ksvg2/svg/SVGFEColorMatrixElement.h:
338 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
339 (WebCore::SVGFEComponentTransferElement::filterEffect):
340 * ksvg2/svg/SVGFEComponentTransferElement.h:
341 * ksvg2/svg/SVGFECompositeElement.cpp:
342 (WebCore::SVGFECompositeElement::filterEffect):
343 * ksvg2/svg/SVGFECompositeElement.h:
344 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
345 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
346 (WebCore::SVGFEDiffuseLightingElement::updateLights):
347 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
348 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
349 (WebCore::SVGFEDisplacementMapElement::stringToChannel):
350 (WebCore::SVGFEDisplacementMapElement::filterEffect):
351 * ksvg2/svg/SVGFEDisplacementMapElement.h:
352 * ksvg2/svg/SVGFEDistantLightElement.cpp:
353 (WebCore::SVGFEDistantLightElement::lightSource):
354 * ksvg2/svg/SVGFEDistantLightElement.h:
355 * ksvg2/svg/SVGFEFloodElement.cpp:
356 (WebCore::SVGFEFloodElement::filterEffect):
357 * ksvg2/svg/SVGFEFloodElement.h:
358 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
359 (WebCore::SVGFEGaussianBlurElement::filterEffect):
360 * ksvg2/svg/SVGFEGaussianBlurElement.h:
361 * ksvg2/svg/SVGFEImageElement.cpp:
362 (WebCore::SVGFEImageElement::filterEffect):
363 * ksvg2/svg/SVGFEImageElement.h:
364 * ksvg2/svg/SVGFELightElement.h:
365 * ksvg2/svg/SVGFEMergeElement.cpp:
366 (WebCore::SVGFEMergeElement::filterEffect):
367 * ksvg2/svg/SVGFEMergeElement.h:
368 * ksvg2/svg/SVGFEOffsetElement.cpp:
369 (WebCore::SVGFEOffsetElement::filterEffect):
370 * ksvg2/svg/SVGFEOffsetElement.h:
371 * ksvg2/svg/SVGFEPointLightElement.cpp:
372 (WebCore::SVGFEPointLightElement::lightSource):
373 * ksvg2/svg/SVGFEPointLightElement.h:
374 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
375 (WebCore::SVGFESpecularLightingElement::filterEffect):
376 (WebCore::SVGFESpecularLightingElement::updateLights):
377 * ksvg2/svg/SVGFESpecularLightingElement.h:
378 * ksvg2/svg/SVGFESpotLightElement.cpp:
379 (WebCore::SVGFESpotLightElement::lightSource):
380 * ksvg2/svg/SVGFESpotLightElement.h:
381 * ksvg2/svg/SVGFETileElement.cpp:
382 (WebCore::SVGFETileElement::filterEffect):
383 * ksvg2/svg/SVGFETileElement.h:
384 * ksvg2/svg/SVGFETurbulenceElement.cpp:
385 (WebCore::SVGFETurbulenceElement::filterEffect):
386 * ksvg2/svg/SVGFETurbulenceElement.h:
388 * ksvg2/svg/SVGFilterElement.cpp:
389 (WebCore::SVGFilterElement::canvasResource):
390 * ksvg2/svg/SVGFilterElement.h:
391 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
392 (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
393 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
394 * platform/graphics/FloatPoint3D.cpp: Added.
395 (WebCore::FloatPoint3D::FloatPoint3D):
396 (WebCore::FloatPoint3D::x):
397 (WebCore::FloatPoint3D::setX):
398 (WebCore::FloatPoint3D::y):
399 (WebCore::FloatPoint3D::setY):
400 (WebCore::FloatPoint3D::z):
401 (WebCore::FloatPoint3D::setZ):
402 (WebCore::FloatPoint3D::normalize):
403 * platform/graphics/FloatPoint3D.h: Added.
404 * platform/graphics/svg/SVGResourceFilter.cpp: Added.
405 (WebCore::SVGResourceFilter::clearEffects):
406 (WebCore::SVGResourceFilter::addFilterEffect):
407 (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
408 (WebCore::SVGResourceFilter::externalRepresentation):
409 (WebCore::getFilterById):
410 * platform/graphics/svg/SVGResourceFilter.h: Added.
411 (WebCore::SVGResourceFilter::isFilter):
412 (WebCore::SVGResourceFilter::filterBoundingBoxMode):
413 (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
414 (WebCore::SVGResourceFilter::effectBoundingBoxMode):
415 (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
416 (WebCore::SVGResourceFilter::filterRect):
417 (WebCore::SVGResourceFilter::setFilterRect):
418 * platform/graphics/svg/SVGResourceImage.h:
419 * platform/graphics/svg/SVGResourceListener.h:
420 (SVGResourceListener::SVGResourceListener):
421 (SVGResourceListener::~SVGResourceListener):
422 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
423 * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
424 (WebCore::SVGResourceFilter::SVGResourceFilter):
425 (WebCore::SVGResourceFilter::~SVGResourceFilter):
426 (WebCore::SVGResourceFilter::prepareFilter):
427 (WebCore::SVGResourceFilter::applyFilter):
428 (WebCore::SVGResourceFilter::getCIFilterStack):
429 (WebCore::SVGResourceFilter::imageForName):
430 (WebCore::SVGResourceFilter::setImageForName):
431 (WebCore::SVGResourceFilter::setOutputImage):
432 (WebCore::alphaImageForImage):
433 (WebCore::SVGResourceFilter::inputImage):
434 * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
435 * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
436 * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
437 (WebCore::SVGDistantLightSource::SVGDistantLightSource):
438 (WebCore::SVGDistantLightSource::azimuth):
439 (WebCore::SVGDistantLightSource::elevation):
440 * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
441 (WebCore::SVGFEBlend::in2):
442 (WebCore::SVGFEBlend::setIn2):
443 (WebCore::SVGFEBlend::blendMode):
444 (WebCore::SVGFEBlend::setBlendMode):
445 (WebCore::operator<<):
446 (WebCore::SVGFEBlend::externalRepresentation):
447 * platform/graphics/svg/filters/SVGFEBlend.h: Added.
449 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
450 (WebCore::SVGFEColorMatrix::type):
451 (WebCore::SVGFEColorMatrix::setType):
452 (WebCore::SVGFEColorMatrix::values):
453 (WebCore::SVGFEColorMatrix::setValues):
454 (WebCore::operator<<):
455 (WebCore::SVGFEColorMatrix::externalRepresentation):
456 * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
458 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
459 (WebCore::SVGFEComponentTransfer::redFunction):
460 (WebCore::SVGFEComponentTransfer::setRedFunction):
461 (WebCore::SVGFEComponentTransfer::greenFunction):
462 (WebCore::SVGFEComponentTransfer::setGreenFunction):
463 (WebCore::SVGFEComponentTransfer::blueFunction):
464 (WebCore::SVGFEComponentTransfer::setBlueFunction):
465 (WebCore::SVGFEComponentTransfer::alphaFunction):
466 (WebCore::SVGFEComponentTransfer::setAlphaFunction):
467 (WebCore::operator<<):
468 (WebCore::SVGFEComponentTransfer::externalRepresentation):
469 * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
471 (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
472 * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
473 (WebCore::SVGFEComposite::in2):
474 (WebCore::SVGFEComposite::setIn2):
475 (WebCore::SVGFEComposite::operation):
476 (WebCore::SVGFEComposite::setOperation):
477 (WebCore::SVGFEComposite::k1):
478 (WebCore::SVGFEComposite::setK1):
479 (WebCore::SVGFEComposite::k2):
480 (WebCore::SVGFEComposite::setK2):
481 (WebCore::SVGFEComposite::k3):
482 (WebCore::SVGFEComposite::setK3):
483 (WebCore::SVGFEComposite::k4):
484 (WebCore::SVGFEComposite::setK4):
485 (WebCore::SVGFEComposite::externalRepresentation):
486 * platform/graphics/svg/filters/SVGFEComposite.h: Added.
488 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
489 (WebCore::SVGFEConvolveMatrix::kernelSize):
490 (WebCore::SVGFEConvolveMatrix::setKernelSize):
491 (WebCore::SVGFEConvolveMatrix::kernel):
492 (WebCore::SVGFEConvolveMatrix::setKernel):
493 (WebCore::SVGFEConvolveMatrix::divisor):
494 (WebCore::SVGFEConvolveMatrix::setDivisor):
495 (WebCore::SVGFEConvolveMatrix::bias):
496 (WebCore::SVGFEConvolveMatrix::setBias):
497 (WebCore::SVGFEConvolveMatrix::targetOffset):
498 (WebCore::SVGFEConvolveMatrix::setTargetOffset):
499 (WebCore::SVGFEConvolveMatrix::edgeMode):
500 (WebCore::SVGFEConvolveMatrix::setEdgeMode):
501 (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
502 (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
503 (WebCore::SVGFEConvolveMatrix::preserveAlpha):
504 (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
505 (WebCore::operator<<):
506 (WebCore::SVGFEConvolveMatrix::externalRepresentation):
507 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
509 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
510 (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
511 (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
512 (WebCore::SVGFEDiffuseLighting::lightingColor):
513 (WebCore::SVGFEDiffuseLighting::setLightingColor):
514 (WebCore::SVGFEDiffuseLighting::surfaceScale):
515 (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
516 (WebCore::SVGFEDiffuseLighting::diffuseConstant):
517 (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
518 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
519 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
520 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
521 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
522 (WebCore::SVGFEDiffuseLighting::lightSource):
523 (WebCore::SVGFEDiffuseLighting::setLightSource):
524 (WebCore::SVGFEDiffuseLighting::externalRepresentation):
525 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
526 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
527 (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
528 (WebCore::SVGFEDisplacementMap::in2):
529 (WebCore::SVGFEDisplacementMap::setIn2):
530 (WebCore::SVGFEDisplacementMap::xChannelSelector):
531 (WebCore::SVGFEDisplacementMap::setXChannelSelector):
532 (WebCore::SVGFEDisplacementMap::yChannelSelector):
533 (WebCore::SVGFEDisplacementMap::setYChannelSelector):
534 (WebCore::SVGFEDisplacementMap::scale):
535 (WebCore::SVGFEDisplacementMap::setScale):
536 (WebCore::operator<<):
537 (WebCore::SVGFEDisplacementMap::externalRepresentation):
538 * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
540 * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
541 (WebCore::SVGFEFlood::floodColor):
542 (WebCore::SVGFEFlood::setFloodColor):
543 (WebCore::SVGFEFlood::floodOpacity):
544 (WebCore::SVGFEFlood::setFloodOpacity):
545 (WebCore::SVGFEFlood::externalRepresentation):
546 * platform/graphics/svg/filters/SVGFEFlood.h: Added.
547 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
548 (WebCore::SVGFEGaussianBlur::stdDeviationX):
549 (WebCore::SVGFEGaussianBlur::setStdDeviationX):
550 (WebCore::SVGFEGaussianBlur::stdDeviationY):
551 (WebCore::SVGFEGaussianBlur::setStdDeviationY):
552 (WebCore::SVGFEGaussianBlur::externalRepresentation):
553 * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
554 * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
555 (WebCore::SVGFEImage::SVGFEImage):
556 (WebCore::SVGFEImage::~SVGFEImage):
557 (WebCore::SVGFEImage::cachedImage):
558 (WebCore::SVGFEImage::setCachedImage):
559 (WebCore::SVGFEImage::externalRepresentation):
560 * platform/graphics/svg/filters/SVGFEImage.h: Added.
561 * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
562 (WebCore::SVGFEMerge::mergeInputs):
563 (WebCore::SVGFEMerge::setMergeInputs):
564 (WebCore::SVGFEMerge::externalRepresentation):
565 * platform/graphics/svg/filters/SVGFEMerge.h: Added.
566 * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
567 (WebCore::SVGFEMorphology::morphologyOperator):
568 (WebCore::SVGFEMorphology::setMorphologyOperator):
569 (WebCore::SVGFEMorphology::radiusX):
570 (WebCore::SVGFEMorphology::setRadiusX):
571 (WebCore::SVGFEMorphology::radiusY):
572 (WebCore::SVGFEMorphology::setRadiusY):
573 (WebCore::operator<<):
574 (WebCore::SVGFEMorphology::externalRepresentation):
575 * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
577 * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
578 (WebCore::SVGFEOffset::dx):
579 (WebCore::SVGFEOffset::setDx):
580 (WebCore::SVGFEOffset::dy):
581 (WebCore::SVGFEOffset::setDy):
582 (WebCore::SVGFEOffset::externalRepresentation):
583 * platform/graphics/svg/filters/SVGFEOffset.h: Added.
584 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
585 (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
586 (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
587 (WebCore::SVGFESpecularLighting::lightingColor):
588 (WebCore::SVGFESpecularLighting::setLightingColor):
589 (WebCore::SVGFESpecularLighting::surfaceScale):
590 (WebCore::SVGFESpecularLighting::setSurfaceScale):
591 (WebCore::SVGFESpecularLighting::specularConstant):
592 (WebCore::SVGFESpecularLighting::setSpecularConstant):
593 (WebCore::SVGFESpecularLighting::specularExponent):
594 (WebCore::SVGFESpecularLighting::setSpecularExponent):
595 (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
596 (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
597 (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
598 (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
599 (WebCore::SVGFESpecularLighting::lightSource):
600 (WebCore::SVGFESpecularLighting::setLightSource):
601 (WebCore::SVGFESpecularLighting::externalRepresentation):
602 * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
603 * platform/graphics/svg/filters/SVGFETile.h: Added.
604 * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
605 (WebCore::SVGFETurbulence::type):
606 (WebCore::SVGFETurbulence::setType):
607 (WebCore::SVGFETurbulence::baseFrequencyY):
608 (WebCore::SVGFETurbulence::setBaseFrequencyY):
609 (WebCore::SVGFETurbulence::baseFrequencyX):
610 (WebCore::SVGFETurbulence::setBaseFrequencyX):
611 (WebCore::SVGFETurbulence::seed):
612 (WebCore::SVGFETurbulence::setSeed):
613 (WebCore::SVGFETurbulence::numOctaves):
614 (WebCore::SVGFETurbulence::setNumOctaves):
615 (WebCore::SVGFETurbulence::stitchTiles):
616 (WebCore::SVGFETurbulence::setStitchTiles):
617 (WebCore::operator<<):
618 (WebCore::SVGFETurbulence::externalRepresentation):
619 * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
621 * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
622 (WebCore::SVGFilterEffect::subRegion):
623 (WebCore::SVGFilterEffect::setSubRegion):
624 (WebCore::SVGFilterEffect::in):
625 (WebCore::SVGFilterEffect::setIn):
626 (WebCore::SVGFilterEffect::result):
627 (WebCore::SVGFilterEffect::setResult):
628 (WebCore::SVGFilterEffect::externalRepresentation):
629 (WebCore::operator<<):
630 * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
632 (WebCore::SVGFilterEffect::SVGFilterEffect):
633 (WebCore::SVGFilterEffect::~SVGFilterEffect):
634 (WebCore::SVGFilterEffect::effectType):
635 * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
636 (WebCore::operator<<):
637 (WebCore::SVGPointLightSource::externalRepresentation):
638 (WebCore::SVGSpotLightSource::externalRepresentation):
639 (WebCore::SVGDistantLightSource::externalRepresentation):
640 * platform/graphics/svg/filters/SVGLightSource.h: Added.
642 (WebCore::SVGLightSource::SVGLightSource):
643 (WebCore::SVGLightSource::~SVGLightSource):
644 (WebCore::SVGLightSource::type):
645 * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
646 (WebCore::SVGPointLightSource::SVGPointLightSource):
647 (WebCore::SVGPointLightSource::position):
648 * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
649 (WebCore::SVGSpotLightSource::SVGSpotLightSource):
650 (WebCore::SVGSpotLightSource::position):
651 (WebCore::SVGSpotLightSource::direction):
652 (WebCore::SVGSpotLightSource::specularExponent):
653 (WebCore::SVGSpotLightSource::limitingConeAngle):
654 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
655 (WebCore::SVGFEBlend::getCIFilter):
656 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
657 (WebCore::SVGFEColorMatrix::getCIFilter):
658 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
659 (WebCore::genImageFromTable):
660 (WebCore::setParametersForComponentFunc):
661 (WebCore::filterForComponentFunc):
662 (WebCore::getFilterForFunc):
663 (WebCore::SVGFEComponentTransfer::getFunctionFilter):
664 (WebCore::SVGFEComponentTransfer::getCIFilter):
665 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
666 (WebCore::SVGFEComposite::getCIFilter):
667 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
668 (WebCore::SVGFEDiffuseLighting::getCIFilter):
669 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
670 (WebCore::SVGFEDisplacementMap::getCIFilter):
671 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
672 (WebCore::SVGFEFlood::getCIFilter):
673 * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
674 (WebCore::SVGFEGaussianBlur::getCIFilter):
675 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
676 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
677 (WebCore::getVectorForChannel):
679 (WebCore::getPointLightVectors):
680 (WebCore::getLightVectors):
681 (WebCore::getNormalMap):
682 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
683 (WebCore::SVGFEImage::getCIFilter):
684 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
685 (WebCore::SVGFEMerge::getCIFilter):
686 * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
687 (WebCore::SVGFEOffset::getCIFilter):
688 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
689 (WebCore::SVGFESpecularLighting::getCIFilter):
690 * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
691 (WebCore::SVGFETile::getCIFilter):
692 * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
693 (WebCore::SVGFilterEffect::getCIFilter):
694 * rendering/RenderPath.cpp:
695 (WebCore::RenderPath::getAbsoluteRepaintRect):
696 (WebCore::RenderPath::paint):
697 * rendering/RenderSVGContainer.cpp:
698 (WebCore::RenderSVGContainer::paint):
699 (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
700 * rendering/RenderSVGImage.cpp:
701 (WebCore::RenderSVGImage::paint):
702 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
703 * rendering/SVGInlineFlowBox.cpp:
704 (WebCore::paintSVGInlineFlow):
706 2006-11-18 Rob Buis <buis@kde.org>
710 http://bugs.webkit.org/show_bug.cgi?id=11321
711 Element with :target pseudo-class still matched after fragment identifier change
713 Make sure the page does a style recalculation and possible rendering
714 when navigating back from a page with an anchor to a page without
717 * loader/FrameLoader.cpp:
718 (WebCore::FrameLoader::gotoAnchor):
720 2006-11-18 Don Gibson <dgibson77@gmail.com>
722 Reviewed by Sam Weinig.
724 http://bugs.webkit.org/show_bug.cgi?id=11634:
725 Fix segfault on startup for Windows build. Also fix segfault when
727 Clean up some of the style of the patch that landed in r17816.
729 * WebCore.vcproj/WebCore/WebCore.vcproj:
730 * bridge/win/ChromeClientWin.h:
731 (WebCore::ChromeClientWin::~ChromeClientWin):
732 (WebCore::ChromeClientWin::ref):
733 (WebCore::ChromeClientWin::deref):
734 * bridge/win/ContextMenuClientWin.h:
735 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
736 (WebCore::ContextMenuClientWin::ref):
737 (WebCore::ContextMenuClientWin::deref):
738 * bridge/win/EditorClientWin.h:
739 (WebCore::EditorClientWin::~EditorClientWin):
740 (WebCore::EditorClientWin::ref):
741 (WebCore::EditorClientWin::deref):
742 * bridge/win/FrameWin.cpp:
743 (WebCore::FrameWin::FrameWin):
744 * bridge/win/FrameWin.h:
746 * loader/win/FrameLoaderClientWin.h: Added.
747 (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
748 (WebCore::FrameLoaderClientWin::ref):
749 (WebCore::FrameLoaderClientWin::deref):
750 * platform/win/TemporaryLinkStubs.cpp:
751 (WebCore::ChromeClientWin::createWindow):
752 (WebCore::ChromeClientWin::createModalDialog):
753 (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
754 (WebCore::EditorClientWin::isEditable):
755 (WebCore::EditorClientWin::shouldBeginEditing):
756 (WebCore::EditorClientWin::shouldEndEditing):
757 (WebCore::EditorClientWin::shouldApplyStyle):
758 (WebCore::EditorClientWin::didBeginEditing):
759 (WebCore::EditorClientWin::respondToChangedContents):
760 (WebCore::EditorClientWin::didEndEditing):
761 (WebCore::EditorClientWin::registerCommandForUndo):
762 (WebCore::EditorClientWin::registerCommandForRedo):
763 (WebCore::EditorClientWin::clearUndoRedoOperations):
764 (WebCore::EditorClientWin::canUndo):
765 (WebCore::EditorClientWin::canRedo):
766 (WebCore::EditorClientWin::undo):
767 (WebCore::EditorClientWin::redo):
768 (WebCore::FrameLoader::createFrame):
769 (WebCore::FrameLoader::createPlugin):
770 (WebCore::FrameLoaderClientWin::hasWebView):
771 (WebCore::FrameLoaderClientWin::hasFrameView):
772 (WebCore::FrameLoaderClientWin::hasBackForwardList):
773 (WebCore::FrameLoaderClientWin::resetBackForwardList):
774 (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
775 (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
776 (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
777 (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
778 (WebCore::FrameLoaderClientWin::makeDocumentView):
779 (WebCore::FrameLoaderClientWin::makeRepresentation):
780 (WebCore::FrameLoaderClientWin::forceLayout):
781 (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
782 (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
783 (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
784 (WebCore::FrameLoaderClientWin::updateHistoryForReload):
785 (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
786 (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
787 (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
788 (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
789 (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
790 (WebCore::FrameLoaderClientWin::resetAfterLoadError):
791 (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
792 (WebCore::FrameLoaderClientWin::willCloseDocument):
793 (WebCore::FrameLoaderClientWin::detachedFromParent1):
794 (WebCore::FrameLoaderClientWin::detachedFromParent2):
795 (WebCore::FrameLoaderClientWin::detachedFromParent3):
796 (WebCore::FrameLoaderClientWin::detachedFromParent4):
797 (WebCore::FrameLoaderClientWin::loadedFromPageCache):
798 (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
799 (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
800 (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
801 (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
802 (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
803 (WebCore::FrameLoaderClientWin::dispatchWillClose):
804 (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
805 (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
806 (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
807 (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
808 (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
809 (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
810 (WebCore::FrameLoaderClientWin::dispatchShow):
811 (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
812 (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
813 (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
814 (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
815 (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
816 (WebCore::FrameLoaderClientWin::revertToProvisionalState):
817 (WebCore::FrameLoaderClientWin::clearUnarchivingState):
818 (WebCore::FrameLoaderClientWin::progressStarted):
819 (WebCore::FrameLoaderClientWin::progressCompleted):
820 (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
821 (WebCore::FrameLoaderClientWin::willChangeTitle):
822 (WebCore::FrameLoaderClientWin::didChangeTitle):
823 (WebCore::FrameLoaderClientWin::finishedLoading):
824 (WebCore::FrameLoaderClientWin::finalSetupForReplace):
825 (WebCore::FrameLoaderClientWin::setDefersLoading):
826 (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
827 (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
828 (WebCore::FrameLoaderClientWin::clearArchivedResources):
829 (WebCore::FrameLoaderClientWin::canShowMIMEType):
830 (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
831 (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
832 (WebCore::FrameLoaderClientWin::frameLoadCompleted):
833 (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
834 (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
835 (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
836 (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
837 (WebCore::FrameLoaderClientWin::didFinishLoad):
838 (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
839 (WebCore::FrameLoaderClientWin::setTitle):
840 (WebCore::FrameLoaderClientWin::userAgent):
842 2006-11-18 Alexey Proskuryakov <ap@webkit.org>
844 Reviewed by Rob (yay!).
846 http://bugs.webkit.org/show_bug.cgi?id=11640
847 XMLHttpRequest produces undefined:undefined HTTP authentication
849 * bindings/js/JSXMLHttpRequest.cpp:
850 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
851 Treat undefined credentials as missing ones.
853 2006-11-17 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
857 http://bugs.webkit.org/show_bug.cgi?id=11638
858 [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
860 * Resources/aliasCursor.png: Added.
861 * Resources/noDropCursor.png: Added.
862 * Resources/progressCursor.png: Added.
863 * WebCore.xcodeproj/project.pbxproj:
864 * css/CSSComputedStyleDeclaration.cpp:
865 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
866 * css/CSSValueKeywords.in:
867 * manual-tests/cursor.html:
868 * page/EventHandler.cpp:
869 (WebCore::selectCursor):
871 * platform/mac/CursorMac.mm:
872 (WebCore::handCursor):
873 (WebCore::aliasCursor):
874 (WebCore::progressCursor):
875 (WebCore::noDropCursor):
876 * rendering/RenderStyle.h:
879 2006-11-18 Steve Falkenburg <sfalken@apple.com>
883 Properly adjust CFAbsoluteTime to time_t to fix date calculations.
885 Compare lastModified w/ MAX_TIME_T when setting last modified date
886 instead of comparing expiration against MAX_TIME_T.
888 * platform/network/cf/ResourceResponseCFNet.cpp:
889 (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
891 2006-11-17 Anders Carlsson <acarlsson@apple.com>
895 More conversions from DeprecatedValueList to Vector and HashSet.
897 * css/CSSValueList.cpp:
898 (WebCore::CSSValueList::~CSSValueList):
899 (WebCore::CSSValueList::append):
900 (WebCore::CSSValueList::cssText):
901 * css/CSSValueList.h:
902 (WebCore::CSSValueList::length):
903 (WebCore::CSSValueList::item):
905 (WebCore::Document::attachNodeIterator):
906 (WebCore::Document::notifyBeforeNodeRemoval):
908 * ksvg2/svg/SVGGradientElement.cpp:
909 (WebCore::SVGGradientElement::notifyAttributeChange):
910 * ksvg2/svg/SVGPatternElement.cpp:
911 (WebCore::SVGPatternElement::notifyClientsToRepaint):
912 * platform/graphics/svg/SVGResource.cpp:
913 (WebCore::SVGResource::invalidate):
914 (WebCore::SVGResource::addClient):
915 * platform/graphics/svg/SVGResource.h:
916 * rendering/RenderBlock.h:
918 === Safari-521.31 ===
920 2006-11-17 Timothy Hatcher <timothy@apple.com>
922 Reviewed by Harrison.
924 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
926 Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
928 * dom/ContainerNode.cpp:
929 (WebCore::ContainerNode::cloneChildNodes):
930 * editing/markup.cpp:
931 (WebCore::createFragmentFromNodes):
933 2006-11-17 Justin Garcia <justin.garcia@apple.com>
937 <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
938 <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
940 * editing/ReplaceSelectionCommand.cpp:
941 (WebCore::isMailPasteAsQuotationNode): Added. Checks for the node
942 that Mail wraps around an incoming fragment when it wants it to be pasted
943 with quoting (no merging should be done).
944 (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
945 this virtual method in order to adjust the nodes that ReplaceSelectionCommand
947 (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
948 inside a Mail Paste as Quotation node. Allow merging from Mail blockquotes.
949 (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
950 a Mail blockquote, we ignore the parts of the source document's default style
951 that are overriden by styles from the Mail blockquote. This is necessary in order
952 for text that's black (because black is the source document's default font color)
953 to appear blue/green/whatever when it's pasted into a Mail blockquote.
954 (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
955 Mail Paste as Quotation node into a normal Mail blockquote. This will prevent
956 a copied blockquote that was inserted into the document using Paste as Quotation
957 from triggering Paste as Quotation behavior when it's pasted.
958 (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
959 * editing/ReplaceSelectionCommand.h:
960 * editing/markup.cpp:
961 (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
962 (WebCore::removeEnclosingMailBlockquoteStyle): Added.
963 (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
964 styles that Mail blockquotes contribute, so that Mail blockquote styles can
965 be differentiated from styles that the user has applied. When creating markup
966 for elements, do the same thing.
967 (WebCore::createMarkup): Call the new subroutine.
969 2006-11-17 Rob Buis <buis@kde.org>
973 http://bugs.webkit.org/show_bug.cgi?id=11635
974 Bug 11635: Fix potential issue with non-xslt build
976 Fix the issue and do style guideline corrections.
978 * dom/ProcessingInstruction.cpp:
979 (WebCore::ProcessingInstruction::checkStyleSheet):
980 (WebCore::ProcessingInstruction::sheetLoaded):
981 (WebCore::ProcessingInstruction::setCSSStyleSheet):
982 (WebCore::ProcessingInstruction::setXSLStyleSheet):
983 (WebCore::ProcessingInstruction::parseStyleSheet):
985 2006-11-17 Timothy Hatcher <timothy@apple.com>
987 Reviewed by Harrison.
989 <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
991 Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
992 This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
994 * editing/EditCommand.cpp:
995 (WebCore::EditCommand::apply):
996 (WebCore::EditCommand::unapply):
997 (WebCore::EditCommand::reapply):
998 (WebCore::applyCommand):
999 * editing/EditCommand.h:
1001 2006-11-17 Zack Rusin <zack@kde.org>
1003 Reviewed by Mitz. Landed by Niko.
1005 Making platform Qt/KDE compile and work after
1006 the latest api changes. Reported as
1007 http://bugs.webkit.org/show_bug.cgi?id=11617
1010 * page/qt/EventHandlerQt.cpp: Added.
1011 (WebCore::isKeyboardOptionTab):
1012 (WebCore::EventHandler::tabsToLinks):
1013 (WebCore::EventHandler::tabsToAllControls):
1014 (WebCore::EventHandler::freeClipboard):
1015 (WebCore::EventHandler::focusDocumentView):
1016 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1017 (WebCore::EventHandler::passMouseDownEventToWidget):
1018 (WebCore::EventHandler::lastEventIsMouseUp):
1019 (WebCore::EventHandler::dragHysteresisExceeded):
1020 (WebCore::EventHandler::handleDrag):
1021 (WebCore::EventHandler::handleMouseUp):
1022 (WebCore::EventHandler::passSubframeEventToSubframe):
1023 (WebCore::EventHandler::passWheelEventToWidget):
1024 (WebCore::EventHandler::shouldDragAutoNode):
1025 (WebCore::EventHandler::dispatchDragSrcEvent):
1026 (WebCore::EventHandler::passMousePressEventToSubframe):
1027 (WebCore::EventHandler::passMouseMoveEventToSubframe):
1028 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1029 (WebCore::EventHandler::passWheelEventToSubframe):
1030 (WebCore::EventHandler::passMousePressEventToScrollbar):
1031 * platform/ContextMenu.h:
1032 * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
1033 (WebCore::SVGResourceClipper::applyClip):
1034 * platform/qt/ContextMenuClientQt.cpp: Added.
1035 (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
1036 (WebCore::ContextMenuClientQt::ref):
1037 (WebCore::ContextMenuClientQt::deref):
1038 * platform/qt/ContextMenuClientQt.h: Added.
1039 * platform/qt/ContextMenuQt.cpp: Added.
1040 (WebCore::ContextMenu::appendItem):
1041 (WebCore::ContextMenu::itemCount):
1042 (WebCore::ContextMenu::insertItem):
1043 (WebCore::ContextMenu::setPlatformMenuDescription):
1044 * platform/qt/EditorClientQt.cpp:
1045 (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
1046 (WebCore::EditorClientQt::isEditable):
1047 (WebCore::EditorClientQt::registerCommandForUndo):
1048 (WebCore::EditorClientQt::registerCommandForRedo):
1049 (WebCore::EditorClientQt::clearUndoRedoOperations):
1050 (WebCore::EditorClientQt::canUndo):
1051 (WebCore::EditorClientQt::canRedo):
1052 (WebCore::EditorClientQt::undo):
1053 (WebCore::EditorClientQt::redo):
1054 * platform/qt/EditorClientQt.h:
1055 * platform/qt/ScrollViewCanvasQt.cpp:
1056 (WebCore::ScrollViewCanvasQt::mousePressEvent):
1057 * platform/qt/TemporaryLinkStubs.cpp:
1058 (FrameView::updateBorder):
1060 2006-11-17 David Harrison <harrison@apple.com>
1064 <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
1066 Replace an assert with a fixme that refers to this bug.
1069 (WebCore::Frame::revealSelection):
1071 2006-11-16 Rob Buis <buis@kde.org>
1073 Reviewed and landed by Brady
1075 Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
1076 REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
1077 Fix the regression by setting m_loadCompleted correctly.
1079 * css/CSSStyleSheet.cpp:
1080 (WebCore::CSSStyleSheet::checkLoaded):
1082 (WebCore::Node::sheetLoaded):
1083 * dom/ProcessingInstruction.cpp:
1084 (WebCore::ProcessingInstruction::sheetLoaded):
1085 * dom/ProcessingInstruction.h:
1086 * html/HTMLLinkElement.cpp:
1087 (WebCore::HTMLLinkElement::sheetLoaded):
1088 * html/HTMLLinkElement.h:
1089 * html/HTMLStyleElement.cpp:
1090 (WebCore::HTMLStyleElement::sheetLoaded):
1091 * html/HTMLStyleElement.h:
1093 2006-11-16 David Harrison <harrison@apple.com>
1097 <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
1099 The problem was triggered by the fact that the parent div was changing both
1100 in position and in height. The renderer normally bifurcates its logic for
1101 x-position changes vs height changes.
1103 Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
1106 * manual-tests/delete-into-nested-block.html
1108 * rendering/RenderBlock.cpp:
1109 (WebCore::RenderBlock::layoutBlockChildren):
1110 (WebCore::RenderBlock::positionNewFloats):
1111 * rendering/RenderBox.cpp:
1112 (WebCore::RenderBox::repaintDuringLayoutIfMoved):
1113 * rendering/RenderBox.h:
1114 * rendering/RenderFlexibleBox.cpp:
1115 (WebCore::RenderFlexibleBox::placeChild):
1116 * rendering/RenderObject.cpp:
1117 (WebCore::RenderObject::repaintDuringLayoutIfMoved):
1118 * rendering/RenderObject.h:
1119 * rendering/RenderTableSection.cpp:
1120 (WebCore::RenderTableSection::layoutRows):
1122 2006-11-16 Adele Peterson <adele@apple.com>
1126 Slider cleanup. Let the theme set the size of the slider thumb.
1128 * rendering/RenderSlider.cpp:
1129 (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
1130 (WebCore::RenderSlider::createThumbStyle):
1131 (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
1132 * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize): Added.
1133 * rendering/RenderTheme.h: ditto.
1134 * rendering/RenderThemeMac.h: ditto.
1135 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
1137 2006-11-15 Anders Carlsson <acarlsson@apple.com>
1141 Use Vector instead of DeprecatedValueList in a few places.
1143 * bindings/js/kjs_dom.cpp:
1144 (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
1145 (KJS::DOMNamedNodesCollection::lengthGetter):
1146 (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
1147 * bindings/js/kjs_dom.h:
1148 * bindings/js/kjs_html.cpp:
1149 (KJS::JSHTMLDocument::namedItemGetter):
1150 (KJS::JSHTMLElement::classInfo):
1151 (KJS::JSHTMLElement::accessors):
1152 (KJS::JSHTMLCollection::getNamedItems):
1153 * bindings/objc/DOM.mm:
1154 * bridge/mac/FrameMac.mm:
1155 (WebCore::FrameMac::dashboardRegionsDictionary):
1156 * css/CSSStyleDeclaration.cpp:
1157 (WebCore::CSSStyleDeclaration::diff):
1158 * html/HTMLCollection.cpp:
1159 (WebCore::HTMLCollection::namedItems):
1160 * html/HTMLCollection.h:
1161 * kcanvas/KCanvasFilters.cpp:
1162 (WebCore::KCanvasFilter::externalRepresentation):
1163 * kcanvas/KCanvasFilters.h:
1164 (WebCore::KCanvasFEColorMatrix::values):
1165 (WebCore::KCanvasFEColorMatrix::setValues):
1166 (WebCore::KCanvasFEConvolveMatrix::kernel):
1167 (WebCore::KCanvasFEConvolveMatrix::setKernel):
1168 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1169 (WebCore::KCanvasFilterQuartz::getCIFilterStack):
1170 (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
1171 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1172 (WebCore::SVGFEColorMatrixElement::filterEffect):
1173 * platform/graphics/svg/SVGResourceClipper.h:
1174 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1175 (WebCore::SVGResourceClipper::applyClip):
1176 * platform/network/FormData.h:
1177 * rendering/RenderPath.h:
1178 * rendering/SVGRenderTreeAsText.h:
1179 (WebCore::operator<<):
1181 2006-11-16 Anders Carlsson <acarlsson@apple.com>
1185 * editing/markup.cpp:
1186 (WebCore::createMarkup):
1187 Add null-checks for the frame, it might not exist for all documents.
1189 2006-11-16 Don Gibson <dgibson77@gmail.com>
1191 Reviewed and landed by ap.
1193 http://bugs.webkit.org/show_bug.cgi?id=11509:
1194 Windows build bustage.
1196 Also reorganizes WebCore.vcproj to add files whose absence wasn't
1197 causing compile errors, but which should have been there, and to
1198 make the include directory ordering (and contents) sane.
1199 Also reorganizes TemporaryLinkStubs.cpp to put headers and
1200 function groups in alphabetical order, and ensure that all functions
1201 in the file call notImplemented().
1203 * WebCore.vcproj/WebCore/WebCore.vcproj:
1204 * bridge/win/ChromeClientWin.h:
1205 (WebCore::ChromeClientWin::ref):
1206 (WebCore::ChromeClientWin::deref):
1207 * bridge/win/ContextMenuClientWin.h: Added.
1208 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1209 (WebCore::ContextMenuClientWin::ref):
1210 (WebCore::ContextMenuClientWin::deref):
1211 * bridge/win/EditorClientWin.h:
1212 * bridge/win/FrameWin.cpp:
1213 (WebCore::FrameWin::~FrameWin):
1214 (WebCore::FrameWin::keyPress):
1215 * bridge/win/FrameWin.h:
1216 * bridge/win/PageWin.cpp: Removed.
1217 * editing/EditCommand.h:
1218 * loader/FormState.h:
1219 * loader/FrameLoader.h:
1220 * page/EventHandler.cpp:
1221 * platform/MimeTypeRegistry.cpp:
1222 (WebCore::initialiseSupportedImageMIMETypes):
1223 * platform/graphics/win/ImageWin.cpp:
1224 * platform/network/ResourceError.cpp:
1225 * platform/network/ResourceHandleInternal.h:
1226 * platform/network/win/ResourceHandleWin.cpp:
1227 (WebCore::ResourceHandle::onHandleCreated):
1228 (WebCore::ResourceHandle::onRequestRedirected):
1229 (WebCore::ResourceHandle::start):
1230 (WebCore::ResourceHandle::cancel):
1231 * platform/win/ScreenWin.cpp:
1232 (WebCore::monitorInfo):
1233 (WebCore::screenRect):
1234 (WebCore::screenAvailableRect):
1235 (WebCore::screenDepth):
1236 * platform/win/SoundWin.cpp: Added.
1237 (WebCore::systemBeep):
1238 * platform/win/TemporaryLinkStubs.cpp:
1239 (WebCore::CacheObjectExpiresTime):
1240 (WebCore::CheckCacheObjectStatus):
1241 (WebCore::CheckIfReloading):
1242 (WebCore::defaultLanguage):
1243 (WebCore::fileButtonChooseFileLabel):
1244 (WebCore::fileButtonNoFileSelectedLabel):
1245 (WebCore::findNextSentenceFromIndex):
1246 (WebCore::findNextWordFromIndex):
1247 (WebCore::findSentenceBoundary):
1248 (WebCore::findWordBoundary):
1249 (WebCore::focusRingColor):
1250 (WebCore::historyContains):
1251 (WebCore::inputElementAltText):
1252 (WebCore::IsResponseURLEqualToURL):
1253 (WebCore::cellCursor):
1254 (WebCore::contextMenuCursor):
1255 (WebCore::moveCursor):
1256 (WebCore::verticalTextCursor):
1257 (WebCore::refreshPlugins):
1258 (WebCore::resetButtonDefaultLabel):
1259 (WebCore::ResponseIsMultipart):
1260 (WebCore::ResponseMIMEType):
1261 (WebCore::ResponseURL):
1262 (WebCore::screenDepthPerComponent):
1263 (WebCore::screenIsMonochrome):
1264 (WebCore::searchableIndexIntroduction):
1265 (WebCore::ServeSynchronousRequest):
1266 (WebCore::setFocusRingColorChangeFunction):
1267 (WebCore::submitButtonDefaultLabel):
1268 (WebCore::CachedResource::setPlatformResponse):
1269 (WebCore::CachedResource::setAllData):
1270 (WebCore::ChromeClientWin::setWindowRect):
1271 (WebCore::ChromeClientWin::windowRect):
1272 (WebCore::ChromeClientWin::pageRect):
1273 (WebCore::ChromeClientWin::scaleFactor):
1274 (WebCore::ChromeClientWin::focus):
1275 (WebCore::ChromeClientWin::unfocus):
1276 (WebCore::ChromeClientWin::createWindow):
1277 (WebCore::ChromeClientWin::createModalDialog):
1278 (WebCore::ChromeClientWin::show):
1279 (WebCore::ChromeClientWin::canRunModal):
1280 (WebCore::ChromeClientWin::runModal):
1281 (WebCore::ChromeClientWin::setToolbarsVisible):
1282 (WebCore::ChromeClientWin::toolbarsVisible):
1283 (WebCore::ChromeClientWin::setStatusbarVisible):
1284 (WebCore::ChromeClientWin::statusbarVisible):
1285 (WebCore::ChromeClientWin::setScrollbarsVisible):
1286 (WebCore::ChromeClientWin::scrollbarsVisible):
1287 (WebCore::ChromeClientWin::setMenubarVisible):
1288 (WebCore::ChromeClientWin::menubarVisible):
1289 (WebCore::ChromeClientWin::setResizable):
1290 (WebCore::ContextMenu::appendItem):
1291 (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
1292 (WebCore::DocumentLoader::setFrame):
1293 (WebCore::DocumentLoader::frameLoader):
1294 (WebCore::DocumentLoader::URL):
1295 (WebCore::DocumentLoader::isStopping):
1296 (WebCore::DocumentLoader::stopLoading):
1297 (WebCore::DocumentLoader::setLoading):
1298 (WebCore::DocumentLoader::updateLoading):
1299 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1300 (WebCore::DocumentLoader::isLoadingInAPISense):
1301 (WebCore::DocumentLoader::stopRecordingResponses):
1302 (WebCore::EditorClientWin::shouldDeleteRange):
1303 (WebCore::EditorClientWin::shouldShowDeleteInterface):
1304 (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
1305 (WebCore::EditorClientWin::isGrammarCheckingEnabled):
1306 (WebCore::EditorClientWin::spellCheckerDocumentTag):
1307 (WebCore::EventHandler::focusDocumentView):
1308 (WebCore::EventHandler::handleDrag):
1309 (WebCore::EventHandler::handleMouseUp):
1310 (WebCore::EventHandler::lastEventIsMouseUp):
1311 (WebCore::EventHandler::passMousePressEventToSubframe):
1312 (WebCore::EventHandler::passMouseMoveEventToSubframe):
1313 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1314 (WebCore::EventHandler::passWheelEventToSubframe):
1315 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1316 (WebCore::EventHandler::passMousePressEventToScrollbar):
1317 (WebCore::EventHandler::shouldDragAutoNode):
1318 (WebCore::EventHandler::tabsToAllControls):
1319 (WebCore::EventHandler::tabsToLinks):
1320 (WebCore::Frame::setNeedsReapplyStyles):
1321 (WebCore::FrameLoader::didFirstLayout):
1322 (WebCore::FrameLoader::overrideMediaType):
1323 (WebCore::FrameLoader::createJavaAppletWidget):
1324 (WebCore::FrameLoader::redirectDataToPlugin):
1325 (WebCore::FrameLoader::getHistoryLength):
1326 (WebCore::FrameLoader::setTitle):
1327 (WebCore::FrameLoader::referrer):
1328 (WebCore::FrameLoader::saveDocumentState):
1329 (WebCore::FrameLoader::restoreDocumentState):
1330 (WebCore::FrameLoader::goBackOrForward):
1331 (WebCore::FrameLoader::historyURL):
1332 (WebCore::FrameLoader::urlSelected):
1333 (WebCore::FrameLoader::createFrame):
1334 (WebCore::FrameLoader::submitForm):
1335 (WebCore::FrameLoader::partClearedInBegin):
1336 (WebCore::FrameLoader::originalRequestURL):
1337 (WebCore::FrameLoader::canGoBackOrForward):
1338 (WebCore::FrameLoader::objectContentType):
1339 (WebCore::FrameLoader::createPlugin):
1340 (WebCore::FrameLoader::detachFromParent):
1341 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1342 (WebCore::FrameView::updateBorder):
1343 (WebCore::FrameWin::bindingRootObject):
1344 (WebCore::FrameWin::canPaste):
1345 (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
1346 (WebCore::FrameWin::markedTextRange):
1347 (WebCore::FrameWin::passSubframeEventToSubframe):
1348 (WebCore::FrameWin::lastEventIsMouseUp):
1349 (WebCore::FrameWin::addMessageToConsole):
1350 (WebCore::FrameWin::shouldChangeSelection):
1351 (WebCore::FrameWin::respondToChangedSelection):
1352 (WebCore::FrameWin::clearUndoRedoOperations):
1353 (WebCore::FrameWin::markMisspellingsInAdjacentWords):
1354 (WebCore::FrameWin::respondToChangedContents):
1355 (WebCore::GraphicsContext::addRoundedRectClip):
1356 (WebCore::GraphicsContext::setShadow):
1357 (WebCore::GraphicsContext::clearShadow):
1358 (WebCore::GraphicsContext::beginTransparencyLayer):
1359 (WebCore::GraphicsContext::endTransparencyLayer):
1360 (WebCore::GraphicsContext::clearRect):
1361 (WebCore::GraphicsContext::strokeRect):
1362 (WebCore::GraphicsContext::setLineWidth):
1363 (WebCore::GraphicsContext::setLineCap):
1364 (WebCore::GraphicsContext::setLineJoin):
1365 (WebCore::GraphicsContext::setMiterLimit):
1366 (WebCore::GraphicsContext::setAlpha):
1367 (WebCore::GraphicsContext::setCompositeOperation):
1368 (WebCore::GraphicsContext::clip):
1369 (WebCore::GraphicsContext::rotate):
1370 (WebCore::GraphicsContext::scale):
1371 (WebCore::Icon::Icon):
1372 (WebCore::Icon::~Icon):
1373 (WebCore::Icon::newIconForFile):
1374 (WebCore::Icon::paint):
1375 (WebCore::IconDatabase::isIconExpiredForIconURL):
1376 (WebCore::IconDatabase::hasEntryForIconURL):
1377 (WebCore::IconDatabase::sharedIconDatabase):
1378 (WebCore::IconDatabase::setIconURLForPageURL):
1379 (WebCore::IconDatabase::setIconDataForIconURL):
1380 (WebCore::Image::drawTiled):
1381 (WebCore::Image::getHBITMAP):
1382 (WebCore::Path::Path):
1383 (WebCore::Path::~Path):
1384 (WebCore::Path::contains):
1385 (WebCore::Path::translate):
1386 (WebCore::Path::boundingRect):
1387 (WebCore::Path::operator=):
1388 (WebCore::Path::clear):
1389 (WebCore::Path::moveTo):
1390 (WebCore::Path::addLineTo):
1391 (WebCore::Path::addQuadCurveTo):
1392 (WebCore::Path::addBezierCurveTo):
1393 (WebCore::Path::addArcTo):
1394 (WebCore::Path::closeSubpath):
1395 (WebCore::Path::addArc):
1396 (WebCore::Path::addRect):
1397 (WebCore::Path::addEllipse):
1398 (WebCore::Path::transform):
1399 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1400 (WebCore::PlatformScrollbar::PlatformScrollbar):
1401 (WebCore::PlatformScrollbar::~PlatformScrollbar):
1402 (WebCore::PlatformScrollbar::width):
1403 (WebCore::PlatformScrollbar::height):
1404 (WebCore::PlatformScrollbar::setEnabled):
1405 (WebCore::PlatformScrollbar::paint):
1406 (WebCore::PlatformScrollbar::updateThumbPosition):
1407 (WebCore::PlatformScrollbar::updateThumbProportion):
1408 (WebCore::PlatformScrollbar::setRect):
1409 (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
1410 (WebCore::PlugInInfoStore::pluginCount):
1411 (WebCore::PlugInInfoStore::supportsMIMEType):
1412 (WebCore::PolicyCheck::PolicyCheck):
1413 (WebCore::PolicyCheck::clear):
1414 (WebCore::PolicyCheck::clearRequest):
1415 (WebCore::PolicyCheck::call):
1416 (WebCore::RenderThemeWin::systemFont):
1417 (WebCore::RenderThemeWin::paintMenuList):
1418 (WebCore::RenderThemeWin::adjustMenuListStyle):
1419 (WebCore::ResourceLoader::cancel):
1420 (WebCore::ScrollView::addChild):
1421 (WebCore::ScrollView::removeChild):
1422 (WebCore::ScrollView::scrollPointRecursively):
1423 (WebCore::ScrollView::inWindow):
1424 (WebCore::ScrollView::paint):
1425 (WebCore::ScrollView::wheelEvent):
1426 (WebCore::ScrollView::themeChanged):
1427 (WebCore::ScrollView::convertChildToSelf):
1428 (WebCore::ScrollView::convertSelfToChild):
1429 (WebCore::ScrollView::geometryChanged):
1430 (WebCore::ScrollView::scrollbarUnderMouse):
1431 (WebCore::ScrollView::setFrameGeometry):
1432 (WebCore::ScrollView::windowResizerRect):
1433 (WebCore::ScrollView::resizerOverlapsContent):
1434 (WebCore::TextField::selectAll):
1435 (WebCore::TextField::addSearchResult):
1436 (WebCore::TextField::selectionStart):
1437 (WebCore::TextField::hasSelectedText):
1438 (WebCore::TextField::selectedText):
1439 (WebCore::TextField::setAutoSaveName):
1440 (WebCore::TextField::checksDescendantsForFocus):
1441 (WebCore::TextField::setSelection):
1442 (WebCore::TextField::setMaxResults):
1443 (WebCore::TextField::edited):
1444 (WebCore::TextField::focusPolicy):
1445 (WebCore::TextField::TextField):
1446 (WebCore::TextField::~TextField):
1447 (WebCore::TextField::setFont):
1448 (WebCore::TextField::setAlignment):
1449 (WebCore::TextField::setWritingDirection):
1450 (WebCore::TextField::maxLength):
1451 (WebCore::TextField::setMaxLength):
1452 (WebCore::TextField::text):
1453 (WebCore::TextField::setText):
1454 (WebCore::TextField::cursorPosition):
1455 (WebCore::TextField::setCursorPosition):
1456 (WebCore::TextField::setEdited):
1457 (WebCore::TextField::setReadOnly):
1458 (WebCore::TextField::setPlaceholderString):
1459 (WebCore::TextField::setColors):
1460 (WebCore::TextField::sizeForCharacterWidth):
1461 (WebCore::TextField::baselinePosition):
1462 (WebCore::TextField::setLiveSearch):
1463 (WebCore::Widget::enableFlushDrawing):
1464 (WebCore::Widget::isEnabled):
1465 (WebCore::Widget::focusPolicy):
1466 (WebCore::Widget::disableFlushDrawing):
1467 (WebCore::Widget::removeFromParent):
1468 (WebCore::Widget::lockDrawingFocus):
1469 (WebCore::Widget::unlockDrawingFocus):
1470 (WebCore::Widget::capturingMouse):
1471 (WebCore::Widget::setCapturingMouse):
1472 (WebCore::Widget::capturingTarget):
1473 (WebCore::Widget::capturingChild):
1474 (WebCore::Widget::setCapturingChild):
1475 (WebCore::Widget::convertChildToSelf):
1476 (WebCore::Widget::convertSelfToChild):
1477 (WebCore::Widget::setParent):
1478 (WebCore::Widget::parent):
1479 (WebCore::Widget::setEnabled):
1480 (WebCore::Widget::paint):
1481 (WebCore::Widget::setIsSelected):
1482 (WebCore::Widget::invalidate):
1483 (WebCore::Widget::invalidateRect):
1484 * platform/win/WidgetWin.cpp:
1485 (WebCore::Widget::clearFocus):
1487 2006-11-16 Timothy Hatcher <timothy@apple.com>
1491 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
1493 * editing/markup.cpp:
1494 (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
1496 2006-11-16 George Staikos <staikos@kde.org>
1498 Rubberstamped by Maciej.
1500 Making the code valgrind clean.
1502 * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
1503 (WebCore::RenderTableCell::RenderTableCell):
1504 * rendering/RenderTableCell.h: remove unused variable nWrap
1506 2006-11-16 David Harrison <harrison@apple.com>
1508 Reviewed by Darin and Tim.
1510 <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
1512 * page/mac/EventHandlerMac.mm:
1513 (WebCore::EventHandler::eventMayStartDrag):
1514 Add nil check of hitTest's result.innerNode().
1516 2006-11-16 Timothy Hatcher <timothy@apple.com>
1520 <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
1522 Consider the container of the selection range for deletion before asking enclosingNodeOfType().
1524 * editing/DeleteButtonController.cpp:
1525 (WebCore::enclosingDeletableElement):
1527 2006-11-16 Rob Buis <buis@kde.org>
1531 Removal of unused m_styleElement.
1534 (WebCore::Node::Node):
1535 (WebCore::Node::dump):
1537 (WebCore::Node::isLink): should be styleElement, a bug?
1539 2006-11-15 Adam Roben <aroben@apple.com>
1543 Rename the items in the ContextMenuAction enum so that they don't
1544 conflict with WebKit names.
1546 * WebCore.xcodeproj/project.pbxproj:
1547 * platform/ContextMenu.cpp:
1548 (WebCore::ContextMenu::populate):
1549 * platform/ContextMenu.h:
1551 (WebCore::ContextMenuItem::ContextMenuItem):
1553 2006-11-15 Adam Roben <aroben@apple.com>
1557 Change m_contextMenu to an OwnPtr.
1559 * WebCore.xcodeproj/project.pbxproj:
1560 * page/ContextMenuController.cpp:
1561 (WebCore::ContextMenuController::handleContextMenuEvent):
1562 * page/ContextMenuController.h:
1564 2006-11-15 Adam Roben <aroben@apple.com>
1568 Add new ContextMenuController and ContextMenuClient classes, and move
1569 context menu responsibilities from Chrome and ChromeClient to them.
1572 * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
1573 alphabetize some others.
1574 * page/Chrome.cpp: Remove context menu-related code.
1575 * page/Chrome.h: Ditto.
1576 * page/ChromeClient.h:
1577 * page/ContextMenuClient.h: Added.
1578 * page/ContextMenuController.cpp: Added.
1579 (WebCore::ContextMenuController::ContextMenuController):
1580 (WebCore::ContextMenuController::~ContextMenuController):
1581 (WebCore::ContextMenuController::handleContextMenuEvent):
1582 (WebCore::ContextMenuController::contextMenuActionSelected):
1583 * page/ContextMenuController.h: Added.
1584 (WebCore::ContextMenuController::client):
1585 * page/Page.cpp: Every Page now has a ContextMenuController.
1586 (WebCore::Page::Page):
1587 * page/Page.h: Made m_dragCaretController and m_chrome objects instead
1588 of pointers to objects.
1589 (WebCore::Page::contextMenuController):
1590 * platform/ContextMenu.cpp:
1591 (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
1592 delegate to add its menu items, and moved the code from the static
1593 addDefaultItems function into this method.
1594 * platform/ContextMenu.h:
1595 (WebCore::ContextMenu::show): Added an empty method body since this
1596 method is now called from ContextMenuController (although no one calls
1597 into ContextMenuController yet, so it's OK for this to be empty).
1598 (WebCore::ContextMenu::hide): Ditto.
1600 2006-11-15 Anders Carlsson <acarlsson@apple.com>
1604 Add null checks on the node filter, they can be null if no filter was passed to the respective
1607 * bindings/js/JSNodeIteratorCustom.cpp:
1608 (WebCore::JSNodeIterator::mark):
1609 * bindings/js/JSTreeWalkerCustom.cpp:
1610 (WebCore::JSTreeWalker::mark):
1612 2006-11-15 Oliver Hunt <oliver@apple.com>
1616 Allow <embed> and <object> tags to include non-plugin
1617 content when plugins are disabled
1619 Fixes <rdar://problems/4839488>
1621 * html/HTMLEmbedElement.cpp:
1622 (WebCore::HTMLEmbedElement::rendererIsNeeded):
1623 * html/HTMLObjectElement.cpp:
1624 (WebCore::HTMLObjectElement::rendererIsNeeded):
1625 * loader/FrameLoader.cpp:
1626 (WebCore::FrameLoader::requestObject):
1628 2006-11-15 Adele Peterson <adele@apple.com>
1630 Build fix. Another type problem that I don't see locally.
1632 * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
1634 2006-11-15 Adele Peterson <adele@apple.com>
1638 Adding MathExtras header.
1640 * rendering/RenderSlider.cpp:
1642 2006-11-15 Timothy Hatcher <timothy@apple.com>
1644 Reviewed by Harrison.
1646 <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
1648 * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
1649 by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
1651 * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
1652 the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
1654 * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
1656 * editing/DeleteButtonController.cpp:
1657 (WebCore::DeleteButtonController::DeleteButtonController):
1658 (WebCore::isDeletableElement):
1659 (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
1660 (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
1661 (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
1662 (WebCore::DeleteButtonController::deleteTarget): check the enabled state
1663 * editing/DeleteButtonController.h:
1664 (WebCore::DeleteButtonController::disable):
1665 (WebCore::DeleteButtonController::enable):
1666 (WebCore::DeleteButtonController::enabled):
1667 * editing/EditCommand.cpp:
1668 (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
1669 (WebCore::EditCommand::unapply): ditto
1670 (WebCore::EditCommand::reapply): ditto
1672 2006-11-15 Adele Peterson <adele@apple.com>
1676 New implementation of slider control.
1678 * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
1679 * rendering/DeprecatedSlider.cpp: Removed.
1680 * rendering/DeprecatedSlider.h: Removed.
1681 * platform/Slider.h: Removed.
1682 * platform/mac/SliderMac.mm: Removed.
1683 * platform/win/TemporaryLinkStubs.cpp:
1685 * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
1686 * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
1687 * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector):
1688 * rendering/RenderStyle.cpp:
1690 (WebCore::pseudoBit):
1691 * rendering/RenderStyle.h: (WebCore::RenderStyle::):
1693 * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
1695 * html/HTMLInputElement.cpp:
1696 (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
1697 (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
1699 * page/EventHandler.cpp: Added concept of a node that will capture all mouse events. This will be used by the slider thumb, so it can
1700 continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
1701 (WebCore::EventHandler::EventHandler):
1702 (WebCore::EventHandler::setCapturingMouseEventsNode):
1703 (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
1704 * page/EventHandler.h:
1706 * rendering/RenderSlider.cpp: Added.
1707 (WebCore::HTMLSliderThumbElement::isShadowNode):
1708 (WebCore::HTMLSliderThumbElement::shadowParentNode):
1709 (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
1710 (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
1711 (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
1712 (WebCore::RenderSlider::RenderSlider):
1713 (WebCore::RenderSlider::~RenderSlider):
1714 (WebCore::RenderSlider::baselinePosition):
1715 (WebCore::RenderSlider::calcMinMaxWidth):
1716 (WebCore::RenderSlider::setStyle):
1717 (WebCore::RenderSlider::createThumbStyle):
1718 (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
1719 (WebCore::RenderSlider::updateFromElement):
1720 (WebCore::RenderSlider::mouseEventIsInThumb):
1721 (WebCore::RenderSlider::setValueForPosition):
1722 (WebCore::RenderSlider::setPositionFromValue):
1723 (WebCore::RenderSlider::positionForOffset):
1724 (WebCore::RenderSlider::valueChanged):
1725 (WebCore::RenderSlider::currentPosition):
1726 (WebCore::RenderSlider::setCurrentPosition):
1727 (WebCore::RenderSlider::trackSize):
1728 (WebCore::RenderSlider::forwardEvent):
1729 (WebCore::RenderSlider::inDragMode):
1730 * rendering/RenderSlider.h: Added.
1731 (WebCore::RenderSlider::renderName):
1733 * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
1734 (WebCore::RenderTheme::adjustStyle):
1735 (WebCore::RenderTheme::paint):
1736 (WebCore::RenderTheme::paintBorderOnly):
1737 (WebCore::RenderTheme::paintDecorations):
1738 (WebCore::RenderTheme::adjustSliderTrackStyle):
1739 (WebCore::RenderTheme::adjustSliderThumbStyle):
1740 * rendering/RenderTheme.h:
1741 (WebCore::RenderTheme::paintSliderTrack):
1742 (WebCore::RenderTheme::paintSliderThumb):
1743 * rendering/RenderThemeMac.h:
1744 * rendering/RenderThemeMac.mm:
1745 (WebCore::RenderThemeMac::RenderThemeMac):
1746 (WebCore::TrackGradientInterpolate):
1747 (WebCore::RenderThemeMac::paintSliderTrack):
1748 (WebCore::RenderThemeMac::paintSliderThumb):
1749 (WebCore::RenderThemeMac::adjustSliderTrackStyle):
1750 (WebCore::RenderThemeMac::adjustSliderThumbStyle):
1752 2006-11-15 Beth Dakin <bdakin@apple.com>
1756 Oops! Forgot to add this!
1758 * platform/mac/ContextMenuMac.mm: Added.
1759 (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
1760 (-[MenuTarget WebCore::]):
1761 (-[MenuTarget setMenu:WebCore::]):
1762 (-[MenuTarget forwardContextMenuAction:]):
1764 (ContextMenu::appendItem):
1765 (ContextMenu::itemCount):
1766 (ContextMenu::insertItem):
1767 (ContextMenu::setPlatformMenuDescription):
1769 2006-11-15 Beth Dakin <bdakin@apple.com>
1770 & Adam Roben <aroben@apple.com>
1772 Reviewed by Adam and Beth.
1774 Initial cut at pushing Context Menus into WebCore. Nobody actually
1775 calls this code just yet.
1778 * WebCore.xcodeproj/project.pbxproj:
1780 (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
1781 call into addContextMenuItems on the UIDelegate.
1783 * page/ChromeClient.h:
1784 * platform/ContextMenu.cpp: Added.
1785 (WebCore::addDefaultItems):
1786 (WebCore::ContextMenu::populate):
1787 * platform/ContextMenu.h: Added.
1789 (WebCore::ContextMenuItem::ContextMenuItem):
1790 (WebCore::ContextMenu::ContextMenu):
1791 (WebCore::ContextMenu::hitTestResult):
1792 (WebCore::ContextMenu::platformMenuDescription):
1794 2006-11-15 Adele Peterson <adele@apple.com>
1798 - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
1800 * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
1802 2006-11-15 David Harrison <harrison@apple.com>
1806 <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
1809 * manual-tests/keep_spelling_markers.html:
1810 Updated to include checking for this bug.
1812 * bridge/mac/FrameMac.mm:
1813 (WebCore::FrameMac::advanceToNextMisspelling):
1814 it.advance() even when current string is a single space.
1816 2006-11-15 Brady Eidson <beidson@apple.com>
1820 Backing out macro expansion
1822 * WebCore.xcodeproj/project.pbxproj:
1823 * html/HTMLElement.cpp:
1824 (WebCore::HTMLElement::isRecognizedTagName):
1825 * ksvg2/scripts/make_names.pl:
1827 2006-11-15 David Harrison <harrison@apple.com>
1831 <rdar://problem/4770453> VO not honoring secure edit fields in web pages
1833 The remaining problem was the password fields would return their contents
1834 even though they did not advertise that they could. Apparently, VoiceOver
1835 does not read the ads.
1837 * bridge/mac/WebCoreAXObject.mm:
1838 (isPasswordFieldElement):
1839 (-[WebCoreAXObject isPasswordField]):
1840 (-[WebCoreAXObject textMarkerForVisiblePosition:]):
1841 (-[WebCoreAXObject accessibilityAttributeValue:]):
1842 (-[WebCoreAXObject doAXStringForRange:]):
1844 2006-11-13 Lou Amadio <lamadio@apple.com>
1846 Reviewed by Darin Adler, Maciej Stachowiak
1848 Cleanup: Expanded macros in generated files
1850 * html/HTMLElement.cpp:
1851 (WebCore::HTMLElement::isRecognizedTagName):
1852 * ksvg2/scripts/make_names.pl:
1854 2006-11-16 Anders Carlsson <acarlsson@apple.com>
1858 Use Vector instead of DeprecatedPtrList.
1860 * editing/ApplyStyleCommand.cpp:
1861 (WebCore::ApplyStyleCommand::applyBlockStyle):
1862 * editing/BreakBlockquoteCommand.cpp:
1863 * rendering/RenderFlow.cpp:
1864 (WebCore::RenderFlow::paintOutline):
1866 2006-11-15 Adam Roben <aroben@apple.com>
1870 * page/EventHandler.h:
1872 2006-11-14 Beth Dakin <bdakin@apple.com>
1876 Move things off the bridge, and move sendContextMenuEvent() from
1877 EventHandlerMac to EventHandler.
1880 * WebCore.xcodeproj/project.pbxproj:
1881 * bridge/EditorClient.h:
1882 * bridge/mac/WebCoreFrameBridge.h:
1883 * editing/Editor.cpp:
1884 (WebCore::Editor::selectWordBeforeMenuEvent):
1885 (WebCore::Editor::clientIsEditable):
1887 * page/EventHandler.cpp:
1888 (WebCore::EventHandler::sendContextMenuEvent):
1889 * page/EventHandler.h:
1890 * page/mac/EventHandlerMac.mm:
1892 2006-11-14 Timothy Hatcher <timothy@apple.com>
1894 Reviewed by Harrison.
1896 <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
1898 Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
1900 * bridge/mac/WebCoreSettings.mm:
1901 (-[WebCoreSettings setEditableLinkBehavior:]):
1902 * html/HTMLAnchorElement.cpp:
1903 (WebCore::HTMLAnchorElement::defaultEventHandler):
1904 (WebCore::HTMLAnchorElement::setActive):
1905 (WebCore::HTMLAnchorElement::isLiveLink):
1906 * page/FrameView.cpp:
1907 (WebCore::selectCursor):
1909 (WebCore::Settings::):
1911 2006-11-14 Mark Rowe <bdash@webkit.org>
1917 * bindings/scripts/CodeGenerator.pm:
1919 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1921 Turns out I wasn't forcing DWARF on the world at all,
1922 it's now the default!
1924 * WebCore.xcodeproj/project.pbxproj:
1926 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1928 I must stop trying to force DWARF on the world.
1930 * WebCore.xcodeproj/project.pbxproj:
1932 2006-11-13 Justin Garcia <justin.garcia@apple.com>
1934 Reviewed by harrison
1936 <rdar://problem/4806874>
1937 Missing background image after paste
1939 * editing/markup.cpp:
1940 (WebCore::createMarkup): If the body is fully selected, add a
1941 div with its CSS properties to the markup. Migrated a use of
1942 enclosingBlockFlowElement to enclosingBlock to fix an infinite
1943 loop when pasting <div><input></div>.
1945 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1949 Add Undo/Redo to execCommand.
1951 * editing/Editor.cpp:
1952 (WebCore::execRedo):
1953 (WebCore::execUndo):
1956 (WebCore::CommandEntry::):
1958 2006-11-14 Darin Adler <darin@apple.com>
1962 - created EventHandler class, moved event handling code from both
1963 Frame and FrameView in there
1965 - added ScrollTypes.h header so you can include the scroller-related
1966 enums without all of Scrollbar.h
1968 * page/EventHandler.cpp: Added.
1969 * page/EventHandler.h: Added.
1970 * page/mac/EventHandlerMac.mm: Added.
1972 * platform/ScrollBarMode.h: Removed.
1973 * platform/ScrollTypes.h: Added.
1976 * WebCore.xcodeproj/project.pbxproj:
1977 * bridge/mac/FrameMac.h:
1978 * bridge/mac/FrameMac.mm:
1979 (WebCore::FrameMac::FrameMac):
1980 (WebCore::FrameMac::~FrameMac):
1981 (WebCore::FrameMac::bridgeForWidget):
1982 (WebCore::FrameMac::imageFromRect):
1983 * bridge/mac/FrameViewMac.mm:
1984 * bridge/mac/WebCoreFrameBridge.mm:
1985 (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
1986 (-[WebCoreFrameBridge nextKeyView]):
1987 (-[WebCoreFrameBridge previousKeyView]):
1988 (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
1989 (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
1990 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1991 (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1992 (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
1993 (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
1994 (-[WebCoreFrameBridge dragSourceMovedTo:]):
1995 (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
1997 (WebCore::Document::hoveredNodeDetached):
1999 * dom/EventTargetNode.cpp:
2000 (WebCore::EventTargetNode::defaultEventHandler):
2001 * editing/SelectionController.cpp:
2002 (WebCore::SelectionController::SelectionController):
2003 * editing/SelectionController.h:
2004 (WebCore::SelectionController::setCaretBlinkingSuspended):
2005 (WebCore::SelectionController::isCaretBlinkingSuspended):
2006 * html/HTMLAnchorElement.cpp:
2007 (WebCore::HTMLAnchorElement::isKeyboardFocusable):
2008 * html/HTMLFrameElementBase.cpp:
2009 (WebCore::HTMLFrameElementBase::setFocus):
2010 * html/HTMLFrameElementBase.h:
2011 * html/HTMLGenericFormElement.cpp:
2012 (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
2013 * html/HTMLInputElement.cpp:
2014 (WebCore::HTMLInputElement::defaultEventHandler):
2015 * html/HTMLSelectElement.cpp:
2016 (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
2017 * loader/FrameLoader.cpp:
2018 (WebCore::FrameLoader::clear):
2019 (WebCore::FrameLoader::open):
2022 (WebCore::Frame::caretBlinkTimerFired):
2023 (WebCore::Frame::frameForWidget):
2024 (WebCore::Frame::eventHandler):
2025 (WebCore::Frame::setProhibitsScrolling):
2026 (WebCore::FramePrivate::FramePrivate):
2028 * page/FramePrivate.h:
2029 * page/FrameView.cpp:
2030 (WebCore::FrameViewPrivate::FrameViewPrivate):
2031 (WebCore::FrameViewPrivate::reset):
2032 (WebCore::FrameView::FrameView):
2033 (WebCore::FrameView::~FrameView):
2034 (WebCore::FrameView::clear):
2035 (WebCore::FrameView::adjustViewSize):
2036 (WebCore::FrameView::addRepaintInfo):
2037 (WebCore::FrameView::layout):
2038 (WebCore::FrameView::scrollPointRecursively):
2039 (WebCore::FrameView::setContentsPos):
2040 (WebCore::FrameView::scheduleRelayoutOfSubtree):
2041 (WebCore::FrameView::scheduleEvent):
2042 (WebCore::FrameView::updateOverflowStatus):
2043 (WebCore::FrameView::dispatchScheduledEvents):
2044 (WebCore::FrameView::windowClipRectForLayer):
2045 (WebCore::FrameView::handleMouseMoveEvent):
2046 (WebCore::FrameView::handleMouseReleaseEvent):
2048 * page/PageState.cpp:
2049 (WebCore::PageState::PageState):
2050 (WebCore::PageState::restore):
2052 * platform/ScrollBar.h:
2053 * platform/ScrollView.h:
2054 * platform/mac/ClipboardMac.mm:
2055 * platform/mac/PopupMenuMac.mm:
2056 (WebCore::PopupMenu::show):
2057 * platform/mac/SliderMac.mm:
2058 (-[WebCoreSlider becomeFirstResponder]):
2059 (-[WebCoreSlider nextKeyView]):
2060 (-[WebCoreSlider previousKeyView]):
2061 (-[WebCoreSlider canBecomeKeyView]):
2062 (Slider::focusPolicy):
2063 * platform/mac/WebCoreTextField.mm:
2064 (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
2065 (-[WebCoreTextFieldController setHasFocus:]):
2066 (-[WebCoreSearchField nextKeyView]):
2067 (-[WebCoreSearchField previousKeyView]):
2068 (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
2069 * platform/mac/WidgetMac.mm:
2070 (WebCore::Widget::hasFocus):
2071 (WebCore::Widget::clearFocus):
2072 * rendering/RenderFrameSet.cpp:
2073 (WebCore::RenderFrameSet::setResizing):
2074 * rendering/RenderLayer.cpp:
2075 (WebCore::RenderLayer::autoscroll):
2076 (WebCore::RenderLayer::resize):
2077 (WebCore::RenderLayer::updateOverflowStatus):
2078 * rendering/RenderLayer.h:
2079 * rendering/RenderListBox.cpp:
2080 (WebCore::RenderListBox::autoscroll):
2081 * rendering/RenderObject.cpp:
2082 (WebCore::RenderObject::draggableNode):
2083 (WebCore::RenderObject::destroy):
2084 * rendering/RenderObject.h:
2085 (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2086 * rendering/RenderPartObject.cpp:
2087 (WebCore::RenderPartObject::viewCleared):
2089 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2093 Let the editor client handle undo/redo.
2096 * WebCore.xcodeproj/project.pbxproj:
2097 * bridge/EditorClient.h:
2098 * bridge/mac/FrameMac.h:
2099 * bridge/mac/FrameMac.mm:
2100 (WebCore::FrameMac::canUndo):
2101 (WebCore::FrameMac::canRedo):
2102 * bridge/mac/WebCoreEditCommand.h: Removed.
2103 * bridge/mac/WebCoreEditCommand.mm: Removed.
2104 * bridge/mac/WebCoreFrameBridge.h:
2105 * bridge/mac/WebCoreFrameBridge.mm:
2106 * editing/Editor.cpp:
2107 (WebCore::Editor::appliedEditing):
2108 (WebCore::Editor::unappliedEditing):
2109 (WebCore::Editor::reappliedEditing):
2110 * editing/JSEditor.cpp:
2111 * loader/FrameLoader.cpp:
2112 (WebCore::FrameLoader::closeURL):
2115 * rendering/RenderTextControl.cpp:
2116 (WebCore::RenderTextControl::updateFromElement):
2118 2006-11-14 Nikolas Zimmermann <zimmermann@kde.org>
2120 Reviewed and landed by Brady
2125 * loader/qt/FrameLoaderQt.cpp:
2126 (WebCore::FrameLoader::submitForm):
2127 * platform/network/qt/ResourceHandleManager.cpp:
2128 (WebCore::ResourceHandleManager::add):
2129 * platform/qt/FrameQtClient.cpp:
2130 (WebCore::FrameQtClientDefault::submitForm):
2131 * platform/qt/FrameQtClient.h:
2133 2006-11-14 Brady Eidson <beidson@apple.com>
2137 Cleanup of my patch last night and merging with aroben-style changes from this morning
2138 (More ref-counted FormData stuff)
2140 * html/HTMLFormElement.cpp:
2141 (WebCore::HTMLFormElement::submit):
2142 * loader/FrameLoader.cpp:
2143 (WebCore::FrameLoader::submitForm):
2144 * platform/network/ResourceHandle.cpp:
2145 (WebCore::ResourceHandle::postData):
2146 * platform/network/ResourceHandle.h:
2147 * platform/network/cf/FormDataStreamCFNet.cpp:
2148 (WebCore::setHTTPBody):
2149 * platform/network/mac/FormDataStreamMac.h:
2150 * platform/network/mac/FormDataStreamMac.mm:
2151 (WebCore::getStreamFormDatas):
2152 (WebCore::formCreate):
2153 (WebCore::formFinalize):
2154 (WebCore::setHTTPBody):
2155 (WebCore::httpBodyFromStream):
2156 * platform/network/mac/ResourceRequestMac.mm:
2157 (WebCore::getResourceRequest):
2159 2006-11-14 Rob Buis <buis@kde.org>
2163 http://bugs.webkit.org/show_bug.cgi?id=11575
2164 Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
2166 Test: fast/css/css-imports.html
2168 * css/CSSImportRule.cpp:
2169 (WebCore::CSSImportRule::insertedIntoParent):
2170 Fix the crash by testing for null pointer.
2172 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
2176 Test for http://bugs.webkit.org/show_bug.cgi?id=3387
2177 Redundant keydown, keypress, keyup events sent for arrow keys
2179 * manual-tests/arrow-key-events.html: Added.
2181 2006-11-14 Darin Adler <darin@apple.com>
2185 Fix up usages of FormData within CFNet loader code.
2187 * platform/network/ResourceRequest.h:
2188 (WebCore::ResourceRequest::httpBody):
2189 * platform/network/cf/FormDataStreamCFNet.cpp:
2190 (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
2191 streamFormDatas HashMap.
2192 (WebCore::formCreate):
2193 (WebCore::formFinalize): Removed delete because the remove() will deref
2194 and delete if necessary.
2195 (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
2196 (WebCore::httpBodyFromStream):
2197 * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
2198 * platform/network/cf/ResourceRequestCFNet.cpp:
2199 (WebCore::getResourceRequest):
2201 2006-11-14 Greg Jackson <gjspanner@gmail.com>
2205 Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
2206 rather than overriding it based on platform detection.
2208 * bindings/js/kjs_navigator.cpp:
2210 2006-11-13 Brady Eidson <beidson@apple.com>
2214 Made FormData Shared, and pass it around as such.
2216 * WebCore.xcodeproj/project.pbxproj: Reordered some items
2217 * html/HTMLFormElement.cpp:
2218 (WebCore::HTMLFormElement::formData):
2219 (WebCore::HTMLFormElement::submit):
2220 * html/HTMLFormElement.h:
2221 * loader/FrameLoader.cpp:
2222 (WebCore::FormSubmission::FormSubmission):
2223 (WebCore::FrameLoader::submitForm):
2224 * loader/FrameLoader.h:
2225 * loader/mac/FrameLoaderMac.mm:
2226 (WebCore::FrameLoader::post):
2227 (WebCore::FrameLoader::loadResourceSynchronously):
2228 * loader/mac/SubresourceLoaderMac.mm:
2229 (WebCore::SubresourceLoader::create):
2230 * platform/network/FormData.h: Made FormData shared
2231 * platform/network/ResourceHandle.h:
2232 * platform/network/ResourceHandle.cpp:
2233 (WebCore::ResourceHandle::postData):
2234 * platform/network/ResourceRequest.h:
2235 (WebCore::ResourceRequest::httpBody):
2236 (WebCore::ResourceRequest::setHTTPBody):
2237 * platform/network/mac/ResourceRequestMac.mm:
2238 (WebCore::getResourceRequest):
2239 (WebCore::nsURLRequest):
2241 * platform/network/mac/FormDataStreamMac.h:
2242 * platform/network/mac/FormDataStreamMac.mm:
2243 (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
2244 (WebCore::formCreate):
2245 (WebCore::formFinalize):
2246 (WebCore::setHTTPBody):
2247 (WebCore::httpBodyFromStream):
2249 * xml/xmlhttprequest.cpp:
2250 (WebCore::XMLHttpRequest::send):
2252 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2254 Reviewed by harrison
2256 <rdar://problem/4828264>
2257 In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
2259 The start of the selection is in an editable area, and the end is in an
2260 input field inside that editable area. The code that should pull the end
2261 of such a selection outside the input field didn't escape shadow nodes,
2262 it would leave a dangling end, causing the crash in toRange.
2264 * editing/Selection.cpp:
2265 (WebCore::Selection::adjustForEditableContent): Added an ASSERT and a fixup
2266 to prevent crashes like this in future Release builds.
2267 * editing/htmlediting.cpp:
2268 (WebCore::firstEditablePositionAfterPositionInRoot): Let this function
2269 escape shadow nodes. We might eventually push this code down into
2270 next/previous{VisuallyDistinct}Canditate.
2271 (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
2273 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2277 * editing/DeleteSelectionCommand.cpp:
2278 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
2279 * editing/Editor.cpp:
2280 (WebCore::Editor::appliedEditing):
2282 (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
2284 2006-11-10 Justin Garcia <justin.garcia@apple.com>
2288 <rdar://problem/4820026>
2289 copy/paste of news.google.com yields text from hidden select element options
2291 We were adding descendants of unrendered select elements.
2293 * editing/markup.cpp:
2294 (WebCore::createMarkup): Don't traverse into nodes without renderers, unless
2295 they are grandfathered in by a rendered select element.
2297 2006-11-12 Simon Hausmann <hausmann@kde.org>
2299 Reviewed by Sam Weinig.
2301 Fix Qt build. Missing AbstractShared implementation.
2302 http://bugs.webkit.org/show_bug.cgi?id=11581
2304 * loader/qt/FrameLoaderClientQt.cpp:
2305 (WebCore::FrameLoaderClientQt::ref):
2306 (WebCore::FrameLoaderClientQt::deref):
2307 * loader/qt/FrameLoaderClientQt.h:
2308 * platform/qt/ChromeClientQt.cpp:
2309 (WebCore::ChromeClientQt::ref):
2310 (WebCore::ChromeClientQt::deref):
2311 * platform/qt/ChromeClientQt.h:
2312 * platform/qt/EditorClientQt.cpp:
2313 (WebCore::EditorClientQt::ref):
2314 (WebCore::EditorClientQt::deref):
2315 * platform/qt/EditorClientQt.h:
2317 2006-11-13 Mark Rowe <bdash@webkit.org>
2321 Fix some Linux/Gdk build issues noted by Alp Toker.
2323 * Projects/gdk/webcore-gdk.bkl:
2324 * WebCoreSources.bkl:
2325 * platform/graphics/gdk/ImageGdk.cpp:
2326 (WebCore::Image::loadPlatformResource):
2328 2006-11-12 Brady Eidson <beidson@apple.com>
2332 Logging channel plumbing for future work
2334 * platform/Logging.cpp:
2336 * platform/Logging.h:
2337 * platform/mac/LoggingMac.mm:
2338 (WebCore::InitializeLoggingChannelsIfNecessary):
2340 2006-11-12 Mark Rowe <bdash@webkit.org>
2344 Linux/Gdk compilation fixes, and bakefile cleanups. Based on patches by
2347 * Projects/gdk/webcore-gdk.bkl:
2348 * WebCoreSources.bkl:
2349 * page/PageState.cpp:
2350 * platform/gdk/ChromeClientGdk.h:
2351 (WebCore::ChromeClientGdk::ref):
2352 (WebCore::ChromeClientGdk::deref):
2353 * platform/gdk/FrameGdk.cpp:
2354 (WebCore::FrameGdkClientDefault::openURL):
2355 (WebCore::FrameGdkClientDefault::didReceiveData):
2356 (WebCore::FrameGdkClientDefault::receivedAllData):
2357 (WebCore::FrameGdk::FrameGdk):
2358 (WebCore::FrameGdk::~FrameGdk):
2359 * platform/gdk/FrameGdk.h:
2360 * platform/gdk/KeyEventGdk.cpp:
2361 (WebCore::keyIdentifierForGdkKeyCode):
2362 * platform/gdk/ScreenClientGdk.h: Removed.
2363 * platform/gdk/TemporaryLinkStubs.cpp:
2364 (FrameGdk::canPaste):
2365 (FrameGdk::originalRequestURL):
2366 (TextField::TextField):
2367 * platform/network/gdk/ResourceHandleManager.cpp:
2368 (WebCore::ResourceHandleManager::downloadTimerCallback):
2369 (WebCore::ResourceHandleManager::add):
2370 (WebCore::ResourceHandleManager::cancel):
2373 2006-11-11 Geoffrey Garen <ggaren@apple.com>
2375 Reviewed by Maciej Stachowiak.
2377 - Fixed loader crash by clarifying ownership of WebKit client objects.
2378 WebCore objects own their WebKit clients, and ref and deref through
2379 virtual methods, leaving WebKit free to use whatever client / reference-counting
2380 implementation it likes.
2383 * WebCore.xcodeproj/project.pbxproj:
2384 * bridge/EditorClient.h: Fixed up function prototypes for style.
2385 * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
2386 was to implement an alternative ownership model.
2387 (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
2388 (WebCore::FrameLoader::setClient): This function now takes ownership
2389 (WebCore::FrameLoader::client):
2390 * loader/FrameLoader.h:
2391 * loader/FrameLoaderClient.h:
2392 * page/ChromeClient.h:
2393 * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
2394 complement to Shared.
2395 (WebCore::AbstractShared::~AbstractShared):
2397 2006-11-11 George Staikos <staikos@kde.org>
2401 Fix uninitialized variable.
2403 * rendering/RenderStyle.h:
2405 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
2407 Reviewed/landed by Adam.
2409 Complete cleanup of the CMakeLists.txt.
2410 Now all files to be built are sorted in alphabetic order.
2412 General style cleanup, remove all tabs etc.
2416 2006-11-11 Geoffrey Garen <ggaren@apple.com>
2418 Reviewed by Maciej Stachowiak.
2420 Added missing initializer to ResourceRequest -- fixes some loader crashes
2421 due to assuming a request always has a non-null httpMethod.
2423 * platform/network/ResourceRequest.h:
2424 (WebCore::ResourceRequest::ResourceRequest):
2426 2006-11-11 Brady Eidson <beidson@apple.com>
2432 * loader/FrameLoaderClient.h:
2434 2006-11-11 Darin Adler <darin@apple.com>
2436 - attempt to fix Qt build
2438 * platform/qt/CursorQt.cpp:
2439 (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
2440 (WebCore::cellCursor): Ditto.
2441 (WebCore::contextMenuCursor): Ditto.
2443 2006-11-11 Rob Buis <buis@kde.org>
2447 http://bugs.webkit.org/show_bug.cgi?id=10893
2448 InsertRule can not handle @import statements
2450 Allow @import as part of a css rule.
2453 * css/CSSImportRule.cpp:
2454 (WebCore::CSSImportRule::insertedIntoParent):
2455 * css/CSSStyleSheet.cpp:
2456 (WebCore::CSSStyleSheet::CSSStyleSheet):
2457 (WebCore::CSSStyleSheet::checkLoaded):
2458 * css/CSSStyleSheet.h:
2459 (WebCore::CSSStyleSheet::loadCompleted):
2461 2006-11-11 Alexey Proskuryakov <ap@webkit.org>
2463 Attempt to fix Qt build.
2465 * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
2467 2006-11-11 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
2469 Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
2471 [CSS 3] support for vertical-text, cell and context-menu cursors
2472 http://bugs.webkit.org/show_bug.cgi?id=11494
2474 * Resources/cellCursor.png: Added.
2475 * Resources/contextMenuCursor.png: Added.
2476 * Resources/verticalTextCursor.png: Added.
2477 * WebCore.xcodeproj/project.pbxproj:
2478 * css/CSSComputedStyleDeclaration.cpp:
2479 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2480 * css/CSSValueKeywords.in:
2481 * manual-tests/cursor.html:
2482 * page/FrameView.cpp:
2483 (WebCore::selectCursor):
2484 * platform/Cursor.h:
2485 * platform/mac/CursorMac.mm:
2486 (WebCore::verticalTextCursor):
2487 (WebCore::cellCursor):
2488 (WebCore::contextMenuCursor):
2489 * rendering/RenderStyle.h:
2492 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
2494 Reviewed by aroben and ap, landed by ap.
2496 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
2498 Group graphics related files in platform/graphics.
2499 Move certain files from certain subdirectories
2500 into platform/graphics/{win,mac,cg,gdk,qt}
2503 * WebCore.xcodeproj/project.pbxproj:
2504 * platform/AffineTransform.cpp: Removed.
2505 * platform/AffineTransform.h: Removed.
2506 * platform/Color.cpp: Removed.
2507 * platform/Color.h: Removed.
2508 * platform/FloatPoint.cpp: Removed.
2509 * platform/FloatPoint.h: Removed.
2510 * platform/FloatRect.cpp: Removed.
2511 * platform/FloatRect.h: Removed.
2512 * platform/FloatSize.cpp: Removed.
2513 * platform/FloatSize.h: Removed.
2514 * platform/Icon.h: Removed.
2515 * platform/Image.cpp: Removed.
2516 * platform/Image.h: Removed.
2517 * platform/ImageSource.h: Removed.
2518 * platform/IntPoint.h: Removed.
2519 * platform/IntRect.cpp: Removed.
2520 * platform/IntRect.h: Removed.
2521 * platform/IntSize.h: Removed.
2522 * platform/IntSizeHash.h: Removed.
2523 * platform/Path.cpp: Removed.
2524 * platform/Path.h: Removed.
2525 * platform/Pen.cpp: Removed.
2526 * platform/Pen.h: Removed.
2527 * platform/cairo/AffineTransformCairo.cpp: Removed.
2528 * platform/cairo/GraphicsContextCairo.cpp: Removed.
2529 * platform/cairo/ImageCairo.cpp: Removed.
2530 * platform/cairo/ImageSourceCairo.cpp: Removed.
2531 * platform/cairo/cairo/AUTHORS: Removed.
2532 * platform/cairo/cairo/COPYING: Removed.
2533 * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
2534 * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
2535 * platform/cairo/cairo/INSTALL: Removed.
2536 * platform/cairo/cairo/NEWS: Removed.
2537 * platform/cairo/cairo/README: Removed.
2538 * platform/cairo/cairo/TODO: Removed.
2539 * platform/cairo/cairo/src/Makefile.in: Removed.
2540 * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
2541 * platform/cairo/cairo/src/cairo-arc.c: Removed.
2542 * platform/cairo/cairo/src/cairo-array.c: Removed.
2543 * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
2544 * platform/cairo/cairo/src/cairo-atsui.h: Removed.
2545 * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
2546 * platform/cairo/cairo/src/cairo-beos.h: Removed.
2547 * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
2548 * platform/cairo/cairo/src/cairo-cache.c: Removed.
2549 * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
2550 * platform/cairo/cairo/src/cairo-clip.c: Removed.
2551 * platform/cairo/cairo/src/cairo-color.c: Removed.
2552 * platform/cairo/cairo/src/cairo-debug.c: Removed.
2553 * platform/cairo/cairo/src/cairo-debug.h: Removed.
2554 * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
2555 * platform/cairo/cairo/src/cairo-directfb.h: Removed.
2556 * platform/cairo/cairo/src/cairo-features.h: Removed.
2557 * platform/cairo/cairo/src/cairo-features.h.in: Removed.
2558 * platform/cairo/cairo/src/cairo-fixed.c: Removed.
2559 * platform/cairo/cairo/src/cairo-font-options.c: Removed.
2560 * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
2561 * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
2562 * platform/cairo/cairo/src/cairo-font.c: Removed.
2563 * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
2564 * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
2565 * platform/cairo/cairo/src/cairo-ft.h: Removed.
2566 * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
2567 * platform/cairo/cairo/src/cairo-glitz.h: Removed.
2568 * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
2569 * platform/cairo/cairo/src/cairo-gstate.c: Removed.
2570 * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
2571 * platform/cairo/cairo/src/cairo-hash.c: Removed.
2572 * platform/cairo/cairo/src/cairo-hull.c: Removed.
2573 * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
2574 * platform/cairo/cairo/src/cairo-matrix.c: Removed.
2575 * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
2576 * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
2577 * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
2578 * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
2579 * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
2580 * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
2581 * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
2582 * platform/cairo/cairo/src/cairo-path-data.c: Removed.
2583 * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
2584 * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
2585 * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
2586 * platform/cairo/cairo/src/cairo-path.c: Removed.
2587 * platform/cairo/cairo/src/cairo-pattern.c: Removed.
2588 * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
2589 * platform/cairo/cairo/src/cairo-pdf.h: Removed.
2590 * platform/cairo/cairo/src/cairo-pen.c: Removed.
2591 * platform/cairo/cairo/src/cairo-platform.h: Removed.
2592 * platform/cairo/cairo/src/cairo-png.c: Removed.
2593 * platform/cairo/cairo/src/cairo-polygon.c: Removed.
2594 * platform/cairo/cairo/src/cairo-private.h: Removed.
2595 * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
2596 * platform/cairo/cairo/src/cairo-ps.h: Removed.
2597 * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
2598 * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
2599 * platform/cairo/cairo/src/cairo-quartz.h: Removed.
2600 * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
2601 * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
2602 * platform/cairo/cairo/src/cairo-region.c: Removed.
2603 * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
2604 * platform/cairo/cairo/src/cairo-slope.c: Removed.
2605 * platform/cairo/cairo/src/cairo-spline.c: Removed.
2606 * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
2607 * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
2608 * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
2609 * platform/cairo/cairo/src/cairo-surface.c: Removed.
2610 * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
2611 * platform/cairo/cairo/src/cairo-svg.h: Removed.
2612 * platform/cairo/cairo/src/cairo-traps.c: Removed.
2613 * platform/cairo/cairo/src/cairo-unicode.c: Removed.
2614 * platform/cairo/cairo/src/cairo-wideint.c: Removed.
2615 * platform/cairo/cairo/src/cairo-wideint.h: Removed.
2616 * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
2617 * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
2618 * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
2619 * platform/cairo/cairo/src/cairo-win32.h: Removed.
2620 * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
2621 * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
2622 * platform/cairo/cairo/src/cairo-xcb.h: Removed.
2623 * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
2624 * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
2625 * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
2626 * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
2627 * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
2628 * platform/cairo/cairo/src/cairo-xlib.h: Removed.
2629 * platform/cairo/cairo/src/cairo.c: Removed.
2630 * platform/cairo/cairo/src/cairo.h: Removed.
2631 * platform/cairo/cairo/src/cairoint.h: Removed.
2632 * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
2633 * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
2634 * platform/cairo/cairo/src/test-meta-surface.c: Removed.
2635 * platform/cairo/cairo/src/test-meta-surface.h: Removed.
2636 * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
2637 * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
2638 * platform/cairo/pixman/AUTHORS: Removed.
2639 * platform/cairo/pixman/COPYING: Removed.
2640 * platform/cairo/pixman/README: Removed.
2641 * platform/cairo/pixman/src/Makefile.in: Removed.
2642 * platform/cairo/pixman/src/fbcompose.c: Removed.
2643 * platform/cairo/pixman/src/fbedge.c: Removed.
2644 * platform/cairo/pixman/src/fbedgeimp.h: Removed.
2645 * platform/cairo/pixman/src/fbmmx.c: Removed.
2646 * platform/cairo/pixman/src/fbmmx.h: Removed.
2647 * platform/cairo/pixman/src/fbpict.c: Removed.
2648 * platform/cairo/pixman/src/fbpict.h: Removed.
2649 * platform/cairo/pixman/src/fbtrap.c: Removed.
2650 * platform/cairo/pixman/src/icblt.c: Removed.
2651 * platform/cairo/pixman/src/icbltone.c: Removed.
2652 * platform/cairo/pixman/src/iccolor.c: Removed.
2653 * platform/cairo/pixman/src/icformat.c: Removed.
2654 * platform/cairo/pixman/src/icimage.c: Removed.
2655 * platform/cairo/pixman/src/icimage.h: Removed.
2656 * platform/cairo/pixman/src/icint.h: Removed.
2657 * platform/cairo/pixman/src/icpixels.c: Removed.
2658 * platform/cairo/pixman/src/icrect.c: Removed.
2659 * platform/cairo/pixman/src/icrop.h: Removed.
2660 * platform/cairo/pixman/src/icstipple.c: Removed.
2661 * platform/cairo/pixman/src/ictransform.c: Removed.
2662 * platform/cairo/pixman/src/ictrap.c: Removed.
2663 * platform/cairo/pixman/src/ictri.c: Removed.
2664 * platform/cairo/pixman/src/icutil.c: Removed.
2665 * platform/cairo/pixman/src/pixman-remap.h: Removed.
2666 * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
2667 * platform/cairo/pixman/src/pixman.h: Removed.
2668 * platform/cairo/pixman/src/pixregion.c: Removed.
2669 * platform/cairo/pixman/src/pixregionint.h: Removed.
2670 * platform/cairo/pixman/src/renderedge.c: Removed.
2671 * platform/cairo/pixman/src/renderedge.h: Removed.
2672 * platform/cairo/pixman/src/slim_internal.h: Removed.
2673 * platform/cairo/rgb24-hacks.txt: Removed.
2674 * platform/cairo/scale-removal.txt: Removed.
2675 * platform/cg/AffineTransformCG.cpp: Removed.
2676 * platform/cg/FloatPointCG.cpp: Removed.
2677 * platform/cg/FloatRectCG.cpp: Removed.
2678 * platform/cg/FloatSizeCG.cpp: Removed.
2679 * platform/cg/GraphicsContextCG.cpp: Removed.
2680 * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
2681 * platform/cg/ImageCG.cpp: Removed.
2682 * platform/cg/ImageSourceCG.cpp: Removed.
2683 * platform/cg/IntPointCG.cpp: Removed.
2684 * platform/cg/IntRectCG.cpp: Removed.
2685 * platform/cg/IntSizeCG.cpp: Removed.
2686 * platform/cg/PDFDocumentImage.cpp: Removed.
2687 * platform/cg/PDFDocumentImage.h: Removed.
2688 * platform/cg/PathCG.cpp: Removed.
2689 * platform/gdk/ImageGdk.cpp: Removed.
2690 * platform/mac/ColorMac.mm: Removed.
2691 * platform/mac/FloatPointMac.mm: Removed.
2692 * platform/mac/FloatRectMac.mm: Removed.
2693 * platform/mac/FloatSizeMac.mm: Removed.
2694 * platform/mac/GraphicsContextMac.mm:
2695 * platform/mac/IconMac.mm: Removed.
2696 * platform/mac/ImageMac.mm: Removed.
2697 * platform/mac/IntPointMac.mm: Removed.
2698 * platform/mac/IntRectMac.mm: Removed.
2699 * platform/mac/IntSizeMac.mm: Removed.
2700 * platform/qt/AffineTransformQt.cpp: Removed.
2701 * platform/qt/ColorQt.cpp: Removed.
2702 * platform/qt/FloatPointQt.cpp: Removed.
2703 * platform/qt/FloatRectQt.cpp: Removed.
2704 * platform/qt/IconQt.cpp: Removed.
2705 * platform/qt/ImageQt.cpp: Removed.
2706 * platform/qt/ImageSourceQt.cpp: Removed.
2707 * platform/qt/IntPointQt.cpp: Removed.
2708 * platform/qt/IntRectQt.cpp: Removed.
2709 * platform/qt/IntSizeQt.cpp: Removed.
2710 * platform/qt/PathQt.cpp: Removed.
2711 * platform/win/ImageWin.cpp: Removed.
2712 * platform/win/IntPointWin.cpp: Removed.
2713 * platform/win/IntRectWin.cpp: Removed.
2714 * platform/win/IntSizeWin.cpp: Removed.
2716 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
2720 A layout test was added when this bug was fixed, so none needed now.
2723 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2724 http://bugs.webkit.org/show_bug.cgi?id=11570
2726 * rendering/RenderStyle.h:
2727 (WebCore::RenderStyle::isSpace): Removed.
2728 * rendering/RenderText.cpp:
2729 (WebCore::isSpace): Added.
2730 (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
2732 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
2736 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2737 http://bugs.webkit.org/show_bug.cgi?id=11570
2739 * rendering/RenderStyle.h:
2740 (WebCore::RenderStyle::isSpace): Added.
2741 * rendering/RenderText.cpp:
2742 (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
2743 treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
2745 2006-11-10 Zalan Bujtas <zalan.bujtas@nokia.com>
2749 Added basic types for symbian platform.
2750 http://bugs.webkit.org/show_bug.cgi?id=11540
2753 * platform/AtomicString.h:
2754 (WebCore::AtomicString::AtomicString):
2755 (WebCore::AtomicString::operator TPtrC):
2756 * platform/DeprecatedString.cpp:
2757 (WebCore::initializeHandleNodeBlock):
2758 * platform/DeprecatedString.h: char _internalBuffer has to be in front of
2759 the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
2760 bitfields and breaks byte aligment
2761 * platform/FloatPoint.h:
2762 * platform/FloatRect.h:
2763 * platform/IntPoint.h:
2764 * platform/IntRect.h:
2765 * platform/IntSize.h:
2766 * platform/PlatformString.h:
2767 (WebCore::String::operator TPtrC):
2768 (WebCore::String::des):
2769 * platform/StringImpl.h:
2770 * platform/symbian/DeprecatedStringSymbian.cpp: Added.
2771 (WebCore::DeprecatedString::setBufferFromDes):
2772 (WebCore::DeprecatedString::fromDes):
2773 (WebCore::DeprecatedString::des):
2774 (WebCore::DeprecatedString::des8):
2775 * platform/symbian/FloatPointSymbian.cpp: Added.
2776 (WebCore::FloatPoint::FloatPoint):
2777 (WebCore::FloatPoint::operator TPoint):
2778 * platform/symbian/FloatRectSymbian.cpp: Added.
2779 (WebCore::FloatRect::FloatRect):
2780 (WebCore::FloatRect::operator TRect):
2781 (WebCore::FloatRect::rect):
2782 * platform/symbian/IntPointSymbian.cpp: Added.
2783 (WebCore::IntPoint::IntPoint):
2784 (WebCore::IntPoint::operator TPoint):
2785 * platform/symbian/IntRectSymbian.cpp: Added.
2786 (WebCore::IntRect::IntRect):
2787 (WebCore::IntRect::operator TRect):
2788 (WebCore::IntRect::Rect):
2789 * platform/symbian/IntSizeSymbian.cpp: Added.
2790 (WebCore::IntSize::IntSize):
2791 (WebCore::IntSize::operator TSize):
2792 * platform/symbian/StringImplSymbian.cpp: Added.
2793 (WebCore::StringImpl::StringImpl):
2794 (WebCore::StringImpl::des):
2795 * platform/symbian/StringSymbian.cpp: Added.
2796 (WebCore::String::String):
2798 2006-11-10 Zack Rusin <zack@kde.org>
2802 Adjust to the changes Brady made in the Qt code.
2804 * loader/qt/FrameLoaderClientQt.cpp:
2805 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2806 * loader/qt/FrameLoaderClientQt.h:
2808 2006-11-10 Justin Garcia <justin.garcia@apple.com>
2810 Reviewed by harrison
2812 <rdar://problem/4069359>
2813 Deleting hyperlink text, then typing uses link typing style but loses the link itself
2815 The removed anchor element needs to stick around temporarily, in the same way
2816 that the typing style hangs off the caret until the user moves it. Also text
2817 insertion around anchors didn't match TextEdit.
2819 * editing/DeleteSelectionCommand.cpp:
2820 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
2821 (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
2822 * editing/DeleteSelectionCommand.h:
2823 * editing/EditCommand.cpp:
2824 (WebCore::EditCommand::apply): Clear the removed anchor after any top level
2825 editing command that doesn't preserve the typing style (matches TextEdit).
2826 * editing/Editor.cpp:
2827 (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call
2828 setSelection with a message telling it to clear the typing style
2829 (and the saved anchor) here. Save/restore the saved anchor because of this.
2831 (WebCore::Editor::removedAnchor): Getter.
2832 (WebCore::Editor::setRemovedAnchor): Setter.
2833 * editing/InsertTextCommand.cpp:
2834 (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
2836 * editing/SelectionController.cpp:
2837 (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
2838 we make a selection change that clears the typing style.
2839 (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
2840 * editing/htmlediting.cpp:
2841 (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
2842 made some changes to match TextEdit's behavior. First, insert content
2843 inside the anchor when the caret is after it, unless the caret is at the
2844 end of the document, or if the caret is before it and at the start of a
2847 === Safari-521.30 ===
2849 2006-11-10 Timothy Hatcher <timothy@apple.com>
2853 Check for BHIDDEN in isVisible() also.
2855 * rendering/RenderStyle.h:
2856 (WebCore::BorderValue::isVisible):
2858 2006-11-10 Timothy Hatcher <timothy@apple.com>
2862 <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
2864 Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
2866 * editing/DeleteButtonController.cpp:
2867 (WebCore::isDeletableElement):
2868 * rendering/RenderStyle.h:
2869 (WebCore::BorderValue::isVisible):
2871 2006-11-10 Adam Roben <aroben@apple.com>
2873 Rubberstamped by Anders.
2875 Back out some accidentally-committed changes from r17711.
2878 (WebCore::Frame::command):
2879 (WebCore::FramePrivate::FramePrivate):
2881 * page/FramePrivate.h:
2883 2006-11-10 Anders Carlsson <acarlsson@apple.com>
2887 Add more commands, make toggleBold and toggleItalic executable commands.
2890 * editing/Editor.cpp:
2891 (WebCore::execCopy):
2893 (WebCore::execDelete):
2894 (WebCore::execForwardDelete):
2895 (WebCore::execPaste):
2896 (WebCore::execSelectAll):
2897 (WebCore::execToggleBold):
2898 (WebCore::execToggleItalic):
2900 (WebCore::canPaste):
2901 (WebCore::hasEditableSelection):
2902 (WebCore::hasEditableRangeSelection):
2903 (WebCore::hasRangeSelection):
2904 (WebCore::hasRichlyEditableSelection):
2905 (WebCore::CommandEntry::):
2908 2006-11-10 Anders Carlsson <acarlsson@apple.com>
2910 Reviewed by Maciej, Geoff.
2912 Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
2913 the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
2916 * bridge/mac/WebCoreFrameBridge.h:
2917 * bridge/mac/WebCoreFrameBridge.mm:
2918 * editing/Editor.cpp:
2919 (WebCore::execMoveBackward):
2920 (WebCore::execMoveBackwardAndModifySelection):
2921 (WebCore::execMoveDown):
2922 (WebCore::execMoveDownAndModifySelection):
2923 (WebCore::execMoveForward):
2924 (WebCore::execMoveForwardAndModifySelection):
2925 (WebCore::execMoveLeft):
2926 (WebCore::execMoveLeftAndModifySelection):
2927 (WebCore::execMoveRight):
2928 (WebCore::execMoveRightAndModifySelection):
2929 (WebCore::execMoveToBeginningOfDocument):
2930 (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
2931 (WebCore::execMoveToBeginningOfSentence):
2932 (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
2933 (WebCore::execMoveToBeginningOfLine):
2934 (WebCore::execMoveToBeginningOfLineAndModifySelection):
2935 (WebCore::execMoveToBeginningOfParagraph):
2936 (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
2937 (WebCore::execMoveToEndOfDocument):
2938 (WebCore::execMoveToEndOfDocumentAndModifySelection):
2939 (WebCore::execMoveToEndOfSentence):
2940 (WebCore::execMoveToEndOfSentenceAndModifySelection):
2941 (WebCore::execMoveToEndOfLine):
2942 (WebCore::execMoveToEndOfLineAndModifySelection):
2943 (WebCore::execMoveToEndOfParagraph):
2944 (WebCore::execMoveToEndOfParagraphAndModifySelection):
2945 (WebCore::execMoveParagraphBackwardAndModifySelection):
2946 (WebCore::execMoveParagraphForwardAndModifySelection):
2947 (WebCore::execMoveUp):
2948 (WebCore::execMoveUpAndModifySelection):
2949 (WebCore::execMoveWordBackward):
2950 (WebCore::execMoveWordBackwardAndModifySelection):
2951 (WebCore::execMoveWordForward):
2952 (WebCore::execMoveWordForwardAndModifySelection):
2953 (WebCore::execMoveWordLeft):
2954 (WebCore::execMoveWordLeftAndModifySelection):
2955 (WebCore::execMoveWordRight):
2956 (WebCore::execMoveWordRightAndModifySelection):
2957 (WebCore::enabledAnySelection):
2958 (WebCore::createCommandMap):
2959 (WebCore::CommandEntry::):
2960 (WebCore::Editor::execCommand):
2963 2006-11-10 Brady Eidson <beidson@apple.com>
2967 Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
2970 * WebCore.xcodeproj/project.pbxproj:
2971 * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
2972 * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
2973 * loader/FrameLoaderClient.h:
2974 * loader/icon/IconDatabase.cpp:
2975 (WebCore::IconDatabase::sharedIconDatabase):
2976 (WebCore::IconDatabase::~IconDatabase):
2977 * loader/icon/IconDatabase.h:
2978 (WebCore::IconDatabase::isPrivateBrowsingEnabled):
2979 (WebCore::IconDatabase::enabled):
2980 * loader/icon/IconLoader.cpp:
2981 (WebCore::IconLoader::finishLoading):
2982 * loader/mac/FrameLoaderMac.mm:
2984 2006-11-10 Zack Rusin <zack@kde.org>
2986 Reviewed and landed by Anders.
2988 Adjust platform Qt/KDE code to the recent loader
2992 * loader/DocumentLoader.h:
2993 * loader/FrameLoader.cpp:
2994 (WebCore::FrameLoader::createEmptyDocument):
2995 * loader/FrameLoader.h:
2996 * loader/FrameLoaderClient.h:
2997 * loader/qt/DocumentLoaderQt.cpp: Added.
2998 (WebCore::canonicalizedTitle):
2999 (WebCore::DocumentLoader::DocumentLoader):
3000 (WebCore::DocumentLoader::frameLoader):
3001 (WebCore::DocumentLoader::~DocumentLoader):
3002 (WebCore::DocumentLoader::URL):
3003 (WebCore::DocumentLoader::unreachableURL):
3004 (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
3005 (WebCore::DocumentLoader::isStopping):
3006 (WebCore::DocumentLoader::clearErrors):
3007 (WebCore::DocumentLoader::stopLoading):
3008 (WebCore::DocumentLoader::setupForReplace):
3009 (WebCore::DocumentLoader::commitIfReady):
3010 (WebCore::DocumentLoader::finishedLoading):
3011 (WebCore::DocumentLoader::setCommitted):
3012 (WebCore::DocumentLoader::isCommitted):
3013 (WebCore::DocumentLoader::setLoading):
3014 (WebCore::DocumentLoader::isLoading):
3015 (WebCore::DocumentLoader::doesProgressiveLoad):
3016 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
3017 (WebCore::DocumentLoader::updateLoading):
3018 (WebCore::DocumentLoader::setFrame):
3019 (WebCore::DocumentLoader::attachToFrame):
3020 (WebCore::DocumentLoader::detachFromFrame):
3021 (WebCore::DocumentLoader::prepareForLoadStart):
3022 (WebCore::DocumentLoader::loadingStartedTime):
3023 (WebCore::DocumentLoader::setIsClientRedirect):
3024 (WebCore::DocumentLoader::isClientRedirect):
3025 (WebCore::DocumentLoader::setPrimaryLoadComplete):
3026 (WebCore::DocumentLoader::isLoadingInAPISense):
3027 (WebCore::DocumentLoader::stopRecordingResponses):
3028 (WebCore::DocumentLoader::title):
3029 (WebCore::DocumentLoader::triggeringAction):
3030 (WebCore::DocumentLoader::setTriggeringAction):
3031 (WebCore::DocumentLoader::setOverrideEncoding):
3032 (WebCore::DocumentLoader::overrideEncoding):
3033 (WebCore::DocumentLoader::setTitle):
3034 (WebCore::DocumentLoader::URLForHistory):
3035 * loader/qt/FrameLoaderClientQt.cpp: Added.
3036 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3037 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
3038 (WebCore::FrameLoaderClientQt::detachFrameLoader):
3039 (WebCore::FrameLoaderClientQt::hasWebView):
3040 (WebCore::FrameLoaderClientQt::hasFrameView):
3041 (WebCore::FrameLoaderClientQt::hasBackForwardList):
3042 (WebCore::FrameLoaderClientQt::resetBackForwardList):
3043 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
3044 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
3045 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
3046 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
3047 (WebCore::FrameLoaderClientQt::makeDocumentView):
3048 (WebCore::FrameLoaderClientQt::makeRepresentation):
3049 (WebCore::FrameLoaderClientQt::forceLayout):
3050 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
3051 (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
3052 (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
3053 (WebCore::FrameLoaderClientQt::updateHistoryForReload):
3054 (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
3055 (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
3056 (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
3057 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
3058 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
3059 (WebCore::FrameLoaderClientQt::resetAfterLoadError):
3060 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
3061 (WebCore::FrameLoaderClientQt::willCloseDocument):
3062 (WebCore::FrameLoaderClientQt::detachedFromParent1):
3063 (WebCore::FrameLoaderClientQt::detachedFromParent2):
3064 (WebCore::FrameLoaderClientQt::detachedFromParent3):
3065 (WebCore::FrameLoaderClientQt::detachedFromParent4):
3066 (WebCore::FrameLoaderClientQt::loadedFromPageCache):
3067 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3068 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3069 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3070 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3071 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3072 (WebCore::FrameLoaderClientQt::dispatchWillClose):
3073 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3074 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3075 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3076 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3077 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3078 (WebCore::FrameLoaderClientQt::dispatchShow):
3079 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
3080 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3081 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
3082 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
3083 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
3084 (WebCore::FrameLoaderClientQt::revertToProvisionalState):
3085 (WebCore::FrameLoaderClientQt::clearUnarchivingState):
3086 (WebCore::FrameLoaderClientQt::progressStarted):
3087 (WebCore::FrameLoaderClientQt::progressCompleted):
3088 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3089 (WebCore::FrameLoaderClientQt::willChangeTitle):
3090 (WebCore::FrameLoaderClientQt::didChangeTitle):
3091 (WebCore::FrameLoaderClientQt::finishedLoading):
3092 (WebCore::FrameLoaderClientQt::finalSetupForReplace):
3093 (WebCore::FrameLoaderClientQt::setDefersLoading):
3094 (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
3095 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
3096 (WebCore::FrameLoaderClientQt::clearArchivedResources):
3097 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3098 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3099 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3100 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3101 (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
3102 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
3103 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
3104 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
3105 (WebCore::FrameLoaderClientQt::didFinishLoad):
3106 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
3107 (WebCore::FrameLoaderClientQt::setTitle):
3108 (WebCore::FrameLoaderClientQt::userAgent):
3109 * loader/qt/FrameLoaderClientQt.h: Added.
3110 * loader/qt/FrameLoaderQt.cpp:
3111 (WebCore::FrameLoader::submitForm):
3112 (WebCore::FrameLoader::overrideMediaType):
3113 (WebCore::FrameLoader::getHistoryLength):
3114 (WebCore::FrameLoader::referrer):
3115 (WebCore::FrameLoader::detachFromParent):
3116 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3117 (WebCore::FrameLoader::goBackOrForward):
3118 (WebCore::FrameLoader::historyURL):
3119 (WebCore::FrameLoader::didFirstLayout):
3120 (WebCore::FrameLoader::canGoBackOrForward):
3121 (WebCore::FrameLoader::partClearedInBegin):
3122 (WebCore::FrameLoader::saveDocumentState):
3123 (WebCore::FrameLoader::restoreDocumentState):
3124 (WebCore::FrameLoader::didChangeTitle):
3125 (WebCore::FrameLoader::redirectDataToPlugin):
3126 (WebCore::PolicyCheck::PolicyCheck):
3127 (WebCore::PolicyCheck::clear):
3128 (WebCore::PolicyCheck::set):
3129 (WebCore::PolicyCheck::call):
3130 (WebCore::PolicyCheck::clearRequest):
3131 * loader/qt/NavigationActionQt.cpp: Added.
3132 (WebCore::navigationType):
3133 (WebCore::NavigationAction::NavigationAction):
3134 * loader/qt/ResourceLoaderQt.cpp: Added.
3135 (WebCore::ResourceLoader::ResourceLoader):
3136 (WebCore::ResourceLoader::~ResourceLoader):
3137 (WebCore::ResourceLoader::setDefersLoading):
3138 (WebCore::ResourceLoader::cancel):
3139 (WebCore::ResourceLoader::loadsBlocked):
3140 * platform/MimeTypeRegistry.cpp:
3141 (WebCore::initialiseSupportedImageMIMETypes):
3142 * platform/network/qt/ResourceHandleManager.cpp:
3143 (WebCore::ResourceHandleManager::slotResult):
3144 (WebCore::ResourceHandleManager::cancel):
3145 * platform/qt/ChromeClientQt.cpp: Added.
3146 (WebCore::rootWindowForFrame):
3147 (WebCore::ChromeClientQt::ChromeClientQt):
3148 (WebCore::ChromeClientQt::~ChromeClientQt):
3149 (WebCore::ChromeClientQt::setWindowRect):
3150 (WebCore::ChromeClientQt::windowRect):
3151 (WebCore::ChromeClientQt::pageRect):
3152 (WebCore::ChromeClientQt::scaleFactor):
3153 (WebCore::ChromeClientQt::focus):
3154 (WebCore::ChromeClientQt::unfocus):
3155 (WebCore::ChromeClientQt::createWindow):
3156 (WebCore::ChromeClientQt::createModalDialog):
3157 (WebCore::ChromeClientQt::show):
3158 (WebCore::ChromeClientQt::canRunModal):
3159 (WebCore::ChromeClientQt::runModal):
3160 (WebCore::ChromeClientQt::setToolbarsVisible):
3161 (WebCore::ChromeClientQt::toolbarsVisible):
3162 (WebCore::ChromeClientQt::setStatusbarVisible):
3163 (WebCore::ChromeClientQt::statusbarVisible):
3164 (WebCore::ChromeClientQt::setScrollbarsVisible):
3165 (WebCore::ChromeClientQt::scrollbarsVisible):
3166 (WebCore::ChromeClientQt::setMenubarVisible):
3167 (WebCore::ChromeClientQt::menubarVisible):
3168 (WebCore::ChromeClientQt::setResizable):
3169 * platform/qt/ChromeClientQt.h: Added.
3170 * platform/qt/EditorClientQt.cpp:
3171 (WebCore::EditorClientQt::shouldBeginEditing):
3172 (WebCore::EditorClientQt::shouldEndEditing):
3173 (WebCore::EditorClientQt::shouldApplyStyle):
3174 (WebCore::EditorClientQt::didBeginEditing):
3175 (WebCore::EditorClientQt::respondToChangedContents):
3176 (WebCore::EditorClientQt::didEndEditing):
3177 * platform/qt/EditorClientQt.h:
3178 * platform/qt/FrameQt.cpp:
3179 (WebCore::FrameQt::FrameQt):
3180 (WebCore::FrameQt::~FrameQt):
3181 (WebCore::FrameQt::keyEvent):
3182 * platform/qt/FrameQt.h:
3183 * platform/qt/FrameQtClient.cpp:
3184 (WebCore::FrameQtClientDefault::openURL):
3185 (WebCore::FrameQtClientDefault::didReceiveData):
3186 (WebCore::FrameQtClientDefault::receivedAllData):
3187 * platform/qt/ImageQt.cpp:
3188 * platform/qt/MimeTypeRegistryQt.cpp: Added.
3189 (WebCore::getMIMETypeForUTI):
3190 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3191 * platform/qt/PageQt.cpp:
3192 * platform/qt/PlatformKeyboardEventQt.cpp:
3193 (WebCore::keyIdentifierForQtKeyCode):
3194 * platform/qt/ScreenQt.cpp:
3195 * platform/qt/TemporaryLinkStubs.cpp:
3196 (WebCore::TextField::TextField):
3197 (WebCore::screenDepth):
3198 (WebCore::screenDepthPerComponent):
3199 (WebCore::screenIsMonochrome):
3200 (WebCore::screenRect):
3201 (WebCore::screenAvailableRect):
3203 2006-11-10 Brady Eidson <beidson@apple.com>
3207 http://bugs.webkit.org/show_bug.cgi?id=11554
3208 Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
3209 in case the icon load fails after some data has been received.
3211 * loader/icon/IconLoader.cpp:
3212 (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
3213 on error. Also, as a loader re-factoring sanity check, added an assertion
3214 (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon
3215 is already committed to the DB. Skip doing that step twice.
3217 2006-11-09 Oliver Hunt <oliver@apple.com>
3221 Pulled MIME type handling out of WebFrameBridge and added
3222 a general C++ class to store/query MIME info
3223 Added an Obj-C bridge to provide WebKit with access to the
3224 MimeTypeRegistry for non-Obj-C++ classes.
3227 * WebCore.xcodeproj/project.pbxproj:
3228 * bridge/mac/WebCoreFrameBridge.h:
3229 * bridge/mac/WebCoreFrameBridge.mm:
3230 * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
3231 * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
3232 (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
3233 (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
3234 (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
3235 (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
3236 (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
3237 * platform/Image.cpp:
3238 (WebCore::Image::supportsType):
3240 * platform/MimeTypeRegistry.cpp: Added.
3241 (WebCore::initialiseSupportedImageMIMETypes):
3242 (WebCore::initialiseSupportedNonImageMimeTypes):
3243 (WebCore::initialiseMimeTypeRegistry):
3244 (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
3245 (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
3246 (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
3247 (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
3248 (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
3249 (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
3250 * platform/MimeTypeRegistry.h: Added.
3251 * platform/mac/ImageMac.mm:
3252 * platform/mac/MimeTypeRegistryMac.mm: Added.
3253 (WebCore::getMIMETypeForUTI):
3254 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3256 2006-11-09 Maciej Stachowiak <mjs@apple.com>
3260 - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
3261 for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
3262 for you and use vsnprintf.
3264 * bindings/js/kjs_window.cpp:
3265 (KJS::Window::isSafeScript):
3266 * css/cssparser.cpp:
3267 (WebCore::CSSParser::parseColorFromValue):
3268 * dom/StyledElement.cpp:
3269 (WebCore::StyledElement::addCSSColor):
3270 * dom/XMLTokenizer.cpp:
3271 (WebCore::XMLTokenizer::handleError):
3272 * ksvg2/css/SVGCSSParser.cpp:
3273 (WebCore::CSSParser::parseSVGPaint):
3274 (WebCore::CSSParser::parseSVGColor):
3275 * ksvg2/svg/SVGPathSegArc.h:
3276 (WebCore::SVGPathSegArcAbs::toString):
3277 (WebCore::SVGPathSegArcRel::toString):
3278 * ksvg2/svg/SVGPathSegCurvetoCubic.h:
3279 (WebCore::SVGPathSegCurvetoCubicAbs::toString):
3280 (WebCore::SVGPathSegCurvetoCubicRel::toString):
3281 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
3282 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
3283 (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
3284 * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
3285 (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
3286 (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
3287 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
3288 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
3289 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
3290 * ksvg2/svg/SVGPathSegLineto.h:
3291 (WebCore::SVGPathSegLinetoAbs::toString):
3292 (WebCore::SVGPathSegLinetoRel::toString):
3293 * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
3294 (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
3295 (WebCore::SVGPathSegLinetoHorizontalRel::toString):
3296 * ksvg2/svg/SVGPathSegLinetoVertical.h:
3297 (WebCore::SVGPathSegLinetoVerticalAbs::toString):
3298 (WebCore::SVGPathSegLinetoVerticalRel::toString):
3299 * ksvg2/svg/SVGPathSegMoveto.h:
3300 (WebCore::SVGPathSegMovetoAbs::toString):
3301 (WebCore::SVGPathSegMovetoRel::toString):
3302 * ksvg2/svg/SVGPolyElement.cpp:
3303 (WebCore::SVGPolyElement::notifyAttributeChange):
3304 * ksvg2/svg/SVGUseElement.cpp:
3305 (WebCore::SVGUseElement::closeRenderer):
3306 * loader/icon/IconDatabase.cpp:
3307 (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
3308 * loader/icon/SQLDatabase.cpp:
3309 (WebCore::SQLDatabase::setSynchronous):
3310 * platform/Color.cpp:
3311 (WebCore::Color::name):
3312 * platform/DeprecatedString.cpp:
3313 (WebCore::DeprecatedString::setNum):
3314 (WebCore::DeprecatedString::format):
3315 * platform/DeprecatedString.h:
3316 * platform/PlatformString.h:
3317 * platform/String.cpp:
3318 (WebCore::String::format):
3319 (WebCore::String::number):
3320 * platform/mac/KeyEventMac.mm:
3321 (WebCore::keyIdentifierForKeyEvent):
3322 * platform/win/KeyEventWin.cpp:
3323 (WebCore::keyIdentifierForWindowsKeyCode):
3324 * rendering/RenderListMarker.cpp:
3325 (WebCore::RenderListMarker::calcMinMaxWidth):
3327 2006-11-09 Maciej Stachowiak <mjs@apple.com>
3331 - fixed "Regression: Can't log into gmail.com"
3332 - fixed "iBench doesn't report results - tests run but no number is recorded"
3334 * platform/network/cf/FormDataStreamCFNet.cpp:
3335 (WebCore::setHTTPBody): Removed extra ! character.
3337 2006-11-09 Beth Dakin <bdakin@apple.com>
3341 Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in
3342 WebCore::RenderBlock::skipWhitespace
3344 Note that this will still crash on Debug builds because it will hit
3345 an assertion failure in editing. (One of the reasons there is no
3346 layout test along with this fix.) There is definitely some editing
3347 wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
3348 id=10144 for updates on the assertion failure bug.
3350 * rendering/RootInlineBox.cpp:
3351 (WebCore::RootInlineBox::childRemoved): It is possible for a
3352 prevRootBox and its prevRootBox to share a lineBreakObj. So instead
3353 of just clearing the lineBreakObj of the prevRootBox, cycle through
3354 all prevRootBoxs with the same lineBreakObj.
3356 2006-11-09 Adam Roben <aroben@apple.com>
3360 Fix the change in behavior I caused in r17680 with my build fix.
3362 * rendering/RenderObject.cpp:
3363 (WebCore::RenderObject::maxTopMargin):
3364 (WebCore::RenderObject::maxBottomMargin):
3366 2006-11-09 Anders Carlsson <acarlsson@apple.com>
3368 Reviewed by Adam, Oliver.
3370 Move more functions to Editor.
3372 * bridge/EditorClient.h:
3373 * bridge/mac/FrameMac.h:
3374 * bridge/mac/FrameMac.mm:
3375 * bridge/mac/WebCoreFrameBridge.h:
3376 * editing/EditCommand.cpp:
3377 (WebCore::EditCommand::apply):
3378 (WebCore::EditCommand::unapply):
3379 (WebCore::EditCommand::reapply):
3380 * editing/Editor.cpp:
3381 (WebCore::Editor::respondToChangedContents):
3382 (WebCore::dispatchEditableContentChangedEvents):
3383 (WebCore::Editor::appliedEditing):
3384 (WebCore::Editor::unappliedEditing):
3385 (WebCore::Editor::reappliedEditing):
3387 * editing/TypingCommand.cpp:
3388 (WebCore::TypingCommand::typingAddedToOpenCommand):
3392 2006-11-09 Darin Adler <darin@apple.com>
3394 * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
3396 2006-11-09 Alice Liu <alice.liu@apple.com>
3398 Reviewed by Beth Dakin.
3400 Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
3401 All existing layout tests pass
3403 * html/HTMLTableElement.cpp:
3404 (WebCore::HTMLTableElement::deleteRow):
3405 check lastSection before deleting row
3407 2006-11-09 Darin Adler <darin@apple.com>
3409 - improved version of last night's build fix (should not do using namespace in a header)
3411 * rendering/RenderObject.h:
3412 * rendering/RenderObject.cpp:
3413 (WebCore::RenderObject::maxTopMargin):
3414 (WebCore::RenderObject::maxBottomMargin):
3416 2006-11-08 Maciej Stachowiak <mjs@apple.com>
3420 - added ResourceError class and didFailWithError client method
3422 * WebCore.xcodeproj/project.pbxproj:
3423 * loader/icon/IconLoader.cpp:
3424 (WebCore::IconLoader::didFailWithError):
3425 (WebCore::IconLoader::didFinishLoading):
3426 * loader/icon/IconLoader.h:
3427 * loader/loader.cpp:
3428 (WebCore::Loader::receivedAllData):
3429 (WebCore::Loader::didFailWithError):
3431 * loader/mac/SubresourceLoaderMac.mm:
3432 (WebCore::SubresourceLoader::didFail):
3433 (WebCore::SubresourceLoader::didCancel):
3434 * platform/cf/RetainPtr.h:
3436 (WebCore::adoptCFReference):
3437 (WebCore::RetainPtr::RetainPtr):
3439 * platform/network/ResourceError.cpp: Added.
3440 * platform/network/ResourceError.h: Added.
3441 (WebCore::ResourceError::ResourceError):
3442 (WebCore::ResourceError::domain):
3443 (WebCore::ResourceError::errorCode):
3444 (WebCore::ResourceError::failingURL):
3445 (WebCore::ResourceError::localizedDescription):
3446 (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
3447 * platform/network/ResourceHandle.cpp:
3448 * platform/network/ResourceHandle.h:
3449 * platform/network/ResourceHandleClient.h:
3450 (WebCore::ResourceHandleClient::didFailWithError):
3451 * platform/network/cf/ResourceHandleCFNet.cpp:
3453 (WebCore::ResourceHandle::cancel):
3454 * platform/network/mac/ResourceErrorMac.mm: Added.
3455 (-[NSError WebCore]):
3456 * platform/network/mac/ResourceHandleMac.mm:
3457 (WebCore::ResourceHandle::reportError):
3458 * xml/xmlhttprequest.cpp:
3459 (WebCore::XMLHttpRequest::didFailWithError):
3460 (WebCore::XMLHttpRequest::didFinishLoading):
3461 * xml/xmlhttprequest.h:
3463 2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
3469 * platform/gdk/ChromeClientGdk.h:
3470 (WebCore::ChromeClientGdk::~ChromeClientGdk):
3471 * platform/gdk/CursorGdk.cpp:
3472 (WebCore::Cursor::Cursor):
3473 (WebCore::moveCursor):
3474 * platform/gdk/FrameGdk.cpp:
3475 (WebCore::FrameGdk::FrameGdk):
3476 (WebCore::FrameGdk::submitForm):
3477 (WebCore::FrameGdk::urlSelected):
3478 * platform/gdk/PageGdk.cpp:
3479 * platform/gdk/ScreenClientGdk.h: Added.
3480 (WebCore::ScreenClientGdk::~ScreenClientGdk):
3481 * platform/gdk/ScreenGdk.cpp:
3482 (WebCore::ScreenClientGdk::depth):
3483 (WebCore::ScreenClientGdk::depthPerComponent):
3484 (WebCore::ScreenClientGdk::isMonochrome):
3485 (WebCore::ScreenClientGdk::rect):
3486 (WebCore::ScreenClientGdk::usableRect):
3487 * platform/gdk/TemporaryLinkStubs.cpp:
3488 (FrameGdk::historyURL):
3489 (ChromeClientGdk::windowRect):
3490 (ChromeClientGdk::setWindowRect):
3491 (ChromeClientGdk::pageRect):
3492 (ChromeClientGdk::scaleFactor):
3493 (ChromeClientGdk::focus):
3494 (ChromeClientGdk::unfocus):
3495 (ChromeClientGdk::createWindow):
3496 (ChromeClientGdk::createModalDialog):
3497 (ChromeClientGdk::show):
3498 (ChromeClientGdk::canRunModal):
3499 (ChromeClientGdk::runModal):
3500 (ChromeClientGdk::setToolbarsVisible):
3501 (ChromeClientGdk::toolbarsVisible):
3502 (ChromeClientGdk::setStatusbarVisible):
3503 (ChromeClientGdk::statusbarVisible):
3504 (ChromeClientGdk::setScrollbarsVisible):
3505 (ChromeClientGdk::scrollbarsVisible):
3506 (ChromeClientGdk::setMenubarVisible):
3507 (ChromeClientGdk::menubarVisible):
3508 (ChromeClientGdk::setResizable):
3509 * platform/network/ResourceHandleInternal.h:
3510 (WebCore::ResourceHandleInternal::client):
3511 * platform/network/gdk/ResourceHandleManager.cpp:
3512 (WebCore::writeCallback):
3513 (WebCore::ResourceHandleManager::downloadTimerCallback):
3514 (WebCore::ResourceHandleManager::remove):
3516 2006-11-08 Adam Roben <aroben@apple.com>
3520 * rendering/RenderObject.h:
3521 (WebCore::RenderObject::maxTopMargin):
3522 (WebCore::RenderObject::maxBottomMargin):
3524 2006-11-08 Geoffrey Garen <ggaren@apple.com>
3526 Reviewed by Anders Carlsson.
3528 Made Screen a good platform citizen by removing its reference to Page. This
3529 made a class unnecessary, so all screen fuctions are stand-alone now.
3531 * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
3532 when computing the screen's available dimensions.
3534 2006-11-08 Sam Weinig <sam.weinig@gmail.com>
3538 Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
3539 Cleanup RenderObject
3541 * rendering/RenderObject.cpp:
3542 (WebCore::RenderObject::operator delete):
3543 (WebCore::RenderObject::createObject):
3544 (WebCore::RenderObjectCounter::~RenderObjectCounter):
3545 (WebCore::RenderObject::RenderObject):
3546 (WebCore::RenderObject::isDescendantOf):
3547 (WebCore::RenderObject::isRoot):
3548 (WebCore::RenderObject::addChild):
3549 (WebCore::RenderObject::removeChildNode):
3550 (WebCore::RenderObject::removeChild):
3551 (WebCore::RenderObject::appendChildNode):
3552 (WebCore::RenderObject::insertChildNode):
3553 (WebCore::RenderObject::nextInPreOrder):
3554 (WebCore::RenderObject::nextInPreOrderAfterChildren):
3555 (WebCore::RenderObject::previousInPreOrder):
3556 (WebCore::RenderObject::isEditable):
3557 (WebCore::RenderObject::nextEditable):
3558 (WebCore::RenderObject::previousEditable):
3559 (WebCore::RenderObject::firstLeafChild):
3560 (WebCore::RenderObject::lastLeafChild):
3561 (WebCore::RenderObject::addLayers):
3562 (WebCore::RenderObject::removeLayers):