1 2006-11-20 Anders Carlsson <acarlsson@apple.com>
5 Use CString instead of DeprecatedCString.
7 * html/FormDataList.cpp:
8 (WebCore::FormDataList::appendString):
9 (WebCore::fixLineBreaks):
10 (WebCore::FormDataList::appendFile):
12 2006-11-20 Samuel Weinig <sam@webkit.org>
16 Fix for http://bugs.webkit.org/show_bug.cgi?id=11656
19 * WebCore.vcproj/WebCore/WebCore.vcproj:
20 * bridge/win/ContextMenuClientWin.h:
21 * bridge/win/EditorClientWin.h:
22 * bridge/win/FrameWin.h:
23 * platform/win/TemporaryLinkStubs.cpp:
24 (WebCore::ContextMenu::show):
25 (WebCore::ContextMenuClientWin::copyLinkToClipboard):
26 (WebCore::ContextMenuClientWin::downloadURL):
27 (WebCore::ContextMenuClientWin::copyImageToClipboard):
28 (WebCore::ContextMenuClientWin::lookUpInDictionary):
29 (WebCore::EditorClientWin::shouldInsertText):
30 (WebCore::FrameLoader::reload):
31 (WebCore::FrameWin::ignoreSpelling):
32 (WebCore::FrameWin::learnSpelling):
34 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
38 http://bugs.webkit.org/show_bug.cgi?id=10736
39 XMLHttpRequest.responseXML should be null on error
41 * dom/XMLTokenizer.cpp:
42 (WebCore::XMLTokenizer::wellFormed):
44 (WebCore::Tokenizer::wellFormed):
46 (WebCore::Document::Document):
47 (WebCore::Document::implicitClose):
49 (WebCore::Document::wellFormed):
50 Tell whether XMLTokenizer saw an error. Always true (success) for HTML.
52 * xml/xmlhttprequest.cpp:
53 (WebCore::XMLHttpRequest::getResponseXML): Set the document to null if it's not well-formed.
55 2006-11-20 Alexey Proskuryakov <ap@webkit.org>
57 Reviewed by Sam Weinig.
59 http://bugs.webkit.org/show_bug.cgi?id=11633
60 Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone
63 (WebCore::Document::Document):
64 (WebCore::Document::setXMLVersion):
65 (WebCore::Document::setXMLStandalone):
67 (WebCore::Document::xmlEncoding):
68 (WebCore::Document::xmlVersion):
69 (WebCore::Document::xmlStandalone):
70 (WebCore::Document::setXMLEncoding):
72 * dom/XMLTokenizer.cpp:
73 (WebCore::XMLTokenizer::startDocument):
74 (WebCore::startDocumentHandler):
75 (WebCore::XMLTokenizer::initializeParserContext):
76 Added support for these properties, getting them from an libxml2 context.
78 * html/HTMLDocument.cpp:
79 (WebCore::HTMLDocument::HTMLDocument):
80 HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0".
82 * bindings/scripts/CodeGeneratorJS.pm:
83 * bindings/scripts/CodeGeneratorObjC.pm:
84 Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone.
86 2006-11-20 Nikolas Zimmermann <zimmermann@kde.org>
92 * platform/qt/ContextMenuClientQt.cpp:
93 (WebCore::ContextMenuClientQt::ref):
94 (WebCore::ContextMenuClientQt::deref):
95 (WebCore::ContextMenuClientQt::copyLinkToClipboard):
96 (WebCore::ContextMenuClientQt::downloadURL):
97 (WebCore::ContextMenuClientQt::copyImageToClipboard):
98 (WebCore::ContextMenuClientQt::lookUpInDictionary):
99 * platform/qt/ContextMenuClientQt.h:
100 * platform/qt/ContextMenuQt.cpp:
101 (WebCore::ContextMenu::appendItem):
102 (WebCore::ContextMenu::show):
103 (WebCore::ContextMenu::itemCount):
104 (WebCore::ContextMenu::insertItem):
105 * platform/qt/EditorClientQt.cpp:
106 (WebCore::EditorClientQt::shouldInsertText):
107 * platform/qt/EditorClientQt.h:
108 * platform/qt/FrameQt.cpp:
109 (WebCore::FrameQt::ignoreSpelling):
110 (WebCore::FrameQt::learnSpelling):
111 * platform/qt/FrameQt.h:
112 * platform/qt/TemporaryLinkStubs.cpp:
113 (FrameLoader::reload):
115 2006-11-20 Samuel Weinig <sam@webkit.org>
119 Fix for http://bugs.webkit.org/show_bug.cgi?id=11647
122 * config.h: add #define NOMINMAX for windows build
123 * platform/win/FontCacheWin.cpp:
124 (WebCore::FontCache::createFontPlatformData):
125 * platform/win/TemporaryLinkStubs.cpp: add definitions for
127 (WebCore::aliasCursor):
128 (WebCore::noDropCursor):
129 (WebCore::progressCursor):
131 2006-11-19 Beth Dakin <bdakin@apple.com>
135 Implementation of actions for the new context menus.
138 * WebCore.xcodeproj/project.pbxproj:
139 * bridge/EditorClient.h: Declaration of shouldInsertText.
140 * bridge/mac/FrameMac.h: Two new spelling functions.
141 * bridge/mac/FrameMac.mm:
142 (WebCore::FrameMac::ignoreSpelling):
143 (WebCore::FrameMac::learnSpelling):
144 * editing/Editor.cpp:
145 (WebCore::Editor::shouldInsertText): Call into the client.
147 * editing/EditorInsertAction.h: Added.
148 (WebCore::): The WebCore equivalent of WebViewInsertAction. This is
149 defined in its own header so that we can use it from Editor.h and
150 EditorClient.h without having one of the above include the other.
151 * page/ContextMenuClient.h: A few currently WebKit-implemented
152 function needed for menu actions.
153 * page/ContextMenuController.cpp:
154 (WebCore::makeGoogleSearchURL):
155 (WebCore::ContextMenuController::contextMenuActionSelected): The
157 * page/ContextMenuController.h:
158 * page/Frame.h: New pure-virtual spelling functions.
159 * platform/ContextMenu.cpp:
160 (WebCore::ContextMenu::controller): Get the controller from the
162 * platform/ContextMenu.h:
163 * platform/mac/ContextMenuMac.mm:
165 forwardContextMenuAction:initWithContextMenuController:WebCore::]):
166 Use the controller instead of the menu
167 (-[MenuTarget WebCore::]):
168 (-[MenuTarget setMenuController:WebCore::]):
169 (-[MenuTarget forwardContextMenuAction:]):
174 2006-11-19 Simon Hausmann <hausmann@kde.org>
178 http://bugs.webkit.org/show_bug.cgi?id=11649
179 Fix CMake files for Qt-only build without KDE cmake files.
180 Fix Qt/KDE build for the SVG support.
181 Fix Qt-only build in the resource handler.
184 * platform/graphics/svg/qt/SVGResourceFilterQt.cpp: Added.
185 (WebCore::SVGResourceFilter::SVGResourceFilter):
186 (WebCore::SVGResourceFilter::~SVGResourceFilter):
187 (WebCore::SVGResourceFilter::prepareFilter):
188 (WebCore::SVGResourceFilter::applyFilter):
189 * platform/network/qt/ResourceHandleManager.cpp:
190 (WebCore::ResourceHandleManager::cancel):
191 (WebCore::ResourceHandleManager::slotData):
192 (WebCore::ResourceHandleManager::slotMimetype):
193 (WebCore::ResourceHandleManager::slotResult):
194 (WebCore::ResourceHandleManager::deliverJobData):
195 * platform/network/qt/ResourceHandleManager.h:
196 * platform/network/qt/ResourceHandleQt.cpp:
197 * platform/qt/CursorQt.cpp:
198 (WebCore::noDropCursor):
199 (WebCore::progressCursor):
200 (WebCore::aliasCursor):
202 2006-11-19 Mitz Pettel <mitz@webkit.org>
206 - http://bugs.webkit.org/show_bug.cgi?id=11626
207 Automate test for rdar://problem/4056100
209 * manual-tests/delete-into-nested-block.html: Removed.
211 2006-11-19 Nikolas Zimmermann <zimmermann@kde.org>
215 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11596
217 Split up KCanvasFilters & KCanvasFilterQuartz into several
218 new classes (SVGFEBlend, SVGFEComposite...) and move them
219 into platform/graphics/svg. This is still a temporary location,
220 as discussed with Darin; the whole platform/graphics/svg directory
221 will probably be moved into ksvg2/ in near future.
223 This finally removes the duplicated enumerations in the svg filter
224 classes and within kcanvas. ksvg2/ and platform/graphics/svg share
225 their enums now. As KCanvasFilters is gone now, The kcanvas/ subdirectory
229 * WebCore.xcodeproj/project.pbxproj:
230 * bindings/scripts/CodeGeneratorJS.pm:
231 * kcanvas/KCanvasFilters.cpp: Removed.
232 * kcanvas/KCanvasFilters.h: Removed.
233 * kcanvas/device/KRenderingDevice.h:
234 * kcanvas/device/qt/KRenderingDeviceQt.cpp:
235 (WebCore::KRenderingDeviceQt::createFilterEffect):
236 * kcanvas/device/qt/KRenderingDeviceQt.h:
237 * kcanvas/device/quartz/KCanvasFilterQuartz.h: Removed.
238 * kcanvas/device/quartz/KCanvasFilterQuartz.mm: Removed.
239 * kcanvas/device/quartz/KCanvasItemQuartz.cpp:
240 * kcanvas/device/quartz/KRenderingDeviceQuartz.cpp:
241 (WebCore::KRenderingDeviceQuartz::createResource):
242 (WebCore::KRenderingDeviceQuartz::createFilterEffect):
243 * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
244 * kcanvas/device/quartz/filters/WKArithmeticFilter.cikernel: Removed.
245 * kcanvas/device/quartz/filters/WKArithmeticFilter.h: Removed.
246 * kcanvas/device/quartz/filters/WKArithmeticFilter.m: Removed.
247 * kcanvas/device/quartz/filters/WKComponentMergeFilter.cikernel: Removed.
248 * kcanvas/device/quartz/filters/WKComponentMergeFilter.h: Removed.
249 * kcanvas/device/quartz/filters/WKComponentMergeFilter.m: Removed.
250 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.cikernel: Removed.
251 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.h: Removed.
252 * kcanvas/device/quartz/filters/WKDiffuseLightingFilter.m: Removed.
253 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.cikernel: Removed.
254 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.h: Removed.
255 * kcanvas/device/quartz/filters/WKDiscreteTransferFilter.m: Removed.
256 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.cikernel: Removed.
257 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.h: Removed.
258 * kcanvas/device/quartz/filters/WKDisplacementMapFilter.m: Removed.
259 * kcanvas/device/quartz/filters/WKDistantLightFilter.cikernel: Removed.
260 * kcanvas/device/quartz/filters/WKDistantLightFilter.h: Removed.
261 * kcanvas/device/quartz/filters/WKDistantLightFilter.m: Removed.
262 * kcanvas/device/quartz/filters/WKGammaTransferFilter.cikernel: Removed.
263 * kcanvas/device/quartz/filters/WKGammaTransferFilter.h: Removed.
264 * kcanvas/device/quartz/filters/WKGammaTransferFilter.m: Removed.
265 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.h: Removed.
266 * kcanvas/device/quartz/filters/WKIdentityTransferFilter.m: Removed.
267 * kcanvas/device/quartz/filters/WKLinearTransferFilter.cikernel: Removed.
268 * kcanvas/device/quartz/filters/WKLinearTransferFilter.h: Removed.
269 * kcanvas/device/quartz/filters/WKLinearTransferFilter.m: Removed.
270 * kcanvas/device/quartz/filters/WKNormalMapFilter.cikernel: Removed.
271 * kcanvas/device/quartz/filters/WKNormalMapFilter.h: Removed.
272 * kcanvas/device/quartz/filters/WKNormalMapFilter.m: Removed.
273 * kcanvas/device/quartz/filters/WKPointLightFilter.cikernel: Removed.
274 * kcanvas/device/quartz/filters/WKPointLightFilter.h: Removed.
275 * kcanvas/device/quartz/filters/WKPointLightFilter.m: Removed.
276 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.cikernel: Removed.
277 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.h: Removed.
278 * kcanvas/device/quartz/filters/WKSpecularLightingFilter.m: Removed.
279 * kcanvas/device/quartz/filters/WKSpotLightFilter.cikernel: Removed.
280 * kcanvas/device/quartz/filters/WKSpotLightFilter.h: Removed.
281 * kcanvas/device/quartz/filters/WKSpotLightFilter.m: Removed.
282 * kcanvas/device/quartz/filters/WKTableTransferFilter.cikernel: Removed.
283 * kcanvas/device/quartz/filters/WKTableTransferFilter.h: Removed.
284 * kcanvas/device/quartz/filters/WKTableTransferFilter.m: Removed.
285 * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
286 (WebCore::SVGComponentTransferFunctionElement::transferFunction):
287 * ksvg2/svg/SVGComponentTransferFunctionElement.h:
288 * ksvg2/svg/SVGFEBlendElement.cpp:
289 (WebCore::SVGFEBlendElement::filterEffect):
290 * ksvg2/svg/SVGFEBlendElement.h:
291 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
292 (WebCore::SVGFEColorMatrixElement::filterEffect):
293 * ksvg2/svg/SVGFEColorMatrixElement.h:
294 * ksvg2/svg/SVGFEComponentTransferElement.cpp:
295 (WebCore::SVGFEComponentTransferElement::filterEffect):
296 * ksvg2/svg/SVGFEComponentTransferElement.h:
297 * ksvg2/svg/SVGFECompositeElement.cpp:
298 (WebCore::SVGFECompositeElement::filterEffect):
299 * ksvg2/svg/SVGFECompositeElement.h:
300 * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
301 (WebCore::SVGFEDiffuseLightingElement::filterEffect):
302 (WebCore::SVGFEDiffuseLightingElement::updateLights):
303 * ksvg2/svg/SVGFEDiffuseLightingElement.h:
304 * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
305 (WebCore::SVGFEDisplacementMapElement::stringToChannel):
306 (WebCore::SVGFEDisplacementMapElement::filterEffect):
307 * ksvg2/svg/SVGFEDisplacementMapElement.h:
308 * ksvg2/svg/SVGFEDistantLightElement.cpp:
309 (WebCore::SVGFEDistantLightElement::lightSource):
310 * ksvg2/svg/SVGFEDistantLightElement.h:
311 * ksvg2/svg/SVGFEFloodElement.cpp:
312 (WebCore::SVGFEFloodElement::filterEffect):
313 * ksvg2/svg/SVGFEFloodElement.h:
314 * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
315 (WebCore::SVGFEGaussianBlurElement::filterEffect):
316 * ksvg2/svg/SVGFEGaussianBlurElement.h:
317 * ksvg2/svg/SVGFEImageElement.cpp:
318 (WebCore::SVGFEImageElement::filterEffect):
319 * ksvg2/svg/SVGFEImageElement.h:
320 * ksvg2/svg/SVGFELightElement.h:
321 * ksvg2/svg/SVGFEMergeElement.cpp:
322 (WebCore::SVGFEMergeElement::filterEffect):
323 * ksvg2/svg/SVGFEMergeElement.h:
324 * ksvg2/svg/SVGFEOffsetElement.cpp:
325 (WebCore::SVGFEOffsetElement::filterEffect):
326 * ksvg2/svg/SVGFEOffsetElement.h:
327 * ksvg2/svg/SVGFEPointLightElement.cpp:
328 (WebCore::SVGFEPointLightElement::lightSource):
329 * ksvg2/svg/SVGFEPointLightElement.h:
330 * ksvg2/svg/SVGFESpecularLightingElement.cpp:
331 (WebCore::SVGFESpecularLightingElement::filterEffect):
332 (WebCore::SVGFESpecularLightingElement::updateLights):
333 * ksvg2/svg/SVGFESpecularLightingElement.h:
334 * ksvg2/svg/SVGFESpotLightElement.cpp:
335 (WebCore::SVGFESpotLightElement::lightSource):
336 * ksvg2/svg/SVGFESpotLightElement.h:
337 * ksvg2/svg/SVGFETileElement.cpp:
338 (WebCore::SVGFETileElement::filterEffect):
339 * ksvg2/svg/SVGFETileElement.h:
340 * ksvg2/svg/SVGFETurbulenceElement.cpp:
341 (WebCore::SVGFETurbulenceElement::filterEffect):
342 * ksvg2/svg/SVGFETurbulenceElement.h:
344 * ksvg2/svg/SVGFilterElement.cpp:
345 (WebCore::SVGFilterElement::canvasResource):
346 * ksvg2/svg/SVGFilterElement.h:
347 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.cpp:
348 (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes):
349 * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
350 * platform/graphics/FloatPoint3D.cpp: Added.
351 (WebCore::FloatPoint3D::FloatPoint3D):
352 (WebCore::FloatPoint3D::x):
353 (WebCore::FloatPoint3D::setX):
354 (WebCore::FloatPoint3D::y):
355 (WebCore::FloatPoint3D::setY):
356 (WebCore::FloatPoint3D::z):
357 (WebCore::FloatPoint3D::setZ):
358 (WebCore::FloatPoint3D::normalize):
359 * platform/graphics/FloatPoint3D.h: Added.
360 * platform/graphics/svg/SVGResourceFilter.cpp: Added.
361 (WebCore::SVGResourceFilter::clearEffects):
362 (WebCore::SVGResourceFilter::addFilterEffect):
363 (WebCore::SVGResourceFilter::filterBBoxForItemBBox):
364 (WebCore::SVGResourceFilter::externalRepresentation):
365 (WebCore::getFilterById):
366 * platform/graphics/svg/SVGResourceFilter.h: Added.
367 (WebCore::SVGResourceFilter::isFilter):
368 (WebCore::SVGResourceFilter::filterBoundingBoxMode):
369 (WebCore::SVGResourceFilter::setFilterBoundingBoxMode):
370 (WebCore::SVGResourceFilter::effectBoundingBoxMode):
371 (WebCore::SVGResourceFilter::setEffectBoundingBoxMode):
372 (WebCore::SVGResourceFilter::filterRect):
373 (WebCore::SVGResourceFilter::setFilterRect):
374 * platform/graphics/svg/SVGResourceImage.h:
375 * platform/graphics/svg/SVGResourceListener.h:
376 (SVGResourceListener::SVGResourceListener):
377 (SVGResourceListener::~SVGResourceListener):
378 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
379 * platform/graphics/svg/cg/SVGResourceFilterCg.mm: Added.
380 (WebCore::SVGResourceFilter::SVGResourceFilter):
381 (WebCore::SVGResourceFilter::~SVGResourceFilter):
382 (WebCore::SVGResourceFilter::prepareFilter):
383 (WebCore::SVGResourceFilter::applyFilter):
384 (WebCore::SVGResourceFilter::getCIFilterStack):
385 (WebCore::SVGResourceFilter::imageForName):
386 (WebCore::SVGResourceFilter::setImageForName):
387 (WebCore::SVGResourceFilter::setOutputImage):
388 (WebCore::alphaImageForImage):
389 (WebCore::SVGResourceFilter::inputImage):
390 * platform/graphics/svg/cg/SVGResourceMaskerCg.h: Removed.
391 * platform/graphics/svg/cg/SVGResourceMaskerCg.mm:
392 * platform/graphics/svg/filters/SVGDistantLightSource.h: Added.
393 (WebCore::SVGDistantLightSource::SVGDistantLightSource):
394 (WebCore::SVGDistantLightSource::azimuth):
395 (WebCore::SVGDistantLightSource::elevation):
396 * platform/graphics/svg/filters/SVGFEBlend.cpp: Added.
397 (WebCore::SVGFEBlend::in2):
398 (WebCore::SVGFEBlend::setIn2):
399 (WebCore::SVGFEBlend::blendMode):
400 (WebCore::SVGFEBlend::setBlendMode):
401 (WebCore::operator<<):
402 (WebCore::SVGFEBlend::externalRepresentation):
403 * platform/graphics/svg/filters/SVGFEBlend.h: Added.
405 * platform/graphics/svg/filters/SVGFEColorMatrix.cpp: Added.
406 (WebCore::SVGFEColorMatrix::type):
407 (WebCore::SVGFEColorMatrix::setType):
408 (WebCore::SVGFEColorMatrix::values):
409 (WebCore::SVGFEColorMatrix::setValues):
410 (WebCore::operator<<):
411 (WebCore::SVGFEColorMatrix::externalRepresentation):
412 * platform/graphics/svg/filters/SVGFEColorMatrix.h: Added.
414 * platform/graphics/svg/filters/SVGFEComponentTransfer.cpp: Added.
415 (WebCore::SVGFEComponentTransfer::redFunction):
416 (WebCore::SVGFEComponentTransfer::setRedFunction):
417 (WebCore::SVGFEComponentTransfer::greenFunction):
418 (WebCore::SVGFEComponentTransfer::setGreenFunction):
419 (WebCore::SVGFEComponentTransfer::blueFunction):
420 (WebCore::SVGFEComponentTransfer::setBlueFunction):
421 (WebCore::SVGFEComponentTransfer::alphaFunction):
422 (WebCore::SVGFEComponentTransfer::setAlphaFunction):
423 (WebCore::operator<<):
424 (WebCore::SVGFEComponentTransfer::externalRepresentation):
425 * platform/graphics/svg/filters/SVGFEComponentTransfer.h: Added.
427 (WebCore::SVGComponentTransferFunction::SVGComponentTransferFunction):
428 * platform/graphics/svg/filters/SVGFEComposite.cpp: Added.
429 (WebCore::SVGFEComposite::in2):
430 (WebCore::SVGFEComposite::setIn2):
431 (WebCore::SVGFEComposite::operation):
432 (WebCore::SVGFEComposite::setOperation):
433 (WebCore::SVGFEComposite::k1):
434 (WebCore::SVGFEComposite::setK1):
435 (WebCore::SVGFEComposite::k2):
436 (WebCore::SVGFEComposite::setK2):
437 (WebCore::SVGFEComposite::k3):
438 (WebCore::SVGFEComposite::setK3):
439 (WebCore::SVGFEComposite::k4):
440 (WebCore::SVGFEComposite::setK4):
441 (WebCore::SVGFEComposite::externalRepresentation):
442 * platform/graphics/svg/filters/SVGFEComposite.h: Added.
444 * platform/graphics/svg/filters/SVGFEConvolveMatrix.cpp: Added.
445 (WebCore::SVGFEConvolveMatrix::kernelSize):
446 (WebCore::SVGFEConvolveMatrix::setKernelSize):
447 (WebCore::SVGFEConvolveMatrix::kernel):
448 (WebCore::SVGFEConvolveMatrix::setKernel):
449 (WebCore::SVGFEConvolveMatrix::divisor):
450 (WebCore::SVGFEConvolveMatrix::setDivisor):
451 (WebCore::SVGFEConvolveMatrix::bias):
452 (WebCore::SVGFEConvolveMatrix::setBias):
453 (WebCore::SVGFEConvolveMatrix::targetOffset):
454 (WebCore::SVGFEConvolveMatrix::setTargetOffset):
455 (WebCore::SVGFEConvolveMatrix::edgeMode):
456 (WebCore::SVGFEConvolveMatrix::setEdgeMode):
457 (WebCore::SVGFEConvolveMatrix::kernelUnitLength):
458 (WebCore::SVGFEConvolveMatrix::setKernelUnitLength):
459 (WebCore::SVGFEConvolveMatrix::preserveAlpha):
460 (WebCore::SVGFEConvolveMatrix::setPreserveAlpha):
461 (WebCore::operator<<):
462 (WebCore::SVGFEConvolveMatrix::externalRepresentation):
463 * platform/graphics/svg/filters/SVGFEConvolveMatrix.h: Added.
465 * platform/graphics/svg/filters/SVGFEDiffuseLighting.cpp: Added.
466 (WebCore::SVGFEDiffuseLighting::SVGFEDiffuseLighting):
467 (WebCore::SVGFEDiffuseLighting::~SVGFEDiffuseLighting):
468 (WebCore::SVGFEDiffuseLighting::lightingColor):
469 (WebCore::SVGFEDiffuseLighting::setLightingColor):
470 (WebCore::SVGFEDiffuseLighting::surfaceScale):
471 (WebCore::SVGFEDiffuseLighting::setSurfaceScale):
472 (WebCore::SVGFEDiffuseLighting::diffuseConstant):
473 (WebCore::SVGFEDiffuseLighting::setDiffuseConstant):
474 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthX):
475 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthX):
476 (WebCore::SVGFEDiffuseLighting::kernelUnitLengthY):
477 (WebCore::SVGFEDiffuseLighting::setKernelUnitLengthY):
478 (WebCore::SVGFEDiffuseLighting::lightSource):
479 (WebCore::SVGFEDiffuseLighting::setLightSource):
480 (WebCore::SVGFEDiffuseLighting::externalRepresentation):
481 * platform/graphics/svg/filters/SVGFEDiffuseLighting.h: Added.
482 * platform/graphics/svg/filters/SVGFEDisplacementMap.cpp: Added.
483 (WebCore::SVGFEDisplacementMap::SVGFEDisplacementMap):
484 (WebCore::SVGFEDisplacementMap::in2):
485 (WebCore::SVGFEDisplacementMap::setIn2):
486 (WebCore::SVGFEDisplacementMap::xChannelSelector):
487 (WebCore::SVGFEDisplacementMap::setXChannelSelector):
488 (WebCore::SVGFEDisplacementMap::yChannelSelector):
489 (WebCore::SVGFEDisplacementMap::setYChannelSelector):
490 (WebCore::SVGFEDisplacementMap::scale):
491 (WebCore::SVGFEDisplacementMap::setScale):
492 (WebCore::operator<<):
493 (WebCore::SVGFEDisplacementMap::externalRepresentation):
494 * platform/graphics/svg/filters/SVGFEDisplacementMap.h: Added.
496 * platform/graphics/svg/filters/SVGFEFlood.cpp: Added.
497 (WebCore::SVGFEFlood::floodColor):
498 (WebCore::SVGFEFlood::setFloodColor):
499 (WebCore::SVGFEFlood::floodOpacity):
500 (WebCore::SVGFEFlood::setFloodOpacity):
501 (WebCore::SVGFEFlood::externalRepresentation):
502 * platform/graphics/svg/filters/SVGFEFlood.h: Added.
503 * platform/graphics/svg/filters/SVGFEGaussianBlur.cpp: Added.
504 (WebCore::SVGFEGaussianBlur::stdDeviationX):
505 (WebCore::SVGFEGaussianBlur::setStdDeviationX):
506 (WebCore::SVGFEGaussianBlur::stdDeviationY):
507 (WebCore::SVGFEGaussianBlur::setStdDeviationY):
508 (WebCore::SVGFEGaussianBlur::externalRepresentation):
509 * platform/graphics/svg/filters/SVGFEGaussianBlur.h: Added.
510 * platform/graphics/svg/filters/SVGFEImage.cpp: Added.
511 (WebCore::SVGFEImage::SVGFEImage):
512 (WebCore::SVGFEImage::~SVGFEImage):
513 (WebCore::SVGFEImage::cachedImage):
514 (WebCore::SVGFEImage::setCachedImage):
515 (WebCore::SVGFEImage::externalRepresentation):
516 * platform/graphics/svg/filters/SVGFEImage.h: Added.
517 * platform/graphics/svg/filters/SVGFEMerge.cpp: Added.
518 (WebCore::SVGFEMerge::mergeInputs):
519 (WebCore::SVGFEMerge::setMergeInputs):
520 (WebCore::SVGFEMerge::externalRepresentation):
521 * platform/graphics/svg/filters/SVGFEMerge.h: Added.
522 * platform/graphics/svg/filters/SVGFEMorphology.cpp: Added.
523 (WebCore::SVGFEMorphology::morphologyOperator):
524 (WebCore::SVGFEMorphology::setMorphologyOperator):
525 (WebCore::SVGFEMorphology::radiusX):
526 (WebCore::SVGFEMorphology::setRadiusX):
527 (WebCore::SVGFEMorphology::radiusY):
528 (WebCore::SVGFEMorphology::setRadiusY):
529 (WebCore::operator<<):
530 (WebCore::SVGFEMorphology::externalRepresentation):
531 * platform/graphics/svg/filters/SVGFEMorphology.h: Added.
533 * platform/graphics/svg/filters/SVGFEOffset.cpp: Added.
534 (WebCore::SVGFEOffset::dx):
535 (WebCore::SVGFEOffset::setDx):
536 (WebCore::SVGFEOffset::dy):
537 (WebCore::SVGFEOffset::setDy):
538 (WebCore::SVGFEOffset::externalRepresentation):
539 * platform/graphics/svg/filters/SVGFEOffset.h: Added.
540 * platform/graphics/svg/filters/SVGFESpecularLighting.cpp: Added.
541 (WebCore::SVGFESpecularLighting::SVGFESpecularLighting):
542 (WebCore::SVGFESpecularLighting::~SVGFESpecularLighting):
543 (WebCore::SVGFESpecularLighting::lightingColor):
544 (WebCore::SVGFESpecularLighting::setLightingColor):
545 (WebCore::SVGFESpecularLighting::surfaceScale):
546 (WebCore::SVGFESpecularLighting::setSurfaceScale):
547 (WebCore::SVGFESpecularLighting::specularConstant):
548 (WebCore::SVGFESpecularLighting::setSpecularConstant):
549 (WebCore::SVGFESpecularLighting::specularExponent):
550 (WebCore::SVGFESpecularLighting::setSpecularExponent):
551 (WebCore::SVGFESpecularLighting::kernelUnitLengthX):
552 (WebCore::SVGFESpecularLighting::setKernelUnitLengthX):
553 (WebCore::SVGFESpecularLighting::kernelUnitLengthY):
554 (WebCore::SVGFESpecularLighting::setKernelUnitLengthY):
555 (WebCore::SVGFESpecularLighting::lightSource):
556 (WebCore::SVGFESpecularLighting::setLightSource):
557 (WebCore::SVGFESpecularLighting::externalRepresentation):
558 * platform/graphics/svg/filters/SVGFESpecularLighting.h: Added.
559 * platform/graphics/svg/filters/SVGFETile.h: Added.
560 * platform/graphics/svg/filters/SVGFETurbulence.cpp: Added.
561 (WebCore::SVGFETurbulence::type):
562 (WebCore::SVGFETurbulence::setType):
563 (WebCore::SVGFETurbulence::baseFrequencyY):
564 (WebCore::SVGFETurbulence::setBaseFrequencyY):
565 (WebCore::SVGFETurbulence::baseFrequencyX):
566 (WebCore::SVGFETurbulence::setBaseFrequencyX):
567 (WebCore::SVGFETurbulence::seed):
568 (WebCore::SVGFETurbulence::setSeed):
569 (WebCore::SVGFETurbulence::numOctaves):
570 (WebCore::SVGFETurbulence::setNumOctaves):
571 (WebCore::SVGFETurbulence::stitchTiles):
572 (WebCore::SVGFETurbulence::setStitchTiles):
573 (WebCore::operator<<):
574 (WebCore::SVGFETurbulence::externalRepresentation):
575 * platform/graphics/svg/filters/SVGFETurbulence.h: Added.
577 * platform/graphics/svg/filters/SVGFilterEffect.cpp: Added.
578 (WebCore::SVGFilterEffect::subRegion):
579 (WebCore::SVGFilterEffect::setSubRegion):
580 (WebCore::SVGFilterEffect::in):
581 (WebCore::SVGFilterEffect::setIn):
582 (WebCore::SVGFilterEffect::result):
583 (WebCore::SVGFilterEffect::setResult):
584 (WebCore::SVGFilterEffect::externalRepresentation):
585 (WebCore::operator<<):
586 * platform/graphics/svg/filters/SVGFilterEffect.h: Added.
588 (WebCore::SVGFilterEffect::SVGFilterEffect):
589 (WebCore::SVGFilterEffect::~SVGFilterEffect):
590 (WebCore::SVGFilterEffect::effectType):
591 * platform/graphics/svg/filters/SVGLightSource.cpp: Added.
592 (WebCore::operator<<):
593 (WebCore::SVGPointLightSource::externalRepresentation):
594 (WebCore::SVGSpotLightSource::externalRepresentation):
595 (WebCore::SVGDistantLightSource::externalRepresentation):
596 * platform/graphics/svg/filters/SVGLightSource.h: Added.
598 (WebCore::SVGLightSource::SVGLightSource):
599 (WebCore::SVGLightSource::~SVGLightSource):
600 (WebCore::SVGLightSource::type):
601 * platform/graphics/svg/filters/SVGPointLightSource.h: Added.
602 (WebCore::SVGPointLightSource::SVGPointLightSource):
603 (WebCore::SVGPointLightSource::position):
604 * platform/graphics/svg/filters/SVGSpotLightSource.h: Added.
605 (WebCore::SVGSpotLightSource::SVGSpotLightSource):
606 (WebCore::SVGSpotLightSource::position):
607 (WebCore::SVGSpotLightSource::direction):
608 (WebCore::SVGSpotLightSource::specularExponent):
609 (WebCore::SVGSpotLightSource::limitingConeAngle):
610 * platform/graphics/svg/filters/cg/SVGFEBlendCg.mm: Added.
611 (WebCore::SVGFEBlend::getCIFilter):
612 * platform/graphics/svg/filters/cg/SVGFEColorMatrixCg.mm: Added.
613 (WebCore::SVGFEColorMatrix::getCIFilter):
614 * platform/graphics/svg/filters/cg/SVGFEComponentTransferCg.mm: Added.
615 (WebCore::genImageFromTable):
616 (WebCore::setParametersForComponentFunc):
617 (WebCore::filterForComponentFunc):
618 (WebCore::getFilterForFunc):
619 (WebCore::SVGFEComponentTransfer::getFunctionFilter):
620 (WebCore::SVGFEComponentTransfer::getCIFilter):
621 * platform/graphics/svg/filters/cg/SVGFECompositeCg.mm: Added.
622 (WebCore::SVGFEComposite::getCIFilter):
623 * platform/graphics/svg/filters/cg/SVGFEDiffuseLightingCg.mm: Added.
624 (WebCore::SVGFEDiffuseLighting::getCIFilter):
625 * platform/graphics/svg/filters/cg/SVGFEDisplacementMapCg.mm: Added.
626 (WebCore::SVGFEDisplacementMap::getCIFilter):
627 * platform/graphics/svg/filters/cg/SVGFEFloodCg.mm: Added.
628 (WebCore::SVGFEFlood::getCIFilter):
629 * platform/graphics/svg/filters/cg/SVGFEGaussianBlurCg.mm: Added.
630 (WebCore::SVGFEGaussianBlur::getCIFilter):
631 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.h: Added.
632 * platform/graphics/svg/filters/cg/SVGFEHelpersCg.mm: Added.
633 (WebCore::getVectorForChannel):
635 (WebCore::getPointLightVectors):
636 (WebCore::getLightVectors):
637 (WebCore::getNormalMap):
638 * platform/graphics/svg/filters/cg/SVGFEImageCg.mm: Added.
639 (WebCore::SVGFEImage::getCIFilter):
640 * platform/graphics/svg/filters/cg/SVGFEMergeCg.mm: Added.
641 (WebCore::SVGFEMerge::getCIFilter):
642 * platform/graphics/svg/filters/cg/SVGFEOffsetCg.mm: Added.
643 (WebCore::SVGFEOffset::getCIFilter):
644 * platform/graphics/svg/filters/cg/SVGFESpecularLightingCg.mm: Added.
645 (WebCore::SVGFESpecularLighting::getCIFilter):
646 * platform/graphics/svg/filters/cg/SVGFETileCg.mm: Added.
647 (WebCore::SVGFETile::getCIFilter):
648 * platform/graphics/svg/filters/cg/SVGFilterEffectCg.mm: Added.
649 (WebCore::SVGFilterEffect::getCIFilter):
650 * rendering/RenderPath.cpp:
651 (WebCore::RenderPath::getAbsoluteRepaintRect):
652 (WebCore::RenderPath::paint):
653 * rendering/RenderSVGContainer.cpp:
654 (WebCore::RenderSVGContainer::paint):
655 (WebCore::RenderSVGContainer::getAbsoluteRepaintRect):
656 * rendering/RenderSVGImage.cpp:
657 (WebCore::RenderSVGImage::paint):
658 (WebCore::RenderSVGImage::getAbsoluteRepaintRect):
659 * rendering/SVGInlineFlowBox.cpp:
660 (WebCore::paintSVGInlineFlow):
662 2006-11-18 Rob Buis <buis@kde.org>
666 http://bugs.webkit.org/show_bug.cgi?id=11321
667 Element with :target pseudo-class still matched after fragment identifier change
669 Make sure the page does a style recalculation and possible rendering
670 when navigating back from a page with an anchor to a page without
673 * loader/FrameLoader.cpp:
674 (WebCore::FrameLoader::gotoAnchor):
676 2006-11-18 Don Gibson <dgibson77@gmail.com>
678 Reviewed by Sam Weinig.
680 http://bugs.webkit.org/show_bug.cgi?id=11634:
681 Fix segfault on startup for Windows build. Also fix segfault when
683 Clean up some of the style of the patch that landed in r17816.
685 * WebCore.vcproj/WebCore/WebCore.vcproj:
686 * bridge/win/ChromeClientWin.h:
687 (WebCore::ChromeClientWin::~ChromeClientWin):
688 (WebCore::ChromeClientWin::ref):
689 (WebCore::ChromeClientWin::deref):
690 * bridge/win/ContextMenuClientWin.h:
691 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
692 (WebCore::ContextMenuClientWin::ref):
693 (WebCore::ContextMenuClientWin::deref):
694 * bridge/win/EditorClientWin.h:
695 (WebCore::EditorClientWin::~EditorClientWin):
696 (WebCore::EditorClientWin::ref):
697 (WebCore::EditorClientWin::deref):
698 * bridge/win/FrameWin.cpp:
699 (WebCore::FrameWin::FrameWin):
700 * bridge/win/FrameWin.h:
702 * loader/win/FrameLoaderClientWin.h: Added.
703 (WebCore::FrameLoaderClientWin::~FrameLoaderClientWin):
704 (WebCore::FrameLoaderClientWin::ref):
705 (WebCore::FrameLoaderClientWin::deref):
706 * platform/win/TemporaryLinkStubs.cpp:
707 (WebCore::ChromeClientWin::createWindow):
708 (WebCore::ChromeClientWin::createModalDialog):
709 (WebCore::EditorClientWin::selectWordBeforeMenuEvent):
710 (WebCore::EditorClientWin::isEditable):
711 (WebCore::EditorClientWin::shouldBeginEditing):
712 (WebCore::EditorClientWin::shouldEndEditing):
713 (WebCore::EditorClientWin::shouldApplyStyle):
714 (WebCore::EditorClientWin::didBeginEditing):
715 (WebCore::EditorClientWin::respondToChangedContents):
716 (WebCore::EditorClientWin::didEndEditing):
717 (WebCore::EditorClientWin::registerCommandForUndo):
718 (WebCore::EditorClientWin::registerCommandForRedo):
719 (WebCore::EditorClientWin::clearUndoRedoOperations):
720 (WebCore::EditorClientWin::canUndo):
721 (WebCore::EditorClientWin::canRedo):
722 (WebCore::EditorClientWin::undo):
723 (WebCore::EditorClientWin::redo):
724 (WebCore::FrameLoader::createFrame):
725 (WebCore::FrameLoader::createPlugin):
726 (WebCore::FrameLoaderClientWin::hasWebView):
727 (WebCore::FrameLoaderClientWin::hasFrameView):
728 (WebCore::FrameLoaderClientWin::hasBackForwardList):
729 (WebCore::FrameLoaderClientWin::resetBackForwardList):
730 (WebCore::FrameLoaderClientWin::provisionalItemIsTarget):
731 (WebCore::FrameLoaderClientWin::loadProvisionalItemFromPageCache):
732 (WebCore::FrameLoaderClientWin::invalidateCurrentItemPageCache):
733 (WebCore::FrameLoaderClientWin::privateBrowsingEnabled):
734 (WebCore::FrameLoaderClientWin::makeDocumentView):
735 (WebCore::FrameLoaderClientWin::makeRepresentation):
736 (WebCore::FrameLoaderClientWin::forceLayout):
737 (WebCore::FrameLoaderClientWin::forceLayoutForNonHTML):
738 (WebCore::FrameLoaderClientWin::updateHistoryForCommit):
739 (WebCore::FrameLoaderClientWin::updateHistoryForBackForwardNavigation):
740 (WebCore::FrameLoaderClientWin::updateHistoryForReload):
741 (WebCore::FrameLoaderClientWin::updateHistoryForStandardLoad):
742 (WebCore::FrameLoaderClientWin::updateHistoryForInternalLoad):
743 (WebCore::FrameLoaderClientWin::updateHistoryAfterClientRedirect):
744 (WebCore::FrameLoaderClientWin::setCopiesOnScroll):
745 (WebCore::FrameLoaderClientWin::tokenForLoadErrorReset):
746 (WebCore::FrameLoaderClientWin::resetAfterLoadError):
747 (WebCore::FrameLoaderClientWin::doNotResetAfterLoadError):
748 (WebCore::FrameLoaderClientWin::willCloseDocument):
749 (WebCore::FrameLoaderClientWin::detachedFromParent1):
750 (WebCore::FrameLoaderClientWin::detachedFromParent2):
751 (WebCore::FrameLoaderClientWin::detachedFromParent3):
752 (WebCore::FrameLoaderClientWin::detachedFromParent4):
753 (WebCore::FrameLoaderClientWin::loadedFromPageCache):
754 (WebCore::FrameLoaderClientWin::dispatchDidHandleOnloadEvents):
755 (WebCore::FrameLoaderClientWin::dispatchDidReceiveServerRedirectForProvisionalLoad):
756 (WebCore::FrameLoaderClientWin::dispatchDidCancelClientRedirect):
757 (WebCore::FrameLoaderClientWin::dispatchWillPerformClientRedirect):
758 (WebCore::FrameLoaderClientWin::dispatchDidChangeLocationWithinPage):
759 (WebCore::FrameLoaderClientWin::dispatchWillClose):
760 (WebCore::FrameLoaderClientWin::dispatchDidReceiveIcon):
761 (WebCore::FrameLoaderClientWin::dispatchDidStartProvisionalLoad):
762 (WebCore::FrameLoaderClientWin::dispatchDidReceiveTitle):
763 (WebCore::FrameLoaderClientWin::dispatchDidCommitLoad):
764 (WebCore::FrameLoaderClientWin::dispatchDidFinishLoad):
765 (WebCore::FrameLoaderClientWin::dispatchDidFirstLayout):
766 (WebCore::FrameLoaderClientWin::dispatchShow):
767 (WebCore::FrameLoaderClientWin::cancelPolicyCheck):
768 (WebCore::FrameLoaderClientWin::dispatchWillSubmitForm):
769 (WebCore::FrameLoaderClientWin::dispatchDidLoadMainResource):
770 (WebCore::FrameLoaderClientWin::clearLoadingFromPageCache):
771 (WebCore::FrameLoaderClientWin::isLoadingFromPageCache):
772 (WebCore::FrameLoaderClientWin::revertToProvisionalState):
773 (WebCore::FrameLoaderClientWin::clearUnarchivingState):
774 (WebCore::FrameLoaderClientWin::progressStarted):
775 (WebCore::FrameLoaderClientWin::progressCompleted):
776 (WebCore::FrameLoaderClientWin::setMainFrameDocumentReady):
777 (WebCore::FrameLoaderClientWin::willChangeTitle):
778 (WebCore::FrameLoaderClientWin::didChangeTitle):
779 (WebCore::FrameLoaderClientWin::finishedLoading):
780 (WebCore::FrameLoaderClientWin::finalSetupForReplace):
781 (WebCore::FrameLoaderClientWin::setDefersLoading):
782 (WebCore::FrameLoaderClientWin::isArchiveLoadPending):
783 (WebCore::FrameLoaderClientWin::cancelPendingArchiveLoad):
784 (WebCore::FrameLoaderClientWin::clearArchivedResources):
785 (WebCore::FrameLoaderClientWin::canShowMIMEType):
786 (WebCore::FrameLoaderClientWin::representationExistsForURLScheme):
787 (WebCore::FrameLoaderClientWin::generatedMIMETypeForURLScheme):
788 (WebCore::FrameLoaderClientWin::frameLoadCompleted):
789 (WebCore::FrameLoaderClientWin::restoreScrollPositionAndViewState):
790 (WebCore::FrameLoaderClientWin::provisionalLoadStarted):
791 (WebCore::FrameLoaderClientWin::shouldTreatURLAsSameAsCurrent):
792 (WebCore::FrameLoaderClientWin::addHistoryItemForFragmentScroll):
793 (WebCore::FrameLoaderClientWin::didFinishLoad):
794 (WebCore::FrameLoaderClientWin::prepareForDataSourceReplacement):
795 (WebCore::FrameLoaderClientWin::setTitle):
796 (WebCore::FrameLoaderClientWin::userAgent):
798 2006-11-18 Alexey Proskuryakov <ap@webkit.org>
800 Reviewed by Rob (yay!).
802 http://bugs.webkit.org/show_bug.cgi?id=11640
803 XMLHttpRequest produces undefined:undefined HTTP authentication
805 * bindings/js/JSXMLHttpRequest.cpp:
806 (KJS::JSXMLHttpRequestProtoFunc::callAsFunction):
807 Treat undefined credentials as missing ones.
809 2006-11-17 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
813 http://bugs.webkit.org/show_bug.cgi?id=11638
814 [CSS 2.1+3] add support for alias, progress, no-drop and not-allowed cursor styles
816 * Resources/aliasCursor.png: Added.
817 * Resources/noDropCursor.png: Added.
818 * Resources/progressCursor.png: Added.
819 * WebCore.xcodeproj/project.pbxproj:
820 * css/CSSComputedStyleDeclaration.cpp:
821 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
822 * css/CSSValueKeywords.in:
823 * manual-tests/cursor.html:
824 * page/EventHandler.cpp:
825 (WebCore::selectCursor):
827 * platform/mac/CursorMac.mm:
828 (WebCore::handCursor):
829 (WebCore::aliasCursor):
830 (WebCore::progressCursor):
831 (WebCore::noDropCursor):
832 * rendering/RenderStyle.h:
835 2006-11-18 Steve Falkenburg <sfalken@apple.com>
839 Properly adjust CFAbsoluteTime to time_t to fix date calculations.
841 Compare lastModified w/ MAX_TIME_T when setting last modified date
842 instead of comparing expiration against MAX_TIME_T.
844 * platform/network/cf/ResourceResponseCFNet.cpp:
845 (WebCore::getResourceResponse): Add kCFAbsoluteTimeIntervalSince1970 in assignment
847 2006-11-17 Anders Carlsson <acarlsson@apple.com>
851 More conversions from DeprecatedValueList to Vector and HashSet.
853 * css/CSSValueList.cpp:
854 (WebCore::CSSValueList::~CSSValueList):
855 (WebCore::CSSValueList::append):
856 (WebCore::CSSValueList::cssText):
857 * css/CSSValueList.h:
858 (WebCore::CSSValueList::length):
859 (WebCore::CSSValueList::item):
861 (WebCore::Document::attachNodeIterator):
862 (WebCore::Document::notifyBeforeNodeRemoval):
864 * ksvg2/svg/SVGGradientElement.cpp:
865 (WebCore::SVGGradientElement::notifyAttributeChange):
866 * ksvg2/svg/SVGPatternElement.cpp:
867 (WebCore::SVGPatternElement::notifyClientsToRepaint):
868 * platform/graphics/svg/SVGResource.cpp:
869 (WebCore::SVGResource::invalidate):
870 (WebCore::SVGResource::addClient):
871 * platform/graphics/svg/SVGResource.h:
872 * rendering/RenderBlock.h:
874 === Safari-521.31 ===
876 2006-11-17 Timothy Hatcher <timothy@apple.com>
878 Reviewed by Harrison.
880 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
882 Disable the delete button controller when cloning nodes, Mail does this before saving a draft.
884 * dom/ContainerNode.cpp:
885 (WebCore::ContainerNode::cloneChildNodes):
886 * editing/markup.cpp:
887 (WebCore::createFragmentFromNodes):
889 2006-11-17 Justin Garcia <justin.garcia@apple.com>
893 <rdar://problem/4237467> REGRESSION: Pasting word from quoted text quotes the destination
894 <rdar://problem/4017358> quoted text is wrong color, when pasted as quotation
896 * editing/ReplaceSelectionCommand.cpp:
897 (WebCore::isMailPasteAsQuotationNode): Added. Checks for the node
898 that Mail wraps around an incoming fragment when it wants it to be pasted
899 with quoting (no merging should be done).
900 (WebCore::ReplaceSelectionCommand::removeNodePreservingChildren): Added
901 this virtual method in order to adjust the nodes that ReplaceSelectionCommand
903 (WebCore::ReplaceSelectionCommand::shouldMerge): Don't merge from content
904 inside a Mail Paste as Quotation node. Allow merging from Mail blockquotes.
905 (WebCore::ReplaceSelectionCommand::removeRedundantStyles): When pasting into
906 a Mail blockquote, we ignore the parts of the source document's default style
907 that are overriden by styles from the Mail blockquote. This is necessary in order
908 for text that's black (because black is the source document's default font color)
909 to appear blue/green/whatever when it's pasted into a Mail blockquote.
910 (WebCore::ReplaceSelectionCommand::handlePasteAsQuotationNode): Turn an inserted
911 Mail Paste as Quotation node into a normal Mail blockquote. This will prevent
912 a copied blockquote that was inserted into the document using Paste as Quotation
913 from triggering Paste as Quotation behavior when it's pasted.
914 (WebCore::ReplaceSelectionCommand::doApply): Call the new/altered methods.
915 * editing/ReplaceSelectionCommand.h:
916 * editing/markup.cpp:
917 (WebCore::styleFromMatchedRulesForElement): Put this code into a subroutine.
918 (WebCore::removeEnclosingMailBlockquoteStyle): Added.
919 (WebCore::startMarkup): When wrapping text nodes in style spans, leave out
920 styles that Mail blockquotes contribute, so that Mail blockquote styles can
921 be differentiated from styles that the user has applied. When creating markup
922 for elements, do the same thing.
923 (WebCore::createMarkup): Call the new subroutine.
925 2006-11-17 Rob Buis <buis@kde.org>
929 http://bugs.webkit.org/show_bug.cgi?id=11635
930 Bug 11635: Fix potential issue with non-xslt build
932 Fix the issue and do style guideline corrections.
934 * dom/ProcessingInstruction.cpp:
935 (WebCore::ProcessingInstruction::checkStyleSheet):
936 (WebCore::ProcessingInstruction::sheetLoaded):
937 (WebCore::ProcessingInstruction::setCSSStyleSheet):
938 (WebCore::ProcessingInstruction::setXSLStyleSheet):
939 (WebCore::ProcessingInstruction::parseStyleSheet):
941 2006-11-17 Timothy Hatcher <timothy@apple.com>
943 Reviewed by Harrison.
945 <rdar://problem/4843131> text entry is slow inside element that has the deletion rectangle around it
947 Only disable/enable the delete button inside applyCommand() to prevent slowing down typing.
948 This reintroduces <rdar://problem/4796657> table deletion outline does not always follow the table size as editing occurs inside
950 * editing/EditCommand.cpp:
951 (WebCore::EditCommand::apply):
952 (WebCore::EditCommand::unapply):
953 (WebCore::EditCommand::reapply):
954 (WebCore::applyCommand):
955 * editing/EditCommand.h:
957 2006-11-17 Zack Rusin <zack@kde.org>
959 Reviewed by Mitz. Landed by Niko.
961 Making platform Qt/KDE compile and work after
962 the latest api changes. Reported as
963 http://bugs.webkit.org/show_bug.cgi?id=11617
966 * page/qt/EventHandlerQt.cpp: Added.
967 (WebCore::isKeyboardOptionTab):
968 (WebCore::EventHandler::tabsToLinks):
969 (WebCore::EventHandler::tabsToAllControls):
970 (WebCore::EventHandler::freeClipboard):
971 (WebCore::EventHandler::focusDocumentView):
972 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
973 (WebCore::EventHandler::passMouseDownEventToWidget):
974 (WebCore::EventHandler::lastEventIsMouseUp):
975 (WebCore::EventHandler::dragHysteresisExceeded):
976 (WebCore::EventHandler::handleDrag):
977 (WebCore::EventHandler::handleMouseUp):
978 (WebCore::EventHandler::passSubframeEventToSubframe):
979 (WebCore::EventHandler::passWheelEventToWidget):
980 (WebCore::EventHandler::shouldDragAutoNode):
981 (WebCore::EventHandler::dispatchDragSrcEvent):
982 (WebCore::EventHandler::passMousePressEventToSubframe):
983 (WebCore::EventHandler::passMouseMoveEventToSubframe):
984 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
985 (WebCore::EventHandler::passWheelEventToSubframe):
986 (WebCore::EventHandler::passMousePressEventToScrollbar):
987 * platform/ContextMenu.h:
988 * platform/graphics/svg/qt/SVGResourceClipperQt.cpp:
989 (WebCore::SVGResourceClipper::applyClip):
990 * platform/qt/ContextMenuClientQt.cpp: Added.
991 (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
992 (WebCore::ContextMenuClientQt::ref):
993 (WebCore::ContextMenuClientQt::deref):
994 * platform/qt/ContextMenuClientQt.h: Added.
995 * platform/qt/ContextMenuQt.cpp: Added.
996 (WebCore::ContextMenu::appendItem):
997 (WebCore::ContextMenu::itemCount):
998 (WebCore::ContextMenu::insertItem):
999 (WebCore::ContextMenu::setPlatformMenuDescription):
1000 * platform/qt/EditorClientQt.cpp:
1001 (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
1002 (WebCore::EditorClientQt::isEditable):
1003 (WebCore::EditorClientQt::registerCommandForUndo):
1004 (WebCore::EditorClientQt::registerCommandForRedo):
1005 (WebCore::EditorClientQt::clearUndoRedoOperations):
1006 (WebCore::EditorClientQt::canUndo):
1007 (WebCore::EditorClientQt::canRedo):
1008 (WebCore::EditorClientQt::undo):
1009 (WebCore::EditorClientQt::redo):
1010 * platform/qt/EditorClientQt.h:
1011 * platform/qt/ScrollViewCanvasQt.cpp:
1012 (WebCore::ScrollViewCanvasQt::mousePressEvent):
1013 * platform/qt/TemporaryLinkStubs.cpp:
1014 (FrameView::updateBorder):
1016 2006-11-17 David Harrison <harrison@apple.com>
1020 <rdar://problem/4799899> Frame::revealSelection() only scrolls the startContainer's layer
1022 Replace an assert with a fixme that refers to this bug.
1025 (WebCore::Frame::revealSelection):
1027 2006-11-16 Rob Buis <buis@kde.org>
1029 Reviewed and landed by Brady
1031 Fixes http://bugs.webkit.org/show_bug.cgi?id=11590 -
1032 REGRESSION (r17726-r17742): Wikipedia page intermittently loads but doesn't render
1033 Fix the regression by setting m_loadCompleted correctly.
1035 * css/CSSStyleSheet.cpp:
1036 (WebCore::CSSStyleSheet::checkLoaded):
1038 (WebCore::Node::sheetLoaded):
1039 * dom/ProcessingInstruction.cpp:
1040 (WebCore::ProcessingInstruction::sheetLoaded):
1041 * dom/ProcessingInstruction.h:
1042 * html/HTMLLinkElement.cpp:
1043 (WebCore::HTMLLinkElement::sheetLoaded):
1044 * html/HTMLLinkElement.h:
1045 * html/HTMLStyleElement.cpp:
1046 (WebCore::HTMLStyleElement::sheetLoaded):
1047 * html/HTMLStyleElement.h:
1049 2006-11-16 David Harrison <harrison@apple.com>
1053 <rdar://problem/4056100> REGRESSION (Tiger): Deleting top part of reply email leaves fails to clear text at end of message
1055 The problem was triggered by the fact that the parent div was changing both
1056 in position and in height. The renderer normally bifurcates its logic for
1057 x-position changes vs height changes.
1059 Call repaintDuringLayoutIfMoved() with old rect (incl. width and height) instead of just the old position.
1062 * manual-tests/delete-into-nested-block.html
1064 * rendering/RenderBlock.cpp:
1065 (WebCore::RenderBlock::layoutBlockChildren):
1066 (WebCore::RenderBlock::positionNewFloats):
1067 * rendering/RenderBox.cpp:
1068 (WebCore::RenderBox::repaintDuringLayoutIfMoved):
1069 * rendering/RenderBox.h:
1070 * rendering/RenderFlexibleBox.cpp:
1071 (WebCore::RenderFlexibleBox::placeChild):
1072 * rendering/RenderObject.cpp:
1073 (WebCore::RenderObject::repaintDuringLayoutIfMoved):
1074 * rendering/RenderObject.h:
1075 * rendering/RenderTableSection.cpp:
1076 (WebCore::RenderTableSection::layoutRows):
1078 2006-11-16 Adele Peterson <adele@apple.com>
1082 Slider cleanup. Let the theme set the size of the slider thumb.
1084 * rendering/RenderSlider.cpp:
1085 (WebCore::RenderSlider::setStyle): Moving the thumb's appearance adjustment to createThumbStyle.
1086 (WebCore::RenderSlider::createThumbStyle):
1087 (WebCore::RenderSlider::layout): Let the theme set the size of the thumb.
1088 * rendering/RenderTheme.cpp: (WebCore::RenderTheme::adjustSliderThumbSize): Added.
1089 * rendering/RenderTheme.h: ditto.
1090 * rendering/RenderThemeMac.h: ditto.
1091 * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::adjustSliderThumbSize): ditto.
1093 2006-11-15 Anders Carlsson <acarlsson@apple.com>
1097 Use Vector instead of DeprecatedValueList in a few places.
1099 * bindings/js/kjs_dom.cpp:
1100 (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection):
1101 (KJS::DOMNamedNodesCollection::lengthGetter):
1102 (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
1103 * bindings/js/kjs_dom.h:
1104 * bindings/js/kjs_html.cpp:
1105 (KJS::JSHTMLDocument::namedItemGetter):
1106 (KJS::JSHTMLElement::classInfo):
1107 (KJS::JSHTMLElement::accessors):
1108 (KJS::JSHTMLCollection::getNamedItems):
1109 * bindings/objc/DOM.mm:
1110 * bridge/mac/FrameMac.mm:
1111 (WebCore::FrameMac::dashboardRegionsDictionary):
1112 * css/CSSStyleDeclaration.cpp:
1113 (WebCore::CSSStyleDeclaration::diff):
1114 * html/HTMLCollection.cpp:
1115 (WebCore::HTMLCollection::namedItems):
1116 * html/HTMLCollection.h:
1117 * kcanvas/KCanvasFilters.cpp:
1118 (WebCore::KCanvasFilter::externalRepresentation):
1119 * kcanvas/KCanvasFilters.h:
1120 (WebCore::KCanvasFEColorMatrix::values):
1121 (WebCore::KCanvasFEColorMatrix::setValues):
1122 (WebCore::KCanvasFEConvolveMatrix::kernel):
1123 (WebCore::KCanvasFEConvolveMatrix::setKernel):
1124 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
1125 (WebCore::KCanvasFilterQuartz::getCIFilterStack):
1126 (WebCore::KCanvasFEColorMatrixQuartz::getCIFilter):
1127 * ksvg2/svg/SVGFEColorMatrixElement.cpp:
1128 (WebCore::SVGFEColorMatrixElement::filterEffect):
1129 * platform/graphics/svg/SVGResourceClipper.h:
1130 * platform/graphics/svg/cg/SVGResourceClipperCg.cpp:
1131 (WebCore::SVGResourceClipper::applyClip):
1132 * platform/network/FormData.h:
1133 * rendering/RenderPath.h:
1134 * rendering/SVGRenderTreeAsText.h:
1135 (WebCore::operator<<):
1137 2006-11-16 Anders Carlsson <acarlsson@apple.com>
1141 * editing/markup.cpp:
1142 (WebCore::createMarkup):
1143 Add null-checks for the frame, it might not exist for all documents.
1145 2006-11-16 Don Gibson <dgibson77@gmail.com>
1147 Reviewed and landed by ap.
1149 http://bugs.webkit.org/show_bug.cgi?id=11509:
1150 Windows build bustage.
1152 Also reorganizes WebCore.vcproj to add files whose absence wasn't
1153 causing compile errors, but which should have been there, and to
1154 make the include directory ordering (and contents) sane.
1155 Also reorganizes TemporaryLinkStubs.cpp to put headers and
1156 function groups in alphabetical order, and ensure that all functions
1157 in the file call notImplemented().
1159 * WebCore.vcproj/WebCore/WebCore.vcproj:
1160 * bridge/win/ChromeClientWin.h:
1161 (WebCore::ChromeClientWin::ref):
1162 (WebCore::ChromeClientWin::deref):
1163 * bridge/win/ContextMenuClientWin.h: Added.
1164 (WebCore::ContextMenuClientWin::~ContextMenuClientWin):
1165 (WebCore::ContextMenuClientWin::ref):
1166 (WebCore::ContextMenuClientWin::deref):
1167 * bridge/win/EditorClientWin.h:
1168 * bridge/win/FrameWin.cpp:
1169 (WebCore::FrameWin::~FrameWin):
1170 (WebCore::FrameWin::keyPress):
1171 * bridge/win/FrameWin.h:
1172 * bridge/win/PageWin.cpp: Removed.
1173 * editing/EditCommand.h:
1174 * loader/FormState.h:
1175 * loader/FrameLoader.h:
1176 * page/EventHandler.cpp:
1177 * platform/MimeTypeRegistry.cpp:
1178 (WebCore::initialiseSupportedImageMIMETypes):
1179 * platform/graphics/win/ImageWin.cpp:
1180 * platform/network/ResourceError.cpp:
1181 * platform/network/ResourceHandleInternal.h:
1182 * platform/network/win/ResourceHandleWin.cpp:
1183 (WebCore::ResourceHandle::onHandleCreated):
1184 (WebCore::ResourceHandle::onRequestRedirected):
1185 (WebCore::ResourceHandle::start):
1186 (WebCore::ResourceHandle::cancel):
1187 * platform/win/ScreenWin.cpp:
1188 (WebCore::monitorInfo):
1189 (WebCore::screenRect):
1190 (WebCore::screenAvailableRect):
1191 (WebCore::screenDepth):
1192 * platform/win/SoundWin.cpp: Added.
1193 (WebCore::systemBeep):
1194 * platform/win/TemporaryLinkStubs.cpp:
1195 (WebCore::CacheObjectExpiresTime):
1196 (WebCore::CheckCacheObjectStatus):
1197 (WebCore::CheckIfReloading):
1198 (WebCore::defaultLanguage):
1199 (WebCore::fileButtonChooseFileLabel):
1200 (WebCore::fileButtonNoFileSelectedLabel):
1201 (WebCore::findNextSentenceFromIndex):
1202 (WebCore::findNextWordFromIndex):
1203 (WebCore::findSentenceBoundary):
1204 (WebCore::findWordBoundary):
1205 (WebCore::focusRingColor):
1206 (WebCore::historyContains):
1207 (WebCore::inputElementAltText):
1208 (WebCore::IsResponseURLEqualToURL):
1209 (WebCore::cellCursor):
1210 (WebCore::contextMenuCursor):
1211 (WebCore::moveCursor):
1212 (WebCore::verticalTextCursor):
1213 (WebCore::refreshPlugins):
1214 (WebCore::resetButtonDefaultLabel):
1215 (WebCore::ResponseIsMultipart):
1216 (WebCore::ResponseMIMEType):
1217 (WebCore::ResponseURL):
1218 (WebCore::screenDepthPerComponent):
1219 (WebCore::screenIsMonochrome):
1220 (WebCore::searchableIndexIntroduction):
1221 (WebCore::ServeSynchronousRequest):
1222 (WebCore::setFocusRingColorChangeFunction):
1223 (WebCore::submitButtonDefaultLabel):
1224 (WebCore::CachedResource::setPlatformResponse):
1225 (WebCore::CachedResource::setAllData):
1226 (WebCore::ChromeClientWin::setWindowRect):
1227 (WebCore::ChromeClientWin::windowRect):
1228 (WebCore::ChromeClientWin::pageRect):
1229 (WebCore::ChromeClientWin::scaleFactor):
1230 (WebCore::ChromeClientWin::focus):
1231 (WebCore::ChromeClientWin::unfocus):
1232 (WebCore::ChromeClientWin::createWindow):
1233 (WebCore::ChromeClientWin::createModalDialog):
1234 (WebCore::ChromeClientWin::show):
1235 (WebCore::ChromeClientWin::canRunModal):
1236 (WebCore::ChromeClientWin::runModal):
1237 (WebCore::ChromeClientWin::setToolbarsVisible):
1238 (WebCore::ChromeClientWin::toolbarsVisible):
1239 (WebCore::ChromeClientWin::setStatusbarVisible):
1240 (WebCore::ChromeClientWin::statusbarVisible):
1241 (WebCore::ChromeClientWin::setScrollbarsVisible):
1242 (WebCore::ChromeClientWin::scrollbarsVisible):
1243 (WebCore::ChromeClientWin::setMenubarVisible):
1244 (WebCore::ChromeClientWin::menubarVisible):
1245 (WebCore::ChromeClientWin::setResizable):
1246 (WebCore::ContextMenu::appendItem):
1247 (WebCore::ContextMenuClientWin::addCustomContextMenuItems):
1248 (WebCore::DocumentLoader::setFrame):
1249 (WebCore::DocumentLoader::frameLoader):
1250 (WebCore::DocumentLoader::URL):
1251 (WebCore::DocumentLoader::isStopping):
1252 (WebCore::DocumentLoader::stopLoading):
1253 (WebCore::DocumentLoader::setLoading):
1254 (WebCore::DocumentLoader::updateLoading):
1255 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
1256 (WebCore::DocumentLoader::isLoadingInAPISense):
1257 (WebCore::DocumentLoader::stopRecordingResponses):
1258 (WebCore::EditorClientWin::shouldDeleteRange):
1259 (WebCore::EditorClientWin::shouldShowDeleteInterface):
1260 (WebCore::EditorClientWin::isContinuousSpellCheckingEnabled):
1261 (WebCore::EditorClientWin::isGrammarCheckingEnabled):
1262 (WebCore::EditorClientWin::spellCheckerDocumentTag):
1263 (WebCore::EventHandler::focusDocumentView):
1264 (WebCore::EventHandler::handleDrag):
1265 (WebCore::EventHandler::handleMouseUp):
1266 (WebCore::EventHandler::lastEventIsMouseUp):
1267 (WebCore::EventHandler::passMousePressEventToSubframe):
1268 (WebCore::EventHandler::passMouseMoveEventToSubframe):
1269 (WebCore::EventHandler::passMouseReleaseEventToSubframe):
1270 (WebCore::EventHandler::passWheelEventToSubframe):
1271 (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
1272 (WebCore::EventHandler::passMousePressEventToScrollbar):
1273 (WebCore::EventHandler::shouldDragAutoNode):
1274 (WebCore::EventHandler::tabsToAllControls):
1275 (WebCore::EventHandler::tabsToLinks):
1276 (WebCore::Frame::setNeedsReapplyStyles):
1277 (WebCore::FrameLoader::didFirstLayout):
1278 (WebCore::FrameLoader::overrideMediaType):
1279 (WebCore::FrameLoader::createJavaAppletWidget):
1280 (WebCore::FrameLoader::redirectDataToPlugin):
1281 (WebCore::FrameLoader::getHistoryLength):
1282 (WebCore::FrameLoader::setTitle):
1283 (WebCore::FrameLoader::referrer):
1284 (WebCore::FrameLoader::saveDocumentState):
1285 (WebCore::FrameLoader::restoreDocumentState):
1286 (WebCore::FrameLoader::goBackOrForward):
1287 (WebCore::FrameLoader::historyURL):
1288 (WebCore::FrameLoader::urlSelected):
1289 (WebCore::FrameLoader::createFrame):
1290 (WebCore::FrameLoader::submitForm):
1291 (WebCore::FrameLoader::partClearedInBegin):
1292 (WebCore::FrameLoader::originalRequestURL):
1293 (WebCore::FrameLoader::canGoBackOrForward):
1294 (WebCore::FrameLoader::objectContentType):
1295 (WebCore::FrameLoader::createPlugin):
1296 (WebCore::FrameLoader::detachFromParent):
1297 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
1298 (WebCore::FrameView::updateBorder):
1299 (WebCore::FrameWin::bindingRootObject):
1300 (WebCore::FrameWin::canPaste):
1301 (WebCore::FrameWin::issuePasteAndMatchStyleCommand):
1302 (WebCore::FrameWin::markedTextRange):
1303 (WebCore::FrameWin::passSubframeEventToSubframe):
1304 (WebCore::FrameWin::lastEventIsMouseUp):
1305 (WebCore::FrameWin::addMessageToConsole):
1306 (WebCore::FrameWin::shouldChangeSelection):
1307 (WebCore::FrameWin::respondToChangedSelection):
1308 (WebCore::FrameWin::clearUndoRedoOperations):
1309 (WebCore::FrameWin::markMisspellingsInAdjacentWords):
1310 (WebCore::FrameWin::respondToChangedContents):
1311 (WebCore::GraphicsContext::addRoundedRectClip):
1312 (WebCore::GraphicsContext::setShadow):
1313 (WebCore::GraphicsContext::clearShadow):
1314 (WebCore::GraphicsContext::beginTransparencyLayer):
1315 (WebCore::GraphicsContext::endTransparencyLayer):
1316 (WebCore::GraphicsContext::clearRect):
1317 (WebCore::GraphicsContext::strokeRect):
1318 (WebCore::GraphicsContext::setLineWidth):
1319 (WebCore::GraphicsContext::setLineCap):
1320 (WebCore::GraphicsContext::setLineJoin):
1321 (WebCore::GraphicsContext::setMiterLimit):
1322 (WebCore::GraphicsContext::setAlpha):
1323 (WebCore::GraphicsContext::setCompositeOperation):
1324 (WebCore::GraphicsContext::clip):
1325 (WebCore::GraphicsContext::rotate):
1326 (WebCore::GraphicsContext::scale):
1327 (WebCore::Icon::Icon):
1328 (WebCore::Icon::~Icon):
1329 (WebCore::Icon::newIconForFile):
1330 (WebCore::Icon::paint):
1331 (WebCore::IconDatabase::isIconExpiredForIconURL):
1332 (WebCore::IconDatabase::hasEntryForIconURL):
1333 (WebCore::IconDatabase::sharedIconDatabase):
1334 (WebCore::IconDatabase::setIconURLForPageURL):
1335 (WebCore::IconDatabase::setIconDataForIconURL):
1336 (WebCore::Image::drawTiled):
1337 (WebCore::Image::getHBITMAP):
1338 (WebCore::Path::Path):
1339 (WebCore::Path::~Path):
1340 (WebCore::Path::contains):
1341 (WebCore::Path::translate):
1342 (WebCore::Path::boundingRect):
1343 (WebCore::Path::operator=):
1344 (WebCore::Path::clear):
1345 (WebCore::Path::moveTo):
1346 (WebCore::Path::addLineTo):
1347 (WebCore::Path::addQuadCurveTo):
1348 (WebCore::Path::addBezierCurveTo):
1349 (WebCore::Path::addArcTo):
1350 (WebCore::Path::closeSubpath):
1351 (WebCore::Path::addArc):
1352 (WebCore::Path::addRect):
1353 (WebCore::Path::addEllipse):
1354 (WebCore::Path::transform):
1355 (WebCore::PlatformMouseEvent::PlatformMouseEvent):
1356 (WebCore::PlatformScrollbar::PlatformScrollbar):
1357 (WebCore::PlatformScrollbar::~PlatformScrollbar):
1358 (WebCore::PlatformScrollbar::width):
1359 (WebCore::PlatformScrollbar::height):
1360 (WebCore::PlatformScrollbar::setEnabled):
1361 (WebCore::PlatformScrollbar::paint):
1362 (WebCore::PlatformScrollbar::updateThumbPosition):
1363 (WebCore::PlatformScrollbar::updateThumbProportion):
1364 (WebCore::PlatformScrollbar::setRect):
1365 (WebCore::PlugInInfoStore::createPluginInfoForPluginAtIndex):
1366 (WebCore::PlugInInfoStore::pluginCount):
1367 (WebCore::PlugInInfoStore::supportsMIMEType):
1368 (WebCore::PolicyCheck::PolicyCheck):
1369 (WebCore::PolicyCheck::clear):
1370 (WebCore::PolicyCheck::clearRequest):
1371 (WebCore::PolicyCheck::call):
1372 (WebCore::RenderThemeWin::systemFont):
1373 (WebCore::RenderThemeWin::paintMenuList):
1374 (WebCore::RenderThemeWin::adjustMenuListStyle):
1375 (WebCore::ResourceLoader::cancel):
1376 (WebCore::ScrollView::addChild):
1377 (WebCore::ScrollView::removeChild):
1378 (WebCore::ScrollView::scrollPointRecursively):
1379 (WebCore::ScrollView::inWindow):
1380 (WebCore::ScrollView::paint):
1381 (WebCore::ScrollView::wheelEvent):
1382 (WebCore::ScrollView::themeChanged):
1383 (WebCore::ScrollView::convertChildToSelf):
1384 (WebCore::ScrollView::convertSelfToChild):
1385 (WebCore::ScrollView::geometryChanged):
1386 (WebCore::ScrollView::scrollbarUnderMouse):
1387 (WebCore::ScrollView::setFrameGeometry):
1388 (WebCore::ScrollView::windowResizerRect):
1389 (WebCore::ScrollView::resizerOverlapsContent):
1390 (WebCore::TextField::selectAll):
1391 (WebCore::TextField::addSearchResult):
1392 (WebCore::TextField::selectionStart):
1393 (WebCore::TextField::hasSelectedText):
1394 (WebCore::TextField::selectedText):
1395 (WebCore::TextField::setAutoSaveName):
1396 (WebCore::TextField::checksDescendantsForFocus):
1397 (WebCore::TextField::setSelection):
1398 (WebCore::TextField::setMaxResults):
1399 (WebCore::TextField::edited):
1400 (WebCore::TextField::focusPolicy):
1401 (WebCore::TextField::TextField):
1402 (WebCore::TextField::~TextField):
1403 (WebCore::TextField::setFont):
1404 (WebCore::TextField::setAlignment):
1405 (WebCore::TextField::setWritingDirection):
1406 (WebCore::TextField::maxLength):
1407 (WebCore::TextField::setMaxLength):
1408 (WebCore::TextField::text):
1409 (WebCore::TextField::setText):
1410 (WebCore::TextField::cursorPosition):
1411 (WebCore::TextField::setCursorPosition):
1412 (WebCore::TextField::setEdited):
1413 (WebCore::TextField::setReadOnly):
1414 (WebCore::TextField::setPlaceholderString):
1415 (WebCore::TextField::setColors):
1416 (WebCore::TextField::sizeForCharacterWidth):
1417 (WebCore::TextField::baselinePosition):
1418 (WebCore::TextField::setLiveSearch):
1419 (WebCore::Widget::enableFlushDrawing):
1420 (WebCore::Widget::isEnabled):
1421 (WebCore::Widget::focusPolicy):
1422 (WebCore::Widget::disableFlushDrawing):
1423 (WebCore::Widget::removeFromParent):
1424 (WebCore::Widget::lockDrawingFocus):
1425 (WebCore::Widget::unlockDrawingFocus):
1426 (WebCore::Widget::capturingMouse):
1427 (WebCore::Widget::setCapturingMouse):
1428 (WebCore::Widget::capturingTarget):
1429 (WebCore::Widget::capturingChild):
1430 (WebCore::Widget::setCapturingChild):
1431 (WebCore::Widget::convertChildToSelf):
1432 (WebCore::Widget::convertSelfToChild):
1433 (WebCore::Widget::setParent):
1434 (WebCore::Widget::parent):
1435 (WebCore::Widget::setEnabled):
1436 (WebCore::Widget::paint):
1437 (WebCore::Widget::setIsSelected):
1438 (WebCore::Widget::invalidate):
1439 (WebCore::Widget::invalidateRect):
1440 * platform/win/WidgetWin.cpp:
1441 (WebCore::Widget::clearFocus):
1443 2006-11-16 Timothy Hatcher <timothy@apple.com>
1447 <rdar://problem/4796730> table deletion elements are serialized out if they are visible when innerHTML or a Web Archive is made
1449 * editing/markup.cpp:
1450 (WebCore::createMarkup): disable the delete button so it's elements are not serialized into the markup
1452 2006-11-16 George Staikos <staikos@kde.org>
1454 Rubberstamped by Maciej.
1456 Making the code valgrind clean.
1458 * rendering/RenderTableCell.cpp: initialize variable m_widthChanged
1459 (WebCore::RenderTableCell::RenderTableCell):
1460 * rendering/RenderTableCell.h: remove unused variable nWrap
1462 2006-11-16 David Harrison <harrison@apple.com>
1464 Reviewed by Darin and Tim.
1466 <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
1468 * page/mac/EventHandlerMac.mm:
1469 (WebCore::EventHandler::eventMayStartDrag):
1470 Add nil check of hitTest's result.innerNode().
1472 2006-11-16 Timothy Hatcher <timothy@apple.com>
1476 <rdar://problem/4836897> Deletion rectangle disappears when multiple list items are selected
1478 Consider the container of the selection range for deletion before asking enclosingNodeOfType().
1480 * editing/DeleteButtonController.cpp:
1481 (WebCore::enclosingDeletableElement):
1483 2006-11-16 Rob Buis <buis@kde.org>
1487 Removal of unused m_styleElement.
1490 (WebCore::Node::Node):
1491 (WebCore::Node::dump):
1493 (WebCore::Node::isLink): should be styleElement, a bug?
1495 2006-11-15 Adam Roben <aroben@apple.com>
1499 Rename the items in the ContextMenuAction enum so that they don't
1500 conflict with WebKit names.
1502 * WebCore.xcodeproj/project.pbxproj:
1503 * platform/ContextMenu.cpp:
1504 (WebCore::ContextMenu::populate):
1505 * platform/ContextMenu.h:
1507 (WebCore::ContextMenuItem::ContextMenuItem):
1509 2006-11-15 Adam Roben <aroben@apple.com>
1513 Change m_contextMenu to an OwnPtr.
1515 * WebCore.xcodeproj/project.pbxproj:
1516 * page/ContextMenuController.cpp:
1517 (WebCore::ContextMenuController::handleContextMenuEvent):
1518 * page/ContextMenuController.h:
1520 2006-11-15 Adam Roben <aroben@apple.com>
1524 Add new ContextMenuController and ContextMenuClient classes, and move
1525 context menu responsibilities from Chrome and ChromeClient to them.
1528 * WebCore.xcodeproj/project.pbxproj: Add new files to project, and
1529 alphabetize some others.
1530 * page/Chrome.cpp: Remove context menu-related code.
1531 * page/Chrome.h: Ditto.
1532 * page/ChromeClient.h:
1533 * page/ContextMenuClient.h: Added.
1534 * page/ContextMenuController.cpp: Added.
1535 (WebCore::ContextMenuController::ContextMenuController):
1536 (WebCore::ContextMenuController::~ContextMenuController):
1537 (WebCore::ContextMenuController::handleContextMenuEvent):
1538 (WebCore::ContextMenuController::contextMenuActionSelected):
1539 * page/ContextMenuController.h: Added.
1540 (WebCore::ContextMenuController::client):
1541 * page/Page.cpp: Every Page now has a ContextMenuController.
1542 (WebCore::Page::Page):
1543 * page/Page.h: Made m_dragCaretController and m_chrome objects instead
1544 of pointers to objects.
1545 (WebCore::Page::contextMenuController):
1546 * platform/ContextMenu.cpp:
1547 (WebCore::ContextMenu::populate): Removed the call to Chrome to ask the
1548 delegate to add its menu items, and moved the code from the static
1549 addDefaultItems function into this method.
1550 * platform/ContextMenu.h:
1551 (WebCore::ContextMenu::show): Added an empty method body since this
1552 method is now called from ContextMenuController (although no one calls
1553 into ContextMenuController yet, so it's OK for this to be empty).
1554 (WebCore::ContextMenu::hide): Ditto.
1556 2006-11-15 Anders Carlsson <acarlsson@apple.com>
1560 Add null checks on the node filter, they can be null if no filter was passed to the respective
1563 * bindings/js/JSNodeIteratorCustom.cpp:
1564 (WebCore::JSNodeIterator::mark):
1565 * bindings/js/JSTreeWalkerCustom.cpp:
1566 (WebCore::JSTreeWalker::mark):
1568 2006-11-15 Oliver Hunt <oliver@apple.com>
1572 Allow <embed> and <object> tags to include non-plugin
1573 content when plugins are disabled
1575 Fixes <rdar://problems/4839488>
1577 * html/HTMLEmbedElement.cpp:
1578 (WebCore::HTMLEmbedElement::rendererIsNeeded):
1579 * html/HTMLObjectElement.cpp:
1580 (WebCore::HTMLObjectElement::rendererIsNeeded):
1581 * loader/FrameLoader.cpp:
1582 (WebCore::FrameLoader::requestObject):
1584 2006-11-15 Adele Peterson <adele@apple.com>
1586 Build fix. Another type problem that I don't see locally.
1588 * rendering/RenderSlider.cpp: (WebCore::RenderSlider::setPositionFromValue):
1590 2006-11-15 Adele Peterson <adele@apple.com>
1594 Adding MathExtras header.
1596 * rendering/RenderSlider.cpp:
1598 2006-11-15 Timothy Hatcher <timothy@apple.com>
1600 Reviewed by Harrison.
1602 <rdar://problem/4832894> Crash deleting an element inside a list while deletion rectangle is visible (compareBoundaryPoints)
1604 * Disable and hide the deletion UI for each editing command. This prevents editing commands from being affected
1605 by the deletion UI elements we insert. The deletion UI is then shown after the editing commands are completely done.
1607 * Multiple calls to DeleteButtonController's disable() needed to be paired with the same number of enable() calls before
1608 the deletion UI is enabled again. This allows for nested editing commands to be called without thrashing the deletion UI.
1610 * Make sure the the renderers are currently reflecting the latest style changes, so call updateLayoutIgnorePendingStylesheets().
1612 * editing/DeleteButtonController.cpp:
1613 (WebCore::DeleteButtonController::DeleteButtonController):
1614 (WebCore::isDeletableElement):
1615 (WebCore::DeleteButtonController::respondToChangedSelection): check the enabled state
1616 (WebCore::DeleteButtonController::respondToChangedContents): check the enabled state
1617 (WebCore::DeleteButtonController::show): call isDeletableElement() to make sure the element is allowed
1618 (WebCore::DeleteButtonController::deleteTarget): check the enabled state
1619 * editing/DeleteButtonController.h:
1620 (WebCore::DeleteButtonController::disable):
1621 (WebCore::DeleteButtonController::enable):
1622 (WebCore::DeleteButtonController::enabled):
1623 * editing/EditCommand.cpp:
1624 (WebCore::EditCommand::apply): hide and disable the deletion UI, then show at the end
1625 (WebCore::EditCommand::unapply): ditto
1626 (WebCore::EditCommand::reapply): ditto
1628 2006-11-15 Adele Peterson <adele@apple.com>
1632 New implementation of slider control.
1634 * WebCore.xcodeproj/project.pbxproj: Removed DeprecatedSlider and Slider classes, added RenderSlider class.
1635 * rendering/DeprecatedSlider.cpp: Removed.
1636 * rendering/DeprecatedSlider.h: Removed.
1637 * platform/Slider.h: Removed.
1638 * platform/mac/SliderMac.mm: Removed.
1639 * platform/win/TemporaryLinkStubs.cpp:
1641 * css/CSSSelector.h: (WebCore::CSSSelector::): Added PseudoElement for thumb, PseudoSliderThumb.
1642 * css/CSSSelector.cpp: (WebCore::CSSSelector::extractPseudoType): Added code for "-webkit-slider-thumb".
1643 * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::checkOneSelector):
1644 * rendering/RenderStyle.cpp:
1646 (WebCore::pseudoBit):
1647 * rendering/RenderStyle.h: (WebCore::RenderStyle::):
1649 * css/html4.css: Added style for input[type="range"] and input[type="range"]::-webkit-slider-thumb
1651 * html/HTMLInputElement.cpp:
1652 (WebCore::HTMLInputElement::createRenderer): Create RenderSlider for input type="range" elements.
1653 (WebCore::HTMLInputElement::defaultEventHandler): Allow the renderer to forward events, and set thumb position when click occurs on the track.
1655 * 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
1656 continue to capture mouse move events during the drag, even though those events aren't directly over the slider.
1657 (WebCore::EventHandler::EventHandler):
1658 (WebCore::EventHandler::setCapturingMouseEventsNode):
1659 (WebCore::EventHandler::dispatchMouseEvent): If the capturingMouseEventsNode is set, then dispatch all mouse events to that node.
1660 * page/EventHandler.h:
1662 * rendering/RenderSlider.cpp: Added.
1663 (WebCore::HTMLSliderThumbElement::isShadowNode):
1664 (WebCore::HTMLSliderThumbElement::shadowParentNode):
1665 (WebCore::HTMLSliderThumbElement::inDragMode): Keeps track of whether or not the thumb is in drag mode.
1666 (WebCore::HTMLSliderThumbElement::HTMLSliderThumbElement):
1667 (WebCore::HTMLSliderThumbElement::defaultEventHandler): Handles positioning of slider thumb during drag.
1668 (WebCore::RenderSlider::RenderSlider):
1669 (WebCore::RenderSlider::~RenderSlider):
1670 (WebCore::RenderSlider::baselinePosition):
1671 (WebCore::RenderSlider::calcMinMaxWidth):
1672 (WebCore::RenderSlider::setStyle):
1673 (WebCore::RenderSlider::createThumbStyle):
1674 (WebCore::RenderSlider::layout): Positions the thumb to be centered on the track.
1675 (WebCore::RenderSlider::updateFromElement):
1676 (WebCore::RenderSlider::mouseEventIsInThumb):
1677 (WebCore::RenderSlider::setValueForPosition):
1678 (WebCore::RenderSlider::setPositionFromValue):
1679 (WebCore::RenderSlider::positionForOffset):
1680 (WebCore::RenderSlider::valueChanged):
1681 (WebCore::RenderSlider::currentPosition):
1682 (WebCore::RenderSlider::setCurrentPosition):
1683 (WebCore::RenderSlider::trackSize):
1684 (WebCore::RenderSlider::forwardEvent):
1685 (WebCore::RenderSlider::inDragMode):
1686 * rendering/RenderSlider.h: Added.
1687 (WebCore::RenderSlider::renderName):
1689 * rendering/RenderTheme.cpp: Added drawing code for slider track and thumb.
1690 (WebCore::RenderTheme::adjustStyle):
1691 (WebCore::RenderTheme::paint):
1692 (WebCore::RenderTheme::paintBorderOnly):
1693 (WebCore::RenderTheme::paintDecorations):
1694 (WebCore::RenderTheme::adjustSliderTrackStyle):
1695 (WebCore::RenderTheme::adjustSliderThumbStyle):
1696 * rendering/RenderTheme.h:
1697 (WebCore::RenderTheme::paintSliderTrack):
1698 (WebCore::RenderTheme::paintSliderThumb):
1699 * rendering/RenderThemeMac.h:
1700 * rendering/RenderThemeMac.mm:
1701 (WebCore::RenderThemeMac::RenderThemeMac):
1702 (WebCore::TrackGradientInterpolate):
1703 (WebCore::RenderThemeMac::paintSliderTrack):
1704 (WebCore::RenderThemeMac::paintSliderThumb):
1705 (WebCore::RenderThemeMac::adjustSliderTrackStyle):
1706 (WebCore::RenderThemeMac::adjustSliderThumbStyle):
1708 2006-11-15 Beth Dakin <bdakin@apple.com>
1712 Oops! Forgot to add this!
1714 * platform/mac/ContextMenuMac.mm: Added.
1715 (-[MenuTarget forwardContextMenuAction:initWithContextMenu:WebCore::]):
1716 (-[MenuTarget WebCore::]):
1717 (-[MenuTarget setMenu:WebCore::]):
1718 (-[MenuTarget forwardContextMenuAction:]):
1720 (ContextMenu::appendItem):
1721 (ContextMenu::itemCount):
1722 (ContextMenu::insertItem):
1723 (ContextMenu::setPlatformMenuDescription):
1725 2006-11-15 Beth Dakin <bdakin@apple.com>
1726 & Adam Roben <aroben@apple.com>
1728 Reviewed by Adam and Beth.
1730 Initial cut at pushing Context Menus into WebCore. Nobody actually
1731 calls this code just yet.
1734 * WebCore.xcodeproj/project.pbxproj:
1736 (WebCore::Chrome::addCustomContextMenuItems): Use the chrome to
1737 call into addContextMenuItems on the UIDelegate.
1739 * page/ChromeClient.h:
1740 * platform/ContextMenu.cpp: Added.
1741 (WebCore::addDefaultItems):
1742 (WebCore::ContextMenu::populate):
1743 * platform/ContextMenu.h: Added.
1745 (WebCore::ContextMenuItem::ContextMenuItem):
1746 (WebCore::ContextMenu::ContextMenu):
1747 (WebCore::ContextMenu::hitTestResult):
1748 (WebCore::ContextMenu::platformMenuDescription):
1750 2006-11-15 Adele Peterson <adele@apple.com>
1754 - Fix for <rdar://problem/4780306> REGRESSION: clicking in textarea does not set selection at PunBB.org
1756 * css/html4.css: Removed "-webkit-user-select: ignore" for labels.
1758 2006-11-15 David Harrison <harrison@apple.com>
1762 <rdar://problem/4836034> REGRESSION: Hang while spell-checking (advanceToNextMisspelling)
1765 * manual-tests/keep_spelling_markers.html:
1766 Updated to include checking for this bug.
1768 * bridge/mac/FrameMac.mm:
1769 (WebCore::FrameMac::advanceToNextMisspelling):
1770 it.advance() even when current string is a single space.
1772 2006-11-15 Brady Eidson <beidson@apple.com>
1776 Backing out macro expansion
1778 * WebCore.xcodeproj/project.pbxproj:
1779 * html/HTMLElement.cpp:
1780 (WebCore::HTMLElement::isRecognizedTagName):
1781 * ksvg2/scripts/make_names.pl:
1783 2006-11-15 David Harrison <harrison@apple.com>
1787 <rdar://problem/4770453> VO not honoring secure edit fields in web pages
1789 The remaining problem was the password fields would return their contents
1790 even though they did not advertise that they could. Apparently, VoiceOver
1791 does not read the ads.
1793 * bridge/mac/WebCoreAXObject.mm:
1794 (isPasswordFieldElement):
1795 (-[WebCoreAXObject isPasswordField]):
1796 (-[WebCoreAXObject textMarkerForVisiblePosition:]):
1797 (-[WebCoreAXObject accessibilityAttributeValue:]):
1798 (-[WebCoreAXObject doAXStringForRange:]):
1800 2006-11-13 Lou Amadio <lamadio@apple.com>
1802 Reviewed by Darin Adler, Maciej Stachowiak
1804 Cleanup: Expanded macros in generated files
1806 * html/HTMLElement.cpp:
1807 (WebCore::HTMLElement::isRecognizedTagName):
1808 * ksvg2/scripts/make_names.pl:
1810 2006-11-16 Anders Carlsson <acarlsson@apple.com>
1814 Use Vector instead of DeprecatedPtrList.
1816 * editing/ApplyStyleCommand.cpp:
1817 (WebCore::ApplyStyleCommand::applyBlockStyle):
1818 * editing/BreakBlockquoteCommand.cpp:
1819 * rendering/RenderFlow.cpp:
1820 (WebCore::RenderFlow::paintOutline):
1822 2006-11-15 Adam Roben <aroben@apple.com>
1826 * page/EventHandler.h:
1828 2006-11-14 Beth Dakin <bdakin@apple.com>
1832 Move things off the bridge, and move sendContextMenuEvent() from
1833 EventHandlerMac to EventHandler.
1836 * WebCore.xcodeproj/project.pbxproj:
1837 * bridge/EditorClient.h:
1838 * bridge/mac/WebCoreFrameBridge.h:
1839 * editing/Editor.cpp:
1840 (WebCore::Editor::selectWordBeforeMenuEvent):
1841 (WebCore::Editor::clientIsEditable):
1843 * page/EventHandler.cpp:
1844 (WebCore::EventHandler::sendContextMenuEvent):
1845 * page/EventHandler.h:
1846 * page/mac/EventHandlerMac.mm:
1848 2006-11-14 Timothy Hatcher <timothy@apple.com>
1850 Reviewed by Harrison.
1852 <rdar://problem/4766635> Safari should never follow links in editable areas (add a WebKitEditableLinkNeverLive option)
1854 Adds an EditableLinkNeverLive setting that will make links in editable areas always dead.
1856 * bridge/mac/WebCoreSettings.mm:
1857 (-[WebCoreSettings setEditableLinkBehavior:]):
1858 * html/HTMLAnchorElement.cpp:
1859 (WebCore::HTMLAnchorElement::defaultEventHandler):
1860 (WebCore::HTMLAnchorElement::setActive):
1861 (WebCore::HTMLAnchorElement::isLiveLink):
1862 * page/FrameView.cpp:
1863 (WebCore::selectCursor):
1865 (WebCore::Settings::):
1867 2006-11-14 Mark Rowe <bdash@webkit.org>
1873 * bindings/scripts/CodeGenerator.pm:
1875 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1877 Turns out I wasn't forcing DWARF on the world at all,
1878 it's now the default!
1880 * WebCore.xcodeproj/project.pbxproj:
1882 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1884 I must stop trying to force DWARF on the world.
1886 * WebCore.xcodeproj/project.pbxproj:
1888 2006-11-13 Justin Garcia <justin.garcia@apple.com>
1890 Reviewed by harrison
1892 <rdar://problem/4806874>
1893 Missing background image after paste
1895 * editing/markup.cpp:
1896 (WebCore::createMarkup): If the body is fully selected, add a
1897 div with its CSS properties to the markup. Migrated a use of
1898 enclosingBlockFlowElement to enclosingBlock to fix an infinite
1899 loop when pasting <div><input></div>.
1901 2006-11-14 Anders Carlsson <acarlsson@apple.com>
1905 Add Undo/Redo to execCommand.
1907 * editing/Editor.cpp:
1908 (WebCore::execRedo):
1909 (WebCore::execUndo):
1912 (WebCore::CommandEntry::):
1914 2006-11-14 Darin Adler <darin@apple.com>
1918 - created EventHandler class, moved event handling code from both
1919 Frame and FrameView in there
1921 - added ScrollTypes.h header so you can include the scroller-related
1922 enums without all of Scrollbar.h
1924 * page/EventHandler.cpp: Added.
1925 * page/EventHandler.h: Added.
1926 * page/mac/EventHandlerMac.mm: Added.
1928 * platform/ScrollBarMode.h: Removed.
1929 * platform/ScrollTypes.h: Added.
1932 * WebCore.xcodeproj/project.pbxproj:
1933 * bridge/mac/FrameMac.h:
1934 * bridge/mac/FrameMac.mm:
1935 (WebCore::FrameMac::FrameMac):
1936 (WebCore::FrameMac::~FrameMac):
1937 (WebCore::FrameMac::bridgeForWidget):
1938 (WebCore::FrameMac::imageFromRect):
1939 * bridge/mac/FrameViewMac.mm:
1940 * bridge/mac/WebCoreFrameBridge.mm:
1941 (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
1942 (-[WebCoreFrameBridge nextKeyView]):
1943 (-[WebCoreFrameBridge previousKeyView]):
1944 (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
1945 (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
1946 (-[WebCoreFrameBridge _visiblePositionForPoint:]):
1947 (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
1948 (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
1949 (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
1950 (-[WebCoreFrameBridge dragSourceMovedTo:]):
1951 (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
1953 (WebCore::Document::hoveredNodeDetached):
1955 * dom/EventTargetNode.cpp:
1956 (WebCore::EventTargetNode::defaultEventHandler):
1957 * editing/SelectionController.cpp:
1958 (WebCore::SelectionController::SelectionController):
1959 * editing/SelectionController.h:
1960 (WebCore::SelectionController::setCaretBlinkingSuspended):
1961 (WebCore::SelectionController::isCaretBlinkingSuspended):
1962 * html/HTMLAnchorElement.cpp:
1963 (WebCore::HTMLAnchorElement::isKeyboardFocusable):
1964 * html/HTMLFrameElementBase.cpp:
1965 (WebCore::HTMLFrameElementBase::setFocus):
1966 * html/HTMLFrameElementBase.h:
1967 * html/HTMLGenericFormElement.cpp:
1968 (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
1969 * html/HTMLInputElement.cpp:
1970 (WebCore::HTMLInputElement::defaultEventHandler):
1971 * html/HTMLSelectElement.cpp:
1972 (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
1973 * loader/FrameLoader.cpp:
1974 (WebCore::FrameLoader::clear):
1975 (WebCore::FrameLoader::open):
1978 (WebCore::Frame::caretBlinkTimerFired):
1979 (WebCore::Frame::frameForWidget):
1980 (WebCore::Frame::eventHandler):
1981 (WebCore::Frame::setProhibitsScrolling):
1982 (WebCore::FramePrivate::FramePrivate):
1984 * page/FramePrivate.h:
1985 * page/FrameView.cpp:
1986 (WebCore::FrameViewPrivate::FrameViewPrivate):
1987 (WebCore::FrameViewPrivate::reset):
1988 (WebCore::FrameView::FrameView):
1989 (WebCore::FrameView::~FrameView):
1990 (WebCore::FrameView::clear):
1991 (WebCore::FrameView::adjustViewSize):
1992 (WebCore::FrameView::addRepaintInfo):
1993 (WebCore::FrameView::layout):
1994 (WebCore::FrameView::scrollPointRecursively):
1995 (WebCore::FrameView::setContentsPos):
1996 (WebCore::FrameView::scheduleRelayoutOfSubtree):
1997 (WebCore::FrameView::scheduleEvent):
1998 (WebCore::FrameView::updateOverflowStatus):
1999 (WebCore::FrameView::dispatchScheduledEvents):
2000 (WebCore::FrameView::windowClipRectForLayer):
2001 (WebCore::FrameView::handleMouseMoveEvent):
2002 (WebCore::FrameView::handleMouseReleaseEvent):
2004 * page/PageState.cpp:
2005 (WebCore::PageState::PageState):
2006 (WebCore::PageState::restore):
2008 * platform/ScrollBar.h:
2009 * platform/ScrollView.h:
2010 * platform/mac/ClipboardMac.mm:
2011 * platform/mac/PopupMenuMac.mm:
2012 (WebCore::PopupMenu::show):
2013 * platform/mac/SliderMac.mm:
2014 (-[WebCoreSlider becomeFirstResponder]):
2015 (-[WebCoreSlider nextKeyView]):
2016 (-[WebCoreSlider previousKeyView]):
2017 (-[WebCoreSlider canBecomeKeyView]):
2018 (Slider::focusPolicy):
2019 * platform/mac/WebCoreTextField.mm:
2020 (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
2021 (-[WebCoreTextFieldController setHasFocus:]):
2022 (-[WebCoreSearchField nextKeyView]):
2023 (-[WebCoreSearchField previousKeyView]):
2024 (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
2025 * platform/mac/WidgetMac.mm:
2026 (WebCore::Widget::hasFocus):
2027 (WebCore::Widget::clearFocus):
2028 * rendering/RenderFrameSet.cpp:
2029 (WebCore::RenderFrameSet::setResizing):
2030 * rendering/RenderLayer.cpp:
2031 (WebCore::RenderLayer::autoscroll):
2032 (WebCore::RenderLayer::resize):
2033 (WebCore::RenderLayer::updateOverflowStatus):
2034 * rendering/RenderLayer.h:
2035 * rendering/RenderListBox.cpp:
2036 (WebCore::RenderListBox::autoscroll):
2037 * rendering/RenderObject.cpp:
2038 (WebCore::RenderObject::draggableNode):
2039 (WebCore::RenderObject::destroy):
2040 * rendering/RenderObject.h:
2041 (WebCore::RenderObject::RepaintInfo::RepaintInfo):
2042 * rendering/RenderPartObject.cpp:
2043 (WebCore::RenderPartObject::viewCleared):
2045 2006-11-14 Anders Carlsson <acarlsson@apple.com>
2049 Let the editor client handle undo/redo.
2052 * WebCore.xcodeproj/project.pbxproj:
2053 * bridge/EditorClient.h:
2054 * bridge/mac/FrameMac.h:
2055 * bridge/mac/FrameMac.mm:
2056 (WebCore::FrameMac::canUndo):
2057 (WebCore::FrameMac::canRedo):
2058 * bridge/mac/WebCoreEditCommand.h: Removed.
2059 * bridge/mac/WebCoreEditCommand.mm: Removed.
2060 * bridge/mac/WebCoreFrameBridge.h:
2061 * bridge/mac/WebCoreFrameBridge.mm:
2062 * editing/Editor.cpp:
2063 (WebCore::Editor::appliedEditing):
2064 (WebCore::Editor::unappliedEditing):
2065 (WebCore::Editor::reappliedEditing):
2066 * editing/JSEditor.cpp:
2067 * loader/FrameLoader.cpp:
2068 (WebCore::FrameLoader::closeURL):
2071 * rendering/RenderTextControl.cpp:
2072 (WebCore::RenderTextControl::updateFromElement):
2074 2006-11-14 Nikolas Zimmermann <zimmermann@kde.org>
2076 Reviewed and landed by Brady
2081 * loader/qt/FrameLoaderQt.cpp:
2082 (WebCore::FrameLoader::submitForm):
2083 * platform/network/qt/ResourceHandleManager.cpp:
2084 (WebCore::ResourceHandleManager::add):
2085 * platform/qt/FrameQtClient.cpp:
2086 (WebCore::FrameQtClientDefault::submitForm):
2087 * platform/qt/FrameQtClient.h:
2089 2006-11-14 Brady Eidson <beidson@apple.com>
2093 Cleanup of my patch last night and merging with aroben-style changes from this morning
2094 (More ref-counted FormData stuff)
2096 * html/HTMLFormElement.cpp:
2097 (WebCore::HTMLFormElement::submit):
2098 * loader/FrameLoader.cpp:
2099 (WebCore::FrameLoader::submitForm):
2100 * platform/network/ResourceHandle.cpp:
2101 (WebCore::ResourceHandle::postData):
2102 * platform/network/ResourceHandle.h:
2103 * platform/network/cf/FormDataStreamCFNet.cpp:
2104 (WebCore::setHTTPBody):
2105 * platform/network/mac/FormDataStreamMac.h:
2106 * platform/network/mac/FormDataStreamMac.mm:
2107 (WebCore::getStreamFormDatas):
2108 (WebCore::formCreate):
2109 (WebCore::formFinalize):
2110 (WebCore::setHTTPBody):
2111 (WebCore::httpBodyFromStream):
2112 * platform/network/mac/ResourceRequestMac.mm:
2113 (WebCore::getResourceRequest):
2115 2006-11-14 Rob Buis <buis@kde.org>
2119 http://bugs.webkit.org/show_bug.cgi?id=11575
2120 Bug 11575: REGRESSION: WebCore crash in CSSParser/HTMLTokenizer
2122 Test: fast/css/css-imports.html
2124 * css/CSSImportRule.cpp:
2125 (WebCore::CSSImportRule::insertedIntoParent):
2126 Fix the crash by testing for null pointer.
2128 2006-11-14 Alexey Proskuryakov <ap@webkit.org>
2132 Test for http://bugs.webkit.org/show_bug.cgi?id=3387
2133 Redundant keydown, keypress, keyup events sent for arrow keys
2135 * manual-tests/arrow-key-events.html: Added.
2137 2006-11-14 Darin Adler <darin@apple.com>
2141 Fix up usages of FormData within CFNet loader code.
2143 * platform/network/ResourceRequest.h:
2144 (WebCore::ResourceRequest::httpBody):
2145 * platform/network/cf/FormDataStreamCFNet.cpp:
2146 (WebCore::getStreamFormDatas): Store RefPtr<FormData>s in the
2147 streamFormDatas HashMap.
2148 (WebCore::formCreate):
2149 (WebCore::formFinalize): Removed delete because the remove() will deref
2150 and delete if necessary.
2151 (WebCore::setHTTPBody): Changed parameter to PassRefPtr.
2152 (WebCore::httpBodyFromStream):
2153 * platform/network/cf/FormDataStreamCFNet.h: Fix declarations.
2154 * platform/network/cf/ResourceRequestCFNet.cpp:
2155 (WebCore::getResourceRequest):
2157 2006-11-14 Greg Jackson <gjspanner@gmail.com>
2161 Preserves any pre-existing value for WEBCORE_NAVIGATOR_PLATFORM
2162 rather than overriding it based on platform detection.
2164 * bindings/js/kjs_navigator.cpp:
2166 2006-11-13 Brady Eidson <beidson@apple.com>
2170 Made FormData Shared, and pass it around as such.
2172 * WebCore.xcodeproj/project.pbxproj: Reordered some items
2173 * html/HTMLFormElement.cpp:
2174 (WebCore::HTMLFormElement::formData):
2175 (WebCore::HTMLFormElement::submit):
2176 * html/HTMLFormElement.h:
2177 * loader/FrameLoader.cpp:
2178 (WebCore::FormSubmission::FormSubmission):
2179 (WebCore::FrameLoader::submitForm):
2180 * loader/FrameLoader.h:
2181 * loader/mac/FrameLoaderMac.mm:
2182 (WebCore::FrameLoader::post):
2183 (WebCore::FrameLoader::loadResourceSynchronously):
2184 * loader/mac/SubresourceLoaderMac.mm:
2185 (WebCore::SubresourceLoader::create):
2186 * platform/network/FormData.h: Made FormData shared
2187 * platform/network/ResourceHandle.h:
2188 * platform/network/ResourceHandle.cpp:
2189 (WebCore::ResourceHandle::postData):
2190 * platform/network/ResourceRequest.h:
2191 (WebCore::ResourceRequest::httpBody):
2192 (WebCore::ResourceRequest::setHTTPBody):
2193 * platform/network/mac/ResourceRequestMac.mm:
2194 (WebCore::getResourceRequest):
2195 (WebCore::nsURLRequest):
2197 * platform/network/mac/FormDataStreamMac.h:
2198 * platform/network/mac/FormDataStreamMac.mm:
2199 (WebCore::getStreamFormDatas): Hash Streams to RefPtr<FormData>s
2200 (WebCore::formCreate):
2201 (WebCore::formFinalize):
2202 (WebCore::setHTTPBody):
2203 (WebCore::httpBodyFromStream):
2205 * xml/xmlhttprequest.cpp:
2206 (WebCore::XMLHttpRequest::send):
2208 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2210 Reviewed by harrison
2212 <rdar://problem/4828264>
2213 In Mail, a crash occurs at WebCore::Selection::toRange() when selecting this web content (http://www.cnet.com/)
2215 The start of the selection is in an editable area, and the end is in an
2216 input field inside that editable area. The code that should pull the end
2217 of such a selection outside the input field didn't escape shadow nodes,
2218 it would leave a dangling end, causing the crash in toRange.
2220 * editing/Selection.cpp:
2221 (WebCore::Selection::adjustForEditableContent): Added an ASSERT and a fixup
2222 to prevent crashes like this in future Release builds.
2223 * editing/htmlediting.cpp:
2224 (WebCore::firstEditablePositionAfterPositionInRoot): Let this function
2225 escape shadow nodes. We might eventually push this code down into
2226 next/previous{VisuallyDistinct}Canditate.
2227 (WebCore::lastEditablePositionBeforePositionInRoot): Ditto.
2229 2006-11-13 Justin Garcia <justin.garcia@apple.com>
2233 * editing/DeleteSelectionCommand.cpp:
2234 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor):
2235 * editing/Editor.cpp:
2236 (WebCore::Editor::appliedEditing):
2238 (WebCore::Editor::setRemovedAnchor): Pass a PassRefPtr.
2240 2006-11-10 Justin Garcia <justin.garcia@apple.com>
2244 <rdar://problem/4820026>
2245 copy/paste of news.google.com yields text from hidden select element options
2247 We were adding descendants of unrendered select elements.
2249 * editing/markup.cpp:
2250 (WebCore::createMarkup): Don't traverse into nodes without renderers, unless
2251 they are grandfathered in by a rendered select element.
2253 2006-11-12 Simon Hausmann <hausmann@kde.org>
2255 Reviewed by Sam Weinig.
2257 Fix Qt build. Missing AbstractShared implementation.
2258 http://bugs.webkit.org/show_bug.cgi?id=11581
2260 * loader/qt/FrameLoaderClientQt.cpp:
2261 (WebCore::FrameLoaderClientQt::ref):
2262 (WebCore::FrameLoaderClientQt::deref):
2263 * loader/qt/FrameLoaderClientQt.h:
2264 * platform/qt/ChromeClientQt.cpp:
2265 (WebCore::ChromeClientQt::ref):
2266 (WebCore::ChromeClientQt::deref):
2267 * platform/qt/ChromeClientQt.h:
2268 * platform/qt/EditorClientQt.cpp:
2269 (WebCore::EditorClientQt::ref):
2270 (WebCore::EditorClientQt::deref):
2271 * platform/qt/EditorClientQt.h:
2273 2006-11-13 Mark Rowe <bdash@webkit.org>
2277 Fix some Linux/Gdk build issues noted by Alp Toker.
2279 * Projects/gdk/webcore-gdk.bkl:
2280 * WebCoreSources.bkl:
2281 * platform/graphics/gdk/ImageGdk.cpp:
2282 (WebCore::Image::loadPlatformResource):
2284 2006-11-12 Brady Eidson <beidson@apple.com>
2288 Logging channel plumbing for future work
2290 * platform/Logging.cpp:
2292 * platform/Logging.h:
2293 * platform/mac/LoggingMac.mm:
2294 (WebCore::InitializeLoggingChannelsIfNecessary):
2296 2006-11-12 Mark Rowe <bdash@webkit.org>
2300 Linux/Gdk compilation fixes, and bakefile cleanups. Based on patches by
2303 * Projects/gdk/webcore-gdk.bkl:
2304 * WebCoreSources.bkl:
2305 * page/PageState.cpp:
2306 * platform/gdk/ChromeClientGdk.h:
2307 (WebCore::ChromeClientGdk::ref):
2308 (WebCore::ChromeClientGdk::deref):
2309 * platform/gdk/FrameGdk.cpp:
2310 (WebCore::FrameGdkClientDefault::openURL):
2311 (WebCore::FrameGdkClientDefault::didReceiveData):
2312 (WebCore::FrameGdkClientDefault::receivedAllData):
2313 (WebCore::FrameGdk::FrameGdk):
2314 (WebCore::FrameGdk::~FrameGdk):
2315 * platform/gdk/FrameGdk.h:
2316 * platform/gdk/KeyEventGdk.cpp:
2317 (WebCore::keyIdentifierForGdkKeyCode):
2318 * platform/gdk/ScreenClientGdk.h: Removed.
2319 * platform/gdk/TemporaryLinkStubs.cpp:
2320 (FrameGdk::canPaste):
2321 (FrameGdk::originalRequestURL):
2322 (TextField::TextField):
2323 * platform/network/gdk/ResourceHandleManager.cpp:
2324 (WebCore::ResourceHandleManager::downloadTimerCallback):
2325 (WebCore::ResourceHandleManager::add):
2326 (WebCore::ResourceHandleManager::cancel):
2329 2006-11-11 Geoffrey Garen <ggaren@apple.com>
2331 Reviewed by Maciej Stachowiak.
2333 - Fixed loader crash by clarifying ownership of WebKit client objects.
2334 WebCore objects own their WebKit clients, and ref and deref through
2335 virtual methods, leaving WebKit free to use whatever client / reference-counting
2336 implementation it likes.
2339 * WebCore.xcodeproj/project.pbxproj:
2340 * bridge/EditorClient.h: Fixed up function prototypes for style.
2341 * loader/FrameLoader.cpp: Removed detachFrameLoader, since its real purpose
2342 was to implement an alternative ownership model.
2343 (WebCore::FrameLoader::~FrameLoader): Removed empty destructor.
2344 (WebCore::FrameLoader::setClient): This function now takes ownership
2345 (WebCore::FrameLoader::client):
2346 * loader/FrameLoader.h:
2347 * loader/FrameLoaderClient.h:
2348 * page/ChromeClient.h:
2349 * platform/AbstractShared.h: Added. This is the virtual function-based refcounting
2350 complement to Shared.
2351 (WebCore::AbstractShared::~AbstractShared):
2353 2006-11-11 George Staikos <staikos@kde.org>
2357 Fix uninitialized variable.
2359 * rendering/RenderStyle.h:
2361 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
2363 Reviewed/landed by Adam.
2365 Complete cleanup of the CMakeLists.txt.
2366 Now all files to be built are sorted in alphabetic order.
2368 General style cleanup, remove all tabs etc.
2372 2006-11-11 Geoffrey Garen <ggaren@apple.com>
2374 Reviewed by Maciej Stachowiak.
2376 Added missing initializer to ResourceRequest -- fixes some loader crashes
2377 due to assuming a request always has a non-null httpMethod.
2379 * platform/network/ResourceRequest.h:
2380 (WebCore::ResourceRequest::ResourceRequest):
2382 2006-11-11 Brady Eidson <beidson@apple.com>
2388 * loader/FrameLoaderClient.h:
2390 2006-11-11 Darin Adler <darin@apple.com>
2392 - attempt to fix Qt build
2394 * platform/qt/CursorQt.cpp:
2395 (WebCore::verticalTextCursor): Added. Just returns pointer cursor.
2396 (WebCore::cellCursor): Ditto.
2397 (WebCore::contextMenuCursor): Ditto.
2399 2006-11-11 Rob Buis <buis@kde.org>
2403 http://bugs.webkit.org/show_bug.cgi?id=10893
2404 InsertRule can not handle @import statements
2406 Allow @import as part of a css rule.
2409 * css/CSSImportRule.cpp:
2410 (WebCore::CSSImportRule::insertedIntoParent):
2411 * css/CSSStyleSheet.cpp:
2412 (WebCore::CSSStyleSheet::CSSStyleSheet):
2413 (WebCore::CSSStyleSheet::checkLoaded):
2414 * css/CSSStyleSheet.h:
2415 (WebCore::CSSStyleSheet::loadCompleted):
2417 2006-11-11 Alexey Proskuryakov <ap@webkit.org>
2419 Attempt to fix Qt build.
2421 * CMakeLists.txt: PathQt.cpp is in graphics/qt now.
2423 2006-11-11 Lars Naesbye Christensen <larsnaesbye@stud.ku.dk>
2425 Tortured by Sam Weinig, Tim H., Maciej, Mitz and Alexey :-)
2427 [CSS 3] support for vertical-text, cell and context-menu cursors
2428 http://bugs.webkit.org/show_bug.cgi?id=11494
2430 * Resources/cellCursor.png: Added.
2431 * Resources/contextMenuCursor.png: Added.
2432 * Resources/verticalTextCursor.png: Added.
2433 * WebCore.xcodeproj/project.pbxproj:
2434 * css/CSSComputedStyleDeclaration.cpp:
2435 (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
2436 * css/CSSValueKeywords.in:
2437 * manual-tests/cursor.html:
2438 * page/FrameView.cpp:
2439 (WebCore::selectCursor):
2440 * platform/Cursor.h:
2441 * platform/mac/CursorMac.mm:
2442 (WebCore::verticalTextCursor):
2443 (WebCore::cellCursor):
2444 (WebCore::contextMenuCursor):
2445 * rendering/RenderStyle.h:
2448 2006-11-11 Nikolas Zimmermann <zimmermann@kde.org>
2450 Reviewed by aroben and ap, landed by ap.
2452 Fixes: http://bugs.webkit.org/show_bug.cgi?id=11468
2454 Group graphics related files in platform/graphics.
2455 Move certain files from certain subdirectories
2456 into platform/graphics/{win,mac,cg,gdk,qt}
2459 * WebCore.xcodeproj/project.pbxproj:
2460 * platform/AffineTransform.cpp: Removed.
2461 * platform/AffineTransform.h: Removed.
2462 * platform/Color.cpp: Removed.
2463 * platform/Color.h: Removed.
2464 * platform/FloatPoint.cpp: Removed.
2465 * platform/FloatPoint.h: Removed.
2466 * platform/FloatRect.cpp: Removed.
2467 * platform/FloatRect.h: Removed.
2468 * platform/FloatSize.cpp: Removed.
2469 * platform/FloatSize.h: Removed.
2470 * platform/Icon.h: Removed.
2471 * platform/Image.cpp: Removed.
2472 * platform/Image.h: Removed.
2473 * platform/ImageSource.h: Removed.
2474 * platform/IntPoint.h: Removed.
2475 * platform/IntRect.cpp: Removed.
2476 * platform/IntRect.h: Removed.
2477 * platform/IntSize.h: Removed.
2478 * platform/IntSizeHash.h: Removed.
2479 * platform/Path.cpp: Removed.
2480 * platform/Path.h: Removed.
2481 * platform/Pen.cpp: Removed.
2482 * platform/Pen.h: Removed.
2483 * platform/cairo/AffineTransformCairo.cpp: Removed.
2484 * platform/cairo/GraphicsContextCairo.cpp: Removed.
2485 * platform/cairo/ImageCairo.cpp: Removed.
2486 * platform/cairo/ImageSourceCairo.cpp: Removed.
2487 * platform/cairo/cairo/AUTHORS: Removed.
2488 * platform/cairo/cairo/COPYING: Removed.
2489 * platform/cairo/cairo/COPYING-LGPL-2.1: Removed.
2490 * platform/cairo/cairo/COPYING-MPL-1.1: Removed.
2491 * platform/cairo/cairo/INSTALL: Removed.
2492 * platform/cairo/cairo/NEWS: Removed.
2493 * platform/cairo/cairo/README: Removed.
2494 * platform/cairo/cairo/TODO: Removed.
2495 * platform/cairo/cairo/src/Makefile.in: Removed.
2496 * platform/cairo/cairo/src/cairo-arc-private.h: Removed.
2497 * platform/cairo/cairo/src/cairo-arc.c: Removed.
2498 * platform/cairo/cairo/src/cairo-array.c: Removed.
2499 * platform/cairo/cairo/src/cairo-atsui-font.c: Removed.
2500 * platform/cairo/cairo/src/cairo-atsui.h: Removed.
2501 * platform/cairo/cairo/src/cairo-beos-surface.cpp: Removed.
2502 * platform/cairo/cairo/src/cairo-beos.h: Removed.
2503 * platform/cairo/cairo/src/cairo-cache-private.h: Removed.
2504 * platform/cairo/cairo/src/cairo-cache.c: Removed.
2505 * platform/cairo/cairo/src/cairo-clip-private.h: Removed.
2506 * platform/cairo/cairo/src/cairo-clip.c: Removed.
2507 * platform/cairo/cairo/src/cairo-color.c: Removed.
2508 * platform/cairo/cairo/src/cairo-debug.c: Removed.
2509 * platform/cairo/cairo/src/cairo-debug.h: Removed.
2510 * platform/cairo/cairo/src/cairo-directfb-surface.c: Removed.
2511 * platform/cairo/cairo/src/cairo-directfb.h: Removed.
2512 * platform/cairo/cairo/src/cairo-features.h: Removed.
2513 * platform/cairo/cairo/src/cairo-features.h.in: Removed.
2514 * platform/cairo/cairo/src/cairo-fixed.c: Removed.
2515 * platform/cairo/cairo/src/cairo-font-options.c: Removed.
2516 * platform/cairo/cairo/src/cairo-font-subset-private.h: Removed.
2517 * platform/cairo/cairo/src/cairo-font-subset.c: Removed.
2518 * platform/cairo/cairo/src/cairo-font.c: Removed.
2519 * platform/cairo/cairo/src/cairo-ft-font.c: Removed.
2520 * platform/cairo/cairo/src/cairo-ft-private.h: Removed.
2521 * platform/cairo/cairo/src/cairo-ft.h: Removed.
2522 * platform/cairo/cairo/src/cairo-glitz-surface.c: Removed.
2523 * platform/cairo/cairo/src/cairo-glitz.h: Removed.
2524 * platform/cairo/cairo/src/cairo-gstate-private.h: Removed.
2525 * platform/cairo/cairo/src/cairo-gstate.c: Removed.
2526 * platform/cairo/cairo/src/cairo-hash-private.h: Removed.
2527 * platform/cairo/cairo/src/cairo-hash.c: Removed.
2528 * platform/cairo/cairo/src/cairo-hull.c: Removed.
2529 * platform/cairo/cairo/src/cairo-image-surface.c: Removed.
2530 * platform/cairo/cairo/src/cairo-matrix.c: Removed.
2531 * platform/cairo/cairo/src/cairo-meta-surface-private.h: Removed.
2532 * platform/cairo/cairo/src/cairo-meta-surface.c: Removed.
2533 * platform/cairo/cairo/src/cairo-output-stream.c: Removed.
2534 * platform/cairo/cairo/src/cairo-paginated-surface-private.h: Removed.
2535 * platform/cairo/cairo/src/cairo-paginated-surface.c: Removed.
2536 * platform/cairo/cairo/src/cairo-path-bounds.c: Removed.
2537 * platform/cairo/cairo/src/cairo-path-data-private.h: Removed.
2538 * platform/cairo/cairo/src/cairo-path-data.c: Removed.
2539 * platform/cairo/cairo/src/cairo-path-fill.c: Removed.
2540 * platform/cairo/cairo/src/cairo-path-fixed-private.h: Removed.
2541 * platform/cairo/cairo/src/cairo-path-stroke.c: Removed.
2542 * platform/cairo/cairo/src/cairo-path.c: Removed.
2543 * platform/cairo/cairo/src/cairo-pattern.c: Removed.
2544 * platform/cairo/cairo/src/cairo-pdf-surface.c: Removed.
2545 * platform/cairo/cairo/src/cairo-pdf.h: Removed.
2546 * platform/cairo/cairo/src/cairo-pen.c: Removed.
2547 * platform/cairo/cairo/src/cairo-platform.h: Removed.
2548 * platform/cairo/cairo/src/cairo-png.c: Removed.
2549 * platform/cairo/cairo/src/cairo-polygon.c: Removed.
2550 * platform/cairo/cairo/src/cairo-private.h: Removed.
2551 * platform/cairo/cairo/src/cairo-ps-surface.c: Removed.
2552 * platform/cairo/cairo/src/cairo-ps.h: Removed.
2553 * platform/cairo/cairo/src/cairo-quartz-private.h: Removed.
2554 * platform/cairo/cairo/src/cairo-quartz-surface.c: Removed.
2555 * platform/cairo/cairo/src/cairo-quartz.h: Removed.
2556 * platform/cairo/cairo/src/cairo-quartz2-surface.c: Removed.
2557 * platform/cairo/cairo/src/cairo-quartz2.h: Removed.
2558 * platform/cairo/cairo/src/cairo-region.c: Removed.
2559 * platform/cairo/cairo/src/cairo-scaled-font.c: Removed.
2560 * platform/cairo/cairo/src/cairo-slope.c: Removed.
2561 * platform/cairo/cairo/src/cairo-spline.c: Removed.
2562 * platform/cairo/cairo/src/cairo-stroke-style.c: Removed.
2563 * platform/cairo/cairo/src/cairo-surface-fallback-private.h: Removed.
2564 * platform/cairo/cairo/src/cairo-surface-fallback.c: Removed.
2565 * platform/cairo/cairo/src/cairo-surface.c: Removed.
2566 * platform/cairo/cairo/src/cairo-svg-surface.c: Removed.
2567 * platform/cairo/cairo/src/cairo-svg.h: Removed.
2568 * platform/cairo/cairo/src/cairo-traps.c: Removed.
2569 * platform/cairo/cairo/src/cairo-unicode.c: Removed.
2570 * platform/cairo/cairo/src/cairo-wideint.c: Removed.
2571 * platform/cairo/cairo/src/cairo-wideint.h: Removed.
2572 * platform/cairo/cairo/src/cairo-win32-font.c: Removed.
2573 * platform/cairo/cairo/src/cairo-win32-private.h: Removed.
2574 * platform/cairo/cairo/src/cairo-win32-surface.c: Removed.
2575 * platform/cairo/cairo/src/cairo-win32.h: Removed.
2576 * platform/cairo/cairo/src/cairo-xcb-surface.c: Removed.
2577 * platform/cairo/cairo/src/cairo-xcb-xrender.h: Removed.
2578 * platform/cairo/cairo/src/cairo-xcb.h: Removed.
2579 * platform/cairo/cairo/src/cairo-xlib-private.h: Removed.
2580 * platform/cairo/cairo/src/cairo-xlib-screen.c: Removed.
2581 * platform/cairo/cairo/src/cairo-xlib-surface.c: Removed.
2582 * platform/cairo/cairo/src/cairo-xlib-test.h: Removed.
2583 * platform/cairo/cairo/src/cairo-xlib-xrender.h: Removed.
2584 * platform/cairo/cairo/src/cairo-xlib.h: Removed.
2585 * platform/cairo/cairo/src/cairo.c: Removed.
2586 * platform/cairo/cairo/src/cairo.h: Removed.
2587 * platform/cairo/cairo/src/cairoint.h: Removed.
2588 * platform/cairo/cairo/src/test-fallback-surface.c: Removed.
2589 * platform/cairo/cairo/src/test-fallback-surface.h: Removed.
2590 * platform/cairo/cairo/src/test-meta-surface.c: Removed.
2591 * platform/cairo/cairo/src/test-meta-surface.h: Removed.
2592 * platform/cairo/cairo/src/test-paginated-surface.c: Removed.
2593 * platform/cairo/cairo/src/test-paginated-surface.h: Removed.
2594 * platform/cairo/pixman/AUTHORS: Removed.
2595 * platform/cairo/pixman/COPYING: Removed.
2596 * platform/cairo/pixman/README: Removed.
2597 * platform/cairo/pixman/src/Makefile.in: Removed.
2598 * platform/cairo/pixman/src/fbcompose.c: Removed.
2599 * platform/cairo/pixman/src/fbedge.c: Removed.
2600 * platform/cairo/pixman/src/fbedgeimp.h: Removed.
2601 * platform/cairo/pixman/src/fbmmx.c: Removed.
2602 * platform/cairo/pixman/src/fbmmx.h: Removed.
2603 * platform/cairo/pixman/src/fbpict.c: Removed.
2604 * platform/cairo/pixman/src/fbpict.h: Removed.
2605 * platform/cairo/pixman/src/fbtrap.c: Removed.
2606 * platform/cairo/pixman/src/icblt.c: Removed.
2607 * platform/cairo/pixman/src/icbltone.c: Removed.
2608 * platform/cairo/pixman/src/iccolor.c: Removed.
2609 * platform/cairo/pixman/src/icformat.c: Removed.
2610 * platform/cairo/pixman/src/icimage.c: Removed.
2611 * platform/cairo/pixman/src/icimage.h: Removed.
2612 * platform/cairo/pixman/src/icint.h: Removed.
2613 * platform/cairo/pixman/src/icpixels.c: Removed.
2614 * platform/cairo/pixman/src/icrect.c: Removed.
2615 * platform/cairo/pixman/src/icrop.h: Removed.
2616 * platform/cairo/pixman/src/icstipple.c: Removed.
2617 * platform/cairo/pixman/src/ictransform.c: Removed.
2618 * platform/cairo/pixman/src/ictrap.c: Removed.
2619 * platform/cairo/pixman/src/ictri.c: Removed.
2620 * platform/cairo/pixman/src/icutil.c: Removed.
2621 * platform/cairo/pixman/src/pixman-remap.h: Removed.
2622 * platform/cairo/pixman/src/pixman-xserver-compat.h: Removed.
2623 * platform/cairo/pixman/src/pixman.h: Removed.
2624 * platform/cairo/pixman/src/pixregion.c: Removed.
2625 * platform/cairo/pixman/src/pixregionint.h: Removed.
2626 * platform/cairo/pixman/src/renderedge.c: Removed.
2627 * platform/cairo/pixman/src/renderedge.h: Removed.
2628 * platform/cairo/pixman/src/slim_internal.h: Removed.
2629 * platform/cairo/rgb24-hacks.txt: Removed.
2630 * platform/cairo/scale-removal.txt: Removed.
2631 * platform/cg/AffineTransformCG.cpp: Removed.
2632 * platform/cg/FloatPointCG.cpp: Removed.
2633 * platform/cg/FloatRectCG.cpp: Removed.
2634 * platform/cg/FloatSizeCG.cpp: Removed.
2635 * platform/cg/GraphicsContextCG.cpp: Removed.
2636 * platform/cg/GraphicsContextPlatformPrivate.h: Removed.
2637 * platform/cg/ImageCG.cpp: Removed.
2638 * platform/cg/ImageSourceCG.cpp: Removed.
2639 * platform/cg/IntPointCG.cpp: Removed.
2640 * platform/cg/IntRectCG.cpp: Removed.
2641 * platform/cg/IntSizeCG.cpp: Removed.
2642 * platform/cg/PDFDocumentImage.cpp: Removed.
2643 * platform/cg/PDFDocumentImage.h: Removed.
2644 * platform/cg/PathCG.cpp: Removed.
2645 * platform/gdk/ImageGdk.cpp: Removed.
2646 * platform/mac/ColorMac.mm: Removed.
2647 * platform/mac/FloatPointMac.mm: Removed.
2648 * platform/mac/FloatRectMac.mm: Removed.
2649 * platform/mac/FloatSizeMac.mm: Removed.
2650 * platform/mac/GraphicsContextMac.mm:
2651 * platform/mac/IconMac.mm: Removed.
2652 * platform/mac/ImageMac.mm: Removed.
2653 * platform/mac/IntPointMac.mm: Removed.
2654 * platform/mac/IntRectMac.mm: Removed.
2655 * platform/mac/IntSizeMac.mm: Removed.
2656 * platform/qt/AffineTransformQt.cpp: Removed.
2657 * platform/qt/ColorQt.cpp: Removed.
2658 * platform/qt/FloatPointQt.cpp: Removed.
2659 * platform/qt/FloatRectQt.cpp: Removed.
2660 * platform/qt/IconQt.cpp: Removed.
2661 * platform/qt/ImageQt.cpp: Removed.
2662 * platform/qt/ImageSourceQt.cpp: Removed.
2663 * platform/qt/IntPointQt.cpp: Removed.
2664 * platform/qt/IntRectQt.cpp: Removed.
2665 * platform/qt/IntSizeQt.cpp: Removed.
2666 * platform/qt/PathQt.cpp: Removed.
2667 * platform/win/ImageWin.cpp: Removed.
2668 * platform/win/IntPointWin.cpp: Removed.
2669 * platform/win/IntRectWin.cpp: Removed.
2670 * platform/win/IntSizeWin.cpp: Removed.
2672 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
2676 A layout test was added when this bug was fixed, so none needed now.
2679 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2680 http://bugs.webkit.org/show_bug.cgi?id=11570
2682 * rendering/RenderStyle.h:
2683 (WebCore::RenderStyle::isSpace): Removed.
2684 * rendering/RenderText.cpp:
2685 (WebCore::isSpace): Added.
2686 (WebCore::RenderText::calcMinMaxWidth): Use inline function instead of polluting RenderStyle.
2688 2006-11-11 Graham Dennis <graham.dennis@gmail.com>
2692 REGRESSION (r16122): min/max widths incorrectly calculated for contentEditable text
2693 http://bugs.webkit.org/show_bug.cgi?id=11570
2695 * rendering/RenderStyle.h:
2696 (WebCore::RenderStyle::isSpace): Added.
2697 * rendering/RenderText.cpp:
2698 (WebCore::RenderText::calcMinMaxWidth): For the purposes of calculating the line widths,
2699 treat non-breaking spaces the same as normal spaces if -webkit-nbsp-mode is 'space'
2701 2006-11-10 Zalan Bujtas <zalan.bujtas@nokia.com>
2705 Added basic types for symbian platform.
2706 http://bugs.webkit.org/show_bug.cgi?id=11540
2709 * platform/AtomicString.h:
2710 (WebCore::AtomicString::AtomicString):
2711 (WebCore::AtomicString::operator TPtrC):
2712 * platform/DeprecatedString.cpp:
2713 (WebCore::initializeHandleNodeBlock):
2714 * platform/DeprecatedString.h: char _internalBuffer has to be in front of
2715 the bitfields as Codewarrior (3.2.5 build 461) compiler cannot cope with
2716 bitfields and breaks byte aligment
2717 * platform/FloatPoint.h:
2718 * platform/FloatRect.h:
2719 * platform/IntPoint.h:
2720 * platform/IntRect.h:
2721 * platform/IntSize.h:
2722 * platform/PlatformString.h:
2723 (WebCore::String::operator TPtrC):
2724 (WebCore::String::des):
2725 * platform/StringImpl.h:
2726 * platform/symbian/DeprecatedStringSymbian.cpp: Added.
2727 (WebCore::DeprecatedString::setBufferFromDes):
2728 (WebCore::DeprecatedString::fromDes):
2729 (WebCore::DeprecatedString::des):
2730 (WebCore::DeprecatedString::des8):
2731 * platform/symbian/FloatPointSymbian.cpp: Added.
2732 (WebCore::FloatPoint::FloatPoint):
2733 (WebCore::FloatPoint::operator TPoint):
2734 * platform/symbian/FloatRectSymbian.cpp: Added.
2735 (WebCore::FloatRect::FloatRect):
2736 (WebCore::FloatRect::operator TRect):
2737 (WebCore::FloatRect::rect):
2738 * platform/symbian/IntPointSymbian.cpp: Added.
2739 (WebCore::IntPoint::IntPoint):
2740 (WebCore::IntPoint::operator TPoint):
2741 * platform/symbian/IntRectSymbian.cpp: Added.
2742 (WebCore::IntRect::IntRect):
2743 (WebCore::IntRect::operator TRect):
2744 (WebCore::IntRect::Rect):
2745 * platform/symbian/IntSizeSymbian.cpp: Added.
2746 (WebCore::IntSize::IntSize):
2747 (WebCore::IntSize::operator TSize):
2748 * platform/symbian/StringImplSymbian.cpp: Added.
2749 (WebCore::StringImpl::StringImpl):
2750 (WebCore::StringImpl::des):
2751 * platform/symbian/StringSymbian.cpp: Added.
2752 (WebCore::String::String):
2754 2006-11-10 Zack Rusin <zack@kde.org>
2758 Adjust to the changes Brady made in the Qt code.
2760 * loader/qt/FrameLoaderClientQt.cpp:
2761 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2762 * loader/qt/FrameLoaderClientQt.h:
2764 2006-11-10 Justin Garcia <justin.garcia@apple.com>
2766 Reviewed by harrison
2768 <rdar://problem/4069359>
2769 Deleting hyperlink text, then typing uses link typing style but loses the link itself
2771 The removed anchor element needs to stick around temporarily, in the same way
2772 that the typing style hangs off the caret until the user moves it. Also text
2773 insertion around anchors didn't match TextEdit.
2775 * editing/DeleteSelectionCommand.cpp:
2776 (WebCore::DeleteSelectionCommand::saveFullySelectedAnchor): Added.
2777 (WebCore::DeleteSelectionCommand::doApply): Call saveFullySelectedAnchor.
2778 * editing/DeleteSelectionCommand.h:
2779 * editing/EditCommand.cpp:
2780 (WebCore::EditCommand::apply): Clear the removed anchor after any top level
2781 editing command that doesn't preserve the typing style (matches TextEdit).
2782 * editing/Editor.cpp:
2783 (WebCore::Editor::appliedEditing): Added a fixme: we shouldn't call
2784 setSelection with a message telling it to clear the typing style
2785 (and the saved anchor) here. Save/restore the saved anchor because of this.
2787 (WebCore::Editor::removedAnchor): Getter.
2788 (WebCore::Editor::setRemovedAnchor): Setter.
2789 * editing/InsertTextCommand.cpp:
2790 (WebCore::InsertTextCommand::prepareForTextInsertion): Insert the saved anchor
2792 * editing/SelectionController.cpp:
2793 (WebCore::SelectionController::setSelection): Clear the removed anchor whenever
2794 we make a selection change that clears the typing style.
2795 (WebCore::SelectionController::nodeWillBeRemoved): Removed an old outdated FIXME.
2796 * editing/htmlediting.cpp:
2797 (WebCore::positionAvoidingSpecialElementBoundary): Cleaned up and
2798 made some changes to match TextEdit's behavior. First, insert content
2799 inside the anchor when the caret is after it, unless the caret is at the
2800 end of the document, or if the caret is before it and at the start of a
2803 === Safari-521.30 ===
2805 2006-11-10 Timothy Hatcher <timothy@apple.com>
2809 Check for BHIDDEN in isVisible() also.
2811 * rendering/RenderStyle.h:
2812 (WebCore::BorderValue::isVisible):
2814 2006-11-10 Timothy Hatcher <timothy@apple.com>
2818 <rdar://problem/4821423> element deletion UI appears for Mail blockquote and others with less than three visible borders
2820 Added a new function to BorderValue called isVisible(). This checks nonZero() and !isTransparent().
2822 * editing/DeleteButtonController.cpp:
2823 (WebCore::isDeletableElement):
2824 * rendering/RenderStyle.h:
2825 (WebCore::BorderValue::isVisible):
2827 2006-11-10 Adam Roben <aroben@apple.com>
2829 Rubberstamped by Anders.
2831 Back out some accidentally-committed changes from r17711.
2834 (WebCore::Frame::command):
2835 (WebCore::FramePrivate::FramePrivate):
2837 * page/FramePrivate.h:
2839 2006-11-10 Anders Carlsson <acarlsson@apple.com>
2843 Add more commands, make toggleBold and toggleItalic executable commands.
2846 * editing/Editor.cpp:
2847 (WebCore::execCopy):
2849 (WebCore::execDelete):
2850 (WebCore::execForwardDelete):
2851 (WebCore::execPaste):
2852 (WebCore::execSelectAll):
2853 (WebCore::execToggleBold):
2854 (WebCore::execToggleItalic):
2856 (WebCore::canPaste):
2857 (WebCore::hasEditableSelection):
2858 (WebCore::hasEditableRangeSelection):
2859 (WebCore::hasRangeSelection):
2860 (WebCore::hasRichlyEditableSelection):
2861 (WebCore::CommandEntry::):
2864 2006-11-10 Anders Carlsson <acarlsson@apple.com>
2866 Reviewed by Maciej, Geoff.
2868 Added an execCommand method to Editor. The idea is that this should replace the CommandByName object. Get rid of
2869 the alterCurrentSelection method in the bridge. WebKit can just call execCommand directly.
2872 * bridge/mac/WebCoreFrameBridge.h:
2873 * bridge/mac/WebCoreFrameBridge.mm:
2874 * editing/Editor.cpp:
2875 (WebCore::execMoveBackward):
2876 (WebCore::execMoveBackwardAndModifySelection):
2877 (WebCore::execMoveDown):
2878 (WebCore::execMoveDownAndModifySelection):
2879 (WebCore::execMoveForward):
2880 (WebCore::execMoveForwardAndModifySelection):
2881 (WebCore::execMoveLeft):
2882 (WebCore::execMoveLeftAndModifySelection):
2883 (WebCore::execMoveRight):
2884 (WebCore::execMoveRightAndModifySelection):
2885 (WebCore::execMoveToBeginningOfDocument):
2886 (WebCore::execMoveToBeginningOfDocumentAndModifySelection):
2887 (WebCore::execMoveToBeginningOfSentence):
2888 (WebCore::execMoveToBeginningOfSentenceAndModifySelection):
2889 (WebCore::execMoveToBeginningOfLine):
2890 (WebCore::execMoveToBeginningOfLineAndModifySelection):
2891 (WebCore::execMoveToBeginningOfParagraph):
2892 (WebCore::execMoveToBeginningOfParagraphAndModifySelection):
2893 (WebCore::execMoveToEndOfDocument):
2894 (WebCore::execMoveToEndOfDocumentAndModifySelection):
2895 (WebCore::execMoveToEndOfSentence):
2896 (WebCore::execMoveToEndOfSentenceAndModifySelection):
2897 (WebCore::execMoveToEndOfLine):
2898 (WebCore::execMoveToEndOfLineAndModifySelection):
2899 (WebCore::execMoveToEndOfParagraph):
2900 (WebCore::execMoveToEndOfParagraphAndModifySelection):
2901 (WebCore::execMoveParagraphBackwardAndModifySelection):
2902 (WebCore::execMoveParagraphForwardAndModifySelection):
2903 (WebCore::execMoveUp):
2904 (WebCore::execMoveUpAndModifySelection):
2905 (WebCore::execMoveWordBackward):
2906 (WebCore::execMoveWordBackwardAndModifySelection):
2907 (WebCore::execMoveWordForward):
2908 (WebCore::execMoveWordForwardAndModifySelection):
2909 (WebCore::execMoveWordLeft):
2910 (WebCore::execMoveWordLeftAndModifySelection):
2911 (WebCore::execMoveWordRight):
2912 (WebCore::execMoveWordRightAndModifySelection):
2913 (WebCore::enabledAnySelection):
2914 (WebCore::createCommandMap):
2915 (WebCore::CommandEntry::):
2916 (WebCore::Editor::execCommand):
2919 2006-11-10 Brady Eidson <beidson@apple.com>
2923 Took out WebIconDatabaseBridge and made WebKit call IconDatabase directly
2926 * WebCore.xcodeproj/project.pbxproj:
2927 * bridge/mac/WebCoreIconDatabaseBridge.h: Removed.
2928 * bridge/mac/WebCoreIconDatabaseBridge.mm: Removed.
2929 * loader/FrameLoaderClient.h:
2930 * loader/icon/IconDatabase.cpp:
2931 (WebCore::IconDatabase::sharedIconDatabase):
2932 (WebCore::IconDatabase::~IconDatabase):
2933 * loader/icon/IconDatabase.h:
2934 (WebCore::IconDatabase::isPrivateBrowsingEnabled):
2935 (WebCore::IconDatabase::enabled):
2936 * loader/icon/IconLoader.cpp:
2937 (WebCore::IconLoader::finishLoading):
2938 * loader/mac/FrameLoaderMac.mm:
2940 2006-11-10 Zack Rusin <zack@kde.org>
2942 Reviewed and landed by Anders.
2944 Adjust platform Qt/KDE code to the recent loader
2948 * loader/DocumentLoader.h:
2949 * loader/FrameLoader.cpp:
2950 (WebCore::FrameLoader::createEmptyDocument):
2951 * loader/FrameLoader.h:
2952 * loader/FrameLoaderClient.h:
2953 * loader/qt/DocumentLoaderQt.cpp: Added.
2954 (WebCore::canonicalizedTitle):
2955 (WebCore::DocumentLoader::DocumentLoader):
2956 (WebCore::DocumentLoader::frameLoader):
2957 (WebCore::DocumentLoader::~DocumentLoader):
2958 (WebCore::DocumentLoader::URL):
2959 (WebCore::DocumentLoader::unreachableURL):
2960 (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
2961 (WebCore::DocumentLoader::isStopping):
2962 (WebCore::DocumentLoader::clearErrors):
2963 (WebCore::DocumentLoader::stopLoading):
2964 (WebCore::DocumentLoader::setupForReplace):
2965 (WebCore::DocumentLoader::commitIfReady):
2966 (WebCore::DocumentLoader::finishedLoading):
2967 (WebCore::DocumentLoader::setCommitted):
2968 (WebCore::DocumentLoader::isCommitted):
2969 (WebCore::DocumentLoader::setLoading):
2970 (WebCore::DocumentLoader::isLoading):
2971 (WebCore::DocumentLoader::doesProgressiveLoad):
2972 (WebCore::DocumentLoader::setupForReplaceByMIMEType):
2973 (WebCore::DocumentLoader::updateLoading):
2974 (WebCore::DocumentLoader::setFrame):
2975 (WebCore::DocumentLoader::attachToFrame):
2976 (WebCore::DocumentLoader::detachFromFrame):
2977 (WebCore::DocumentLoader::prepareForLoadStart):
2978 (WebCore::DocumentLoader::loadingStartedTime):
2979 (WebCore::DocumentLoader::setIsClientRedirect):
2980 (WebCore::DocumentLoader::isClientRedirect):
2981 (WebCore::DocumentLoader::setPrimaryLoadComplete):
2982 (WebCore::DocumentLoader::isLoadingInAPISense):
2983 (WebCore::DocumentLoader::stopRecordingResponses):
2984 (WebCore::DocumentLoader::title):
2985 (WebCore::DocumentLoader::triggeringAction):
2986 (WebCore::DocumentLoader::setTriggeringAction):
2987 (WebCore::DocumentLoader::setOverrideEncoding):
2988 (WebCore::DocumentLoader::overrideEncoding):
2989 (WebCore::DocumentLoader::setTitle):
2990 (WebCore::DocumentLoader::URLForHistory):
2991 * loader/qt/FrameLoaderClientQt.cpp: Added.
2992 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2993 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
2994 (WebCore::FrameLoaderClientQt::detachFrameLoader):
2995 (WebCore::FrameLoaderClientQt::hasWebView):
2996 (WebCore::FrameLoaderClientQt::hasFrameView):
2997 (WebCore::FrameLoaderClientQt::hasBackForwardList):
2998 (WebCore::FrameLoaderClientQt::resetBackForwardList):
2999 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
3000 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
3001 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
3002 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
3003 (WebCore::FrameLoaderClientQt::makeDocumentView):
3004 (WebCore::FrameLoaderClientQt::makeRepresentation):
3005 (WebCore::FrameLoaderClientQt::forceLayout):
3006 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
3007 (WebCore::FrameLoaderClientQt::updateHistoryForCommit):
3008 (WebCore::FrameLoaderClientQt::updateHistoryForBackForwardNavigation):
3009 (WebCore::FrameLoaderClientQt::updateHistoryForReload):
3010 (WebCore::FrameLoaderClientQt::updateHistoryForStandardLoad):
3011 (WebCore::FrameLoaderClientQt::updateHistoryForInternalLoad):
3012 (WebCore::FrameLoaderClientQt::updateHistoryAfterClientRedirect):
3013 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
3014 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
3015 (WebCore::FrameLoaderClientQt::resetAfterLoadError):
3016 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
3017 (WebCore::FrameLoaderClientQt::willCloseDocument):
3018 (WebCore::FrameLoaderClientQt::detachedFromParent1):
3019 (WebCore::FrameLoaderClientQt::detachedFromParent2):
3020 (WebCore::FrameLoaderClientQt::detachedFromParent3):
3021 (WebCore::FrameLoaderClientQt::detachedFromParent4):
3022 (WebCore::FrameLoaderClientQt::loadedFromPageCache):
3023 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3024 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
3025 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
3026 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3027 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
3028 (WebCore::FrameLoaderClientQt::dispatchWillClose):
3029 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
3030 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
3031 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3032 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3033 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3034 (WebCore::FrameLoaderClientQt::dispatchShow):
3035 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
3036 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3037 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
3038 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
3039 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
3040 (WebCore::FrameLoaderClientQt::revertToProvisionalState):
3041 (WebCore::FrameLoaderClientQt::clearUnarchivingState):
3042 (WebCore::FrameLoaderClientQt::progressStarted):
3043 (WebCore::FrameLoaderClientQt::progressCompleted):
3044 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3045 (WebCore::FrameLoaderClientQt::willChangeTitle):
3046 (WebCore::FrameLoaderClientQt::didChangeTitle):
3047 (WebCore::FrameLoaderClientQt::finishedLoading):
3048 (WebCore::FrameLoaderClientQt::finalSetupForReplace):
3049 (WebCore::FrameLoaderClientQt::setDefersLoading):
3050 (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
3051 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
3052 (WebCore::FrameLoaderClientQt::clearArchivedResources):
3053 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3054 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3055 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3056 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3057 (WebCore::FrameLoaderClientQt::restoreScrollPositionAndViewState):
3058 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
3059 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
3060 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
3061 (WebCore::FrameLoaderClientQt::didFinishLoad):
3062 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
3063 (WebCore::FrameLoaderClientQt::setTitle):
3064 (WebCore::FrameLoaderClientQt::userAgent):
3065 * loader/qt/FrameLoaderClientQt.h: Added.
3066 * loader/qt/FrameLoaderQt.cpp:
3067 (WebCore::FrameLoader::submitForm):
3068 (WebCore::FrameLoader::overrideMediaType):
3069 (WebCore::FrameLoader::getHistoryLength):
3070 (WebCore::FrameLoader::referrer):
3071 (WebCore::FrameLoader::detachFromParent):
3072 (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
3073 (WebCore::FrameLoader::goBackOrForward):
3074 (WebCore::FrameLoader::historyURL):
3075 (WebCore::FrameLoader::didFirstLayout):
3076 (WebCore::FrameLoader::canGoBackOrForward):
3077 (WebCore::FrameLoader::partClearedInBegin):
3078 (WebCore::FrameLoader::saveDocumentState):
3079 (WebCore::FrameLoader::restoreDocumentState):
3080 (WebCore::FrameLoader::didChangeTitle):
3081 (WebCore::FrameLoader::redirectDataToPlugin):
3082 (WebCore::PolicyCheck::PolicyCheck):
3083 (WebCore::PolicyCheck::clear):
3084 (WebCore::PolicyCheck::set):
3085 (WebCore::PolicyCheck::call):
3086 (WebCore::PolicyCheck::clearRequest):
3087 * loader/qt/NavigationActionQt.cpp: Added.
3088 (WebCore::navigationType):
3089 (WebCore::NavigationAction::NavigationAction):
3090 * loader/qt/ResourceLoaderQt.cpp: Added.
3091 (WebCore::ResourceLoader::ResourceLoader):
3092 (WebCore::ResourceLoader::~ResourceLoader):
3093 (WebCore::ResourceLoader::setDefersLoading):
3094 (WebCore::ResourceLoader::cancel):
3095 (WebCore::ResourceLoader::loadsBlocked):
3096 * platform/MimeTypeRegistry.cpp:
3097 (WebCore::initialiseSupportedImageMIMETypes):
3098 * platform/network/qt/ResourceHandleManager.cpp:
3099 (WebCore::ResourceHandleManager::slotResult):
3100 (WebCore::ResourceHandleManager::cancel):
3101 * platform/qt/ChromeClientQt.cpp: Added.
3102 (WebCore::rootWindowForFrame):
3103 (WebCore::ChromeClientQt::ChromeClientQt):
3104 (WebCore::ChromeClientQt::~ChromeClientQt):
3105 (WebCore::ChromeClientQt::setWindowRect):
3106 (WebCore::ChromeClientQt::windowRect):
3107 (WebCore::ChromeClientQt::pageRect):
3108 (WebCore::ChromeClientQt::scaleFactor):
3109 (WebCore::ChromeClientQt::focus):
3110 (WebCore::ChromeClientQt::unfocus):
3111 (WebCore::ChromeClientQt::createWindow):
3112 (WebCore::ChromeClientQt::createModalDialog):
3113 (WebCore::ChromeClientQt::show):
3114 (WebCore::ChromeClientQt::canRunModal):
3115 (WebCore::ChromeClientQt::runModal):
3116 (WebCore::ChromeClientQt::setToolbarsVisible):
3117 (WebCore::ChromeClientQt::toolbarsVisible):
3118 (WebCore::ChromeClientQt::setStatusbarVisible):
3119 (WebCore::ChromeClientQt::statusbarVisible):
3120 (WebCore::ChromeClientQt::setScrollbarsVisible):
3121 (WebCore::ChromeClientQt::scrollbarsVisible):
3122 (WebCore::ChromeClientQt::setMenubarVisible):
3123 (WebCore::ChromeClientQt::menubarVisible):
3124 (WebCore::ChromeClientQt::setResizable):
3125 * platform/qt/ChromeClientQt.h: Added.
3126 * platform/qt/EditorClientQt.cpp:
3127 (WebCore::EditorClientQt::shouldBeginEditing):
3128 (WebCore::EditorClientQt::shouldEndEditing):
3129 (WebCore::EditorClientQt::shouldApplyStyle):
3130 (WebCore::EditorClientQt::didBeginEditing):
3131 (WebCore::EditorClientQt::respondToChangedContents):
3132 (WebCore::EditorClientQt::didEndEditing):
3133 * platform/qt/EditorClientQt.h:
3134 * platform/qt/FrameQt.cpp:
3135 (WebCore::FrameQt::FrameQt):
3136 (WebCore::FrameQt::~FrameQt):
3137 (WebCore::FrameQt::keyEvent):
3138 * platform/qt/FrameQt.h:
3139 * platform/qt/FrameQtClient.cpp:
3140 (WebCore::FrameQtClientDefault::openURL):
3141 (WebCore::FrameQtClientDefault::didReceiveData):
3142 (WebCore::FrameQtClientDefault::receivedAllData):
3143 * platform/qt/ImageQt.cpp:
3144 * platform/qt/MimeTypeRegistryQt.cpp: Added.
3145 (WebCore::getMIMETypeForUTI):
3146 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3147 * platform/qt/PageQt.cpp:
3148 * platform/qt/PlatformKeyboardEventQt.cpp:
3149 (WebCore::keyIdentifierForQtKeyCode):
3150 * platform/qt/ScreenQt.cpp:
3151 * platform/qt/TemporaryLinkStubs.cpp:
3152 (WebCore::TextField::TextField):
3153 (WebCore::screenDepth):
3154 (WebCore::screenDepthPerComponent):
3155 (WebCore::screenIsMonochrome):
3156 (WebCore::screenRect):
3157 (WebCore::screenAvailableRect):
3159 2006-11-10 Brady Eidson <beidson@apple.com>
3163 http://bugs.webkit.org/show_bug.cgi?id=11554
3164 Fix the above bug (in didFinishLoading) and also another potential bug in didFailWithError
3165 in case the icon load fails after some data has been received.
3167 * loader/icon/IconLoader.cpp:
3168 (WebCore::IconLoader::didFailWithError): Clear the buffer so half-an-image isn't commited to the DB
3169 on error. Also, as a loader re-factoring sanity check, added an assertion
3170 (WebCore::IconLoader::didFinishLoading): If an icon loader resulted in an error-response, the icon
3171 is already committed to the DB. Skip doing that step twice.
3173 2006-11-09 Oliver Hunt <oliver@apple.com>
3177 Pulled MIME type handling out of WebFrameBridge and added
3178 a general C++ class to store/query MIME info
3179 Added an Obj-C bridge to provide WebKit with access to the
3180 MimeTypeRegistry for non-Obj-C++ classes.
3183 * WebCore.xcodeproj/project.pbxproj:
3184 * bridge/mac/WebCoreFrameBridge.h:
3185 * bridge/mac/WebCoreFrameBridge.mm:
3186 * bridge/mac/WebMimeTypeRegistryBridge.h: Added.
3187 * bridge/mac/WebMimeTypeRegistryBridge.mm: Added.
3188 (+[WebMimeTypeRegistryBridge supportsImageWithMIMEType:]):
3189 (+[WebMimeTypeRegistryBridge supportsNonImageWithMIMEType:]):
3190 (+[WebMimeTypeRegistryBridge supportedNonImageMIMETypes]):
3191 (+[WebMimeTypeRegistryBridge supportedImageMIMETypes]):
3192 (+[WebMimeTypeRegistryBridge supportedImageResourceMIMETypes]):
3193 * platform/Image.cpp:
3194 (WebCore::Image::supportsType):
3196 * platform/MimeTypeRegistry.cpp: Added.
3197 (WebCore::initialiseSupportedImageMIMETypes):
3198 (WebCore::initialiseSupportedNonImageMimeTypes):
3199 (WebCore::initialiseMimeTypeRegistry):
3200 (WebCore::MimeTypeRegistry::isSupportedImageMIMEType):
3201 (WebCore::MimeTypeRegistry::isSupportedImageResourceMIMEType):
3202 (WebCore::MimeTypeRegistry::isSupportedNonImageMIMEType):
3203 (WebCore::MimeTypeRegistry::getSupportedImageMIMETypes):
3204 (WebCore::MimeTypeRegistry::getSupportedImageResourceMIMETypes):
3205 (WebCore::MimeTypeRegistry::getSupportedNonImageMIMETypes):
3206 * platform/MimeTypeRegistry.h: Added.
3207 * platform/mac/ImageMac.mm:
3208 * platform/mac/MimeTypeRegistryMac.mm: Added.
3209 (WebCore::getMIMETypeForUTI):
3210 (WebCore::MimeTypeRegistry::getMIMETypeForExtension):
3212 2006-11-09 Maciej Stachowiak <mjs@apple.com>
3216 - rename String::sprintf and DeprecatedString::sprintf to ...::format to avoid needlessly tweaking a search
3217 for insecure functions. Neither of these has risk of buffer overruns since they calculate the buffer size
3218 for you and use vsnprintf.
3220 * bindings/js/kjs_window.cpp:
3221 (KJS::Window::isSafeScript):
3222 * css/cssparser.cpp:
3223 (WebCore::CSSParser::parseColorFromValue):
3224 * dom/StyledElement.cpp:
3225 (WebCore::StyledElement::addCSSColor):
3226 * dom/XMLTokenizer.cpp:
3227 (WebCore::XMLTokenizer::handleError):
3228 * ksvg2/css/SVGCSSParser.cpp:
3229 (WebCore::CSSParser::parseSVGPaint):
3230 (WebCore::CSSParser::parseSVGColor):
3231 * ksvg2/svg/SVGPathSegArc.h:
3232 (WebCore::SVGPathSegArcAbs::toString):
3233 (WebCore::SVGPathSegArcRel::toString):
3234 * ksvg2/svg/SVGPathSegCurvetoCubic.h:
3235 (WebCore::SVGPathSegCurvetoCubicAbs::toString):
3236 (WebCore::SVGPathSegCurvetoCubicRel::toString):
3237 * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
3238 (WebCore::SVGPathSegCurvetoCubicSmoothAbs::toString):
3239 (WebCore::SVGPathSegCurvetoCubicSmoothRel::toString):
3240 * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
3241 (WebCore::SVGPathSegCurvetoQuadraticAbs::toString):
3242 (WebCore::SVGPathSegCurvetoQuadraticRel::toString):
3243 * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
3244 (WebCore::SVGPathSegCurvetoQuadraticSmoothAbs::toString):
3245 (WebCore::SVGPathSegCurvetoQuadraticSmoothRel::toString):
3246 * ksvg2/svg/SVGPathSegLineto.h:
3247 (WebCore::SVGPathSegLinetoAbs::toString):
3248 (WebCore::SVGPathSegLinetoRel::toString):
3249 * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
3250 (WebCore::SVGPathSegLinetoHorizontalAbs::toString):
3251 (WebCore::SVGPathSegLinetoHorizontalRel::toString):
3252 * ksvg2/svg/SVGPathSegLinetoVertical.h:
3253 (WebCore::SVGPathSegLinetoVerticalAbs::toString):
3254 (WebCore::SVGPathSegLinetoVerticalRel::toString):
3255 * ksvg2/svg/SVGPathSegMoveto.h:
3256 (WebCore::SVGPathSegMovetoAbs::toString):
3257 (WebCore::SVGPathSegMovetoRel::toString):
3258 * ksvg2/svg/SVGPolyElement.cpp:
3259 (WebCore::SVGPolyElement::notifyAttributeChange):
3260 * ksvg2/svg/SVGUseElement.cpp:
3261 (WebCore::SVGUseElement::closeRenderer):
3262 * loader/icon/IconDatabase.cpp:
3263 (WebCore::IconDatabase::forgetIconForIconURLFromDatabase):
3264 * loader/icon/SQLDatabase.cpp:
3265 (WebCore::SQLDatabase::setSynchronous):
3266 * platform/Color.cpp:
3267 (WebCore::Color::name):
3268 * platform/DeprecatedString.cpp:
3269 (WebCore::DeprecatedString::setNum):
3270 (WebCore::DeprecatedString::format):
3271 * platform/DeprecatedString.h:
3272 * platform/PlatformString.h:
3273 * platform/String.cpp:
3274 (WebCore::String::format):
3275 (WebCore::String::number):
3276 * platform/mac/KeyEventMac.mm:
3277 (WebCore::keyIdentifierForKeyEvent):
3278 * platform/win/KeyEventWin.cpp:
3279 (WebCore::keyIdentifierForWindowsKeyCode):
3280 * rendering/RenderListMarker.cpp:
3281 (WebCore::RenderListMarker::calcMinMaxWidth):
3283 2006-11-09 Maciej Stachowiak <mjs@apple.com>
3287 - fixed "Regression: Can't log into gmail.com"
3288 - fixed "iBench doesn't report results - tests run but no number is recorded"
3290 * platform/network/cf/FormDataStreamCFNet.cpp:
3291 (WebCore::setHTTPBody): Removed extra ! character.
3293 2006-11-09 Beth Dakin <bdakin@apple.com>
3297 Fix for <rdar://problem/4805409> REGRESSION: Reproducible crash in
3298 WebCore::RenderBlock::skipWhitespace
3300 Note that this will still crash on Debug builds because it will hit
3301 an assertion failure in editing. (One of the reasons there is no
3302 layout test along with this fix.) There is definitely some editing
3303 wackiness happening. See http://bugs.webkit.org/show_bug.cgi?
3304 id=10144 for updates on the assertion failure bug.
3306 * rendering/RootInlineBox.cpp:
3307 (WebCore::RootInlineBox::childRemoved): It is possible for a
3308 prevRootBox and its prevRootBox to share a lineBreakObj. So instead
3309 of just clearing the lineBreakObj of the prevRootBox, cycle through
3310 all prevRootBoxs with the same lineBreakObj.
3312 2006-11-09 Adam Roben <aroben@apple.com>
3316 Fix the change in behavior I caused in r17680 with my build fix.
3318 * rendering/RenderObject.cpp:
3319 (WebCore::RenderObject::maxTopMargin):
3320 (WebCore::RenderObject::maxBottomMargin):
3322 2006-11-09 Anders Carlsson <acarlsson@apple.com>
3324 Reviewed by Adam, Oliver.
3326 Move more functions to Editor.
3328 * bridge/EditorClient.h:
3329 * bridge/mac/FrameMac.h:
3330 * bridge/mac/FrameMac.mm:
3331 * bridge/mac/WebCoreFrameBridge.h:
3332 * editing/EditCommand.cpp:
3333 (WebCore::EditCommand::apply):
3334 (WebCore::EditCommand::unapply):
3335 (WebCore::EditCommand::reapply):
3336 * editing/Editor.cpp:
3337 (WebCore::Editor::respondToChangedContents):
3338 (WebCore::dispatchEditableContentChangedEvents):
3339 (WebCore::Editor::appliedEditing):
3340 (WebCore::Editor::unappliedEditing):
3341 (WebCore::Editor::reappliedEditing):
3343 * editing/TypingCommand.cpp:
3344 (WebCore::TypingCommand::typingAddedToOpenCommand):
3348 2006-11-09 Darin Adler <darin@apple.com>
3350 * rendering/RenderObject.h: Oops! Fixed accidentally checked-in ifdef.
3352 2006-11-09 Alice Liu <alice.liu@apple.com>
3354 Reviewed by Beth Dakin.
3356 Fixed <rdar://problem/4808720> Hamachi test tool crashes Safari in WebCore::HTMLTableSectionElement::deleteRow
3357 All existing layout tests pass
3359 * html/HTMLTableElement.cpp:
3360 (WebCore::HTMLTableElement::deleteRow):
3361 check lastSection before deleting row
3363 2006-11-09 Darin Adler <darin@apple.com>
3365 - improved version of last night's build fix (should not do using namespace in a header)
3367 * rendering/RenderObject.h:
3368 * rendering/RenderObject.cpp:
3369 (WebCore::RenderObject::maxTopMargin):
3370 (WebCore::RenderObject::maxBottomMargin):
3372 2006-11-08 Maciej Stachowiak <mjs@apple.com>
3376 - added ResourceError class and didFailWithError client method
3378 * WebCore.xcodeproj/project.pbxproj:
3379 * loader/icon/IconLoader.cpp:
3380 (WebCore::IconLoader::didFailWithError):
3381 (WebCore::IconLoader::didFinishLoading):
3382 * loader/icon/IconLoader.h:
3383 * loader/loader.cpp:
3384 (WebCore::Loader::receivedAllData):
3385 (WebCore::Loader::didFailWithError):
3387 * loader/mac/SubresourceLoaderMac.mm:
3388 (WebCore::SubresourceLoader::didFail):
3389 (WebCore::SubresourceLoader::didCancel):
3390 * platform/cf/RetainPtr.h:
3392 (WebCore::adoptCFReference):
3393 (WebCore::RetainPtr::RetainPtr):
3395 * platform/network/ResourceError.cpp: Added.
3396 * platform/network/ResourceError.h: Added.
3397 (WebCore::ResourceError::ResourceError):
3398 (WebCore::ResourceError::domain):
3399 (WebCore::ResourceError::errorCode):
3400 (WebCore::ResourceError::failingURL):
3401 (WebCore::ResourceError::localizedDescription):
3402 (WebCore::ResourceError::unpackPlatformErrorIfNeeded):
3403 * platform/network/ResourceHandle.cpp:
3404 * platform/network/ResourceHandle.h:
3405 * platform/network/ResourceHandleClient.h:
3406 (WebCore::ResourceHandleClient::didFailWithError):
3407 * platform/network/cf/ResourceHandleCFNet.cpp:
3409 (WebCore::ResourceHandle::cancel):
3410 * platform/network/mac/ResourceErrorMac.mm: Added.
3411 (-[NSError WebCore]):
3412 * platform/network/mac/ResourceHandleMac.mm:
3413 (WebCore::ResourceHandle::reportError):
3414 * xml/xmlhttprequest.cpp:
3415 (WebCore::XMLHttpRequest::didFailWithError):
3416 (WebCore::XMLHttpRequest::didFinishLoading):
3417 * xml/xmlhttprequest.h:
3419 2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com>
3425 * platform/gdk/ChromeClientGdk.h:
3426 (WebCore::ChromeClientGdk::~ChromeClientGdk):
3427 * platform/gdk/CursorGdk.cpp:
3428 (WebCore::Cursor::Cursor):
3429 (WebCore::moveCursor):
3430 * platform/gdk/FrameGdk.cpp:
3431 (WebCore::FrameGdk::FrameGdk):
3432 (WebCore::FrameGdk::submitForm):
3433 (WebCore::FrameGdk::urlSelected):
3434 * platform/gdk/PageGdk.cpp:
3435 * platform/gdk/ScreenClientGdk.h: Added.
3436 (WebCore::ScreenClientGdk::~ScreenClientGdk):
3437 * platform/gdk/ScreenGdk.cpp:
3438 (WebCore::ScreenClientGdk::depth):
3439 (WebCore::ScreenClientGdk::depthPerComponent):
3440 (WebCore::ScreenClientGdk::isMonochrome):
3441 (WebCore::ScreenClientGdk::rect):
3442 (WebCore::ScreenClientGdk::usableRect):
3443 * platform/gdk/TemporaryLinkStubs.cpp:
3444 (FrameGdk::historyURL):
3445 (ChromeClientGdk::windowRect):
3446 (ChromeClientGdk::setWindowRect):
3447 (ChromeClientGdk::pageRect):
3448 (ChromeClientGdk::scaleFactor):
3449 (ChromeClientGdk::focus):
3450 (ChromeClientGdk::unfocus):
3451 (ChromeClientGdk::createWindow):
3452 (ChromeClientGdk::createModalDialog):
3453 (ChromeClientGdk::show):
3454 (ChromeClientGdk::canRunModal):
3455 (ChromeClientGdk::runModal):
3456 (ChromeClientGdk::setToolbarsVisible):
3457 (ChromeClientGdk::toolbarsVisible):
3458 (ChromeClientGdk::setStatusbarVisible):
3459 (ChromeClientGdk::statusbarVisible):
3460 (ChromeClientGdk::setScrollbarsVisible):
3461 (ChromeClientGdk::scrollbarsVisible):
3462 (ChromeClientGdk::setMenubarVisible):
3463 (ChromeClientGdk::menubarVisible):
3464 (ChromeClientGdk::setResizable):
3465 * platform/network/ResourceHandleInternal.h:
3466 (WebCore::ResourceHandleInternal::client):
3467 * platform/network/gdk/ResourceHandleManager.cpp:
3468 (WebCore::writeCallback):
3469 (WebCore::ResourceHandleManager::downloadTimerCallback):
3470 (WebCore::ResourceHandleManager::remove):
3472 2006-11-08 Adam Roben <aroben@apple.com>
3476 * rendering/RenderObject.h:
3477 (WebCore::RenderObject::maxTopMargin):
3478 (WebCore::RenderObject::maxBottomMargin):
3480 2006-11-08 Geoffrey Garen <ggaren@apple.com>
3482 Reviewed by Anders Carlsson.
3484 Made Screen a good platform citizen by removing its reference to Page. This
3485 made a class unnecessary, so all screen fuctions are stand-alone now.
3487 * bindings/js/kjs_window.cpp: Removed unnecessary subtractions
3488 when computing the screen's available dimensions.
3490 2006-11-08 Sam Weinig <sam.weinig@gmail.com>
3494 Fix for http://bugs.webkit.org/show_bug.cgi?id=11506
3495 Cleanup RenderObject
3497 * rendering/RenderObject.cpp:
3498 (WebCore::RenderObject::operator delete):
3499 (WebCore::RenderObject::createObject):
3500 (WebCore::RenderObjectCounter::~RenderObjectCounter):
3501 (WebCore::RenderObject::RenderObject):
3502 (WebCore::RenderObject::isDescendantOf):
3503 (WebCore::RenderObject::isRoot):
3504 (WebCore::RenderObject::addChild):
3505 (WebCore::RenderObject::removeChildNode):
3506 (WebCore::RenderObject::removeChild):
3507 (WebCore::RenderObject::appendChildNode):
3508 (WebCore::RenderObject::insertChildNode):
3509 (WebCore::RenderObject::nextInPreOrder):
3510 (WebCore::RenderObject::nextInPreOrderAfterChildren):
3511 (WebCore::RenderObject::previousInPreOrder):
3512 (WebCore::RenderObject::isEditable):
3513 (WebCore::RenderObject::nextEditable):
3514 (WebCore::RenderObject::previousEditable):
3515 (WebCore::RenderObject::firstLeafChild):
3516 (WebCore::RenderObject::lastLeafChild):
3517 (WebCore::RenderObject::addLayers):
3518 (WebCore::RenderObject::removeLayers):
3519 (WebCore::RenderObject::moveLayers):
3520 (WebCore::RenderObject::findNextLayer):
3521 (WebCore::RenderObject::enclosingLayer):
3522 (WebCore::RenderObject::updateFirstLetter):
3523 (WebCore::RenderObject::offsetParent):
3524 (WebCore::RenderObject::scroll):
3525 (WebCore::RenderObject::hasStaticX):
3526 (WebCore::RenderObject::setNeedsLayout):
3527 (WebCore::RenderObject::setChildNeedsLayout):
3528 (WebCore::RenderObject::markContainingBlocksForLayout):
3529 (WebCore::RenderObject::containingBlock):
3530 (WebCore::RenderObject::containingBlockWidth):
3531 (WebCore::RenderObject::containingBlockHeight):
3532 (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
3533 (WebCore::RenderObject::drawBorderArc):
3534 (WebCore::RenderObject::drawBorder):
3535 (WebCore::RenderObject::paintBorderImage):
3536 (WebCore::RenderObject::paintBorder):
3537 (WebCore::RenderObject::absoluteRects):
3538 (WebCore::RenderObject::addPDFURLRect):
3539 (WebCore::RenderObject::addFocusRingRects):
3540 (WebCore::RenderObject::paintOutline):
3541 (WebCore::RenderObject::repaint):
3542 (WebCore::RenderObject::repaintRectangle):
3543 (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
3544 (WebCore::RenderObject::repaintObjectsBeforeLayout):
3545 (WebCore::RenderObject::getAbsoluteRepaintRectWithOutline):
3546 (WebCore::RenderObject::information):
3547 (WebCore::RenderObject::dump):
3548 (WebCore::selectStartNode):
3549 (WebCore::RenderObject::shouldSelect):
3550 (WebCore::RenderObject::draggableNode):
3551 (WebCore::RenderObject::createAnonymousBlock):
3552 (WebCore::RenderObject::handleDynamicFloatPositionChange):
3553 (WebCore::RenderObject::setStyle):
3554 (WebCore::RenderObject::setStyleInternal):
3555 (WebCore::RenderObject::updateBackgroundImages):
3556 (WebCore::RenderObject::absolutePosition):
3557 (WebCore::RenderObject::caretRect):
3558 (WebCore::RenderObject::paddingTop):
3559 (WebCore::RenderObject::paddingBottom):
3560 (WebCore::RenderObject::paddingLeft):
3561 (WebCore::RenderObject::paddingRight):
3562 (WebCore::RenderObject::tabWidth):
3563 (WebCore::RenderObject::container):
3564 (WebCore::RenderObject::removeFromObjectLists):
3565 (WebCore::RenderObject::destroy):
3566 (WebCore::RenderObject::arenaDelete):
3567 (WebCore::RenderObject::hitTest):
3568 (WebCore::RenderObject::setInnerNode):
3569 (WebCore::RenderObject::nodeAtPoint):
3570 (WebCore::RenderObject::verticalPositionHint):
3571 (WebCore::RenderObject::getVerticalPosition):
3572 (WebCore::RenderObject::lineHeight):
3573 (WebCore::RenderObject::invalidateVerticalPositions):
3574 (WebCore::RenderObject::recalcMinMaxWidths):
3575 (WebCore::RenderObject::scheduleRelayout):
3576 (WebCore::RenderObject::setInlineBoxWrapper):
3577 (WebCore::RenderObject::firstLineStyle):
3578 (WebCore::RenderObject::getPseudoStyle):
3579 (WebCore::RenderObject::getTextDecorationColors):
3580 (WebCore::RenderObject::addDashboardRegions):
3581 (WebCore::RenderObject::collectDashboardRegions):
3582 (WebCore::RenderObject::avoidsFloats):
3583 (WebCore::RenderObject::findCounter):
3584 (WebCore::RenderObject::backslashAsCurrencySymbol):
3585 (WebCore::RenderObject::imageChanged):
3586 (WebCore::RenderObject::previousOffset):
3587 (WebCore::RenderObject::nextOffset):
3588 (WebCore::RenderObject::inlineBox):
3589 * rendering/RenderObject.h:
3591 (WebCore::RenderObject::renderName):
3592 (WebCore::RenderObject::parent):
3593 (WebCore::RenderObject::previousSibling):
3594 (WebCore::RenderObject::nextSibling):
3595 (WebCore::RenderObject::firstChild):
3596 (WebCore::RenderObject::lastChild):
3597 (WebCore::RenderObject::getOverflowClipRect):
3598 (WebCore::RenderObject::getClipRect):
3599 (WebCore::RenderObject::getBaselineOfFirstLineBox):
3600 (WebCore::RenderObject::setEdited):
3601 (WebCore::RenderObject::setStaticX):
3602 (WebCore::RenderObject::setStaticY):
3603 (WebCore::RenderObject::setPreviousSibling):
3604 (WebCore::RenderObject::setNextSibling):
3605 (WebCore::RenderObject::setParent):
3606 (WebCore::RenderObject::isInlineBlockOrInlineTable):
3607 (WebCore::RenderObject::isRenderView):
3608 (WebCore::RenderObject::childrenInline):
3609 (WebCore::RenderObject::setChildrenInline):
3610 (WebCore::RenderObject::isAnonymousBlock):
3611 (WebCore::RenderObject::isDragging):
3612 (WebCore::RenderObject::needsLayout):
3613 (WebCore::RenderObject::setMinMaxKnown):
3614 (WebCore::RenderObject::setNeedsLayoutAndMinMaxRecalc):
3615 (WebCore::RenderObject::setPositioned):
3616 (WebCore::RenderObject::setRelPositioned):
3617 (WebCore::RenderObject::setFloating):
3618 (WebCore::RenderObject::setInline):
3619 (WebCore::RenderObject::setShouldPaintBackgroundOrBorder):
3620 (WebCore::RenderObject::setReplaced):
3621 (WebCore::RenderObject::PaintInfo::PaintInfo):
3622 (WebCore::RenderObject::paintBackgroundExtended):
3623 (WebCore::RenderObject::calcWidth):
3624 (WebCore::RenderObject::updateFromElement):
3625 (WebCore::RenderObject::RepaintInfo::RepaintInfo):
3626 (WebCore::RenderObject::setOverrideSize):
3627 (WebCore::RenderObject::setPos):
3628 (WebCore::RenderObject::setWidth):
3629 (WebCore::RenderObject::setHeight):
3630 (WebCore::RenderObject::absolutePositionForContent):
3631 (WebCore::RenderObject::overflowHeight):
3632 (WebCore::RenderObject::overflowWidth):
3633 (WebCore::RenderObject::setOverflowHeight):
3634 (WebCore::RenderObject::setOverflowWidth):
3635 (WebCore::RenderObject::overflowLeft):
3636 (WebCore::RenderObject::overflowTop):
3637 (WebCore::RenderObject::overflowRect):
3638 (WebCore::RenderObject::stopAutoscroll):
3639 (WebCore::RenderObject::collapsedMarginTop):
3640 (WebCore::RenderObject::collapsedMarginBottom):
3641 (WebCore::RenderObject::maxTopMargin):
3642 (WebCore::RenderObject::maxBottomMargin):
3643 (WebCore::RenderObject::):
3644 (WebCore::RenderObject::setTable):
3645 (WebCore::RenderObject::isFloatingOrPositioned):
3646 (WebCore::RenderObject::containsFloat):
3647 (WebCore::RenderObject::setSelectionState):
3648 (WebCore::RenderObject::SelectionInfo::SelectionInfo):
3649 (WebCore::RenderObject::lowestPosition):
3650 (WebCore::RenderObject::rightmostPosition):
3651 (WebCore::RenderObject::leftmostPosition):
3652 (WebCore::RenderObject::calcVerticalMargins):
3653 (WebCore::RenderObject::font):
3655 2006-11-08 Darin Adler <darin@apple.com>
3659 - added event parameters to focus-related functions so we can
3660 implement the "option-tab to all links" behavior without relying
3661 on a global "current event" -- also makes it work with DOM events
3663 * page/Frame.h: Removed unneeded includes. Moved some functions
3664 that were misplaced into the appropriate sections.
3666 (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
3667 PlatformKeyboardEvent to the DOM keyboard event class.
3668 (WebCore::Frame::tabsToLinks): Added event parameter.
3669 (WebCore::Frame::tabsToAllControls): Ditto.
3670 (WebCore::scanForForm): Fixed code that incorrectly assumes
3671 that an iframe is an HTMLFrameElement (no longer true since Geoff
3672 changed the class hierarchy a bit).
3673 (WebCore::Frame::hitTestResultAtPoint): Ditto.
3675 * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
3676 that were misplaced into the appropriate sections.
3677 * bridge/mac/FrameMac.mm:
3678 (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
3679 a PlatformKeyboardEvent.
3680 (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
3681 and pass event into next/previousFocusNode.
3682 (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
3683 the AppKit current event, if it's a keyboard event. Really just a hack that's
3684 needed to preserve some code we can remove once we deal with the last NSView-
3686 (WebCore::isKeyboardOptionTab): Added.
3687 (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
3688 option (alt) key is down.
3689 (WebCore::FrameMac::tabsToAllControls): Ditto.
3690 (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
3691 call resetMultipleFormSubmissionProtection() explicitly instead.
3692 (WebCore::FrameMac::mouseDown): Ditto.
3694 * bridge/mac/WebCoreAXObject.mm:
3695 (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
3696 assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
3697 changed the class hierarchy a bit).
3698 (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
3699 prepareForUserAction() to call resetMultipleFormSubmissionProtection()
3703 * page/FrameView.cpp:
3704 (WebCore::FrameView::advanceFocus): Changed function to take an
3705 event parameter, and decide the direction based on the shift key
3706 modifier instead of a passed-in boolean.
3710 (WebCore::Document::nextFocusNode): Added event parameter.
3711 (WebCore::Document::previousFocusNode): Ditto.
3714 (WebCore::Node::isKeyboardFocusable): Ditto.
3715 * html/HTMLAnchorElement.h:
3716 * html/HTMLAnchorElement.cpp:
3717 (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
3718 * html/HTMLGenericFormElement.h:
3719 * html/HTMLGenericFormElement.cpp:
3720 (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
3721 * html/HTMLInputElement.h:
3722 * html/HTMLInputElement.cpp:
3723 (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
3724 (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
3725 * html/HTMLSelectElement.h:
3726 * html/HTMLSelectElement.cpp:
3727 (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
3728 * html/HTMLTextAreaElement.h:
3729 * html/HTMLTextAreaElement.cpp:
3730 (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
3732 * dom/EventTargetNode.cpp:
3733 (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
3734 advanceFocus function.
3736 * platform/TextField.h:
3737 * platform/mac/TextFieldMac.mm: Removed the non-search field code.
3739 * platform/mac/WebCoreTextField.h:
3740 * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
3741 (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
3742 call to FrameMac::handleKeyboardOptionTabInView, which is no longer
3743 needed since the default handler in HTMLInputElement takes care of
3746 * platform/mac/SliderMac.mm:
3747 (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
3748 and pass event into tabsToAllControls.
3749 (Slider::focusPolicy): Ditto.
3751 * rendering/RenderLineEdit.cpp:
3752 (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
3753 (WebCore::RenderLineEdit::updateFromElement): Ditto.
3755 2006-11-08 Brady Eidson <beidson@apple.com>
3757 Reviewed by Dave Harrison, Oliver, and Darin
3758 (oh my! where was superkevin on this one?)
3760 <rdar://problem/4816196> "Xcode Help" crashes in WebCore::DocumentLoader::setPrimaryLoadComplete(bool)
3762 More "free nil checking" we lost in the transition from ObjC to C++
3764 * loader/mac/FrameLoaderMac.mm:
3765 (WebCore::FrameLoader::startLoading): Null check m_provisionalDocumentLoader and bail early.
3766 (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Ditto
3768 2006-11-08 Anders Carlsson <acarlsson@apple.com>
3772 Move more code into editor.
3775 * bridge/EditorClient.h:
3776 * bridge/mac/FrameMac.h:
3777 * bridge/mac/FrameMac.mm:
3778 * bridge/mac/WebCoreFrameBridge.h:
3780 (WebCore::Document::relinquishesEditingFocus):
3781 (WebCore::Document::acceptsEditingFocus):
3782 (WebCore::Document::didBeginEditing):
3783 (WebCore::Document::didEndEditing):
3784 * editing/Editor.cpp:
3785 (WebCore::Editor::indent):
3786 (WebCore::Editor::outdent):
3791 2006-11-08 Beth Dakin <bdakin@apple.com>
3795 Add ability to HitTestResult to ask if the inner non-shared node is
3798 * WebCore.exp: Export HitTestResult::isContentEditable()
3799 * rendering/HitTestResult.cpp:
3800 (WebCore::HitTestResult::isContentEditable):
3801 * rendering/HitTestResult.h:
3803 2006-11-08 Anders Carlsson <acarlsson@apple.com>
3807 * WebCore.xcodeproj/project.pbxproj:
3808 Add DOMCSSStyleDeclarationInternal.h to the "Copy Generated Headers" build phase.
3810 2006-11-08 Timothy Hatcher <timothy@apple.com>
3814 <rdar://problem/4713280> Would like to get an array of bounding rects rather than just the union of them for a DOMRange
3815 <rdar://problem/4804317> Would like SPI to get bounding box for a DOM range without having to change the selection
3817 Added lineBoxRects and boundingBox to Range and DOMRange. These methods correspond to the DOMNode methods.
3819 * bindings/objc/DOM.mm:
3821 (-[DOMNode lineBoxRects]):
3822 (-[DOMRange boundingBox]):
3823 (-[DOMRange lineBoxRects]):
3824 * bindings/objc/DOMPrivate.h:
3826 (WebCore::Range::boundingBox):
3827 (WebCore::Range::addLineBoxRects):
3829 * rendering/RenderContainer.cpp:
3830 (WebCore::RenderContainer::addLineBoxRects):
3831 * rendering/RenderContainer.h:
3832 * rendering/RenderObject.cpp:
3833 (WebCore::RenderObject::addLineBoxRects):
3834 * rendering/RenderObject.h:
3835 * rendering/RenderText.cpp:
3836 (WebCore::RenderText::addLineBoxRects):
3837 * rendering/RenderText.h:
3839 2006-11-08 Anders Carlsson <acarlsson@apple.com>
3843 Move methods from the bridge and frame into editor.
3846 * bridge/EditorClient.h:
3847 * bridge/mac/WebCoreFrameBridge.h:
3848 * bridge/mac/WebCoreFrameBridge.mm:
3849 * editing/Editor.cpp:
3850 (WebCore::Editor::removeFormattingAndStyle):
3851 (WebCore::Editor::applyStyle):
3852 (WebCore::Editor::applyParagraphStyle):
3853 (WebCore::Editor::applyStyleToSelection):
3854 (WebCore::Editor::applyParagraphStyleToSelection):
3855 (WebCore::Editor::toggleBold):
3856 (WebCore::Editor::toggleItalic):
3857 (WebCore::Editor::selectionStartHasStyle):
3859 * editing/JSEditor.cpp:
3863 2006-11-08 Geoffrey Garen <ggaren@apple.com>
3867 Fixed regression in fast/events/objc-event-api. DumpRenderTree expects to
3868 be able to dispatch user events even when off-screen, so we have to support
3869 off-screen windows when handling mouse events.
3871 * platform/Screen.h:
3872 * platform/mac/PlatformMouseEventMac.mm:
3873 (WebCore::globalPoint): Grab the best screen instead of the screen you're
3874 on, since you might be off-screen.
3875 * platform/mac/ScreenMac.mm:
3876 (WebCore::screenForWindow):
3878 2006-11-08 Darin Adler <darin@apple.com>
3880 - fix bug caused by last-minute change to my check-in last night
3881 that is causing layout tests to hang
3883 * dom/Document.cpp: (WebCore::Document::completeURL): Added comments.
3884 * loader/FrameLoader.cpp: (WebCore::FrameLoader::submitForm): Turn
3885 a null string into an empty string before calling completeURL.
3887 2006-11-08 Brady Eidson <beidson@apple.com>
3891 If the request has already been aborted, bail out of didFinishLoading()
3892 immediately. This prevents state change notifications that aren't
3895 * xml/xmlhttprequest.cpp:
3896 (WebCore::XMLHttpRequest::didFinishLoading):
3898 2006-11-08 Darin Adler <darin@apple.com>
3900 - another attempt to fix Qt build
3902 * loader/qt/FrameLoaderQt.cpp: Added missing include of FrameLoader.h.
3904 2006-11-08 Darin Adler <darin@apple.com>
3908 - stray bits of my FrameLoader patch that I left out by accident
3910 * loader/FrameLoader.cpp:
3911 (WebCore::FrameLoader::createWindow): Use m_outgoingReferrer instead of outgoingReferrer()
3912 inside the FrameLoader class.
3913 (WebCore::FrameLoader::requestFrame): Use less DeprecatedString.
3914 (WebCore::FrameLoader::clear): Stop the redirection timer.
3915 (WebCore::FrameLoader::receivedFirstData): Added an early return instead of nesting the
3916 entire function in an if statement. Use less DeprecatedString.
3917 (WebCore::FrameLoader::scheduleLocationChange): Fix backwards ? : operator.
3918 (WebCore::FrameLoader::scheduleRefresh): Ditto.
3919 (WebCore::FrameLoader::urlSelected): Use m_outgoingReferrer instead of outgoingReferrer()
3920 inside the FrameLoader class.
3921 * loader/mac/FrameLoaderMac.mm:
3922 (WebCore::FrameLoader::load): Ditto.
3923 (WebCore::FrameLoader::loadResourceSynchronously): Ditto.
3925 2006-11-07 Beth Dakin <bdakin@apple.com>
3929 Another go at fix for <rdar://problem/4820814> A crash occurs at
3930 WebCore::HitTestResult::spellingToolTip() when mousing down on
3931 iframe at www.macsurfer.com
3933 The fix from yesterday caused a layout test regression which
3934 exposed an existing bug. The existing bug was that we allowed text
3935 nodes to stay in the head tag, but other browsers move them to the
3936 body. The previous fix also caused a performance regression, which
3937 was seemingly easy to fix by moving the new clause in
3938 HTMLParser::handleError() to be below the HTMLElement case.
3940 * html/HTMLDocument.cpp:
3941 (WebCore::HTMLDocument::childAllowed): Don't allow comment nodes to
3942 be the child of the document.
3943 * html/HTMLHeadElement.cpp:
3944 (WebCore::HTMLHeadElement::childAllowed): Do not allow non-
3945 whitespace text nodes to be children of the head.
3946 * html/HTMLHeadElement.h:
3947 * html/HTMLParser.cpp:
3948 (WebCore::HTMLParser::handleError): Error case for comment nodes.
3949 * page/FrameView.cpp:
3950 (WebCore::FrameView::handleMousePressEvent): Safety-net null check
3951 for the original crash.
3953 2006-11-07 Darin Adler <darin@apple.com>
3955 - another attempt to fix Qt build
3957 * loader/icon/IconLoader.h: Added missing include.
3959 2006-11-06 Geoffrey Garen <ggaren@apple.com>
3961 Reviewed by Tim Hatcher.
3963 Removed ScreenClient. It was highly unpopular, risking my midterm re-election.
3965 None of Screen's responsibilities require up-calls to WebKit or delegates,
3966 so WebCore can handle it all.
3968 Moved Screen back from page/ to platform/ because it's a platform
3971 Merged scaling and flipping functions into 'toUserSpace' and 'toDeviceSpace',
3972 since the two were always used together.
3974 Changed pixel depth queries to query the deepest screen. Darin mentioned
3975 that it might have been a feature, not a bug, to use the main/menubar screen
3976 regardless of the screen you were on. For scaling and flipping that's not
3977 the case, but for querying pixel depth I think it is. You want to know
3978 about the highest pixel depth your content may display on.
3983 * WebCore.xcodeproj/project.pbxproj:
3985 (WebCore::Page::Page):
3987 * page/Screen.cpp: Removed.
3988 * page/Screen.h: Removed.
3989 * page/ScreenClient.h: Removed.
3990 * platform/mac/PlatformMouseEventMac.mm:
3991 (WebCore::globalPoint):
3992 * platform/mac/ScreenMac.mm:
3994 (WebCore::bestScreen):
3995 (WebCore::Screen::depth):
3996 (WebCore::Screen::depthPerComponent):
3997 (WebCore::Screen::isMonochrome):
3998 (WebCore::Screen::rect):
3999 (WebCore::Screen::usableRect):
4000 (WebCore::toUserSpace):
4001 (WebCore::toDeviceSpace):
4003 2006-11-07 Darin Adler <darin@apple.com>
4005 - try to fix Qt build
4007 * CMakeLists.txt: Updated for some file changes.
4008 * WebCoreSources.bkl: Ditto.
4010 2006-11-07 Darin Adler <darin@apple.com>
4014 - moved loader code from Frame/FrameMac to FrameLoader
4017 * WebCore.xcodeproj/project.pbxproj:
4018 * bindings/js/JSXSLTProcessor.h:
4019 * bindings/js/kjs_events.cpp:
4020 (KJS::JSLazyEventListener::parseCode):
4021 * bindings/js/kjs_html.cpp:
4022 (KJS::JSHTMLDocument::putValueProperty):
4023 * bindings/js/kjs_navigator.cpp:
4024 (KJS::Navigator::getValueProperty):
4025 * bindings/js/kjs_proxy.cpp:
4026 (WebCore::KJSProxy::initScriptIfNeeded):
4027 * bindings/js/kjs_window.cpp:
4028 (KJS::Screen::Screen):
4029 (KJS::createNewWindow):
4030 (KJS::Window::getValueProperty):
4032 (KJS::Window::isSafeScript):
4033 (KJS::WindowFunc::callAsFunction):
4034 (KJS::ScheduledAction::execute):
4035 (KJS::Location::getValueProperty):
4036 (KJS::Location::put):
4037 (KJS::Location::toString):
4038 (KJS::LocationFunc::callAsFunction):
4039 (KJS::History::getValueProperty):
4040 (KJS::HistoryFunc::callAsFunction):
4041 * bindings/objc/DOM.mm:
4042 (+[DOMNode _nodeWith:WebCore::]):
4043 * bridge/mac/FrameMac.h:
4044 * bridge/mac/FrameMac.mm:
4045 (WebCore::FrameMac::~FrameMac):
4046 (WebCore::FrameMac::setView):
4047 (WebCore::FrameMac::setStatusBarText):
4048 * bridge/mac/WebCoreFrameBridge.h:
4049 * bridge/mac/WebCoreFrameBridge.mm:
4050 (-[WebCoreFrameBridge close]):
4051 (-[WebCoreFrameBridge addData:]):
4052 (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
4053 (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
4054 (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
4055 (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
4056 (-[WebCoreFrameBridge baseURL]):
4057 (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
4058 (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
4059 (-[WebCoreFrameBridge canProvideDocumentSource]):
4060 (-[WebCoreFrameBridge receivedData:textEncodingName:]):
4061 * css/cssparser.cpp:
4062 (WebCore::CSSParser::parseContent):
4063 * dom/DOMImplementation.cpp:
4064 (WebCore::DOMImplementation::createDocument):
4065 (WebCore::DOMImplementation::createHTMLDocument):
4066 * dom/DOMImplementation.h:
4068 (WebCore::Document::readyState):
4069 (WebCore::Document::updateTitle):
4070 (WebCore::Document::open):
4071 (WebCore::Document::close):
4072 (WebCore::Document::implicitClose):
4073 (WebCore::Document::processHttpEquiv):
4074 (WebCore::Document::referrer):
4075 (WebCore::Document::finishedParsing):
4076 * dom/ProcessingInstruction.cpp:
4077 (WebCore::ProcessingInstruction::checkStyleSheet):
4078 * dom/XMLTokenizer.cpp:
4079 (WebCore::XMLTokenizer::endElementNs):
4080 (WebCore::ignorableWhitespaceHandler):
4081 (WebCore::XMLTokenizer::notifyFinished):
4082 * editing/TextIterator.cpp:
4083 (WebCore::TextIterator::rangeFromLocationAndLength):
4084 * html/HTMLAnchorElement.cpp:
4085 (WebCore::HTMLAnchorElement::defaultEventHandler):
4086 * html/HTMLBaseElement.cpp:
4087 (WebCore::HTMLBaseElement::process):
4088 * html/HTMLDocument.cpp:
4089 (WebCore::HTMLDocument::lastModified):
4090 * html/HTMLFormElement.cpp:
4091 (WebCore::HTMLFormElement::formData):
4092 (WebCore::HTMLFormElement::submit):
4093 * html/HTMLFrameElementBase.cpp:
4094 (WebCore::HTMLFrameElementBase::isURLAllowed):
4095 (WebCore::HTMLFrameElementBase::openURL):
4096 (WebCore::HTMLFrameElementBase::willRemove):
4097 * html/HTMLInputElement.cpp:
4098 (WebCore::HTMLInputElement::setValueFromRenderer):
4099 * html/HTMLLinkElement.cpp:
4100 (WebCore::HTMLLinkElement::process):
4101 * html/HTMLParser.cpp:
4102 (WebCore::HTMLParser::handleError):
4103 (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
4104 * html/HTMLPreElement.idl:
4105 * html/HTMLScriptElement.cpp:
4106 (WebCore::HTMLScriptElement::parseMappedAttribute):
4107 (WebCore::HTMLScriptElement::insertedIntoDocument):
4108 * html/HTMLTokenizer.cpp:
4109 (WebCore::HTMLTokenizer::scriptExecution):
4110 (WebCore::HTMLTokenizer::parseTag):
4111 (WebCore::HTMLTokenizer::write):
4112 (WebCore::HTMLTokenizer::stopParsing):
4113 (WebCore::HTMLTokenizer::timerFired):
4114 * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
4115 (WebCore::KCanvasFilterQuartz::prepareFilter):
4116 * ksvg2/svg/SVGAElement.cpp:
4117 (WebCore::SVGAElement::defaultEventHandler):
4118 * ksvg2/svg/SVGElement.cpp:
4119 (WebCore::SVGElement::sendSVGLoadEventIfPossible):
4120 * loader/DocLoader.cpp:
4121 (WebCore::DocLoader::setLoadInProgress):
4122 * loader/FrameLoader.cpp:
4123 (WebCore::FormSubmission::FormSubmission):
4124 (WebCore::ScheduledRedirection::):
4125 (WebCore::ScheduledRedirection::ScheduledRedirection):
4126 (WebCore::cancelAll):
4127 (WebCore::getString):
4128 (WebCore::isBackForwardLoadType):
4129 (WebCore::numRequests):
4130 (WebCore::FrameLoader::FrameLoader):
4131 (WebCore::FrameLoader::~FrameLoader):
4132 (WebCore::FrameLoader::createWindow):
4133 (WebCore::FrameLoader::changeLocation):
4134 (WebCore::FrameLoader::urlSelected):
4135 (WebCore::FrameLoader::requestFrame):
4136 (WebCore::FrameLoader::loadSubframe):
4137 (WebCore::FrameLoader::submitFormAgain):
4138 (WebCore::FrameLoader::submitForm):
4139 (WebCore::FrameLoader::stopLoading):
4140 (WebCore::FrameLoader::stop):
4141 (WebCore::FrameLoader::closeURL):
4142 (WebCore::FrameLoader::cancelRedirection):
4143 (WebCore::FrameLoader::iconURL):
4144 (WebCore::FrameLoader::didOpenURL):
4145 (WebCore::FrameLoader::didExplicitOpen):
4146 (WebCore::FrameLoader::replaceContentsWithScriptResult):
4147 (WebCore::FrameLoader::executeScript):
4148 (WebCore::FrameLoader::cancelAndClear):
4149 (WebCore::FrameLoader::clear):
4150 (WebCore::FrameLoader::receivedFirstData):
4151 (WebCore::FrameLoader::responseMIMEType):
4152 (WebCore::FrameLoader::setResponseMIMEType):
4153 (WebCore::FrameLoader::begin):
4154 (WebCore::FrameLoader::write):
4155 (WebCore::FrameLoader::end):
4156 (WebCore::FrameLoader::endIfNotLoading):
4157 (WebCore::FrameLoader::startIconLoader):
4158 (WebCore::FrameLoader::commitIconURLToIconDatabase):
4159 (WebCore::FrameLoader::gotoAnchor):
4160 (WebCore::FrameLoader::finishedParsing):
4161 (WebCore::FrameLoader::loadDone):
4162 (WebCore::FrameLoader::checkCompleted):
4163 (WebCore::FrameLoader::checkEmitLoadEvent):
4164 (WebCore::FrameLoader::baseURL):
4165 (WebCore::FrameLoader::baseTarget):
4166 (WebCore::FrameLoader::completeURL):
4167 (WebCore::FrameLoader::scheduleRedirection):
4168 (WebCore::FrameLoader::scheduleLocationChange):
4169 (WebCore::FrameLoader::scheduleRefresh):
4170 (WebCore::FrameLoader::isScheduledLocationChangePending):
4171 (WebCore::FrameLoader::scheduleHistoryNavigation):
4172 (WebCore::FrameLoader::redirectionTimerFired):
4173 (WebCore::FrameLoader::encoding):
4174 (WebCore::FrameLoader::requestObject):
4175 (WebCore::FrameLoader::shouldUsePlugin):
4176 (WebCore::FrameLoader::loadPlugin):
4177 (WebCore::FrameLoader::clearRecordedFormValues):
4178 (WebCore::FrameLoader::recordFormValue):
4179 (WebCore::FrameLoader::parentCompleted):
4180 (WebCore::FrameLoader::outgoingReferrer):
4181 (WebCore::FrameLoader::lastModified):
4182 (WebCore::FrameLoader::opener):
4183 (WebCore::FrameLoader::setOpener):
4184 (WebCore::FrameLoader::openedByJavaScript):
4185 (WebCore::FrameLoader::setOpenedByJavaScript):
4186 (WebCore::FrameLoader::handleFallbackContent):