Changeset 15253 in webkit
- Timestamp:
- Jul 9, 2006, 8:10:21 AM (19 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 226 edited
- 46 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r15250 r15253 1 2006-07-09 Darin Adler <darin@apple.com> 2 3 Rubber stamped by Maciej (kinda). 4 5 - did the next pass of renaming (used do-webcore-rename script) 6 this takes care of most of the remaining KWQ names (almost all) 7 8 * WebCore+SVG/DOMList.h: 9 * WebCore.vcproj/WebCore/WebCore.vcproj: 10 * WebCore.xcodeproj/project.pbxproj: 11 * WebCoreSources.bkl: 12 * bindings/js/kjs_dom.cpp: 13 * bindings/js/kjs_window.cpp: 14 * bindings/objc/DOMHTML.mm: 15 * bridge/mac/FrameMac.h: 16 * bridge/mac/FrameMac.mm: 17 * bridge/mac/WebCoreFrameBridge.mm: 18 * bridge/mac/WebCoreSettings.h: 19 * bridge/mac/WebCoreSettings.mm: 20 * bridge/win/FrameWin.cpp: 21 * css/CSSPrimitiveValue.cpp: 22 * css/CSSValueKeywords.in: 23 * css/MediaQueryEvaluator.cpp: 24 * css/cssparser.cpp: 25 * css/cssstyleselector.cpp: 26 * css/cssstyleselector.h: 27 * dom/CharacterData.cpp: 28 * dom/CharacterData.h: 29 * dom/Document.cpp: 30 * dom/Element.cpp: 31 * dom/Element.h: 32 * dom/EventTargetNode.cpp: 33 * dom/EventTargetNode.h: 34 * dom/Node.cpp: 35 * dom/Node.h: 36 * dom/Position.cpp: 37 * dom/ProcessingInstruction.cpp: 38 * dom/QualifiedName.cpp: 39 * dom/QualifiedName.h: 40 * dom/XMLTokenizer.cpp: Added. 41 * dom/xml_tokenizer.cpp: Removed. 42 * dom/xml_tokenizer.h: Removed. 43 * editing/EditAction.h: 44 * editing/HTMLInterchange.cpp: 45 * editing/HTMLInterchange.h: 46 * editing/Selection.h: 47 * editing/SelectionController.h: 48 * editing/TextAffinity.h: 49 * editing/TextIterator.cpp: 50 * editing/TextIterator.h: 51 * editing/VisiblePosition.h: 52 * editing/htmlediting.cpp: 53 * editing/markup.cpp: 54 * editing/markup.h: 55 * editing/visible_units.cpp: 56 * editing/visible_units.h: 57 * html/HTMLDocument.cpp: 58 * html/HTMLFontElement.cpp: 59 * html/HTMLInputElement.cpp: 60 * html/HTMLKeygenElement.cpp: 61 * html/HTMLSelectElement.h: 62 * html/HTMLTextAreaElement.cpp: 63 * html/HTMLTextFieldInnerElement.cpp: 64 * html/HTMLTokenizer.cpp: 65 * html/HTMLTokenizer.h: 66 * kcanvas/KCanvasContainer.cpp: Removed. 67 * kcanvas/KCanvasContainer.h: Removed. 68 * kcanvas/KCanvasCreator.cpp: 69 * kcanvas/KCanvasFilters.cpp: 70 * kcanvas/KCanvasFilters.h: 71 * kcanvas/KCanvasMatrix.cpp: 72 * kcanvas/KCanvasMatrix.h: 73 * kcanvas/KCanvasPath.cpp: 74 * kcanvas/KCanvasPath.h: 75 * kcanvas/KCanvasResources.cpp: 76 * kcanvas/KCanvasResources.h: 77 * kcanvas/KCanvasTreeDebug.cpp: 78 * kcanvas/KCanvasTreeDebug.h: 79 * kcanvas/RenderForeignObject.cpp: 80 * kcanvas/RenderForeignObject.h: 81 * kcanvas/RenderPath.cpp: 82 * kcanvas/RenderPath.h: 83 * kcanvas/RenderSVGContainer.cpp: Added. 84 * kcanvas/RenderSVGContainer.h: Added. 85 * kcanvas/RenderSVGImage.cpp: 86 * kcanvas/RenderSVGImage.h: 87 * kcanvas/RenderSVGText.cpp: 88 * kcanvas/RenderSVGText.h: 89 * kcanvas/device/KRenderingPaintServer.h: 90 * kcanvas/device/KRenderingPaintServerGradient.cpp: 91 * kcanvas/device/KRenderingPaintServerGradient.h: 92 * kcanvas/device/KRenderingPaintServerPattern.cpp: 93 * kcanvas/device/KRenderingPaintServerPattern.h: 94 * kcanvas/device/KRenderingPaintServerSolid.cpp: 95 * kcanvas/device/KRenderingPaintServerSolid.h: 96 * kcanvas/device/quartz/KCanvasFilterQuartz.mm: 97 * kcanvas/device/quartz/KCanvasItemQuartz.h: 98 * kcanvas/device/quartz/KCanvasResourcesQuartz.h: 99 * kcanvas/device/quartz/KRenderingDeviceQuartz.mm: 100 * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm: 101 * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm: 102 * ksvg2/css/CSSValueKeywords.in: 103 * ksvg2/css/SVGRenderStyleDefs.cpp: 104 * ksvg2/misc/KCanvasRenderingStyle.cpp: 105 * ksvg2/misc/KSVGTimeScheduler.cpp: 106 * ksvg2/svg/SVGAElement.cpp: 107 * ksvg2/svg/SVGAnimateTransformElement.cpp: 108 * ksvg2/svg/SVGAnimateTransformElement.h: 109 * ksvg2/svg/SVGGElement.cpp: 110 * ksvg2/svg/SVGHelper.cpp: 111 * ksvg2/svg/SVGHelper.h: 112 * ksvg2/svg/SVGImageElement.cpp: 113 * ksvg2/svg/SVGLinearGradientElement.cpp: 114 * ksvg2/svg/SVGMarkerElement.cpp: 115 * ksvg2/svg/SVGMaskElement.cpp: 116 * ksvg2/svg/SVGMatrix.cpp: 117 * ksvg2/svg/SVGMatrix.h: 118 * ksvg2/svg/SVGPatternElement.cpp: 119 * ksvg2/svg/SVGRadialGradientElement.cpp: 120 * ksvg2/svg/SVGSVGElement.cpp: 121 * ksvg2/svg/SVGStyledElement.h: 122 * ksvg2/svg/SVGStyledTransformableElement.cpp: 123 * ksvg2/svg/SVGStyledTransformableElement.h: 124 * ksvg2/svg/SVGSwitchElement.cpp: 125 * ksvg2/svg/SVGTextElement.cpp: 126 * ksvg2/svg/SVGTransformable.h: 127 * ksvg2/svg/SVGUseElement.cpp: 128 * kwq/AffineTransform.cpp: Added. 129 * kwq/AffineTransform.h: Added. 130 * kwq/DeprecatedCString.cpp: Added. 131 * kwq/DeprecatedCString.h: Added. 132 * kwq/DeprecatedPtrQueue.h: Added. 133 * kwq/FileButton.h: Added. 134 * kwq/FileButton.mm: Added. 135 * kwq/FormDataMac.mm: Added. 136 * kwq/KWQCString.cpp: Removed. 137 * kwq/KWQCString.h: Removed. 138 * kwq/KWQComboBox.h: Removed. 139 * kwq/KWQComboBox.mm: Removed. 140 * kwq/KWQEditCommand.h: Removed. 141 * kwq/KWQEditCommand.mm: Removed. 142 * kwq/KWQFileButton.h: Removed. 143 * kwq/KWQFileButton.mm: Removed. 144 * kwq/KWQFormData.h: Removed. 145 * kwq/KWQFormData.mm: Removed. 146 * kwq/KWQKHTMLSettings.h: Removed. 147 * kwq/KWQKIOGlobal.h: Removed. 148 * kwq/KWQKSSLKeyGen.h: Removed. 149 * kwq/KWQKSSLKeyGen.mm: Removed. 150 * kwq/KWQLineEdit.h: Removed. 151 * kwq/KWQLineEdit.mm: Removed. 152 * kwq/KWQListBox.h: Removed. 153 * kwq/KWQListBox.mm: Removed. 154 * kwq/KWQLoader.h: Removed. 155 * kwq/KWQLoader.mm: Removed. 156 * kwq/KWQPageState.h: Removed. 157 * kwq/KWQPageState.mm: Removed. 158 * kwq/KWQPtrQueue.h: Removed. 159 * kwq/KWQResourceLoader.h: Removed. 160 * kwq/KWQResourceLoader.mm: Removed. 161 * kwq/KWQScrollBar.h: Removed. 162 * kwq/KWQScrollBar.mm: Removed. 163 * kwq/KWQSlider.h: Removed. 164 * kwq/KWQSlider.mm: Removed. 165 * kwq/KWQTextEdit.h: Removed. 166 * kwq/KWQTextEdit.mm: Removed. 167 * kwq/KWQTextStream.cpp: Removed. 168 * kwq/KWQTextStream.h: Removed. 169 * kwq/KWQWMatrix.cpp: Removed. 170 * kwq/KWQWMatrix.h: Removed. 171 * kwq/ListBox.h: Added. 172 * kwq/ListBox.mm: Added. 173 * kwq/LoaderFunctions.h: Added. 174 * kwq/LoaderFunctions.mm: Added. 175 * kwq/PopUpButton.h: Added. 176 * kwq/PopUpButton.mm: Added. 177 * kwq/SSLKeyGenerator.h: Added. 178 * kwq/SSLKeyGenerator.mm: Added. 179 * kwq/Settings.h: Added. 180 * kwq/TextBox.h: Added. 181 * kwq/TextBox.mm: Added. 182 * kwq/TextField.h: Added. 183 * kwq/TextField.mm: Added. 184 * kwq/TextStream.cpp: Added. 185 * kwq/TextStream.h: Added. 186 * kwq/WebCoreEditCommand.h: Added. 187 * kwq/WebCoreEditCommand.mm: Added. 188 * kwq/WebCorePageState.h: Added. 189 * kwq/WebCorePageState.mm: Added. 190 * kwq/WebCoreResourceLoaderImp.h: Added. 191 * kwq/WebCoreResourceLoaderImp.mm: Added. 192 * kwq/WebCoreScrollBar.h: Added. 193 * kwq/WebCoreScrollBar.mm: Added. 194 * kwq/WebCoreSlider.h: Added. 195 * kwq/WebCoreSlider.mm: Added. 196 * loader/Cache.h: 197 * loader/CachedCSSStyleSheet.cpp: 198 * loader/CachedImage.cpp: 199 * loader/CachedObject.h: 200 * loader/CachedObjectClientWalker.h: 201 * loader/CachedResource.h: 202 * loader/CachedResourceClientWalker.h: 203 * loader/CachedScript.h: 204 * loader/CachedXBLDocument.h: 205 * loader/Decoder.h: 206 * loader/DocLoader.cpp: 207 * loader/DocLoader.h: 208 * loader/FormData.h: 209 * loader/ImageDocument.cpp: 210 * loader/PluginDocument.cpp: 211 * loader/TextDocument.cpp: 212 * loader/loader.cpp: 213 * loader/loader.h: 214 * page/Frame.cpp: 215 * page/Frame.h: 216 * page/FramePrivate.h: 217 * page/Page.cpp: 218 * page/Page.h: 219 * platform/DeprecatedPtrList.h: 220 * platform/DeprecatedPtrListImpl.cpp: 221 * platform/DeprecatedPtrListImpl.h: 222 * platform/DeprecatedString.cpp: 223 * platform/DeprecatedString.h: 224 * platform/DeprecatedStringList.cpp: 225 * platform/DeprecatedStringList.h: 226 * platform/DeprecatedValueList.h: 227 * platform/DeprecatedValueListImpl.cpp: 228 * platform/DeprecatedValueListImpl.h: 229 * platform/FloatSize.h: 230 * platform/Font.cpp: 231 * platform/KURL.cpp: 232 * platform/RegularExpression.cpp: 233 * platform/RegularExpression.h: 234 * platform/SegmentedString.h: 235 * platform/StreamingTextDecoder.cpp: 236 * platform/String.cpp: 237 * platform/StringImpl.cpp: 238 * platform/TextEncoding.cpp: 239 * platform/TransferJob.cpp: 240 * platform/TransferJob.h: 241 * platform/TransferJobInternal.h: 242 * platform/gdk/FrameGdk.cpp: 243 * platform/gdk/TemporaryLinkStubs.cpp: 244 * platform/mac/ClipboardMac.h: 245 * platform/mac/ClipboardMac.mm: 246 * platform/mac/CursorMac.mm: 247 * platform/mac/DeprecatedStringMac.mm: Added. 248 * platform/mac/FontCacheMac.mm: 249 * platform/mac/FontMac.mm: 250 * platform/mac/FoundationExtras.h: 251 * platform/mac/ImageMac.mm: 252 * platform/mac/KURLMac.mm: 253 * platform/mac/MouseEventMac.mm: Removed. 254 * platform/mac/QStringListMac.mm: Removed. 255 * platform/mac/QStringMac.mm: Removed. 256 * platform/mac/TransferJobMac.mm: 257 * platform/mac/WebCoreTextArea.h: 258 * platform/mac/WebCoreTextArea.mm: 259 * platform/mac/WebCoreTextField.h: 260 * platform/mac/WebCoreTextField.mm: 261 * platform/mac/WidgetMac.mm: 262 * platform/win/TemporaryLinkStubs.cpp: 263 * rendering/DataRef.h: 264 * rendering/DeprecatedRenderSelect.cpp: 265 * rendering/DeprecatedRenderSelect.h: 266 * rendering/DeprecatedSlider.cpp: 267 * rendering/InlineFlowBox.cpp: 268 * rendering/RenderApplet.cpp: 269 * rendering/RenderBlock.cpp: 270 * rendering/RenderBlock.h: 271 * rendering/RenderContainer.cpp: 272 * rendering/RenderFileButton.cpp: 273 * rendering/RenderFlexibleBox.cpp: 274 * rendering/RenderFlow.cpp: 275 * rendering/RenderFormElement.cpp: 276 * rendering/RenderFrameSet.cpp: 277 * rendering/RenderFrameSet.h: 278 * rendering/RenderImage.cpp: 279 * rendering/RenderInline.cpp: 280 * rendering/RenderLayer.cpp: 281 * rendering/RenderLayer.h: 282 * rendering/RenderLineEdit.cpp: 283 * rendering/RenderListItem.cpp: 284 * rendering/RenderListMarker.cpp: 285 * rendering/RenderObject.cpp: 286 * rendering/RenderObject.h: 287 * rendering/RenderPartObject.cpp: 288 * rendering/RenderReplaced.cpp: 289 * rendering/RenderStyle.cpp: Added. 290 * rendering/RenderStyle.h: Added. 291 * rendering/RenderTable.cpp: 292 * rendering/RenderTable.h: 293 * rendering/RenderTableCell.cpp: 294 * rendering/RenderTableCell.h: 295 * rendering/RenderTableCol.cpp: 296 * rendering/RenderTableCol.h: 297 * rendering/RenderTableRow.cpp: 298 * rendering/RenderTableSection.cpp: 299 * rendering/RenderTableSection.h: 300 * rendering/RenderText.cpp: 301 * rendering/RenderText.h: 302 * rendering/RenderTextArea.cpp: 303 * rendering/RenderTextControl.cpp: Added. 304 * rendering/RenderTextControl.h: Added. 305 * rendering/RenderTextField.cpp: Removed. 306 * rendering/RenderTextField.h: Removed. 307 * rendering/RenderTheme.cpp: 308 * rendering/RenderThemeMac.mm: 309 * rendering/RenderTreeAsText.cpp: 310 * rendering/RenderTreeAsText.h: 311 * rendering/RenderView.cpp: 312 * rendering/RenderWidget.cpp: 313 * rendering/bidi.cpp: 314 * rendering/render_style.cpp: Removed. 315 * rendering/render_style.h: Removed. 316 * xml/XSLStyleSheet.cpp: 317 * xml/XSLTProcessor.cpp: 318 * xml/xmlhttprequest.cpp: 319 * xpath/impl/XPathParser.cpp: 320 1 321 2006-07-09 Rob Buis <buis@kde.org> 2 322 -
trunk/WebCore/WebCore+SVG/DOMList.h
r13858 r15253 118 118 119 119 private: 120 Q3PtrList<T> m_impl;120 DeprecatedPtrList<T> m_impl; 121 121 }; 122 122 }; -
trunk/WebCore/WebCore.vcproj/WebCore/WebCore.vcproj
r15230 r15253 160 160 </File> 161 161 <File 162 RelativePath="..\..\kwq\ KWQComboBox.h"163 > 164 </File> 165 <File 166 RelativePath="..\..\kwq\ KWQCString.cpp"167 > 168 </File> 169 <File 170 RelativePath="..\..\kwq\ KWQCString.h"171 > 172 </File> 173 <File 174 RelativePath="..\..\kwq\ KWQEditCommand.h"175 > 176 </File> 177 <File 178 RelativePath="..\..\kwq\ KWQFileButton.h"179 > 180 </File> 181 <File 182 RelativePath="..\..\kwq\ KWQFormData.h"183 > 184 </File> 185 <File 186 RelativePath="..\..\kwq\ KWQKHTMLSettings.h"187 > 188 </File> 189 <File 190 RelativePath="..\..\kwq\ KWQKSSLKeyGen.h"162 RelativePath="..\..\kwq\PopUpButton.h" 163 > 164 </File> 165 <File 166 RelativePath="..\..\kwq\DeprecatedCString.cpp" 167 > 168 </File> 169 <File 170 RelativePath="..\..\kwq\DeprecatedCString.h" 171 > 172 </File> 173 <File 174 RelativePath="..\..\kwq\WebCoreEditCommand.h" 175 > 176 </File> 177 <File 178 RelativePath="..\..\kwq\FileButton.h" 179 > 180 </File> 181 <File 182 RelativePath="..\..\kwq\FormDataMac.h" 183 > 184 </File> 185 <File 186 RelativePath="..\..\kwq\Settings.h" 187 > 188 </File> 189 <File 190 RelativePath="..\..\kwq\SSLKeyGenerator.h" 191 191 > 192 192 </File> … … 196 196 </File> 197 197 <File 198 RelativePath="..\..\kwq\ KWQLineEdit.h"199 > 200 </File> 201 <File 202 RelativePath="..\..\kwq\ KWQListBox.h"203 > 204 </File> 205 <File 206 RelativePath="..\..\kwq\ KWQLoader.h"207 > 208 </File> 209 <File 210 RelativePath="..\..\kwq\ KWQPageState.h"211 > 212 </File> 213 <File 214 RelativePath="..\..\kwq\ KWQPtrQueue.h"215 > 216 </File> 217 <File 218 RelativePath="..\..\kwq\ KWQResourceLoader.h"219 > 220 </File> 221 <File 222 RelativePath="..\..\kwq\ KWQScrollBar.h"223 > 224 </File> 225 <File 226 RelativePath="..\..\kwq\ KWQSlider.h"227 > 228 </File> 229 <File 230 RelativePath="..\..\kwq\ KWQTextEdit.h"231 > 232 </File> 233 <File 234 RelativePath="..\..\kwq\ KWQTextStream.cpp"235 > 236 </File> 237 <File 238 RelativePath="..\..\kwq\ KWQTextStream.h"198 RelativePath="..\..\kwq\TextField.h" 199 > 200 </File> 201 <File 202 RelativePath="..\..\kwq\ListBox.h" 203 > 204 </File> 205 <File 206 RelativePath="..\..\kwq\LoaderFunctions.h" 207 > 208 </File> 209 <File 210 RelativePath="..\..\kwq\WebCorePageState.h" 211 > 212 </File> 213 <File 214 RelativePath="..\..\kwq\DeprecatedPtrQueue.h" 215 > 216 </File> 217 <File 218 RelativePath="..\..\kwq\WebCoreResourceLoaderImp.h" 219 > 220 </File> 221 <File 222 RelativePath="..\..\kwq\WebCoreScrollBar.h" 223 > 224 </File> 225 <File 226 RelativePath="..\..\kwq\WebCoreSlider.h" 227 > 228 </File> 229 <File 230 RelativePath="..\..\kwq\TextBox.h" 231 > 232 </File> 233 <File 234 RelativePath="..\..\kwq\TextStream.cpp" 235 > 236 </File> 237 <File 238 RelativePath="..\..\kwq\TextStream.h" 239 239 > 240 240 </File> … … 244 244 </File> 245 245 <File 246 RelativePath="..\..\kwq\ KWQWMatrix.h"246 RelativePath="..\..\kwq\AffineTransform.h" 247 247 > 248 248 </File> … … 2916 2916 </File> 2917 2917 <File 2918 RelativePath="..\..\rendering\ render_style.cpp"2919 > 2920 </File> 2921 <File 2922 RelativePath="..\..\rendering\ render_style.h"2918 RelativePath="..\..\rendering\RenderStyle.cpp" 2919 > 2920 </File> 2921 <File 2922 RelativePath="..\..\rendering\RenderStyle.h" 2923 2923 > 2924 2924 </File> … … 3224 3224 </File> 3225 3225 <File 3226 RelativePath="..\..\rendering\RenderText Field.cpp"3227 > 3228 </File> 3229 <File 3230 RelativePath="..\..\rendering\RenderText Field.h"3226 RelativePath="..\..\rendering\RenderTextControl.cpp" 3227 > 3228 </File> 3229 <File 3230 RelativePath="..\..\rendering\RenderTextControl.h" 3231 3231 > 3232 3232 </File> … … 3872 3872 </File> 3873 3873 <File 3874 RelativePath="..\..\dom\ xml_tokenizer.cpp"3875 > 3876 </File> 3877 <File 3878 RelativePath="..\..\dom\ xml_tokenizer.h"3874 RelativePath="..\..\dom\XMLTokenizer.cpp" 3875 > 3876 </File> 3877 <File 3878 RelativePath="..\..\dom\XMLTokenizer.h" 3879 3879 > 3880 3880 </File> -
trunk/WebCore/WebCore.xcodeproj/project.pbxproj
r15239 r15253 188 188 651B4D8509AC83370029F1EF /* DeprecatedStringList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 651B4D8309AC83370029F1EF /* DeprecatedStringList.cpp */; }; 189 189 651B4D8609AC83370029F1EF /* DeprecatedStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = 651B4D8409AC83370029F1EF /* DeprecatedStringList.h */; }; 190 651B4D8F09AC859F0029F1EF /* QStringListMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 651B4D8E09AC859F0029F1EF /* QStringListMac.mm */; };190 651B4D8F09AC859F0029F1EF /* DeprecatedStringListMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 651B4D8E09AC859F0029F1EF /* DeprecatedStringListMac.mm */; }; 191 191 6522BCDF09C9DAA800C9BA7A /* ResourceRequest.h in Headers */ = {isa = PBXBuildFile; fileRef = 6522BCDE09C9DAA800C9BA7A /* ResourceRequest.h */; }; 192 192 6545F67009B82FED0013006F /* TransferJob.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6545F66C09B82FED0013006F /* TransferJob.cpp */; }; … … 250 250 6582A16209999D6D00BEEB6D /* ScreenMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6582A15409999D6D00BEEB6D /* ScreenMac.mm */; }; 251 251 6582A16309999D6D00BEEB6D /* SystemTimeMac.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 6582A15509999D6D00BEEB6D /* SystemTimeMac.cpp */; }; 252 6582A17809999EA000BEEB6D /* QStringMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6582A17709999EA000BEEB6D /* QStringMac.mm */; };252 6582A17809999EA000BEEB6D /* DeprecatedStringMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 6582A17709999EA000BEEB6D /* DeprecatedStringMac.mm */; }; 253 253 65901A4409FC6039005BD752 /* WebCoreStringTruncator.h in Headers */ = {isa = PBXBuildFile; fileRef = 65901A4209FC6039005BD752 /* WebCoreStringTruncator.h */; settings = {ATTRIBUTES = (Private, ); }; }; 254 254 65901A4509FC6039005BD752 /* WebCoreStringTruncator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 65901A4309FC6039005BD752 /* WebCoreStringTruncator.mm */; }; … … 458 458 935C476D09AC4D6300A6AAB4 /* FoundationExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 935C476C09AC4D6300A6AAB4 /* FoundationExtras.h */; }; 459 459 935C477009AC4D7300A6AAB4 /* KeyEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C476E09AC4D7300A6AAB4 /* KeyEventMac.mm */; }; 460 935C477109AC4D7300A6AAB4 /* MouseEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C476F09AC4D7300A6AAB4 /*MouseEventMac.mm */; };460 935C477109AC4D7300A6AAB4 /* PlatformMouseEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C476F09AC4D7300A6AAB4 /* PlatformMouseEventMac.mm */; }; 461 461 935C477309AC4D7700A6AAB4 /* WheelEventMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 935C477209AC4D7700A6AAB4 /* WheelEventMac.mm */; }; 462 462 935C477509AC4D8E00A6AAB4 /* GapRects.h in Headers */ = {isa = PBXBuildFile; fileRef = 935C477409AC4D8D00A6AAB4 /* GapRects.h */; }; … … 536 536 93F198F608245E59001E9ABC /* Decoder.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D27902DE43D7018635CA /* Decoder.h */; }; 537 537 93F1991808245E59001E9ABC /* Range.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D30402DE4476018635CA /* Range.h */; }; 538 93F1992108245E59001E9ABC /* xml_tokenizer.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D30A02DE4476018635CA /* xml_tokenizer.h */; };539 93F1992908245E59001E9ABC /* KWQCString.h in Headers */ = {isa = PBXBuildFile; fileRef = F587868302DE3B8601EA4122 /* KWQCString.h */; };540 93F1992E08245E59001E9ABC /* KWQComboBox.h in Headers */ = {isa = PBXBuildFile; fileRef = F587868202DE3B8601EA4122 /* KWQComboBox.h */; };538 93F1992108245E59001E9ABC /* XMLTokenizer.h in Headers */ = {isa = PBXBuildFile; fileRef = F523D30A02DE4476018635CA /* XMLTokenizer.h */; }; 539 93F1992908245E59001E9ABC /* DeprecatedCString.h in Headers */ = {isa = PBXBuildFile; fileRef = F587868302DE3B8601EA4122 /* DeprecatedCString.h */; }; 540 93F1992E08245E59001E9ABC /* PopUpButton.h in Headers */ = {isa = PBXBuildFile; fileRef = F587868202DE3B8601EA4122 /* PopUpButton.h */; }; 541 541 93F1992F08245E59001E9ABC /* Cursor.h in Headers */ = {isa = PBXBuildFile; fileRef = F587868402DE3B8601EA4122 /* Cursor.h */; }; 542 93F1993908245E59001E9ABC /* KWQFileButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 93CCF7D4033BD43C008635CE /* KWQFileButton.h */; };543 93F1994F08245E59001E9ABC /* KWQKHTMLSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = F587863A02DE3A1401EA4122 /* KWQKHTMLSettings.h */; };544 93F1995008245E59001E9ABC /* KWQKIOGlobal.h in Headers */ = {isa = PBXBuildFile; fileRef = F587864902DE3A9A01EA4122 /* KWQKIOGlobal.h */; };542 93F1993908245E59001E9ABC /* FileButton.h in Headers */ = {isa = PBXBuildFile; fileRef = 93CCF7D4033BD43C008635CE /* FileButton.h */; }; 543 93F1994F08245E59001E9ABC /* Settings.h in Headers */ = {isa = PBXBuildFile; fileRef = F587863A02DE3A1401EA4122 /* Settings.h */; }; 544 93F1995008245E59001E9ABC /* CacheControl.h in Headers */ = {isa = PBXBuildFile; fileRef = F587864902DE3A9A01EA4122 /* CacheControl.h */; }; 545 545 93F1995408245E59001E9ABC /* JavaAppletWidget.h in Headers */ = {isa = PBXBuildFile; fileRef = F587864502DE3A7701EA4122 /* JavaAppletWidget.h */; }; 546 93F1996308245E59001E9ABC /* KWQKSSLKeyGen.h in Headers */ = {isa = PBXBuildFile; fileRef = F587866202DE3B1101EA4122 /* KWQKSSLKeyGen.h */; };547 93F1996B08245E59001E9ABC /* KWQLineEdit.h in Headers */ = {isa = PBXBuildFile; fileRef = F587869802DE3B8601EA4122 /* KWQLineEdit.h */; };548 93F1996C08245E59001E9ABC /* KWQListBox.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851302DE375901EA4122 /* KWQListBox.h */; };546 93F1996308245E59001E9ABC /* SSLKeyGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = F587866202DE3B1101EA4122 /* SSLKeyGenerator.h */; }; 547 93F1996B08245E59001E9ABC /* TextField.h in Headers */ = {isa = PBXBuildFile; fileRef = F587869802DE3B8601EA4122 /* TextField.h */; }; 548 93F1996C08245E59001E9ABC /* ListBox.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851302DE375901EA4122 /* ListBox.h */; }; 549 549 93F1996D08245E59001E9ABC /* DeprecatedPtrListImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851502DE375901EA4122 /* DeprecatedPtrListImpl.h */; }; 550 93F1996E08245E59001E9ABC /* KWQLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851702DE375901EA4122 /* KWQLoader.h */; };551 93F1997708245E59001E9ABC /* KWQPageState.h in Headers */ = {isa = PBXBuildFile; fileRef = 9394E0A403AA5BBE008635CE /* KWQPageState.h */; };550 93F1996E08245E59001E9ABC /* LoaderFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851702DE375901EA4122 /* LoaderFunctions.h */; }; 551 93F1997708245E59001E9ABC /* WebCorePageState.h in Headers */ = {isa = PBXBuildFile; fileRef = 9394E0A403AA5BBE008635CE /* WebCorePageState.h */; }; 552 552 93F1998208245E59001E9ABC /* DeprecatedPtrList.h in Headers */ = {isa = PBXBuildFile; fileRef = F587869902DE3B8601EA4122 /* DeprecatedPtrList.h */; }; 553 93F1998308245E59001E9ABC /* KWQPtrQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786AD02DE3B8601EA4122 /* KWQPtrQueue.h */; };553 93F1998308245E59001E9ABC /* DeprecatedPtrQueue.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786AD02DE3B8601EA4122 /* DeprecatedPtrQueue.h */; }; 554 554 93F1998A08245E59001E9ABC /* RegularExpression.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786B302DE3B8601EA4122 /* RegularExpression.h */; }; 555 555 93F1998C08245E59001E9ABC /* RenderTreeAsText.h in Headers */ = {isa = PBXBuildFile; fileRef = 93955A4103D72932008635CE /* RenderTreeAsText.h */; }; 556 93F1998D08245E59001E9ABC /* KWQResourceLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 93386B90037045B3008635CE /* KWQResourceLoader.h */; };556 93F1998D08245E59001E9ABC /* WebCoreResourceLoaderImp.h in Headers */ = {isa = PBXBuildFile; fileRef = 93386B90037045B3008635CE /* WebCoreResourceLoaderImp.h */; }; 557 557 93F1999708245E59001E9ABC /* WebCoreTextArea.h in Headers */ = {isa = PBXBuildFile; fileRef = F587853502DE375901EA4122 /* WebCoreTextArea.h */; }; 558 93F1999908245E59001E9ABC /* KWQTextEdit.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786BE02DE3B8601EA4122 /* KWQTextEdit.h */; };558 93F1999908245E59001E9ABC /* TextBox.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786BE02DE3B8601EA4122 /* TextBox.h */; }; 559 559 93F1999A08245E59001E9ABC /* WebCoreTextField.h in Headers */ = {isa = PBXBuildFile; fileRef = F587851B02DE375901EA4122 /* WebCoreTextField.h */; }; 560 93F1999B08245E59001E9ABC /* KWQTextStream.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786BF02DE3B8601EA4122 /* KWQTextStream.h */; };560 93F1999B08245E59001E9ABC /* TextStream.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786BF02DE3B8601EA4122 /* TextStream.h */; }; 561 561 93F1999D08245E59001E9ABC /* DeprecatedValueList.h in Headers */ = {isa = PBXBuildFile; fileRef = F58786C202DE3B8601EA4122 /* DeprecatedValueList.h */; }; 562 562 93F1999E08245E59001E9ABC /* DeprecatedValueListImpl.h in Headers */ = {isa = PBXBuildFile; fileRef = F587853B02DE375901EA4122 /* DeprecatedValueListImpl.h */; }; … … 569 569 93F199AF08245E59001E9ABC /* WebCoreSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = F565AE8502ECA583018635CA /* WebCoreSettings.h */; settings = {ATTRIBUTES = (Private, ); }; }; 570 570 93F199B308245E59001E9ABC /* WebCoreViewFactory.h in Headers */ = {isa = PBXBuildFile; fileRef = F587855402DE375901EA4122 /* WebCoreViewFactory.h */; settings = {ATTRIBUTES = (Private, ); }; }; 571 93F199B808245E59001E9ABC /* KWQScrollBar.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7B2AF80450824100A8000F /* KWQScrollBar.h */; };571 93F199B808245E59001E9ABC /* WebCoreScrollBar.h in Headers */ = {isa = PBXBuildFile; fileRef = BC7B2AF80450824100A8000F /* WebCoreScrollBar.h */; }; 572 572 93F199BB08245E59001E9ABC /* WebCoreKeyboardAccess.h in Headers */ = {isa = PBXBuildFile; fileRef = BE983D95052A2E0A00892D85 /* WebCoreKeyboardAccess.h */; settings = {ATTRIBUTES = (Private, ); }; }; 573 573 93F199BC08245E59001E9ABC /* WebCoreAXObject.h in Headers */ = {isa = PBXBuildFile; fileRef = 55998A5A052B59CC0017A6C1 /* WebCoreAXObject.h */; }; … … 576 576 93F199C208245E59001E9ABC /* WebCoreKeyGenerator.h in Headers */ = {isa = PBXBuildFile; fileRef = 84B2B1F7056BEF3A00D2B771 /* WebCoreKeyGenerator.h */; settings = {ATTRIBUTES = (Private, ); }; }; 577 577 93F199CF08245E59001E9ABC /* AtomicStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = BC3B364705C9D5E200E42902 /* AtomicStringList.h */; }; 578 93F199D508245E59001E9ABC /* KWQEditCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = BEF7EEA005FF8F0D009717EE /* KWQEditCommand.h */; };578 93F199D508245E59001E9ABC /* WebCoreEditCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = BEF7EEA005FF8F0D009717EE /* WebCoreEditCommand.h */; }; 579 579 93F199DE08245E59001E9ABC /* Position.h in Headers */ = {isa = PBXBuildFile; fileRef = BE91FC8B06133666005E3790 /* Position.h */; }; 580 93F199E008245E59001E9ABC /* KWQSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = BC86FB8D061F5C23006BB822 /* KWQSlider.h */; };580 93F199E008245E59001E9ABC /* WebCoreSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = BC86FB8D061F5C23006BB822 /* WebCoreSlider.h */; }; 581 581 93F199E508245E59001E9ABC /* HTMLCanvasElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 51F6A3D60663BF04004D2919 /* HTMLCanvasElement.h */; }; 582 582 93F199E708245E59001E9ABC /* ClipboardMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D90660B0665D937006B6F1A /* ClipboardMac.h */; }; … … 584 584 93F199ED08245E59001E9ABC /* XSLTProcessor.h in Headers */ = {isa = PBXBuildFile; fileRef = BC06F24C06D18A7E004A6FA3 /* XSLTProcessor.h */; }; 585 585 93F199EE08245E59001E9ABC /* FormData.h in Headers */ = {isa = PBXBuildFile; fileRef = 93ABCE5E06E1A42E0085925B /* FormData.h */; }; 586 93F199EF08245E59001E9ABC /* KWQFormData.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B641F206E28C5C0055F610 /* KWQFormData.h */; };586 93F199EF08245E59001E9ABC /* FormDataMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 93B641F206E28C5C0055F610 /* FormDataMac.h */; }; 587 587 93F199F008245E59001E9ABC /* WebCoreView.h in Headers */ = {isa = PBXBuildFile; fileRef = BE855F7F0701E83500239769 /* WebCoreView.h */; settings = {ATTRIBUTES = (Private, ); }; }; 588 588 93F199F108245E59001E9ABC /* WebDashboardRegion.h in Headers */ = {isa = PBXBuildFile; fileRef = 5150C2A10702629000AF642C /* WebDashboardRegion.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 599 599 93F19A0A08245E59001E9ABC /* waitCursor.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 84C0FA2D052B966D000440A1 /* waitCursor.tiff */; }; 600 600 93F19A0B08245E59001E9ABC /* westResizeCursor.tiff in Resources */ = {isa = PBXBuildFile; fileRef = 84C0FA2E052B966D000440A1 /* westResizeCursor.tiff */; }; 601 93F19A1708245E59001E9ABC /* KWQComboBox.mm in Sources */ = {isa = PBXBuildFile; fileRef = F58784D202DE375901EA4122 /* KWQComboBox.mm */; };602 93F19A1808245E59001E9ABC /* KWQCString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F58784D502DE375901EA4122 /* KWQCString.cpp */; };601 93F19A1708245E59001E9ABC /* PopUpButton.mm in Sources */ = {isa = PBXBuildFile; fileRef = F58784D202DE375901EA4122 /* PopUpButton.mm */; }; 602 93F19A1808245E59001E9ABC /* DeprecatedCString.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F58784D502DE375901EA4122 /* DeprecatedCString.cpp */; }; 603 603 93F19A2608245E59001E9ABC /* CursorMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = F58784F002DE375901EA4122 /* CursorMac.mm */; }; 604 604 93F19A2E08245E59001E9ABC /* JavaAppletWidget.mm in Sources */ = {isa = PBXBuildFile; fileRef = F58784FF02DE375901EA4122 /* JavaAppletWidget.mm */; }; 605 93F19A3108245E59001E9ABC /* KWQLoader.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587850302DE375901EA4122 /* KWQLoader.mm */; };606 93F19A3A08245E59001E9ABC /* KWQLineEdit.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851202DE375901EA4122 /* KWQLineEdit.mm */; };607 93F19A3B08245E59001E9ABC /* KWQListBox.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851402DE375901EA4122 /* KWQListBox.mm */; };605 93F19A3108245E59001E9ABC /* LoaderFunctions.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587850302DE375901EA4122 /* LoaderFunctions.mm */; }; 606 93F19A3A08245E59001E9ABC /* TextField.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851202DE375901EA4122 /* TextField.mm */; }; 607 93F19A3B08245E59001E9ABC /* ListBox.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851402DE375901EA4122 /* ListBox.mm */; }; 608 608 93F19A3C08245E59001E9ABC /* DeprecatedPtrListImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587851602DE375901EA4122 /* DeprecatedPtrListImpl.cpp */; }; 609 609 93F19A3F08245E59001E9ABC /* WebCoreTextField.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587851C02DE375901EA4122 /* WebCoreTextField.mm */; }; 610 610 93F19A4A08245E59001E9ABC /* RegularExpression.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587852B02DE375901EA4122 /* RegularExpression.cpp */; }; 611 611 93F19A5108245E59001E9ABC /* WebCoreTextArea.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587853602DE375901EA4122 /* WebCoreTextArea.mm */; }; 612 93F19A5308245E59001E9ABC /* KWQTextEdit.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587853802DE375901EA4122 /* KWQTextEdit.mm */; };613 93F19A5408245E59001E9ABC /* KWQTextStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587853902DE375901EA4122 /* KWQTextStream.cpp */; };612 93F19A5308245E59001E9ABC /* TextBox.mm in Sources */ = {isa = PBXBuildFile; fileRef = F587853802DE375901EA4122 /* TextBox.mm */; }; 613 93F19A5408245E59001E9ABC /* TextStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587853902DE375901EA4122 /* TextStream.cpp */; }; 614 614 93F19A5608245E59001E9ABC /* DeprecatedValueListImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F587853C02DE375901EA4122 /* DeprecatedValueListImpl.cpp */; }; 615 615 93F19A5F08245E59001E9ABC /* WebCoreViewFactory.m in Sources */ = {isa = PBXBuildFile; fileRef = F587855502DE375901EA4122 /* WebCoreViewFactory.m */; }; … … 620 620 93F19A9D08245E59001E9ABC /* Decoder.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D27802DE43D7018635CA /* Decoder.cpp */; }; 621 621 93F19AB908245E59001E9ABC /* Range.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D30302DE4476018635CA /* Range.cpp */; }; 622 93F19ABC08245E59001E9ABC /* xml_tokenizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D30902DE4476018635CA /* xml_tokenizer.cpp */; };622 93F19ABC08245E59001E9ABC /* XMLTokenizer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F523D30902DE4476018635CA /* XMLTokenizer.cpp */; }; 623 623 93F19ABE08245E59001E9ABC /* WebCoreCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = F5B2A4FD02E2220F018635CB /* WebCoreCache.mm */; }; 624 624 93F19ABF08245E59001E9ABC /* WebCoreJavaScript.mm in Sources */ = {isa = PBXBuildFile; fileRef = F5B2A52C02E22573018635CB /* WebCoreJavaScript.mm */; }; … … 626 626 93F19AC608245E59001E9ABC /* WebCoreEncodings.mm in Sources */ = {isa = PBXBuildFile; fileRef = F56234E003026D7301629B47 /* WebCoreEncodings.mm */; }; 627 627 93F19AC808245E59001E9ABC /* WebCoreHistory.m in Sources */ = {isa = PBXBuildFile; fileRef = F5517DC3031AB56301A80180 /* WebCoreHistory.m */; }; 628 93F19ACC08245E59001E9ABC /* KWQFileButton.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93CCF7D5033BD43C008635CE /* KWQFileButton.mm */; };629 93F19ACD08245E59001E9ABC /* KWQResourceLoader.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93386B91037045B3008635CE /* KWQResourceLoader.mm */; };630 93F19AD208245E59001E9ABC /* KWQPageState.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9394E0A503AA5BBE008635CE /* KWQPageState.mm */; };628 93F19ACC08245E59001E9ABC /* FileButton.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93CCF7D5033BD43C008635CE /* FileButton.mm */; }; 629 93F19ACD08245E59001E9ABC /* WebCoreResourceLoaderImp.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93386B91037045B3008635CE /* WebCoreResourceLoaderImp.mm */; }; 630 93F19AD208245E59001E9ABC /* WebCorePageState.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9394E0A503AA5BBE008635CE /* WebCorePageState.mm */; }; 631 631 93F19AD508245E59001E9ABC /* RenderTreeAsText.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93955A4203D72932008635CE /* RenderTreeAsText.cpp */; }; 632 93F19ADC08245E59001E9ABC /* KWQScrollBar.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC7B2AF90450824100A8000F /* KWQScrollBar.mm */; };632 93F19ADC08245E59001E9ABC /* WebCoreScrollBar.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC7B2AF90450824100A8000F /* WebCoreScrollBar.mm */; }; 633 633 93F19ADF08245E59001E9ABC /* WebCoreAXObject.mm in Sources */ = {isa = PBXBuildFile; fileRef = 55998A5B052B59CC0017A6C1 /* WebCoreAXObject.mm */; }; 634 634 93F19AE008245E59001E9ABC /* AccessibilityObjectCache.mm in Sources */ = {isa = PBXBuildFile; fileRef = 55998A5D052B59CC0017A6C1 /* AccessibilityObjectCache.mm */; }; 635 635 93F19AE108245E59001E9ABC /* BlockExceptions.mm in Sources */ = {isa = PBXBuildFile; fileRef = 65F80697054D9F86008BF776 /* BlockExceptions.mm */; }; 636 636 93F19AE508245E59001E9ABC /* WebCoreKeyGenerator.m in Sources */ = {isa = PBXBuildFile; fileRef = 84B2B1F8056BEF3A00D2B771 /* WebCoreKeyGenerator.m */; }; 637 93F19AE608245E59001E9ABC /* KWQKSSLKeyGen.mm in Sources */ = {isa = PBXBuildFile; fileRef = 84B2B24F056BF15F00D2B771 /* KWQKSSLKeyGen.mm */; };638 93F19AF708245E59001E9ABC /* KWQEditCommand.mm in Sources */ = {isa = PBXBuildFile; fileRef = BEF7EEA105FF8F0D009717EE /* KWQEditCommand.mm */; };637 93F19AE608245E59001E9ABC /* SSLKeyGenerator.mm in Sources */ = {isa = PBXBuildFile; fileRef = 84B2B24F056BF15F00D2B771 /* SSLKeyGenerator.mm */; }; 638 93F19AF708245E59001E9ABC /* WebCoreEditCommand.mm in Sources */ = {isa = PBXBuildFile; fileRef = BEF7EEA105FF8F0D009717EE /* WebCoreEditCommand.mm */; }; 639 639 93F19AF808245E59001E9ABC /* Position.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE91FC8C06133666005E3790 /* Position.cpp */; }; 640 93F19AFA08245E59001E9ABC /* KWQSlider.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC86FB8E061F5C23006BB822 /* KWQSlider.mm */; };640 93F19AFA08245E59001E9ABC /* WebCoreSlider.mm in Sources */ = {isa = PBXBuildFile; fileRef = BC86FB8E061F5C23006BB822 /* WebCoreSlider.mm */; }; 641 641 93F19AFD08245E59001E9ABC /* HTMLCanvasElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 51F6A3D50663BF04004D2919 /* HTMLCanvasElement.cpp */; }; 642 642 93F19AFF08245E59001E9ABC /* ClipboardMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2D90660C0665D937006B6F1A /* ClipboardMac.mm */; }; … … 644 644 93F19B0408245E59001E9ABC /* XSLTProcessor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC06F24B06D18A7E004A6FA3 /* XSLTProcessor.cpp */; }; 645 645 93F19B0508245E59001E9ABC /* FormData.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 93ABCE5D06E1A42E0085925B /* FormData.cpp */; }; 646 93F19B0608245E59001E9ABC /* KWQFormData.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93B641F106E28C5C0055F610 /* KWQFormData.mm */; };646 93F19B0608245E59001E9ABC /* FormDataMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 93B641F106E28C5C0055F610 /* FormDataMac.mm */; }; 647 647 93F19B0708245E59001E9ABC /* WebCoreView.m in Sources */ = {isa = PBXBuildFile; fileRef = BE8560510701F91100239769 /* WebCoreView.m */; }; 648 648 93F19B0808245E59001E9ABC /* WebDashboardRegion.m in Sources */ = {isa = PBXBuildFile; fileRef = 5150C2A50702629800AF642C /* WebDashboardRegion.m */; }; … … 954 954 A88AD3B70952486E001DD196 /* KCanvasPathQuartz.h in Headers */ = {isa = PBXBuildFile; fileRef = A8ABC99909445EC00013945F /* KCanvasPathQuartz.h */; }; 955 955 A88AD3B80952486E001DD196 /* KCanvasPathQuartz.mm in Sources */ = {isa = PBXBuildFile; fileRef = A8ABC99A09445EC00013945F /* KCanvasPathQuartz.mm */; }; 956 A88AD3B90952486E001DD196 /* KCanvasContainer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8C0FB7A089701F800BA5114 /* KCanvasContainer.cpp */; };957 A88AD3BA0952486E001DD196 /* KCanvasContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = A8C0FB7B089701F800BA5114 /* KCanvasContainer.h */; };956 A88AD3B90952486E001DD196 /* RenderSVGContainer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8C0FB7A089701F800BA5114 /* RenderSVGContainer.cpp */; }; 957 A88AD3BA0952486E001DD196 /* RenderSVGContainer.h in Headers */ = {isa = PBXBuildFile; fileRef = A8C0FB7B089701F800BA5114 /* RenderSVGContainer.h */; }; 958 958 A88AD3BB0952486E001DD196 /* KCanvasCreator.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8C0FB7C089701F800BA5114 /* KCanvasCreator.cpp */; }; 959 959 A88AD3BC0952486E001DD196 /* KCanvasCreator.h in Headers */ = {isa = PBXBuildFile; fileRef = A8C0FB7D089701F800BA5114 /* KCanvasCreator.h */; }; … … 1379 1379 A8EA800D0A19516E00A8EF5F /* StyleSheet.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8EA80050A19516E00A8EF5F /* StyleSheet.cpp */; }; 1380 1380 A8EA800E0A19516E00A8EF5F /* MediaList.h in Headers */ = {isa = PBXBuildFile; fileRef = A8EA80060A19516E00A8EF5F /* MediaList.h */; }; 1381 A8FD8B86087CB44C00DC3707 /* KWQWMatrix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A85D7A8C0879EC64006A9172 /* KWQWMatrix.cpp */; };1382 A8FD8B87087CB45700DC3707 /* KWQWMatrix.h in Headers */ = {isa = PBXBuildFile; fileRef = A85D7A8D0879EC64006A9172 /* KWQWMatrix.h */; };1381 A8FD8B86087CB44C00DC3707 /* AffineTransform.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A85D7A8C0879EC64006A9172 /* AffineTransform.cpp */; }; 1382 A8FD8B87087CB45700DC3707 /* AffineTransform.h in Headers */ = {isa = PBXBuildFile; fileRef = A85D7A8D0879EC64006A9172 /* AffineTransform.h */; }; 1383 1383 A8FEFB0A0979F472005839FD /* RenderForeignObject.h in Headers */ = {isa = PBXBuildFile; fileRef = A8FEFB080979F472005839FD /* RenderForeignObject.h */; }; 1384 1384 A8FEFB0B0979F472005839FD /* RenderForeignObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8FEFB090979F472005839FD /* RenderForeignObject.cpp */; }; … … 1390 1390 AB23A32809BBA7D00067CC53 /* BeforeTextInsertedEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = AB23A32609BBA7D00067CC53 /* BeforeTextInsertedEvent.h */; }; 1391 1391 AB4261D80A2F6C9700BDD17D /* missingImage.tiff in Resources */ = {isa = PBXBuildFile; fileRef = AB4261D70A2F6C9700BDD17D /* missingImage.tiff */; }; 1392 AB67D1A8097F3AE300F9392E /* RenderText Field.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AB67D1A6097F3AE300F9392E /* RenderTextField.cpp */; };1393 AB67D1A9097F3AE300F9392E /* RenderText Field.h in Headers */ = {isa = PBXBuildFile; fileRef = AB67D1A7097F3AE300F9392E /* RenderTextField.h */; };1392 AB67D1A8097F3AE300F9392E /* RenderTextControl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AB67D1A6097F3AE300F9392E /* RenderTextControl.cpp */; }; 1393 AB67D1A9097F3AE300F9392E /* RenderTextControl.h in Headers */ = {isa = PBXBuildFile; fileRef = AB67D1A7097F3AE300F9392E /* RenderTextControl.h */; }; 1394 1394 ABDDFE790A5C6E7000A3E11D /* RenderMenuList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = ABDDFE730A5C6E6F00A3E11D /* RenderMenuList.cpp */; }; 1395 1395 ABDDFE7A0A5C6E7000A3E11D /* RenderMenuList.h in Headers */ = {isa = PBXBuildFile; fileRef = ABDDFE740A5C6E7000A3E11D /* RenderMenuList.h */; }; … … 1531 1531 BCEA487F097D93020094C9E4 /* RenderObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEA4840097D93020094C9E4 /* RenderObject.cpp */; }; 1532 1532 BCEA4880097D93020094C9E4 /* RenderObject.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEA4841097D93020094C9E4 /* RenderObject.h */; }; 1533 BCEA4883097D93020094C9E4 /* render_style.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEA4844097D93020094C9E4 /* render_style.cpp */; };1534 BCEA4884097D93020094C9E4 /* render_style.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEA4845097D93020094C9E4 /* render_style.h */; };1533 BCEA4883097D93020094C9E4 /* RenderStyle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCEA4844097D93020094C9E4 /* RenderStyle.cpp */; }; 1534 BCEA4884097D93020094C9E4 /* RenderStyle.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEA4845097D93020094C9E4 /* RenderStyle.h */; }; 1535 1535 BCEA4887097D93020094C9E4 /* RenderThemeMac.h in Headers */ = {isa = PBXBuildFile; fileRef = BCEA4848097D93020094C9E4 /* RenderThemeMac.h */; }; 1536 1536 BCEA4888097D93020094C9E4 /* RenderThemeMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = BCEA4849097D93020094C9E4 /* RenderThemeMac.mm */; }; … … 1824 1824 651B4D8309AC83370029F1EF /* DeprecatedStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedStringList.cpp; sourceTree = "<group>"; }; 1825 1825 651B4D8409AC83370029F1EF /* DeprecatedStringList.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DeprecatedStringList.h; sourceTree = "<group>"; }; 1826 651B4D8E09AC859F0029F1EF /* QStringListMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = QStringListMac.mm; sourceTree = "<group>"; };1826 651B4D8E09AC859F0029F1EF /* DeprecatedStringListMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DeprecatedStringListMac.mm; sourceTree = "<group>"; }; 1827 1827 6522BCDE09C9DAA800C9BA7A /* ResourceRequest.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ResourceRequest.h; sourceTree = "<group>"; }; 1828 1828 6545F66C09B82FED0013006F /* TransferJob.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = TransferJob.cpp; sourceTree = "<group>"; }; … … 1909 1909 6582A15409999D6D00BEEB6D /* ScreenMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = ScreenMac.mm; sourceTree = "<group>"; }; 1910 1910 6582A15509999D6D00BEEB6D /* SystemTimeMac.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = SystemTimeMac.cpp; sourceTree = "<group>"; }; 1911 6582A17709999EA000BEEB6D /* QStringMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = QStringMac.mm; sourceTree = "<group>"; };1911 6582A17709999EA000BEEB6D /* DeprecatedStringMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = DeprecatedStringMac.mm; sourceTree = "<group>"; }; 1912 1912 65901A4209FC6039005BD752 /* WebCoreStringTruncator.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCoreStringTruncator.h; sourceTree = "<group>"; }; 1913 1913 65901A4309FC6039005BD752 /* WebCoreStringTruncator.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreStringTruncator.mm; sourceTree = "<group>"; }; … … 1977 1977 84B2B1F7056BEF3A00D2B771 /* WebCoreKeyGenerator.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreKeyGenerator.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 1978 1978 84B2B1F8056BEF3A00D2B771 /* WebCoreKeyGenerator.m */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = WebCoreKeyGenerator.m; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 1979 84B2B24F056BF15F00D2B771 /* KWQKSSLKeyGen.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQKSSLKeyGen.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };1979 84B2B24F056BF15F00D2B771 /* SSLKeyGenerator.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SSLKeyGenerator.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 1980 1980 84C0FA24052B966D000440A1 /* eastResizeCursor.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = eastResizeCursor.tiff; sourceTree = "<group>"; }; 1981 1981 84C0FA25052B966D000440A1 /* helpCursor.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = helpCursor.tiff; sourceTree = "<group>"; }; … … 2117 2117 93309EA0099EB78C0056E581 /* SharedTimer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SharedTimer.h; sourceTree = "<group>"; }; 2118 2118 93309EA1099EB78C0056E581 /* Timer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Timer.cpp; sourceTree = "<group>"; }; 2119 93386B90037045B3008635CE /* KWQResourceLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQResourceLoader.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2120 93386B91037045B3008635CE /* KWQResourceLoader.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQResourceLoader.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2119 93386B90037045B3008635CE /* WebCoreResourceLoaderImp.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreResourceLoaderImp.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2120 93386B91037045B3008635CE /* WebCoreResourceLoaderImp.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreResourceLoaderImp.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2121 2121 9352071709BD3BA500F2038D /* StaticConstructors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StaticConstructors.h; sourceTree = "<group>"; }; 2122 2122 9352071809BD3BA500F2038D /* TextBoundaries.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextBoundaries.h; sourceTree = "<group>"; }; … … 2142 2142 935C476C09AC4D6300A6AAB4 /* FoundationExtras.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FoundationExtras.h; sourceTree = "<group>"; }; 2143 2143 935C476E09AC4D7300A6AAB4 /* KeyEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KeyEventMac.mm; sourceTree = "<group>"; }; 2144 935C476F09AC4D7300A6AAB4 /* MouseEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path =MouseEventMac.mm; sourceTree = "<group>"; };2144 935C476F09AC4D7300A6AAB4 /* PlatformMouseEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformMouseEventMac.mm; sourceTree = "<group>"; }; 2145 2145 935C477209AC4D7700A6AAB4 /* WheelEventMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WheelEventMac.mm; sourceTree = "<group>"; }; 2146 2146 935C477409AC4D8D00A6AAB4 /* GapRects.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GapRects.h; sourceTree = "<group>"; }; … … 2161 2161 938E683B09F0BD7A008A48EC /* GraphicsTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GraphicsTypes.h; sourceTree = "<group>"; }; 2162 2162 938E685309F0BE04008A48EC /* GraphicsTypes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GraphicsTypes.cpp; sourceTree = "<group>"; }; 2163 9394E0A403AA5BBE008635CE /* KWQPageState.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQPageState.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2164 9394E0A503AA5BBE008635CE /* KWQPageState.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQPageState.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2163 9394E0A403AA5BBE008635CE /* WebCorePageState.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCorePageState.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2164 9394E0A503AA5BBE008635CE /* WebCorePageState.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCorePageState.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2165 2165 93955A4103D72932008635CE /* RenderTreeAsText.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = RenderTreeAsText.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2166 2166 93955A4203D72932008635CE /* RenderTreeAsText.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTreeAsText.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 2171 2171 93ABCE5D06E1A42E0085925B /* FormData.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FormData.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2172 2172 93ABCE5E06E1A42E0085925B /* FormData.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = FormData.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2173 93B641F106E28C5C0055F610 /* KWQFormData.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQFormData.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2174 93B641F206E28C5C0055F610 /* KWQFormData.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQFormData.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2173 93B641F106E28C5C0055F610 /* FormDataMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FormDataMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2174 93B641F206E28C5C0055F610 /* FormDataMac.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = FormDataMac.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2175 2175 93B70D3F09EB0C7C009D8468 /* JSDOMParser.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMParser.cpp; sourceTree = "<group>"; }; 2176 2176 93B70D4009EB0C7C009D8468 /* JSDOMParser.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSDOMParser.h; sourceTree = "<group>"; }; … … 2210 2210 93CA4CA209DF93FA00DF8677 /* svg.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = svg.css; sourceTree = "<group>"; }; 2211 2211 93CA4CA309DF93FA00DF8677 /* tokenizer.flex */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = tokenizer.flex; sourceTree = "<group>"; }; 2212 93CCF7D4033BD43C008635CE /* KWQFileButton.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQFileButton.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2213 93CCF7D5033BD43C008635CE /* KWQFileButton.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQFileButton.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2212 93CCF7D4033BD43C008635CE /* FileButton.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = FileButton.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2213 93CCF7D5033BD43C008635CE /* FileButton.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FileButton.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2214 2214 93CD4FD70995F9EA007ECC97 /* AtomicString.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AtomicString.cpp; sourceTree = "<group>"; }; 2215 2215 93CD4FD80995F9EA007ECC97 /* AtomicString.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AtomicString.h; sourceTree = "<group>"; }; … … 2570 2570 A833C9AA0A2CF68700D57664 /* SVGZoomEvent.idl */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = SVGZoomEvent.idl; path = svg/SVGZoomEvent.idl; sourceTree = "<group>"; }; 2571 2571 A85D7A2F0879EBA9006A9172 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /System/Library/Frameworks/QuartzCore.framework; sourceTree = "<absolute>"; }; 2572 A85D7A8C0879EC64006A9172 /* KWQWMatrix.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KWQWMatrix.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2573 A85D7A8D0879EC64006A9172 /* KWQWMatrix.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQWMatrix.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2572 A85D7A8C0879EC64006A9172 /* AffineTransform.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AffineTransform.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2573 A85D7A8D0879EC64006A9172 /* AffineTransform.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = AffineTransform.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2574 2574 A86629C909DA2B47009633A5 /* JSUIEvent.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JSUIEvent.h; sourceTree = "<group>"; }; 2575 2575 A86629CA09DA2B47009633A5 /* JSUIEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSUIEvent.cpp; sourceTree = "<group>"; }; … … 2923 2923 A8C0FB76089701F800BA5114 /* QuartzSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = QuartzSupport.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2924 2924 A8C0FB77089701F800BA5114 /* QuartzSupport.mm */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = QuartzSupport.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2925 A8C0FB7A089701F800BA5114 /* KCanvasContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KCanvasContainer.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2926 A8C0FB7B089701F800BA5114 /* KCanvasContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KCanvasContainer.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };2925 A8C0FB7A089701F800BA5114 /* RenderSVGContainer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderSVGContainer.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2926 A8C0FB7B089701F800BA5114 /* RenderSVGContainer.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = RenderSVGContainer.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2927 2927 A8C0FB7C089701F800BA5114 /* KCanvasCreator.cpp */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KCanvasCreator.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 2928 2928 A8C0FB7D089701F800BA5114 /* KCanvasCreator.h */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KCanvasCreator.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 3131 3131 AB23A32609BBA7D00067CC53 /* BeforeTextInsertedEvent.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = BeforeTextInsertedEvent.h; sourceTree = "<group>"; }; 3132 3132 AB4261D70A2F6C9700BDD17D /* missingImage.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = missingImage.tiff; sourceTree = "<group>"; }; 3133 AB67D1A6097F3AE300F9392E /* RenderText Field.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTextField.cpp; sourceTree = "<group>"; };3134 AB67D1A7097F3AE300F9392E /* RenderText Field.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderTextField.h; sourceTree = "<group>"; };3133 AB67D1A6097F3AE300F9392E /* RenderTextControl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderTextControl.cpp; sourceTree = "<group>"; }; 3134 AB67D1A7097F3AE300F9392E /* RenderTextControl.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderTextControl.h; sourceTree = "<group>"; }; 3135 3135 ABDDFE730A5C6E6F00A3E11D /* RenderMenuList.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderMenuList.cpp; sourceTree = "<group>"; }; 3136 3136 ABDDFE740A5C6E7000A3E11D /* RenderMenuList.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderMenuList.h; sourceTree = "<group>"; }; … … 3186 3186 BC73E3900978CED700EDFF8A /* FloatPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = FloatPoint.cpp; sourceTree = "<group>"; }; 3187 3187 BC73E3910978CED700EDFF8A /* FloatPoint.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FloatPoint.h; sourceTree = "<group>"; }; 3188 BC7B2AF80450824100A8000F /* KWQScrollBar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQScrollBar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3189 BC7B2AF90450824100A8000F /* KWQScrollBar.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQScrollBar.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3190 BC86FB8D061F5C23006BB822 /* KWQSlider.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQSlider.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3191 BC86FB8E061F5C23006BB822 /* KWQSlider.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQSlider.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3188 BC7B2AF80450824100A8000F /* WebCoreScrollBar.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreScrollBar.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3189 BC7B2AF90450824100A8000F /* WebCoreScrollBar.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreScrollBar.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3190 BC86FB8D061F5C23006BB822 /* WebCoreSlider.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreSlider.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3191 BC86FB8E061F5C23006BB822 /* WebCoreSlider.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreSlider.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3192 3192 BC92F1DB0A40AEA300AC0746 /* DeprecatedSlider.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedSlider.cpp; sourceTree = "<group>"; }; 3193 3193 BC92F1DC0A40AEA300AC0746 /* DeprecatedSlider.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DeprecatedSlider.h; sourceTree = "<group>"; }; … … 3286 3286 BCEA4840097D93020094C9E4 /* RenderObject.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderObject.cpp; sourceTree = "<group>"; }; 3287 3287 BCEA4841097D93020094C9E4 /* RenderObject.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderObject.h; sourceTree = "<group>"; }; 3288 BCEA4844097D93020094C9E4 /* render_style.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = render_style.cpp; sourceTree = "<group>"; };3289 BCEA4845097D93020094C9E4 /* render_style.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = render_style.h; sourceTree = "<group>"; };3288 BCEA4844097D93020094C9E4 /* RenderStyle.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderStyle.cpp; sourceTree = "<group>"; }; 3289 BCEA4845097D93020094C9E4 /* RenderStyle.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderStyle.h; sourceTree = "<group>"; }; 3290 3290 BCEA4848097D93020094C9E4 /* RenderThemeMac.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderThemeMac.h; sourceTree = "<group>"; }; 3291 3291 BCEA4849097D93020094C9E4 /* RenderThemeMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = RenderThemeMac.mm; sourceTree = "<group>"; }; … … 3320 3320 BE91FC8C06133666005E3790 /* Position.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Position.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3321 3321 BE983D95052A2E0A00892D85 /* WebCoreKeyboardAccess.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreKeyboardAccess.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3322 BEF7EEA005FF8F0D009717EE /* KWQEditCommand.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQEditCommand.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3323 BEF7EEA105FF8F0D009717EE /* KWQEditCommand.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQEditCommand.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3322 BEF7EEA005FF8F0D009717EE /* WebCoreEditCommand.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreEditCommand.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3323 BEF7EEA105FF8F0D009717EE /* WebCoreEditCommand.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreEditCommand.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3324 3324 C6D74AD309AA282E000B0A52 /* ModifySelectionListLevel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ModifySelectionListLevel.h; sourceTree = "<group>"; }; 3325 3325 C6D74AE309AA290A000B0A52 /* ModifySelectionListLevel.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ModifySelectionListLevel.cpp; sourceTree = "<group>"; }; … … 3354 3354 F523D30302DE4476018635CA /* Range.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Range.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3355 3355 F523D30402DE4476018635CA /* Range.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Range.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3356 F523D30902DE4476018635CA /* xml_tokenizer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xml_tokenizer.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3357 F523D30A02DE4476018635CA /* xml_tokenizer.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = xml_tokenizer.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3356 F523D30902DE4476018635CA /* XMLTokenizer.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = XMLTokenizer.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3357 F523D30A02DE4476018635CA /* XMLTokenizer.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = XMLTokenizer.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3358 3358 F5517DC2031AB56301A80180 /* WebCoreHistory.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = WebCoreHistory.h; sourceTree = "<group>"; }; 3359 3359 F5517DC3031AB56301A80180 /* WebCoreHistory.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = WebCoreHistory.m; sourceTree = "<group>"; }; … … 3362 3362 F565AE8502ECA583018635CA /* WebCoreSettings.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreSettings.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3363 3363 F565AE8602ECA583018635CA /* WebCoreSettings.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreSettings.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3364 F58784D202DE375901EA4122 /* KWQComboBox.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQComboBox.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3365 F58784D502DE375901EA4122 /* KWQCString.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KWQCString.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3364 F58784D202DE375901EA4122 /* PopUpButton.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PopUpButton.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3365 F58784D502DE375901EA4122 /* DeprecatedCString.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedCString.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3366 3366 F58784F002DE375901EA4122 /* CursorMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = CursorMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3367 3367 F58784FF02DE375901EA4122 /* JavaAppletWidget.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = JavaAppletWidget.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3368 F587850302DE375901EA4122 /* KWQLoader.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQLoader.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3369 F587851202DE375901EA4122 /* KWQLineEdit.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQLineEdit.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3370 F587851302DE375901EA4122 /* KWQListBox.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQListBox.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3371 F587851402DE375901EA4122 /* KWQListBox.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQListBox.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3368 F587850302DE375901EA4122 /* LoaderFunctions.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = LoaderFunctions.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3369 F587851202DE375901EA4122 /* TextField.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextField.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3370 F587851302DE375901EA4122 /* ListBox.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = ListBox.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3371 F587851402DE375901EA4122 /* ListBox.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ListBox.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3372 3372 F587851502DE375901EA4122 /* DeprecatedPtrListImpl.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedPtrListImpl.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3373 3373 F587851602DE375901EA4122 /* DeprecatedPtrListImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedPtrListImpl.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3374 F587851702DE375901EA4122 /* KWQLoader.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQLoader.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3374 F587851702DE375901EA4122 /* LoaderFunctions.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = LoaderFunctions.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3375 3375 F587851B02DE375901EA4122 /* WebCoreTextField.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreTextField.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3376 3376 F587851C02DE375901EA4122 /* WebCoreTextField.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreTextField.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 3378 3378 F587853502DE375901EA4122 /* WebCoreTextArea.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreTextArea.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3379 3379 F587853602DE375901EA4122 /* WebCoreTextArea.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreTextArea.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3380 F587853802DE375901EA4122 /* KWQTextEdit.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQTextEdit.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3381 F587853902DE375901EA4122 /* KWQTextStream.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = KWQTextStream.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3380 F587853802DE375901EA4122 /* TextBox.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = TextBox.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3381 F587853902DE375901EA4122 /* TextStream.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TextStream.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3382 3382 F587853B02DE375901EA4122 /* DeprecatedValueListImpl.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedValueListImpl.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3383 3383 F587853C02DE375901EA4122 /* DeprecatedValueListImpl.cpp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DeprecatedValueListImpl.cpp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 3386 3386 F587855402DE375901EA4122 /* WebCoreViewFactory.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreViewFactory.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3387 3387 F587855502DE375901EA4122 /* WebCoreViewFactory.m */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = WebCoreViewFactory.m; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3388 F587863A02DE3A1401EA4122 /* KWQKHTMLSettings.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQKHTMLSettings.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3388 F587863A02DE3A1401EA4122 /* Settings.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Settings.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3389 3389 F587864502DE3A7701EA4122 /* JavaAppletWidget.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = JavaAppletWidget.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3390 F587864902DE3A9A01EA4122 /* KWQKIOGlobal.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQKIOGlobal.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3391 F587866202DE3B1101EA4122 /* KWQKSSLKeyGen.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQKSSLKeyGen.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3392 F587868202DE3B8601EA4122 /* KWQComboBox.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQComboBox.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3393 F587868302DE3B8601EA4122 /* KWQCString.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQCString.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3390 F587864902DE3A9A01EA4122 /* CacheControl.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = CacheControl.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3391 F587866202DE3B1101EA4122 /* SSLKeyGenerator.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = SSLKeyGenerator.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3392 F587868202DE3B8601EA4122 /* PopUpButton.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = PopUpButton.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3393 F587868302DE3B8601EA4122 /* DeprecatedCString.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedCString.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3394 3394 F587868402DE3B8601EA4122 /* Cursor.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = Cursor.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3395 F587869802DE3B8601EA4122 /* KWQLineEdit.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQLineEdit.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3395 F587869802DE3B8601EA4122 /* TextField.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = TextField.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3396 3396 F587869902DE3B8601EA4122 /* DeprecatedPtrList.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedPtrList.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3397 F58786AD02DE3B8601EA4122 /* KWQPtrQueue.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQPtrQueue.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3397 F58786AD02DE3B8601EA4122 /* DeprecatedPtrQueue.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedPtrQueue.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3398 3398 F58786B302DE3B8601EA4122 /* RegularExpression.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = RegularExpression.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3399 F58786BE02DE3B8601EA4122 /* KWQTextEdit.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQTextEdit.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3400 F58786BF02DE3B8601EA4122 /* KWQTextStream.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = KWQTextStream.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; };3399 F58786BE02DE3B8601EA4122 /* TextBox.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = TextBox.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3400 F58786BF02DE3B8601EA4122 /* TextStream.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = TextStream.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3401 3401 F58786C202DE3B8601EA4122 /* DeprecatedValueList.h */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.c.h; path = DeprecatedValueList.h; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 3402 3402 F58EF58E02DFDFB7018635CA /* WebCore.exp */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.exports; path = WebCore.exp; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; … … 3855 3855 935207BF09BD412000F2038D /* LocalizedStringsMac.mm */, 3856 3856 65F5382409B2B57500F3DC4A /* mac-encodings.txt */, 3857 935C476F09AC4D7300A6AAB4 /* MouseEventMac.mm */,3857 935C476F09AC4D7300A6AAB4 /* PlatformMouseEventMac.mm */, 3858 3858 6582A15209999D6D00BEEB6D /* PDFDocumentImage.h */, 3859 3859 6582A15309999D6D00BEEB6D /* PDFDocumentImage.mm */, 3860 3860 A82398A709B3ACF500B60641 /* PlugInInfoStoreMac.mm */, 3861 651B4D8E09AC859F0029F1EF /* QStringListMac.mm */,3862 6582A17709999EA000BEEB6D /* QStringMac.mm */,3861 651B4D8E09AC859F0029F1EF /* DeprecatedStringListMac.mm */, 3862 6582A17709999EA000BEEB6D /* DeprecatedStringMac.mm */, 3863 3863 6582A15409999D6D00BEEB6D /* ScreenMac.mm */, 3864 3864 9353676A09AED88B00D35CD6 /* ScrollViewMac.mm */, … … 4785 4785 children = ( 4786 4786 A8C0FB53089701F700BA5114 /* device */, 4787 A8C0FB7A089701F800BA5114 /* KCanvasContainer.cpp */,4788 A8C0FB7B089701F800BA5114 /* KCanvasContainer.h */,4787 A8C0FB7A089701F800BA5114 /* RenderSVGContainer.cpp */, 4788 A8C0FB7B089701F800BA5114 /* RenderSVGContainer.h */, 4789 4789 A8C0FB7C089701F800BA5114 /* KCanvasCreator.cpp */, 4790 4790 A8C0FB7D089701F800BA5114 /* KCanvasCreator.h */, … … 5172 5172 isa = PBXGroup; 5173 5173 children = ( 5174 BEF7EEA005FF8F0D009717EE /* KWQEditCommand.h */,5175 BEF7EEA105FF8F0D009717EE /* KWQEditCommand.mm */,5176 93CCF7D4033BD43C008635CE /* KWQFileButton.h */,5177 93CCF7D5033BD43C008635CE /* KWQFileButton.mm */,5178 93B641F206E28C5C0055F610 /* KWQFormData.h */,5179 93B641F106E28C5C0055F610 /* KWQFormData.mm */,5180 F587851702DE375901EA4122 /* KWQLoader.h */,5181 F587850302DE375901EA4122 /* KWQLoader.mm */,5182 9394E0A403AA5BBE008635CE /* KWQPageState.h */,5183 9394E0A503AA5BBE008635CE /* KWQPageState.mm */,5184 93386B90037045B3008635CE /* KWQResourceLoader.h */,5185 93386B91037045B3008635CE /* KWQResourceLoader.mm */,5186 BC7B2AF80450824100A8000F /* KWQScrollBar.h */,5187 BC7B2AF90450824100A8000F /* KWQScrollBar.mm */,5174 BEF7EEA005FF8F0D009717EE /* WebCoreEditCommand.h */, 5175 BEF7EEA105FF8F0D009717EE /* WebCoreEditCommand.mm */, 5176 93CCF7D4033BD43C008635CE /* FileButton.h */, 5177 93CCF7D5033BD43C008635CE /* FileButton.mm */, 5178 93B641F206E28C5C0055F610 /* FormDataMac.h */, 5179 93B641F106E28C5C0055F610 /* FormDataMac.mm */, 5180 F587851702DE375901EA4122 /* LoaderFunctions.h */, 5181 F587850302DE375901EA4122 /* LoaderFunctions.mm */, 5182 9394E0A403AA5BBE008635CE /* WebCorePageState.h */, 5183 9394E0A503AA5BBE008635CE /* WebCorePageState.mm */, 5184 93386B90037045B3008635CE /* WebCoreResourceLoaderImp.h */, 5185 93386B91037045B3008635CE /* WebCoreResourceLoaderImp.mm */, 5186 BC7B2AF80450824100A8000F /* WebCoreScrollBar.h */, 5187 BC7B2AF90450824100A8000F /* WebCoreScrollBar.mm */, 5188 5188 ); 5189 5189 name = other; … … 5329 5329 A8EA7A4D0A191A5200A8EF5F /* ListMarkerBox.cpp */, 5330 5330 A8EA7A490A191A5200A8EF5F /* ListMarkerBox.h */, 5331 BCEA4844097D93020094C9E4 /* render_style.cpp */,5332 BCEA4845097D93020094C9E4 /* render_style.h */,5331 BCEA4844097D93020094C9E4 /* RenderStyle.cpp */, 5332 BCEA4845097D93020094C9E4 /* RenderStyle.h */, 5333 5333 BCEA481C097D93020094C9E4 /* RenderApplet.cpp */, 5334 5334 BCEA481D097D93020094C9E4 /* RenderApplet.h */, … … 5403 5403 A8EA73B40A1900E300A8EF5F /* RenderTextArea.cpp */, 5404 5404 A8EA73BA0A1900E300A8EF5F /* RenderTextArea.h */, 5405 AB67D1A6097F3AE300F9392E /* RenderText Field.cpp */,5406 AB67D1A7097F3AE300F9392E /* RenderText Field.h */,5405 AB67D1A6097F3AE300F9392E /* RenderTextControl.cpp */, 5406 AB67D1A7097F3AE300F9392E /* RenderTextControl.h */, 5407 5407 BCEA484E097D93020094C9E4 /* RenderTextFragment.cpp */, 5408 5408 BCEA484F097D93020094C9E4 /* RenderTextFragment.h */, … … 5551 5551 85031B3B0A44EFC700F992E0 /* WheelEvent.h */, 5552 5552 93EEC1F709C2877700C515D1 /* WheelEvent.idl */, 5553 F523D30902DE4476018635CA /* xml_tokenizer.cpp */,5554 F523D30A02DE4476018635CA /* xml_tokenizer.h */,5553 F523D30902DE4476018635CA /* XMLTokenizer.cpp */, 5554 F523D30A02DE4476018635CA /* XMLTokenizer.h */, 5555 5555 ); 5556 5556 path = dom; … … 5572 5572 isa = PBXGroup; 5573 5573 children = ( 5574 F587863A02DE3A1401EA4122 /* KWQKHTMLSettings.h */,5574 F587863A02DE3A1401EA4122 /* Settings.h */, 5575 5575 ); 5576 5576 name = khtml; … … 5580 5580 isa = PBXGroup; 5581 5581 children = ( 5582 F587864902DE3A9A01EA4122 /* KWQKIOGlobal.h */,5583 F587866202DE3B1101EA4122 /* KWQKSSLKeyGen.h */,5584 84B2B24F056BF15F00D2B771 /* KWQKSSLKeyGen.mm */,5582 F587864902DE3A9A01EA4122 /* CacheControl.h */, 5583 F587866202DE3B1101EA4122 /* SSLKeyGenerator.h */, 5584 84B2B24F056BF15F00D2B771 /* SSLKeyGenerator.mm */, 5585 5585 ); 5586 5586 name = kio; … … 5590 5590 isa = PBXGroup; 5591 5591 children = ( 5592 F587868202DE3B8601EA4122 /* KWQComboBox.h */,5593 F58784D202DE375901EA4122 /* KWQComboBox.mm */,5594 F58784D502DE375901EA4122 /* KWQCString.cpp */,5595 F587868302DE3B8601EA4122 /* KWQCString.h */,5596 F587869802DE3B8601EA4122 /* KWQLineEdit.h */,5597 F587851202DE375901EA4122 /* KWQLineEdit.mm */,5598 F587851302DE375901EA4122 /* KWQListBox.h */,5599 F587851402DE375901EA4122 /* KWQListBox.mm */,5600 F58786AD02DE3B8601EA4122 /* KWQPtrQueue.h */,5601 BC86FB8D061F5C23006BB822 /* KWQSlider.h */,5602 BC86FB8E061F5C23006BB822 /* KWQSlider.mm */,5603 F58786BE02DE3B8601EA4122 /* KWQTextEdit.h */,5604 F587853802DE375901EA4122 /* KWQTextEdit.mm */,5605 F587853902DE375901EA4122 /* KWQTextStream.cpp */,5606 F58786BF02DE3B8601EA4122 /* KWQTextStream.h */,5607 A85D7A8C0879EC64006A9172 /* KWQWMatrix.cpp */,5608 A85D7A8D0879EC64006A9172 /* KWQWMatrix.h */,5592 F587868202DE3B8601EA4122 /* PopUpButton.h */, 5593 F58784D202DE375901EA4122 /* PopUpButton.mm */, 5594 F58784D502DE375901EA4122 /* DeprecatedCString.cpp */, 5595 F587868302DE3B8601EA4122 /* DeprecatedCString.h */, 5596 F587869802DE3B8601EA4122 /* TextField.h */, 5597 F587851202DE375901EA4122 /* TextField.mm */, 5598 F587851302DE375901EA4122 /* ListBox.h */, 5599 F587851402DE375901EA4122 /* ListBox.mm */, 5600 F58786AD02DE3B8601EA4122 /* DeprecatedPtrQueue.h */, 5601 BC86FB8D061F5C23006BB822 /* WebCoreSlider.h */, 5602 BC86FB8E061F5C23006BB822 /* WebCoreSlider.mm */, 5603 F58786BE02DE3B8601EA4122 /* TextBox.h */, 5604 F587853802DE375901EA4122 /* TextBox.mm */, 5605 F587853902DE375901EA4122 /* TextStream.cpp */, 5606 F58786BF02DE3B8601EA4122 /* TextStream.h */, 5607 A85D7A8C0879EC64006A9172 /* AffineTransform.cpp */, 5608 A85D7A8D0879EC64006A9172 /* AffineTransform.h */, 5609 5609 ); 5610 5610 name = qt; … … 5624 5624 93F198F608245E59001E9ABC /* Decoder.h in Headers */, 5625 5625 93F1991808245E59001E9ABC /* Range.h in Headers */, 5626 93F1992108245E59001E9ABC /* xml_tokenizer.h in Headers */,5627 93F1992908245E59001E9ABC /* KWQCString.h in Headers */,5628 93F1992E08245E59001E9ABC /* KWQComboBox.h in Headers */,5626 93F1992108245E59001E9ABC /* XMLTokenizer.h in Headers */, 5627 93F1992908245E59001E9ABC /* DeprecatedCString.h in Headers */, 5628 93F1992E08245E59001E9ABC /* PopUpButton.h in Headers */, 5629 5629 93F1992F08245E59001E9ABC /* Cursor.h in Headers */, 5630 93F1993908245E59001E9ABC /* KWQFileButton.h in Headers */,5631 93F1994F08245E59001E9ABC /* KWQKHTMLSettings.h in Headers */,5632 93F1995008245E59001E9ABC /* KWQKIOGlobal.h in Headers */,5630 93F1993908245E59001E9ABC /* FileButton.h in Headers */, 5631 93F1994F08245E59001E9ABC /* Settings.h in Headers */, 5632 93F1995008245E59001E9ABC /* CacheControl.h in Headers */, 5633 5633 93F1995408245E59001E9ABC /* JavaAppletWidget.h in Headers */, 5634 93F1996308245E59001E9ABC /* KWQKSSLKeyGen.h in Headers */,5635 93F1996B08245E59001E9ABC /* KWQLineEdit.h in Headers */,5636 93F1996C08245E59001E9ABC /* KWQListBox.h in Headers */,5634 93F1996308245E59001E9ABC /* SSLKeyGenerator.h in Headers */, 5635 93F1996B08245E59001E9ABC /* TextField.h in Headers */, 5636 93F1996C08245E59001E9ABC /* ListBox.h in Headers */, 5637 5637 93F1996D08245E59001E9ABC /* DeprecatedPtrListImpl.h in Headers */, 5638 93F1996E08245E59001E9ABC /* KWQLoader.h in Headers */,5639 93F1997708245E59001E9ABC /* KWQPageState.h in Headers */,5638 93F1996E08245E59001E9ABC /* LoaderFunctions.h in Headers */, 5639 93F1997708245E59001E9ABC /* WebCorePageState.h in Headers */, 5640 5640 93F1998208245E59001E9ABC /* DeprecatedPtrList.h in Headers */, 5641 93F1998308245E59001E9ABC /* KWQPtrQueue.h in Headers */,5641 93F1998308245E59001E9ABC /* DeprecatedPtrQueue.h in Headers */, 5642 5642 93F1998A08245E59001E9ABC /* RegularExpression.h in Headers */, 5643 5643 93F1998C08245E59001E9ABC /* RenderTreeAsText.h in Headers */, 5644 93F1998D08245E59001E9ABC /* KWQResourceLoader.h in Headers */,5644 93F1998D08245E59001E9ABC /* WebCoreResourceLoaderImp.h in Headers */, 5645 5645 93F1999708245E59001E9ABC /* WebCoreTextArea.h in Headers */, 5646 93F1999908245E59001E9ABC /* KWQTextEdit.h in Headers */,5646 93F1999908245E59001E9ABC /* TextBox.h in Headers */, 5647 5647 93F1999A08245E59001E9ABC /* WebCoreTextField.h in Headers */, 5648 93F1999B08245E59001E9ABC /* KWQTextStream.h in Headers */,5648 93F1999B08245E59001E9ABC /* TextStream.h in Headers */, 5649 5649 93F1999D08245E59001E9ABC /* DeprecatedValueList.h in Headers */, 5650 5650 93F1999E08245E59001E9ABC /* DeprecatedValueListImpl.h in Headers */, … … 5657 5657 93F199AF08245E59001E9ABC /* WebCoreSettings.h in Headers */, 5658 5658 93F199B308245E59001E9ABC /* WebCoreViewFactory.h in Headers */, 5659 93F199B808245E59001E9ABC /* KWQScrollBar.h in Headers */,5659 93F199B808245E59001E9ABC /* WebCoreScrollBar.h in Headers */, 5660 5660 93F199BB08245E59001E9ABC /* WebCoreKeyboardAccess.h in Headers */, 5661 5661 93F199BC08245E59001E9ABC /* WebCoreAXObject.h in Headers */, … … 5664 5664 93F199C208245E59001E9ABC /* WebCoreKeyGenerator.h in Headers */, 5665 5665 93F199CF08245E59001E9ABC /* AtomicStringList.h in Headers */, 5666 93F199D508245E59001E9ABC /* KWQEditCommand.h in Headers */,5666 93F199D508245E59001E9ABC /* WebCoreEditCommand.h in Headers */, 5667 5667 93F199DE08245E59001E9ABC /* Position.h in Headers */, 5668 93F199E008245E59001E9ABC /* KWQSlider.h in Headers */,5668 93F199E008245E59001E9ABC /* WebCoreSlider.h in Headers */, 5669 5669 93F199E508245E59001E9ABC /* HTMLCanvasElement.h in Headers */, 5670 5670 93F199E708245E59001E9ABC /* ClipboardMac.h in Headers */, … … 5672 5672 93F199ED08245E59001E9ABC /* XSLTProcessor.h in Headers */, 5673 5673 93F199EE08245E59001E9ABC /* FormData.h in Headers */, 5674 93F199EF08245E59001E9ABC /* KWQFormData.h in Headers */,5674 93F199EF08245E59001E9ABC /* FormDataMac.h in Headers */, 5675 5675 93F199F008245E59001E9ABC /* WebCoreView.h in Headers */, 5676 5676 93F199F108245E59001E9ABC /* WebDashboardRegion.h in Headers */, 5677 5677 550A0BCA085F6039007353D6 /* QualifiedName.h in Headers */, 5678 5678 BCEF3435087B563E00BBF833 /* HTMLElementFactory.h in Headers */, 5679 A8FD8B87087CB45700DC3707 /* KWQWMatrix.h in Headers */,5679 A8FD8B87087CB45700DC3707 /* AffineTransform.h in Headers */, 5680 5680 7E6FEED80898582300C44C3F /* WebCoreScriptDebugger.h in Headers */, 5681 5681 939885C408B7E3D100E707C4 /* EventNames.h in Headers */, … … 5703 5703 A88AD3B50952486E001DD196 /* QuartzSupport.h in Headers */, 5704 5704 A88AD3B70952486E001DD196 /* KCanvasPathQuartz.h in Headers */, 5705 A88AD3BA0952486E001DD196 /* KCanvasContainer.h in Headers */,5705 A88AD3BA0952486E001DD196 /* RenderSVGContainer.h in Headers */, 5706 5706 A88AD3BC0952486E001DD196 /* KCanvasCreator.h in Headers */, 5707 5707 A88AD3BE0952486E001DD196 /* KCanvasFilters.h in Headers */, … … 5952 5952 BCEA487A097D93020094C9E4 /* RenderLayer.h in Headers */, 5953 5953 BCEA4880097D93020094C9E4 /* RenderObject.h in Headers */, 5954 BCEA4884097D93020094C9E4 /* render_style.h in Headers */,5954 BCEA4884097D93020094C9E4 /* RenderStyle.h in Headers */, 5955 5955 BCEA4887097D93020094C9E4 /* RenderThemeMac.h in Headers */, 5956 5956 BCEA488A097D93020094C9E4 /* RenderTheme.h in Headers */, … … 5959 5959 BCEA4944097F0F5C0094C9E4 /* BrowserExtension.h in Headers */, 5960 5960 BCEA4947097F0F770094C9E4 /* BrowserExtensionMac.h in Headers */, 5961 AB67D1A9097F3AE300F9392E /* RenderText Field.h in Headers */,5961 AB67D1A9097F3AE300F9392E /* RenderTextControl.h in Headers */, 5962 5962 A8DF3FCE097FA0FC0052981B /* HTMLFormCollection.h in Headers */, 5963 5963 A8DF3FD0097FA0FC0052981B /* HTMLCollection.h in Headers */, … … 6540 6540 buildActionMask = 2147483647; 6541 6541 files = ( 6542 93F19A1708245E59001E9ABC /* KWQComboBox.mm in Sources */,6543 93F19A1808245E59001E9ABC /* KWQCString.cpp in Sources */,6542 93F19A1708245E59001E9ABC /* PopUpButton.mm in Sources */, 6543 93F19A1808245E59001E9ABC /* DeprecatedCString.cpp in Sources */, 6544 6544 93F19A2608245E59001E9ABC /* CursorMac.mm in Sources */, 6545 6545 93F19A2E08245E59001E9ABC /* JavaAppletWidget.mm in Sources */, 6546 93F19A3108245E59001E9ABC /* KWQLoader.mm in Sources */,6547 93F19A3A08245E59001E9ABC /* KWQLineEdit.mm in Sources */,6548 93F19A3B08245E59001E9ABC /* KWQListBox.mm in Sources */,6546 93F19A3108245E59001E9ABC /* LoaderFunctions.mm in Sources */, 6547 93F19A3A08245E59001E9ABC /* TextField.mm in Sources */, 6548 93F19A3B08245E59001E9ABC /* ListBox.mm in Sources */, 6549 6549 93F19A3C08245E59001E9ABC /* DeprecatedPtrListImpl.cpp in Sources */, 6550 6550 93F19A3F08245E59001E9ABC /* WebCoreTextField.mm in Sources */, 6551 6551 93F19A4A08245E59001E9ABC /* RegularExpression.cpp in Sources */, 6552 6552 93F19A5108245E59001E9ABC /* WebCoreTextArea.mm in Sources */, 6553 93F19A5308245E59001E9ABC /* KWQTextEdit.mm in Sources */,6554 93F19A5408245E59001E9ABC /* KWQTextStream.cpp in Sources */,6553 93F19A5308245E59001E9ABC /* TextBox.mm in Sources */, 6554 93F19A5408245E59001E9ABC /* TextStream.cpp in Sources */, 6555 6555 93F19A5608245E59001E9ABC /* DeprecatedValueListImpl.cpp in Sources */, 6556 6556 93F19A5F08245E59001E9ABC /* WebCoreViewFactory.m in Sources */, … … 6561 6561 93F19A9D08245E59001E9ABC /* Decoder.cpp in Sources */, 6562 6562 93F19AB908245E59001E9ABC /* Range.cpp in Sources */, 6563 93F19ABC08245E59001E9ABC /* xml_tokenizer.cpp in Sources */,6563 93F19ABC08245E59001E9ABC /* XMLTokenizer.cpp in Sources */, 6564 6564 93F19ABE08245E59001E9ABC /* WebCoreCache.mm in Sources */, 6565 6565 93F19ABF08245E59001E9ABC /* WebCoreJavaScript.mm in Sources */, … … 6567 6567 93F19AC608245E59001E9ABC /* WebCoreEncodings.mm in Sources */, 6568 6568 93F19AC808245E59001E9ABC /* WebCoreHistory.m in Sources */, 6569 93F19ACC08245E59001E9ABC /* KWQFileButton.mm in Sources */,6570 93F19ACD08245E59001E9ABC /* KWQResourceLoader.mm in Sources */,6571 93F19AD208245E59001E9ABC /* KWQPageState.mm in Sources */,6569 93F19ACC08245E59001E9ABC /* FileButton.mm in Sources */, 6570 93F19ACD08245E59001E9ABC /* WebCoreResourceLoaderImp.mm in Sources */, 6571 93F19AD208245E59001E9ABC /* WebCorePageState.mm in Sources */, 6572 6572 93F19AD508245E59001E9ABC /* RenderTreeAsText.cpp in Sources */, 6573 93F19ADC08245E59001E9ABC /* KWQScrollBar.mm in Sources */,6573 93F19ADC08245E59001E9ABC /* WebCoreScrollBar.mm in Sources */, 6574 6574 93F19ADF08245E59001E9ABC /* WebCoreAXObject.mm in Sources */, 6575 6575 93F19AE008245E59001E9ABC /* AccessibilityObjectCache.mm in Sources */, 6576 6576 93F19AE108245E59001E9ABC /* BlockExceptions.mm in Sources */, 6577 6577 93F19AE508245E59001E9ABC /* WebCoreKeyGenerator.m in Sources */, 6578 93F19AE608245E59001E9ABC /* KWQKSSLKeyGen.mm in Sources */,6579 93F19AF708245E59001E9ABC /* KWQEditCommand.mm in Sources */,6578 93F19AE608245E59001E9ABC /* SSLKeyGenerator.mm in Sources */, 6579 93F19AF708245E59001E9ABC /* WebCoreEditCommand.mm in Sources */, 6580 6580 93F19AF808245E59001E9ABC /* Position.cpp in Sources */, 6581 93F19AFA08245E59001E9ABC /* KWQSlider.mm in Sources */,6581 93F19AFA08245E59001E9ABC /* WebCoreSlider.mm in Sources */, 6582 6582 93F19AFD08245E59001E9ABC /* HTMLCanvasElement.cpp in Sources */, 6583 6583 93F19AFF08245E59001E9ABC /* ClipboardMac.mm in Sources */, … … 6585 6585 93F19B0408245E59001E9ABC /* XSLTProcessor.cpp in Sources */, 6586 6586 93F19B0508245E59001E9ABC /* FormData.cpp in Sources */, 6587 93F19B0608245E59001E9ABC /* KWQFormData.mm in Sources */,6587 93F19B0608245E59001E9ABC /* FormDataMac.mm in Sources */, 6588 6588 93F19B0708245E59001E9ABC /* WebCoreView.m in Sources */, 6589 6589 93F19B0808245E59001E9ABC /* WebDashboardRegion.m in Sources */, 6590 6590 550A0BC9085F6039007353D6 /* QualifiedName.cpp in Sources */, 6591 6591 BCEF3434087B563E00BBF833 /* HTMLElementFactory.cpp in Sources */, 6592 A8FD8B86087CB44C00DC3707 /* KWQWMatrix.cpp in Sources */,6592 A8FD8B86087CB44C00DC3707 /* AffineTransform.cpp in Sources */, 6593 6593 7E6FEED90898582300C44C3F /* WebCoreScriptDebugger.mm in Sources */, 6594 6594 939885C308B7E3D100E707C4 /* EventNames.cpp in Sources */, … … 6615 6615 A88AD3B60952486E001DD196 /* QuartzSupport.mm in Sources */, 6616 6616 A88AD3B80952486E001DD196 /* KCanvasPathQuartz.mm in Sources */, 6617 A88AD3B90952486E001DD196 /* KCanvasContainer.cpp in Sources */,6617 A88AD3B90952486E001DD196 /* RenderSVGContainer.cpp in Sources */, 6618 6618 A88AD3BB0952486E001DD196 /* KCanvasCreator.cpp in Sources */, 6619 6619 A88AD3BD0952486E001DD196 /* KCanvasFilters.cpp in Sources */, … … 6840 6840 BCEA4879097D93020094C9E4 /* RenderLayer.cpp in Sources */, 6841 6841 BCEA487F097D93020094C9E4 /* RenderObject.cpp in Sources */, 6842 BCEA4883097D93020094C9E4 /* render_style.cpp in Sources */,6842 BCEA4883097D93020094C9E4 /* RenderStyle.cpp in Sources */, 6843 6843 BCEA4888097D93020094C9E4 /* RenderThemeMac.mm in Sources */, 6844 6844 BCEA4889097D93020094C9E4 /* RenderTheme.cpp in Sources */, … … 6847 6847 65FEA86909833ADE00BED4AB /* Page.cpp in Sources */, 6848 6848 BCEA4948097F0F770094C9E4 /* BrowserExtensionMac.mm in Sources */, 6849 AB67D1A8097F3AE300F9392E /* RenderText Field.cpp in Sources */,6849 AB67D1A8097F3AE300F9392E /* RenderTextControl.cpp in Sources */, 6850 6850 A8DF3FCF097FA0FC0052981B /* HTMLFormCollection.cpp in Sources */, 6851 6851 A8DF3FD1097FA0FC0052981B /* HTMLCollection.cpp in Sources */, … … 6880 6880 6582A16209999D6D00BEEB6D /* ScreenMac.mm in Sources */, 6881 6881 6582A16309999D6D00BEEB6D /* SystemTimeMac.cpp in Sources */, 6882 6582A17809999EA000BEEB6D /* QStringMac.mm in Sources */,6882 6582A17809999EA000BEEB6D /* DeprecatedStringMac.mm in Sources */, 6883 6883 A7638A8C09958EA50007E14F /* WKDisplacementMapFilter.m in Sources */, 6884 6884 A7638A980995965D0007E14F /* SVGFEDisplacementMapElement.cpp in Sources */, … … 6933 6933 935C475F09AC4CAE00A6AAB4 /* HistoryMac.mm in Sources */, 6934 6934 935C477009AC4D7300A6AAB4 /* KeyEventMac.mm in Sources */, 6935 935C477109AC4D7300A6AAB4 /* MouseEventMac.mm in Sources */,6935 935C477109AC4D7300A6AAB4 /* PlatformMouseEventMac.mm in Sources */, 6936 6936 935C477309AC4D7700A6AAB4 /* WheelEventMac.mm in Sources */, 6937 6937 651B4D8509AC83370029F1EF /* DeprecatedStringList.cpp in Sources */, 6938 651B4D8F09AC859F0029F1EF /* QStringListMac.mm in Sources */,6938 651B4D8F09AC859F0029F1EF /* DeprecatedStringListMac.mm in Sources */, 6939 6939 93032CC809AEC34300F82A18 /* PathCG.cpp in Sources */, 6940 6940 6593923709AE4346002C531F /* KURL.cpp in Sources */, -
trunk/WebCore/WebCoreSources.bkl
r15154 r15253 3 3 <set append="1" var="WEBCORE_SOURCES_KWQ"> 4 4 5 kwq/ KWQCString.cpp6 kwq/ KWQTextStream.cpp5 kwq/DeprecatedCString.cpp 6 kwq/TextStream.cpp 7 7 </set> 8 8 <set append="1" var="WEBCORE_SOURCES_DERIVEDSOURCES"> … … 418 418 rendering/InlineTextBox.cpp 419 419 rendering/ListMarkerBox.cpp 420 rendering/ render_style.cpp420 rendering/RenderStyle.cpp 421 421 rendering/RenderApplet.cpp 422 422 rendering/RenderArena.cpp … … 456 456 rendering/RenderText.cpp 457 457 rendering/RenderTextArea.cpp 458 rendering/RenderText Field.cpp458 rendering/RenderTextControl.cpp 459 459 rendering/RenderTextFragment.cpp 460 460 rendering/RenderTheme.cpp … … 544 544 dom/UIEvent.cpp 545 545 dom/WheelEvent.cpp 546 dom/ xml_tokenizer.cpp546 dom/XMLTokenizer.cpp 547 547 548 548 </set> -
trunk/WebCore/bindings/js/kjs_dom.cpp
r14916 r15253 52 52 #include "JSRange.h" 53 53 #include "JSText.h" 54 #include " KWQKHTMLSettings.h"54 #include "Settings.h" 55 55 #include "NamedNodeMap.h" 56 56 #include "Notation.h" -
trunk/WebCore/bindings/js/kjs_window.cpp
r15239 r15253 44 44 #include "JSXMLHttpRequest.h" 45 45 #include "JSXMLSerializer.h" 46 #include " KWQKHTMLSettings.h"46 #include "Settings.h" 47 47 #include "Logging.h" 48 48 #include "Page.h" -
trunk/WebCore/bindings/objc/DOMHTML.mm
r15190 r15253 86 86 #import "NameNodeList.h" 87 87 #import "markup.h" 88 #import "RenderText Field.h"88 #import "RenderTextControl.h" 89 89 #import "FrameView.h" 90 90 -
trunk/WebCore/bridge/mac/FrameMac.h
r15206 r15253 53 53 typedef DOMElement ObjCDOMElement; 54 54 55 @class KWQPageState;55 @class WebCorePageState; 56 56 @class NSArray; 57 57 @class NSAttributedString; … … 74 74 class ObjCDOMElement; 75 75 76 class KWQPageState;76 class WebCorePageState; 77 77 class NSArray; 78 78 class NSAttributedString; … … 105 105 struct DashboardRegionValue; 106 106 107 enum KWQSelectionDirection {108 KWQSelectingNext,109 KWQSelectingPrevious107 enum SelectionDirection { 108 SelectingNext, 109 SelectingPrevious 110 110 }; 111 111 … … 146 146 virtual void unfocusWindow(); 147 147 148 void openURLFromPageCache( KWQPageState*);148 void openURLFromPageCache(WebCorePageState*); 149 149 150 150 virtual void saveDocumentState(); … … 153 153 virtual void addMessageToConsole(const String& message, unsigned int lineNumber, const String& sourceID); 154 154 155 NSView* nextKeyView(Node* startingPoint, KWQSelectionDirection);156 NSView* nextKeyViewInFrameHierarchy(Node* startingPoint, KWQSelectionDirection);157 static NSView* nextKeyViewForWidget(Widget* startingPoint, KWQSelectionDirection);155 NSView* nextKeyView(Node* startingPoint, SelectionDirection); 156 NSView* nextKeyViewInFrameHierarchy(Node* startingPoint, SelectionDirection); 157 static NSView* nextKeyViewForWidget(Widget* startingPoint, SelectionDirection); 158 158 static bool currentEventIsKeyboardOptionTab(); 159 159 static bool handleKeyboardOptionTabInView(NSView* view); … … 300 300 void dashboardRegionsChanged(); 301 301 302 virtual bool isCharacterSmartReplaceExempt(const QChar &, bool);302 virtual bool isCharacterSmartReplaceExempt(const DeprecatedChar &, bool); 303 303 304 304 virtual bool mouseDownMayStartSelect() const { return _mouseDownMayStartSelect; } … … 327 327 NSView* mouseDownViewIfStillGood(); 328 328 329 NSView* nextKeyViewInFrame(Node* startingPoint, KWQSelectionDirection);329 NSView* nextKeyViewInFrame(Node* startingPoint, SelectionDirection); 330 330 static NSView* documentViewForNode(Node*); 331 331 -
trunk/WebCore/bridge/mac/FrameMac.mm
r15206 r15253 50 50 #import "HTMLNames.h" 51 51 #import "HTMLTableCellElement.h" 52 #import " KWQEditCommand.h"53 #import " KWQFormData.h"54 #import " KWQPageState.h"52 #import "WebCoreEditCommand.h" 53 #import "FormDataMac.h" 54 #import "WebCorePageState.h" 55 55 #import "Logging.h" 56 56 #import "MouseEventWithHitTestResults.h" … … 77 77 #import <JavaScriptCore/npruntime_impl.h> 78 78 79 #undef _ KWQ_TIMING79 #undef _webcore_TIMING 80 80 81 81 @interface NSObject (WebPlugIn) … … 171 171 172 172 [_bridge clearFrame]; 173 KWQRelease(_bridge);173 HardRelease(_bridge); 174 174 _bridge = nil; 175 175 } … … 580 580 cleanupPluginRootObjects(); 581 581 _bindingRoot = 0; 582 KWQRelease(_windowScriptObject);582 HardRelease(_windowScriptObject); 583 583 _windowScriptObject = 0; 584 584 … … 723 723 const UChar* chars = it.characters(); 724 724 int len = it.length(); 725 if (len > 1 || ! QChar(chars[0]).isSpace()) {725 if (len > 1 || !DeprecatedChar(chars[0]).isSpace()) { 726 726 NSString *chunk = [[NSString alloc] initWithCharactersNoCopy:const_cast<UChar*>(chars) length:len freeWhenDone:NO]; 727 727 NSRange misspelling = [checker checkSpellingOfString:chunk startingAt:0 language:nil wrap:NO inSpellDocumentWithTag:[_bridge spellCheckerDocumentTag] wordCount:NULL]; … … 770 770 if (v) { 771 771 NSEvent *oldCurrentEvent = _currentEvent; 772 _currentEvent = KWQRetain(event);772 _currentEvent = HardRetain(event); 773 773 774 774 PlatformWheelEvent qEvent(event); … … 776 776 777 777 ASSERT(_currentEvent == event); 778 KWQRelease(event);778 HardRelease(event); 779 779 _currentEvent = oldCurrentEvent; 780 780 … … 786 786 // of the elements rather than here in the part. 787 787 788 KWQScrollDirection direction;788 ScrollDirection direction; 789 789 float multiplier; 790 790 float deltaX = [event deltaX]; 791 791 float deltaY = [event deltaY]; 792 792 if (deltaX < 0) { 793 direction = KWQScrollRight;793 direction = ScrollRight; 794 794 multiplier = -deltaX; 795 795 } else if (deltaX > 0) { 796 direction = KWQScrollLeft;796 direction = ScrollLeft; 797 797 multiplier = deltaX; 798 798 } else if (deltaY < 0) { 799 direction = KWQScrollDown;799 direction = ScrollDown; 800 800 multiplier = -deltaY; 801 801 } else if (deltaY > 0) { 802 direction = KWQScrollUp;802 direction = ScrollUp; 803 803 multiplier = deltaY; 804 804 } else … … 821 821 return false; 822 822 823 return r->scroll(direction, KWQScrollWheel, multiplier);823 return r->scroll(direction, ScrollByWheel, multiplier); 824 824 } 825 825 … … 872 872 } 873 873 874 NSView* FrameMac::nextKeyViewInFrame(Node* node, KWQSelectionDirection direction)874 NSView* FrameMac::nextKeyViewInFrame(Node* node, SelectionDirection direction) 875 875 { 876 876 Document* doc = document(); … … 879 879 880 880 for (;;) { 881 node = direction == KWQSelectingNext881 node = direction == SelectingNext 882 882 ? doc->nextFocusNode(node) : doc->previousFocusNode(node); 883 883 if (!node) … … 903 903 } 904 904 905 NSView *FrameMac::nextKeyViewInFrameHierarchy(Node *node, KWQSelectionDirection direction)905 NSView *FrameMac::nextKeyViewInFrameHierarchy(Node *node, SelectionDirection direction) 906 906 { 907 907 NSView *next = nextKeyViewInFrame(node, direction); … … 918 918 } 919 919 920 NSView *FrameMac::nextKeyView(Node *node, KWQSelectionDirection direction)920 NSView *FrameMac::nextKeyView(Node *node, SelectionDirection direction) 921 921 { 922 922 NSView * next; … … 929 929 // Look at views from the top level part up, looking for a next key view that we can use. 930 930 931 next = direction == KWQSelectingNext931 next = direction == SelectingNext 932 932 ? [_bridge nextKeyViewOutsideWebFrameViews] 933 933 : [_bridge previousKeyViewOutsideWebFrameViews]; … … 942 942 } 943 943 944 NSView *FrameMac::nextKeyViewForWidget(Widget *startingWidget, KWQSelectionDirection direction)944 NSView *FrameMac::nextKeyViewForWidget(Widget *startingWidget, SelectionDirection direction) 945 945 { 946 946 // Use the event filter object to figure out which RenderWidget owns this Widget and get to the DOM. … … 1070 1070 KJS::JSLock lock; 1071 1071 KJS::JSObject *win = KJS::Window::retrieveWindow(this); 1072 _windowScriptObject = KWQRetainNSRelease([[WebScriptObject alloc] _initWithJSObject:win originExecutionContext:bindingRootObject() executionContext:bindingRootObject()]);1072 _windowScriptObject = HardRetainWithNSRelease([[WebScriptObject alloc] _initWithJSObject:win originExecutionContext:bindingRootObject() executionContext:bindingRootObject()]); 1073 1073 } 1074 1074 … … 1101 1101 } 1102 1102 1103 void FrameMac::openURLFromPageCache( KWQPageState *state)1104 { 1105 // It's safe to assume none of the KWQPageState methods will raise1106 // exceptions, since KWQPageState is implemented by WebCore and1103 void FrameMac::openURLFromPageCache(WebCorePageState *state) 1104 { 1105 // It's safe to assume none of the WebCorePageState methods will raise 1106 // exceptions, since WebCorePageState is implemented by WebCore and 1107 1107 // does not throw 1108 1108 … … 1350 1350 1351 1351 NSEvent *oldCurrentEvent = _currentEvent; 1352 _currentEvent = KWQRetain(event);1352 _currentEvent = HardRetain(event); 1353 1353 1354 1354 PlatformKeyboardEvent qEvent(event); … … 1366 1366 1367 1367 ASSERT(_currentEvent == event); 1368 KWQRelease(event);1368 HardRelease(event); 1369 1369 _currentEvent = oldCurrentEvent; 1370 1370 … … 1953 1953 1954 1954 NSEvent *oldCurrentEvent = _currentEvent; 1955 _currentEvent = KWQRetain(event);1955 _currentEvent = HardRetain(event); 1956 1956 m_mouseDown = PlatformMouseEvent(event); 1957 1957 NSPoint loc = [event locationInWindow]; … … 1965 1965 1966 1966 ASSERT(_currentEvent == event); 1967 KWQRelease(event);1967 HardRelease(event); 1968 1968 _currentEvent = oldCurrentEvent; 1969 1969 … … 1981 1981 1982 1982 NSEvent *oldCurrentEvent = _currentEvent; 1983 _currentEvent = KWQRetain(event);1983 _currentEvent = HardRetain(event); 1984 1984 1985 1985 v->handleMouseMoveEvent(event); 1986 1986 1987 1987 ASSERT(_currentEvent == event); 1988 KWQRelease(event);1988 HardRelease(event); 1989 1989 _currentEvent = oldCurrentEvent; 1990 1990 … … 2001 2001 2002 2002 NSEvent *oldCurrentEvent = _currentEvent; 2003 _currentEvent = KWQRetain(event);2003 _currentEvent = HardRetain(event); 2004 2004 2005 2005 // Our behavior here is a little different that Qt. Qt always sends … … 2017 2017 2018 2018 ASSERT(_currentEvent == event); 2019 KWQRelease(event);2019 HardRelease(event); 2020 2020 _currentEvent = oldCurrentEvent; 2021 2021 … … 2097 2097 2098 2098 NSEvent *oldCurrentEvent = _currentEvent; 2099 _currentEvent = KWQRetain(event);2099 _currentEvent = HardRetain(event); 2100 2100 2101 2101 v->handleMouseMoveEvent(event); 2102 2102 2103 2103 ASSERT(_currentEvent == event); 2104 KWQRelease(event);2104 HardRelease(event); 2105 2105 _currentEvent = oldCurrentEvent; 2106 2106 … … 2133 2133 2134 2134 NSEvent *oldCurrentEvent = _currentEvent; 2135 _currentEvent = KWQRetain(event);2135 _currentEvent = HardRetain(event); 2136 2136 2137 2137 PlatformMouseEvent mouseEvent(event); … … 2149 2149 2150 2150 ASSERT(_currentEvent == event); 2151 KWQRelease(event);2151 HardRelease(event); 2152 2152 _currentEvent = oldCurrentEvent; 2153 2153 … … 2388 2388 switch(style->listStyleType()) { 2389 2389 case DISC: 2390 listText += (( QChar)BULLET_CHAR);2390 listText += ((DeprecatedChar)BULLET_CHAR); 2391 2391 break; 2392 2392 case CIRCLE: 2393 listText += (( QChar)CIRCLE_CHAR);2393 listText += ((DeprecatedChar)CIRCLE_CHAR); 2394 2394 break; 2395 2395 case SQUARE: 2396 listText += (( QChar)SQUARE_CHAR);2396 listText += ((DeprecatedChar)SQUARE_CHAR); 2397 2397 break; 2398 2398 case LNONE: … … 2854 2854 return; 2855 2855 2856 KWQRetain(bridge);2857 KWQRelease(_bridge);2856 HardRetain(bridge); 2857 HardRelease(_bridge); 2858 2858 _bridge = bridge; 2859 2859 } … … 2979 2979 { 2980 2980 ASSERT(cmd.get()); 2981 KWQEditCommand *kwq = [KWQEditCommand commandWithEditCommand:cmd.get()];2981 WebCoreEditCommand *kwq = [WebCoreEditCommand commandWithEditCommand:cmd.get()]; 2982 2982 NSUndoManager *undoManager = [_bridge undoManager]; 2983 2983 [undoManager registerUndoWithTarget:_bridge selector:(isRedo ? @selector(redoEditing:) : @selector(undoEditing:)) object:kwq]; … … 3093 3093 const UChar* chars = it.characters(); 3094 3094 int len = it.length(); 3095 if (len > 1 || ! QChar(chars[0]).isSpace()) {3095 if (len > 1 || !DeprecatedChar(chars[0]).isSpace()) { 3096 3096 NSString *chunk = [[NSString alloc] initWithCharactersNoCopy:const_cast<UChar*>(chars) length:len freeWhenDone:NO]; 3097 3097 int startIndex = 0; … … 3366 3366 } 3367 3367 3368 bool FrameMac::isCharacterSmartReplaceExempt(const QChar &c, bool isPreviousChar)3368 bool FrameMac::isCharacterSmartReplaceExempt(const DeprecatedChar &c, bool isPreviousChar) 3369 3369 { 3370 3370 return [_bridge isCharacterSmartReplaceExempt:c.unicode() isPreviousCharacter:isPreviousChar]; -
trunk/WebCore/bridge/mac/WebCoreFrameBridge.mm
r15222 r15253 47 47 #import "HTMLNames.h" 48 48 #import "Image.h" 49 #import " KWQEditCommand.h"50 #import " KWQLoader.h"51 #import " KWQPageState.h"49 #import "WebCoreEditCommand.h" 50 #import "LoaderFunctions.h" 51 #import "WebCorePageState.h" 52 52 #import "ModifySelectionListLevel.h" 53 53 #import "MoveSelectionCommand.h" … … 75 75 #import "markup.h" 76 76 #import "visible_units.h" 77 #import " xml_tokenizer.h"77 #import "XMLTokenizer.h" 78 78 #import <JavaScriptCore/date_object.h> 79 79 #import <JavaScriptCore/runtime_root.h> … … 518 518 { 519 519 if (pageCache) { 520 KWQPageState *state = [pageCache objectForKey:WebCorePageCacheStateKey];520 WebCorePageState *state = [pageCache objectForKey:WebCorePageCacheStateKey]; 521 521 m_frame->openURLFromPageCache(state); 522 522 [state invalidate]; … … 584 584 doc->setInPageCache(NO); 585 585 586 KWQPageState *state = [pageCache objectForKey:WebCorePageCacheStateKey];586 WebCorePageState *state = [pageCache objectForKey:WebCorePageCacheStateKey]; 587 587 588 588 // FIXME: This is a grotesque hack to fix <rdar://problem/4059059> Crash in RenderFlow::detach 589 // Somehow the KWQPageState object is not properly updated, and is holding onto a stale document589 // Somehow the WebCorePageState object is not properly updated, and is holding onto a stale document 590 590 // both Xcode and FileMaker see this crash, Safari does not. 591 591 // This if check MUST be removed as part of re-writing the loader down in WebCore … … 650 650 if (!m_frame) 651 651 return NO; 652 return m_frame->scrollOverflow(( KWQScrollDirection)direction, (KWQScrollGranularity)granularity);652 return m_frame->scrollOverflow((ScrollDirection)direction, (ScrollGranularity)granularity); 653 653 } 654 654 … … 679 679 m_frame->saveInterpreterBuiltins(*interpreterBuiltins); 680 680 681 KWQPageState *pageState = [[KWQPageState alloc] initWithDocument:doc681 WebCorePageState *pageState = [[WebCorePageState alloc] initWithDocument:doc 682 682 URL:m_frame->url() 683 683 windowProperties:windowProperties … … 1273 1273 if (!doc) 1274 1274 return nil; 1275 return m_frame->nextKeyView(doc->focusNode(), KWQSelectingNext);1275 return m_frame->nextKeyView(doc->focusNode(), SelectingNext); 1276 1276 } 1277 1277 … … 1281 1281 if (!doc) 1282 1282 return nil; 1283 return m_frame->nextKeyView(doc->focusNode(), KWQSelectingPrevious);1283 return m_frame->nextKeyView(doc->focusNode(), SelectingPrevious); 1284 1284 } 1285 1285 … … 1289 1289 if (!doc) 1290 1290 return nil; 1291 return m_frame->nextKeyViewInFrameHierarchy(doc->focusNode(), KWQSelectingNext);1291 return m_frame->nextKeyViewInFrameHierarchy(doc->focusNode(), SelectingNext); 1292 1292 } 1293 1293 … … 1297 1297 if (!doc) 1298 1298 return nil; 1299 return m_frame->nextKeyViewInFrameHierarchy(doc->focusNode(), KWQSelectingPrevious);1299 return m_frame->nextKeyViewInFrameHierarchy(doc->focusNode(), SelectingPrevious); 1300 1300 } 1301 1301 … … 1516 1516 1517 1517 if (doc) 1518 return KWQNumberOfPendingOrLoadingRequests (doc->docLoader());1518 return NumberOfPendingOrLoadingRequests (doc->docLoader()); 1519 1519 return 0; 1520 1520 } … … 1573 1573 - (void)undoEditing:(id)arg 1574 1574 { 1575 ASSERT([arg isKindOfClass:[ KWQEditCommand class]]);1575 ASSERT([arg isKindOfClass:[WebCoreEditCommand class]]); 1576 1576 [arg command]->unapply(); 1577 1577 } … … 1579 1579 - (void)redoEditing:(id)arg 1580 1580 { 1581 ASSERT([arg isKindOfClass:[ KWQEditCommand class]]);1581 ASSERT([arg isKindOfClass:[WebCoreEditCommand class]]); 1582 1582 [arg command]->reapply(); 1583 1583 } … … 1897 1897 bool addLeadingSpace = startPos.leadingWhitespacePosition(VP_DEFAULT_AFFINITY, true).isNull() && !isStartOfParagraph(startVisiblePos); 1898 1898 if (addLeadingSpace) { 1899 QChar previousChar = startVisiblePos.previous().characterAfter();1899 DeprecatedChar previousChar = startVisiblePos.previous().characterAfter(); 1900 1900 if (previousChar.unicode()) 1901 1901 addLeadingSpace = !m_frame->isCharacterSmartReplaceExempt(previousChar, true); … … 1904 1904 bool addTrailingSpace = endPos.trailingWhitespacePosition(VP_DEFAULT_AFFINITY, true).isNull() && !isEndOfParagraph(endVisiblePos); 1905 1905 if (addTrailingSpace) { 1906 QChar thisChar = endVisiblePos.characterAfter();1906 DeprecatedChar thisChar = endVisiblePos.characterAfter(); 1907 1907 if (thisChar.unicode()) 1908 1908 addTrailingSpace = !m_frame->isCharacterSmartReplaceExempt(thisChar, false); -
trunk/WebCore/bridge/mac/WebCoreSettings.h
r13682 r15253 27 27 28 28 #ifdef __cplusplus 29 class KHTMLSettings;29 class Settings; 30 30 #else 31 @class KHTMLSettings;31 @class Settings; 32 32 #endif 33 33 … … 55 55 NSString *defaultTextEncoding; 56 56 57 KHTMLSettings *settings;57 Settings *settings; 58 58 } 59 59 … … 118 118 - (NSString *)defaultTextEncoding; 119 119 120 - ( KHTMLSettings *)settings;120 - (Settings *)settings; 121 121 122 122 @end -
trunk/WebCore/bridge/mac/WebCoreSettings.mm
r13682 r15253 28 28 29 29 #import "FoundationExtras.h" 30 #import " KWQKHTMLSettings.h"30 #import "Settings.h" 31 31 #import "Page.h" 32 32 #import "WebCoreFrameBridge.h" … … 60 60 - (id)init 61 61 { 62 // A Frame may not have been created yet, so we initialize the AtomicString hash before we try and use it in KHTMLSettings.62 // A Frame may not have been created yet, so we initialize the AtomicString hash before we try and use it in Settings. 63 63 AtomicString::init(); 64 settings = new KHTMLSettings;64 settings = new Settings; 65 65 return [super init]; 66 66 } … … 334 334 } 335 335 336 - ( KHTMLSettings *)settings336 - (Settings *)settings 337 337 { 338 338 return settings; -
trunk/WebCore/bridge/win/FrameWin.cpp
r15172 r15253 31 31 #include "Document.h" 32 32 #include "FramePrivate.h" 33 #include " KWQKHTMLSettings.h"33 #include "Settings.h" 34 34 #include "PlatformKeyboardEvent.h" 35 35 #include "Plugin.h" … … 44 44 { 45 45 d->m_extension = new BrowserExtensionWin(this); 46 KHTMLSettings* settings = new KHTMLSettings();46 Settings* settings = new Settings(); 47 47 settings->setAutoLoadImages(true); 48 48 settings->setMediumFixedFontSize(13); -
trunk/WebCore/css/CSSPrimitiveValue.cpp
r14775 r15253 29 29 #include "ExceptionCode.h" 30 30 #include "Pair.h" 31 #include " render_style.h"31 #include "RenderStyle.h" 32 32 33 33 namespace WebCore { -
trunk/WebCore/css/CSSValueKeywords.in
r15095 r15253 5 5 # 6 6 # The Values are sorted according to the properties they belong to, 7 # and have to be in the same order as the enums in render_style.h.7 # and have to be in the same order as the enums in RenderStyle.h. 8 8 # 9 9 # If not, the optimizations in the cssparser and style selector will fail, -
trunk/WebCore/css/MediaQueryEvaluator.cpp
r15054 r15253 38 38 #include "MediaQuery.h" 39 39 #include "MediaQueryExp.h" 40 #include "rendering/ render_style.h"40 #include "rendering/RenderStyle.h" 41 41 #include "page/FrameView.h" 42 42 #include "Screen.h" … … 149 149 && i2->isPrimitiveValue() && static_cast<CSSPrimitiveValue*>(i2)->primitiveType() == CSSPrimitiveValue::CSS_NUMBER) { 150 150 String str = static_cast<CSSPrimitiveValue*>(i1)->getStringValue(); 151 if (!str.isNull() && str.length() == 1 && str[0] == QChar('/')) {151 if (!str.isNull() && str.length() == 1 && str[0] == DeprecatedChar('/')) { 152 152 a = (int) static_cast<CSSPrimitiveValue*>(i0)->getFloatValue(CSSPrimitiveValue::CSS_NUMBER); 153 153 b = (int) static_cast<CSSPrimitiveValue*>(i2)->getFloatValue(CSSPrimitiveValue::CSS_NUMBER); -
trunk/WebCore/css/cssparser.cpp
r15151 r15253 2703 2703 2704 2704 #ifdef TOKEN_DEBUG 2705 qDebug("CSSTokenizer: got token %d: '%s'", token, token == END_TOKEN ? "" : DeprecatedString(( QChar *)t, length).latin1());2705 qDebug("CSSTokenizer: got token %d: '%s'", token, token == END_TOKEN ? "" : DeprecatedString((DeprecatedChar *)t, length).latin1()); 2706 2706 #endif 2707 2707 switch(token) { … … 2758 2758 case FLOAT: 2759 2759 case INTEGER: 2760 yylval->val = DeprecatedString(( QChar *)t, length).toDouble();2760 yylval->val = DeprecatedString((DeprecatedChar *)t, length).toDouble(); 2761 2761 break; 2762 2762 … … 3058 3058 DeprecatedString deprecatedString(const ParseString& ps) 3059 3059 { 3060 return DeprecatedString(reinterpret_cast<const QChar*>(ps.characters), ps.length);3060 return DeprecatedString(reinterpret_cast<const DeprecatedChar*>(ps.characters), ps.length); 3061 3061 } 3062 3062 -
trunk/WebCore/css/cssstyleselector.cpp
r15177 r15253 48 48 #include "HTMLNames.h" 49 49 #include "History.h" 50 #include " KWQKHTMLSettings.h"50 #include "Settings.h" 51 51 #include "MediaList.h" 52 52 #include "MediaQueryEvaluator.h" … … 617 617 } 618 618 619 QConstString cu(reinterpret_cast<const QChar*>(attr.characters()), attr.length());619 DeprecatedConstString cu(reinterpret_cast<const DeprecatedChar*>(attr.characters()), attr.length()); 620 620 DeprecatedString u = cu.string(); 621 621 if (!u.contains("://")) { -
trunk/WebCore/css/cssstyleselector.h
r15095 r15253 26 26 27 27 #include "DeprecatedString.h" 28 #include " render_style.h"28 #include "RenderStyle.h" 29 29 #include <wtf/HashSet.h> 30 30 #include <wtf/Vector.h> 31 31 32 class KHTMLSettings;32 class Settings; 33 33 class KURL; 34 34 … … 226 226 FrameView *view; 227 227 Frame *frame; 228 const KHTMLSettings *settings;228 const Settings *settings; 229 229 bool fontDirty; 230 230 bool isXMLDoc; -
trunk/WebCore/dom/CharacterData.cpp
r14916 r15253 28 28 #include "EventNames.h" 29 29 #include "ExceptionCode.h" 30 #include " KWQTextStream.h"30 #include "TextStream.h" 31 31 #include "MutationEvent.h" 32 32 #include "RenderText.h" … … 310 310 311 311 #ifndef NDEBUG 312 void CharacterData::dump( QTextStream *stream, DeprecatedString ind) const312 void CharacterData::dump(TextStream *stream, DeprecatedString ind) const 313 313 { 314 314 *stream << " str=\"" << String(str).deprecatedString().ascii() << "\""; -
trunk/WebCore/dom/CharacterData.h
r13393 r15253 68 68 69 69 #ifndef NDEBUG 70 virtual void dump( QTextStream*, DeprecatedString ind = "") const;70 virtual void dump(TextStream*, DeprecatedString ind = "") const; 71 71 #endif 72 72 -
trunk/WebCore/dom/Document.cpp
r15247 r15253 82 82 #include "kjs_binding.h" 83 83 #include "kjs_proxy.h" 84 #include " xml_tokenizer.h"84 #include "XMLTokenizer.h" 85 85 #include "xmlhttprequest.h" 86 86 … … 844 844 fontDescription.setUsePrinterFont(printing()); 845 845 if (m_view) { 846 const KHTMLSettings *settings = m_view->frame()->settings();846 const Settings *settings = m_view->frame()->settings(); 847 847 if (printing() && !settings->shouldPrintBackgrounds()) 848 848 _style->setForceBackgroundsToWhite(true); -
trunk/WebCore/dom/Element.cpp
r15177 r15253 34 34 #include "RenderBlock.h" 35 35 #include "SelectionController.h" 36 #include " KWQTextStream.h"36 #include "TextStream.h" 37 37 38 38 namespace WebCore { … … 155 155 } 156 156 157 void Element::scrollByUnits(int units, KWQScrollGranularity granularity)157 void Element::scrollByUnits(int units, ScrollGranularity granularity) 158 158 { 159 159 document()->updateLayoutIgnorePendingStylesheets(); 160 160 if (RenderObject *rend = renderer()) { 161 161 if (rend->hasOverflowClip()) { 162 KWQScrollDirection direction = KWQScrollDown;162 ScrollDirection direction = ScrollDown; 163 163 if (units < 0) { 164 direction = KWQScrollUp;164 direction = ScrollUp; 165 165 units = -units; 166 166 } … … 172 172 void Element::scrollByLines(int lines) 173 173 { 174 scrollByUnits(lines, KWQScrollLine);174 scrollByUnits(lines, ScrollByLine); 175 175 } 176 176 177 177 void Element::scrollByPages(int pages) 178 178 { 179 scrollByUnits(pages, KWQScrollPage);179 scrollByUnits(pages, ScrollByPage); 180 180 } 181 181 … … 700 700 701 701 #ifndef NDEBUG 702 void Element::dump( QTextStream *stream, DeprecatedString ind) const702 void Element::dump(TextStream *stream, DeprecatedString ind) const 703 703 { 704 704 updateStyleAttributeIfNeeded(); -
trunk/WebCore/dom/Element.h
r14646 r15253 29 29 30 30 #include "Attr.h" 31 #include " KWQScrollBar.h"31 #include "WebCoreScrollBar.h" 32 32 33 33 namespace WebCore { … … 68 68 void scrollIntoViewIfNeeded(bool centerIfNeeded); 69 69 70 void scrollByUnits(int units, KWQScrollGranularity granularity);70 void scrollByUnits(int units, ScrollGranularity granularity); 71 71 void scrollByLines(int lines); 72 72 void scrollByPages(int pages); … … 156 156 157 157 #if !NDEBUG 158 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;158 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 159 159 virtual void formatForDebugger(char *buffer, unsigned length) const; 160 160 #endif -
trunk/WebCore/dom/EventTargetNode.cpp
r15047 r15253 34 34 #include "Frame.h" 35 35 #include "HTMLNames.h" 36 #include " KWQTextStream.h"36 #include "TextStream.h" 37 37 #include "KeyboardEvent.h" 38 38 #include "MouseEvent.h" … … 420 420 swallowEvent = true; 421 421 422 // Special case: If it's a double click event, we also send the KHTML_DBLCLICKevent. This is not part422 // Special case: If it's a double click event, we also send the dblclick event. This is not part 423 423 // of the DOM specs, but is used for compatibility with the ondblclick="" attribute. This is treated 424 424 // as a separate event in other DOM-compliant browsers like Firefox, and so we do the same. … … 527 527 #ifndef NDEBUG 528 528 529 void EventTargetNode::dump( QTextStream* stream, DeprecatedString ind) const529 void EventTargetNode::dump(TextStream* stream, DeprecatedString ind) const 530 530 { 531 531 if (m_regdListeners) -
trunk/WebCore/dom/EventTargetNode.h
r15154 r15253 89 89 90 90 #ifndef NDEBUG 91 virtual void dump( QTextStream*, DeprecatedString indent = "") const;91 virtual void dump(TextStream*, DeprecatedString indent = "") const; 92 92 #endif 93 93 -
trunk/WebCore/dom/Node.cpp
r15177 r15253 37 37 #include "kjs_binding.h" 38 38 #include "RenderObject.h" 39 #include " KWQTextStream.h"39 #include "TextStream.h" 40 40 41 41 namespace WebCore { … … 676 676 677 677 #ifndef NDEBUG 678 void Node::dump( QTextStream *stream, DeprecatedString ind) const678 void Node::dump(TextStream *stream, DeprecatedString ind) const 679 679 { 680 680 // ### implement dump() for all appropriate subclasses -
trunk/WebCore/dom/Node.h
r15177 r15253 35 35 36 36 class DeprecatedStringList; 37 class QTextStream;37 class TextStream; 38 38 class RenderArena; 39 39 … … 339 339 340 340 #ifndef NDEBUG 341 virtual void dump( QTextStream*, DeprecatedString indent = "") const;341 virtual void dump(TextStream*, DeprecatedString indent = "") const; 342 342 #endif 343 343 -
trunk/WebCore/dom/Position.cpp
r15112 r15253 610 610 String string = static_cast<Text *>(prev.node())->data(); 611 611 UChar c = string[prev.offset()]; 612 if (considerNonCollapsibleWhitespace ? ( QChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c))612 if (considerNonCollapsibleWhitespace ? (DeprecatedChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c)) 613 613 return prev; 614 614 } … … 627 627 String string = textNode->data(); 628 628 UChar c = string[offset()]; 629 if (considerNonCollapsibleWhitespace ? ( QChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c))629 if (considerNonCollapsibleWhitespace ? (DeprecatedChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c)) 630 630 return *this; 631 631 return Position(); … … 640 640 String string = static_cast<Text*>(next.node())->data(); 641 641 UChar c = string[0]; 642 if (considerNonCollapsibleWhitespace ? ( QChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c))642 if (considerNonCollapsibleWhitespace ? (DeprecatedChar(c).isSpace() || c == nonBreakingSpace) : isCollapsibleWhitespace(c)) 643 643 return next; 644 644 } -
trunk/WebCore/dom/ProcessingInstruction.cpp
r14846 r15253 30 30 #include "ExceptionCode.h" 31 31 #include "XSLStyleSheet.h" 32 #include " xml_tokenizer.h" // for parseAttributes()32 #include "XMLTokenizer.h" // for parseAttributes() 33 33 34 34 namespace WebCore { -
trunk/WebCore/dom/QualifiedName.cpp
r14314 r15253 23 23 24 24 #if AVOID_STATIC_CONSTRUCTORS 25 #define KHTML_QNAME_HIDE_GLOBALS 125 #define WEBCORE_QUALIFIEDNAME_HIDE_GLOBALS 1 26 26 #else 27 27 #define QNAME_DEFAULT_CONSTRUCTOR -
trunk/WebCore/dom/QualifiedName.h
r14315 r15253 72 72 }; 73 73 74 #if ! KHTML_QNAME_HIDE_GLOBALS74 #if !WEBCORE_QUALIFIEDNAME_HIDE_GLOBALS 75 75 extern const QualifiedName anyName; 76 76 inline const QualifiedName& anyQName() { return anyName; } -
trunk/WebCore/dom/XMLTokenizer.cpp
r15251 r15253 23 23 24 24 #include "config.h" 25 #include " xml_tokenizer.h"25 #include "XMLTokenizer.h" 26 26 27 27 #include "CDATASection.h" … … 39 39 #include "HTMLTableSectionElement.h" 40 40 #include "HTMLTokenizer.h" 41 #include " KWQLoader.h"41 #include "LoaderFunctions.h" 42 42 #include "ProcessingInstruction.h" 43 43 #include "TransferJob.h" … … 461 461 TransferJob* job = new TransferJob(0, "GET", uri); 462 462 DeprecatedString headers; 463 Vector<char> data = KWQServeSynchronousRequest(Cache::loader(), globalDocLoader, job, finalURL, headers);463 Vector<char> data = ServeSynchronousRequest(Cache::loader(), globalDocLoader, job, finalURL, headers); 464 464 465 465 return new OffsetBuffer(data); … … 514 514 parser->_private = userData; 515 515 parser->replaceEntities = true; 516 const QChar BOM(0xFEFF);516 const DeprecatedChar BOM(0xFEFF); 517 517 const unsigned char BOMHighByte = *reinterpret_cast<const unsigned char *>(&BOM); 518 518 xmlSwitchEncoding(parser, BOMHighByte == 0xFF ? XML_CHAR_ENCODING_UTF16LE : XML_CHAR_ENCODING_UTF16BE); … … 635 635 // will detect <?xml version="1.0" encoding="<encoding name>"?> blocks 636 636 // and switch encodings, causing the parse to fail. 637 const QChar BOM(0xFEFF);637 const DeprecatedChar BOM(0xFEFF); 638 638 const unsigned char BOMHighByte = *reinterpret_cast<const unsigned char *>(&BOM); 639 639 xmlSwitchEncoding(m_context, BOMHighByte == 0xFF ? XML_CHAR_ENCODING_UTF16LE : XML_CHAR_ENCODING_UTF16BE); 640 640 641 xmlParseChunk(m_context, reinterpret_cast<const char *>(parseString.unicode()), sizeof( QChar) * parseString.length(), 0);641 xmlParseChunk(m_context, reinterpret_cast<const char *>(parseString.unicode()), sizeof(DeprecatedChar) * parseString.length(), 0); 642 642 643 643 return false; … … 1106 1106 return 0; 1107 1107 1108 DeprecatedCString value = DeprecatedString( QChar(c)).utf8();1108 DeprecatedCString value = DeprecatedString(DeprecatedChar(c)).utf8(); 1109 1109 assert(value.length() < 5); 1110 1110 sharedXHTMLEntity.length = value.length(); … … 1334 1334 // FIXME: Hook up error handlers so that a failure to parse the main document results in 1335 1335 // good error messages. 1336 const QChar BOM(0xFEFF);1336 const DeprecatedChar BOM(0xFEFF); 1337 1337 const unsigned char BOMHighByte = *reinterpret_cast<const unsigned char *>(&BOM); 1338 1338 … … 1344 1344 1345 1345 xmlDocPtr sourceDoc = xmlReadMemory(reinterpret_cast<const char *>(source.unicode()), 1346 source.length() * sizeof( QChar),1346 source.length() * sizeof(DeprecatedChar), 1347 1347 url.ascii(), 1348 1348 BOMHighByte == 0xFF ? "UTF-16LE" : "UTF-16BE", … … 1511 1511 xmlParserCtxtPtr parser = createQStringParser(&sax, &state); 1512 1512 DeprecatedString parseString = "<?xml version=\"1.0\"?><attrs " + string.deprecatedString() + " />"; 1513 xmlParseChunk(parser, reinterpret_cast<const char *>(parseString.unicode()), parseString.length() * sizeof( QChar), 1);1513 xmlParseChunk(parser, reinterpret_cast<const char *>(parseString.unicode()), parseString.length() * sizeof(DeprecatedChar), 1); 1514 1514 if (parser->myDoc) 1515 1515 xmlFreeDoc(parser->myDoc); -
trunk/WebCore/editing/EditAction.h
r15080 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_EDIT_ACTIONS_H27 #define KHTML_EDITING_EDIT_ACTIONS_H26 #ifndef EditAction_h 27 #define EditAction_h 28 28 29 29 namespace WebCore { -
trunk/WebCore/editing/HTMLInterchange.cpp
r14273 r15253 41 41 convertedSpaceString += AppleConvertedSpace; 42 42 convertedSpaceString += "\">"; 43 convertedSpaceString += QChar(0xa0);43 convertedSpaceString += DeprecatedChar(0xa0); 44 44 convertedSpaceString += "</span>"; 45 45 } -
trunk/WebCore/editing/HTMLInterchange.h
r13393 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_HTML_INTERCHANGE_H27 #define KHTML_EDITING_HTML_INTERCHANGE_H26 #ifndef HTMLInterchange_h 27 #define HTMLInterchange_h 28 28 29 29 class DeprecatedString; -
trunk/WebCore/editing/Selection.h
r15226 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_SELECTION_H27 #define KHTML_EDITING_SELECTION_H26 #ifndef Selection_h 27 #define Selection_h 28 28 29 29 #include "Position.h" … … 122 122 #endif 123 123 124 #endif // KHTML_EDITING_SELECTION_H124 #endif // Selection_h -
trunk/WebCore/editing/SelectionController.h
r14498 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_SELECTIONCONTROLLER_H27 #define KHTML_EDITING_SELECTIONCONTROLLER_H26 #ifndef SelectionController_h 27 #define SelectionController_h 28 28 29 29 #include "IntRect.h" … … 202 202 #endif 203 203 204 #endif // KHTML_EDITING_SELECTIONCONTROLLER_H204 #endif // SelectionController_h -
trunk/WebCore/editing/TextAffinity.h
r13393 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_TEXT_AFFINITY_H27 #define KHTML_EDITING_TEXT_AFFINITY_H26 #ifndef TextAffinity_h 27 #define TextAffinity_h 28 28 29 29 namespace WebCore { -
trunk/WebCore/editing/TextIterator.cpp
r14777 r15253 844 844 while (numChars > 0 && !atEnd()) { 845 845 int runSize = min(numChars, length()); 846 result.append(reinterpret_cast<const QChar*>(characters()), runSize);846 result.append(reinterpret_cast<const DeprecatedChar*>(characters()), runSize); 847 847 numChars -= runSize; 848 848 advance(runSize); … … 895 895 while (1) { 896 896 // If this chunk ends in whitespace we can just use it as our chunk. 897 if ( QChar(m_textIterator.characters()[m_textIterator.length() - 1]).isSpace())897 if (DeprecatedChar(m_textIterator.characters()[m_textIterator.length() - 1]).isSpace()) 898 898 return; 899 899 … … 906 906 // Look ahead to next chunk. If it is whitespace or a break, we can use the previous stuff 907 907 m_textIterator.advance(); 908 if (m_textIterator.atEnd() || m_textIterator.length() == 0 || QChar(m_textIterator.characters()[0]).isSpace()) {908 if (m_textIterator.atEnd() || m_textIterator.length() == 0 || DeprecatedChar(m_textIterator.characters()[0]).isSpace()) { 909 909 m_didLookAhead = true; 910 910 return; … … 913 913 if (m_buffer.isEmpty()) { 914 914 // Start gobbling chunks until we get to a suitable stopping point 915 m_buffer.append(reinterpret_cast<const QChar*>(m_previousText), m_previousLength);915 m_buffer.append(reinterpret_cast<const DeprecatedChar*>(m_previousText), m_previousLength); 916 916 m_previousText = 0; 917 917 } 918 m_buffer.append(reinterpret_cast<const QChar*>(m_textIterator.characters()), m_textIterator.length());918 m_buffer.append(reinterpret_cast<const DeprecatedChar*>(m_textIterator.characters()), m_textIterator.length()); 919 919 int exception = 0; 920 920 m_range->setEnd(m_textIterator.range()->endContainer(exception), m_textIterator.range()->endOffset(exception), exception); … … 1097 1097 DeprecatedString result(""); 1098 1098 for (TextIterator it(r); !it.atEnd(); it.advance()) 1099 result.append(reinterpret_cast<const QChar*>(it.characters()), it.length());1099 result.append(reinterpret_cast<const DeprecatedChar*>(it.characters()), it.length()); 1100 1100 return result; 1101 1101 } -
trunk/WebCore/editing/TextIterator.h
r14276 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_VISIBLE_TEXT_H27 #define KHTML_EDITING_VISIBLE_TEXT_H26 #ifndef TextIterator_h 27 #define TextIterator_h 28 28 29 29 #include "DeprecatedString.h" -
trunk/WebCore/editing/VisiblePosition.h
r15117 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_VISIBLE_POSITION_H27 #define KHTML_EDITING_VISIBLE_POSITION_H26 #ifndef VisiblePosition_h 27 #define VisiblePosition_h 28 28 29 29 #include "Position.h" … … 123 123 #endif 124 124 125 #endif // KHTML_EDITING_VISIBLE_POSITION_H125 #endif // VisiblePosition_h -
trunk/WebCore/editing/htmlediting.cpp
r15226 r15253 381 381 const String& nonBreakingSpaceString() 382 382 { 383 static String nonBreakingSpaceString = DeprecatedString( QChar(NON_BREAKING_SPACE));383 static String nonBreakingSpaceString = DeprecatedString(DeprecatedChar(NON_BREAKING_SPACE)); 384 384 return nonBreakingSpaceString; 385 385 } -
trunk/WebCore/editing/markup.cpp
r15185 r15253 155 155 return static_cast<const ProcessingInstruction*>(node)->toString().deprecatedString(); 156 156 case Node::ELEMENT_NODE: { 157 DeprecatedString markup = QChar('<');157 DeprecatedString markup = DeprecatedChar('<'); 158 158 const Element* el = static_cast<const Element*>(node); 159 159 markup += el->nodeNamePreservingCase().deprecatedString(); -
trunk/WebCore/editing/markup.h
r14256 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_MARKUP_H27 #define KHTML_EDITING_MARKUP_H26 #ifndef markup_h 27 #define markup_h 28 28 29 29 #include "HTMLInterchange.h" … … 53 53 } 54 54 55 #endif // KHTML_EDITING_MARKUP_H55 #endif // markup_h -
trunk/WebCore/editing/visible_units.cpp
r15226 r15253 73 73 while (!it.atEnd() && it.length() > 0) { 74 74 // iterate to get chunks until the searchFunction returns a non-zero value. 75 string.prepend(reinterpret_cast<const QChar*>(it.characters()), it.length());75 string.prepend(reinterpret_cast<const DeprecatedChar*>(it.characters()), it.length()); 76 76 next = searchFunction(reinterpret_cast<const UChar*>(string.unicode()), string.length()); 77 77 if (next != 0) … … 89 89 // by performing an additional check with a modified string which uses an "X" 90 90 // character to stand in for the replaced element. 91 QChar chars[2];91 DeprecatedChar chars[2]; 92 92 chars[0] = 'X'; 93 93 chars[1] = ' '; … … 144 144 // Keep asking the iterator for chunks until the search function 145 145 // returns an end value not equal to the length of the string passed to it. 146 string.append(reinterpret_cast<const QChar*>(it.characters()), it.length());146 string.append(reinterpret_cast<const DeprecatedChar*>(it.characters()), it.length()); 147 147 next = searchFunction(reinterpret_cast<const UChar*>(string.unicode()), string.length()); 148 148 if (next != string.length()) … … 161 161 // by performing an additional check with a modified string which uses an "X" 162 162 // character to stand in for the replaced element. 163 QChar chars[2];163 DeprecatedChar chars[2]; 164 164 chars[0] = ' '; 165 165 chars[1] = 'X'; -
trunk/WebCore/editing/visible_units.h
r13849 r15253 24 24 */ 25 25 26 #ifndef KHTML_EDITING_VISIBLE_UNITS_H27 #define KHTML_EDITING_VISIBLE_UNITS_H26 #ifndef visible_units_h 27 #define visible_units_h 28 28 29 29 #include "TextAffinity.h" … … 88 88 } // namespace WebCore 89 89 90 #endif // KHTML_EDITING_VISIBLE_POSITION_H90 #endif // VisiblePosition_h -
trunk/WebCore/html/HTMLDocument.cpp
r15247 r15253 206 206 { 207 207 while (true) { 208 QChar ch = buffer[index];208 DeprecatedChar ch = buffer[index]; 209 209 if (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r') 210 210 ++index; … … 248 248 index = buffer.find('<', index); 249 249 if (index == -1) break; 250 QChar nextChar = buffer[index+1];250 DeprecatedChar nextChar = buffer[index+1]; 251 251 if (nextChar == '!') { 252 252 if (containsString("doctype", buffer, index+2)) { … … 281 281 // Now we find the beginning and end of the public identifers 282 282 // and system identifiers (assuming they're even present). 283 QChar theChar = buffer[index];283 DeprecatedChar theChar = buffer[index]; 284 284 if (theChar != '\"' && theChar != '\'') 285 285 return false; … … 292 292 return false; 293 293 index = parseDocTypePart(buffer, publicIDEnd+1); 294 QChar next = buffer[index];294 DeprecatedChar next = buffer[index]; 295 295 if (next == '>') { 296 296 // Public identifier present, but no system identifier. … … 323 323 *resultFlags |= PARSEMODE_HAVE_SYSTEM_ID; 324 324 index = parseDocTypePart(buffer, index+6); 325 QChar next = buffer[index];325 DeprecatedChar next = buffer[index]; 326 326 if (next != '\"' && next != '\'') 327 327 return false; … … 334 334 } 335 335 336 QChar nextChar = buffer[index];336 DeprecatedChar nextChar = buffer[index]; 337 337 if (nextChar == '[') 338 338 *resultFlags |= PARSEMODE_HAVE_INTERNAL; -
trunk/WebCore/html/HTMLFontElement.cpp
r14345 r15253 50 50 51 51 // Skip leading spaces. 52 while ( QChar(s[pos]).isSpace())52 while (DeprecatedChar(s[pos]).isSpace()) 53 53 ++pos; 54 54 -
trunk/WebCore/html/HTMLInputElement.cpp
r15111 r15253 47 47 #include "RenderLineEdit.h" 48 48 #include "RenderText.h" 49 #include "RenderText Field.h"49 #include "RenderTextControl.h" 50 50 #include "RenderTheme.h" 51 51 #include "SelectionController.h" … … 463 463 if (document()->focusNode() != this && cachedSelStart >= 0) 464 464 return cachedSelStart; 465 return static_cast<RenderText Field*>(renderer())->selectionStart();465 return static_cast<RenderTextControl*>(renderer())->selectionStart(); 466 466 } 467 467 return 0; … … 491 491 if (document()->focusNode() != this && cachedSelEnd >= 0) 492 492 return cachedSelEnd; 493 return static_cast<RenderText Field*>(renderer())->selectionEnd();493 return static_cast<RenderTextControl*>(renderer())->selectionEnd(); 494 494 } 495 495 return 0; … … 518 518 break; 519 519 case TEXT: 520 static_cast<RenderText Field*>(renderer())->setSelectionStart(start);520 static_cast<RenderTextControl*>(renderer())->setSelectionStart(start); 521 521 break; 522 522 } … … 545 545 break; 546 546 case TEXT: 547 static_cast<RenderText Field*>(renderer())->setSelectionEnd(end);547 static_cast<RenderTextControl*>(renderer())->setSelectionEnd(end); 548 548 break; 549 549 } … … 574 574 break; 575 575 case TEXT: 576 static_cast<RenderText Field*>(renderer())->select();576 static_cast<RenderTextControl*>(renderer())->select(); 577 577 break; 578 578 } … … 601 601 break; 602 602 case TEXT: 603 static_cast<RenderText Field*>(renderer())->setSelectionRange(start, end);603 static_cast<RenderTextControl*>(renderer())->setSelectionRange(start, end); 604 604 break; 605 605 } … … 825 825 return new (arena) DeprecatedSlider(this); 826 826 case TEXT: 827 return new (arena) RenderText Field(this, false);827 return new (arena) RenderTextControl(this, false); 828 828 } 829 829 assert(false); … … 1361 1361 1362 1362 if (isNonWidgetTextField() && (evt->isMouseEvent() || evt->isDragEvent() || evt->isWheelEvent() || evt->type() == blurEvent) && renderer()) 1363 static_cast<RenderText Field*>(renderer())->forwardEvent(evt);1363 static_cast<RenderTextControl*>(renderer())->forwardEvent(evt); 1364 1364 1365 1365 HTMLGenericFormElement::defaultEventHandler(evt); -
trunk/WebCore/html/HTMLKeygenElement.cpp
r14680 r15253 33 33 #include "HTMLOptionElement.h" 34 34 #include "KURL.h" 35 #include " KWQKSSLKeyGen.h"35 #include "SSLKeyGenerator.h" 36 36 #include "Text.h" 37 37 … … 45 45 : HTMLSelectElement(keygenTag, doc, f) 46 46 { 47 DeprecatedStringList keys = KSSLKeyGen::supportedKeySizes();47 DeprecatedStringList keys = SSLKeyGenerator::supportedKeySizes(); 48 48 for (DeprecatedStringList::Iterator i = keys.begin(); i != keys.end(); ++i) { 49 49 HTMLOptionElement* o = new HTMLOptionElement(doc, form()); … … 75 75 if (!m_keyType.isNull() && !equalIgnoringCase(m_keyType, "rsa")) 76 76 return false; 77 DeprecatedString value = KSSLKeyGen::signedPublicKeyAndChallengeString(selectedIndex(), m_challenge.deprecatedString(), document()->baseURL());77 DeprecatedString value = SSLKeyGenerator::signedPublicKeyAndChallengeString(selectedIndex(), m_challenge.deprecatedString(), document()->baseURL()); 78 78 if (value.isNull()) 79 79 return false; -
trunk/WebCore/html/HTMLSelectElement.h
r15196 r15253 29 29 #include "HTMLGenericFormElement.h" 30 30 #include "HTMLCollection.h" 31 #include " render_style.h"31 #include "RenderStyle.h" 32 32 #include <wtf/Vector.h> 33 33 -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r14935 r15253 35 35 #include "HTMLNames.h" 36 36 #include "RenderTextArea.h" 37 #include "RenderText Field.h"37 #include "RenderTextControl.h" 38 38 #include "Text.h" 39 #include " render_style.h"39 #include "RenderStyle.h" 40 40 41 41 namespace WebCore { … … 82 82 if (document()->focusNode() != this && cachedSelStart >= 0) 83 83 return cachedSelStart; 84 return static_cast<RenderText Field*>(renderer())->selectionStart();84 return static_cast<RenderTextControl *>(renderer())->selectionStart(); 85 85 } 86 86 return 0; … … 92 92 if (document()->focusNode() != this && cachedSelEnd >= 0) 93 93 return cachedSelEnd; 94 return static_cast<RenderText Field*>(renderer())->selectionEnd();94 return static_cast<RenderTextControl *>(renderer())->selectionEnd(); 95 95 } 96 96 return 0; … … 100 100 { 101 101 if (renderer()) 102 static_cast<RenderText Field*>(renderer())->setSelectionStart(start);102 static_cast<RenderTextControl*>(renderer())->setSelectionStart(start); 103 103 } 104 104 … … 106 106 { 107 107 if (renderer()) 108 static_cast<RenderText Field*>(renderer())->setSelectionEnd(end);108 static_cast<RenderTextControl*>(renderer())->setSelectionEnd(end); 109 109 } 110 110 … … 112 112 { 113 113 if (renderer()) 114 static_cast<RenderText Field*>(renderer())->select();114 static_cast<RenderTextControl *>(renderer())->select(); 115 115 } 116 116 … … 118 118 { 119 119 if (renderer()) 120 static_cast<RenderText Field*>(renderer())->setSelectionRange(start, end);120 static_cast<RenderTextControl*>(renderer())->setSelectionRange(start, end); 121 121 } 122 122 … … 165 165 RenderObject* HTMLTextAreaElement::createRenderer(RenderArena* arena, RenderStyle* style) 166 166 { 167 return new (arena) RenderText Field(this, true);167 return new (arena) RenderTextControl(this, true); 168 168 } 169 169 … … 174 174 175 175 bool hardWrap = renderer() && wrap() == ta_Physical; 176 String v = hardWrap ? static_cast<RenderText Field*>(renderer())->textWithHardLineBreaks() : value();176 String v = hardWrap ? static_cast<RenderTextControl*>(renderer())->textWithHardLineBreaks() : value(); 177 177 encoding.appendData(name(), v); 178 178 return true; … … 211 211 // If this is the first focus, set a caret at the end of the text. 212 212 // This matches other browsers' behavior. 213 int max = static_cast<RenderText Field*>(renderer())->text().length();213 int max = static_cast<RenderTextControl*>(renderer())->text().length(); 214 214 setSelectionRange(max, max); 215 215 } else … … 227 227 { 228 228 if (renderer() && (evt->isMouseEvent() || evt->isDragEvent() || evt->isWheelEvent() || evt->type() == blurEvent)) 229 static_cast<RenderText Field*>(renderer())->forwardEvent(evt);229 static_cast<RenderTextControl*>(renderer())->forwardEvent(evt); 230 230 231 231 HTMLGenericFormElement::defaultEventHandler(evt); … … 241 241 if (!valueMatchesRenderer()) { 242 242 ASSERT(renderer()); 243 m_value = static_cast<RenderText Field*>(renderer())->text();243 m_value = static_cast<RenderTextControl*>(renderer())->text(); 244 244 setValueMatchesRenderer(); 245 245 } -
trunk/WebCore/html/HTMLTextFieldInnerElement.cpp
r14451 r15253 31 31 #include "HTMLInputElement.h" 32 32 #include "HTMLTextAreaElement.h" 33 #include "RenderText Field.h"33 #include "RenderTextControl.h" 34 34 35 35 namespace WebCore { … … 54 54 static_cast<HTMLTextAreaElement*>(shadowParentNode())->defaultEventHandler(evt); 55 55 if (evt->type() == khtmlEditableContentChangedEvent) 56 static_cast<RenderText Field*>(shadowParentNode()->renderer())->subtreeHasChanged();56 static_cast<RenderTextControl*>(shadowParentNode()->renderer())->subtreeHasChanged(); 57 57 } 58 58 HTMLDivElement::defaultEventHandler(evt); -
trunk/WebCore/html/HTMLTokenizer.cpp
r15247 r15253 389 389 390 390 state = processListing(SegmentedString(scriptCode, scriptCodeSize), state); 391 DeprecatedString exScript(reinterpret_cast< QChar*>(buffer), dest - buffer);391 DeprecatedString exScript(reinterpret_cast<DeprecatedChar*>(buffer), dest - buffer); 392 392 processToken(); 393 393 currToken.tagName = scriptTag.localName(); … … 1547 1547 DeprecatedString food; 1548 1548 if (m_state.inScript() || m_state.inStyle()) 1549 food.setUnicode(reinterpret_cast< QChar*>(scriptCode), scriptCodeSize);1549 food.setUnicode(reinterpret_cast<DeprecatedChar*>(scriptCode), scriptCodeSize); 1550 1550 else if (m_state.inServer()) { 1551 1551 food = "<"; 1552 food += DeprecatedString(reinterpret_cast< QChar*>(scriptCode), scriptCodeSize);1552 food += DeprecatedString(reinterpret_cast<DeprecatedChar*>(scriptCode), scriptCodeSize); 1553 1553 } else { 1554 pos = QConstString(reinterpret_cast<QChar*>(scriptCode), scriptCodeSize).string().find('>');1555 food.setUnicode(reinterpret_cast< QChar*>(scriptCode) + pos + 1, scriptCodeSize - pos - 1); // deep copy1554 pos = DeprecatedConstString(reinterpret_cast<DeprecatedChar*>(scriptCode), scriptCodeSize).string().find('>'); 1555 food.setUnicode(reinterpret_cast<DeprecatedChar*>(scriptCode) + pos + 1, scriptCodeSize - pos - 1); // deep copy 1556 1556 } 1557 1557 fastFree(scriptCode); … … 1578 1578 #ifdef TOKEN_DEBUG 1579 1579 if(currToken.tagName.length()) { 1580 qDebug( "unexpected token: %s, str: *%s*", currToken.tagName.deprecatedString().latin1(), QConstString( buffer,dest-buffer ).deprecatedString().latin1() );1580 qDebug( "unexpected token: %s, str: *%s*", currToken.tagName.deprecatedString().latin1(),DeprecatedConstString( buffer,dest-buffer ).deprecatedString().latin1() ); 1581 1581 ASSERT(0); 1582 1582 } … … 1599 1599 DeprecatedString text; 1600 1600 if(currToken.text) 1601 text = QConstString(currToken.text->unicode(), currToken.text->length()).deprecatedString();1601 text = DeprecatedConstString(currToken.text->unicode(), currToken.text->length()).deprecatedString(); 1602 1602 1603 1603 kdDebug( 6036 ) << "Token --> " << name << endl; -
trunk/WebCore/html/HTMLTokenizer.h
r15134 r15253 27 27 #define HTMLTOKENIZER_H 28 28 29 #include " KWQPtrQueue.h"29 #include "DeprecatedPtrQueue.h" 30 30 #include "NamedMappedAttrMap.h" 31 31 #include "SegmentedString.h" 32 32 #include "Timer.h" 33 #include " xml_tokenizer.h"33 #include "XMLTokenizer.h" 34 34 #include "CachedObjectClient.h" 35 35 -
trunk/WebCore/kcanvas/KCanvasCreator.cpp
r13821 r15253 28 28 29 29 #include "KRenderingDevice.h" 30 #include " KCanvasContainer.h"30 #include "RenderSVGContainer.h" 31 31 32 32 namespace WebCore { -
trunk/WebCore/kcanvas/KCanvasFilters.cpp
r14256 r15253 28 28 #include "CachedImage.h" 29 29 30 #include " KWQTextStream.h"30 #include "TextStream.h" 31 31 #include "KCanvasTreeDebug.h" 32 32 #include <wtf/Assertions.h> … … 67 67 } 68 68 69 QTextStream &KCanvasFilter::externalRepresentation(QTextStream &ts) const69 TextStream &KCanvasFilter::externalRepresentation(TextStream &ts) const 70 70 { 71 71 ts << "[type=FILTER] " … … 88 88 } 89 89 90 QTextStream &operator<<(QTextStream &ts, const KCanvasFilterEffect &e)90 TextStream &operator<<(TextStream &ts, const KCanvasFilterEffect &e) 91 91 { 92 92 return e.externalRepresentation(ts); … … 122 122 } 123 123 124 static QTextStream &operator<<(QTextStream &ts, const KCanvasPoint3F p)124 static TextStream &operator<<(TextStream &ts, const KCanvasPoint3F p) 125 125 { 126 126 ts << "x=" << p.x() << " y=" << p.y() << " z=" << p.z(); … … 128 128 } 129 129 130 QTextStream &KCanvasFilterEffect::externalRepresentation(QTextStream &ts) const130 TextStream &KCanvasFilterEffect::externalRepresentation(TextStream &ts) const 131 131 { 132 132 if (!in().isEmpty()) … … 139 139 } 140 140 141 QTextStream &KCPointLightSource::externalRepresentation(QTextStream &ts) const141 TextStream &KCPointLightSource::externalRepresentation(TextStream &ts) const 142 142 { 143 143 ts << "[type=POINT-LIGHT] "; … … 146 146 } 147 147 148 QTextStream &KCSpotLightSource::externalRepresentation(QTextStream &ts) const148 TextStream &KCSpotLightSource::externalRepresentation(TextStream &ts) const 149 149 { 150 150 ts << "[type=SPOT-LIGHT] "; … … 156 156 } 157 157 158 QTextStream &KCDistantLightSource::externalRepresentation(QTextStream &ts) const158 TextStream &KCDistantLightSource::externalRepresentation(TextStream &ts) const 159 159 { 160 160 ts << "[type=DISTANT-LIGHT] "; … … 164 164 } 165 165 166 static QTextStream &operator<<(QTextStream &ts, KCBlendModeType t)166 static TextStream &operator<<(TextStream &ts, KCBlendModeType t) 167 167 { 168 168 switch (t) … … 182 182 } 183 183 184 QTextStream &KCanvasFEBlend::externalRepresentation(QTextStream &ts) const184 TextStream &KCanvasFEBlend::externalRepresentation(TextStream &ts) const 185 185 { 186 186 ts << "[type=BLEND] "; … … 192 192 } 193 193 194 static QTextStream &operator<<(QTextStream &ts, KCColorMatrixType t)194 static TextStream &operator<<(TextStream &ts, KCColorMatrixType t) 195 195 { 196 196 switch (t) … … 208 208 } 209 209 210 QTextStream &KCanvasFEColorMatrix::externalRepresentation(QTextStream &ts) const210 TextStream &KCanvasFEColorMatrix::externalRepresentation(TextStream &ts) const 211 211 { 212 212 ts << "[type=COLOR-MATRIX] "; … … 217 217 } 218 218 219 static QTextStream &operator<<(QTextStream &ts, KCComponentTransferType t)219 static TextStream &operator<<(TextStream &ts, KCComponentTransferType t) 220 220 { 221 221 switch (t) … … 235 235 } 236 236 237 static QTextStream &operator<<(QTextStream &ts, const KCComponentTransferFunction &func)237 static TextStream &operator<<(TextStream &ts, const KCComponentTransferFunction &func) 238 238 { 239 239 ts << "[type=" << func.type << "]"; … … 266 266 } 267 267 268 QTextStream &KCanvasFEComponentTransfer::externalRepresentation(QTextStream &ts) const268 TextStream &KCanvasFEComponentTransfer::externalRepresentation(TextStream &ts) const 269 269 { 270 270 ts << "[type=COMPONENT-TRANSFER] "; … … 277 277 } 278 278 279 QTextStream &KCanvasFEComposite::externalRepresentation(QTextStream &ts) const279 TextStream &KCanvasFEComposite::externalRepresentation(TextStream &ts) const 280 280 { 281 281 ts << "[type=COMPOSITE] "; … … 287 287 } 288 288 289 static QTextStream &operator<<(QTextStream &ts, KCEdgeModeType t)289 static TextStream &operator<<(TextStream &ts, KCEdgeModeType t) 290 290 { 291 291 switch (t) … … 301 301 } 302 302 303 QTextStream &KCanvasFEConvolveMatrix::externalRepresentation(QTextStream &ts) const303 TextStream &KCanvasFEConvolveMatrix::externalRepresentation(TextStream &ts) const 304 304 { 305 305 ts << "[type=CONVOLVE-MATRIX] "; … … 332 332 } 333 333 334 QTextStream &KCanvasFEDiffuseLighting::externalRepresentation(QTextStream &ts) const334 TextStream &KCanvasFEDiffuseLighting::externalRepresentation(TextStream &ts) const 335 335 { 336 336 ts << "[type=DIFFUSE-LIGHTING] "; … … 342 342 } 343 343 344 static QTextStream &operator<<(QTextStream &ts, KCChannelSelectorType t)344 static TextStream &operator<<(TextStream &ts, KCChannelSelectorType t) 345 345 { 346 346 switch (t) … … 358 358 } 359 359 360 QTextStream &KCanvasFEDisplacementMap::externalRepresentation(QTextStream &ts) const360 TextStream &KCanvasFEDisplacementMap::externalRepresentation(TextStream &ts) const 361 361 { 362 362 ts << "[type=DISPLACEMENT-MAP] "; … … 370 370 } 371 371 372 QTextStream &KCanvasFEFlood::externalRepresentation(QTextStream &ts) const372 TextStream &KCanvasFEFlood::externalRepresentation(TextStream &ts) const 373 373 { 374 374 ts << "[type=FLOOD] "; … … 399 399 } 400 400 401 QTextStream &KCanvasFEGaussianBlur::externalRepresentation(QTextStream &ts) const401 TextStream &KCanvasFEGaussianBlur::externalRepresentation(TextStream &ts) const 402 402 { 403 403 ts << "[type=GAUSSIAN-BLUR] "; … … 407 407 } 408 408 409 QTextStream &KCanvasFEImage::externalRepresentation(QTextStream &ts) const409 TextStream &KCanvasFEImage::externalRepresentation(TextStream &ts) const 410 410 { 411 411 ts << "[type=IMAGE] "; … … 415 415 } 416 416 417 QTextStream &KCanvasFEMerge::externalRepresentation(QTextStream &ts) const417 TextStream &KCanvasFEMerge::externalRepresentation(TextStream &ts) const 418 418 { 419 419 ts << "[type=MERGE] "; … … 423 423 } 424 424 425 static QTextStream &operator<<(QTextStream &ts, KCMorphologyOperatorType t)425 static TextStream &operator<<(TextStream &ts, KCMorphologyOperatorType t) 426 426 { 427 427 switch (t) … … 435 435 } 436 436 437 QTextStream &KCanvasFEMorphology::externalRepresentation(QTextStream &ts) const437 TextStream &KCanvasFEMorphology::externalRepresentation(TextStream &ts) const 438 438 { 439 439 ts << "[type=MORPHOLOGY-OPERATOR] "; … … 444 444 } 445 445 446 QTextStream &KCanvasFEOffset::externalRepresentation(QTextStream &ts) const446 TextStream &KCanvasFEOffset::externalRepresentation(TextStream &ts) const 447 447 { 448 448 ts << "[type=OFFSET] "; KCanvasFilterEffect::externalRepresentation(ts) … … 451 451 } 452 452 453 QTextStream &KCanvasFESpecularLighting::externalRepresentation(QTextStream &ts) const453 TextStream &KCanvasFESpecularLighting::externalRepresentation(TextStream &ts) const 454 454 { 455 455 ts << "[type=SPECULAR-LIGHTING] "; … … 463 463 #if 0 464 464 ///FIXME: KCanvasFETile doesn't have any properties 465 QTextStream &KCanvasFETile::externalRepresentation(QTextStream &ts) const465 TextStream &KCanvasFETile::externalRepresentation(TextStream &ts) const 466 466 { 467 467 KCanvasFilterEffect::externalRepresentation(ts); … … 470 470 #endif 471 471 472 static QTextStream &operator<<(QTextStream &ts, KCTurbulanceType t)472 static TextStream &operator<<(TextStream &ts, KCTurbulanceType t) 473 473 { 474 474 switch (t) … … 482 482 } 483 483 484 QTextStream &KCanvasFETurbulence::externalRepresentation(QTextStream &ts) const484 TextStream &KCanvasFETurbulence::externalRepresentation(TextStream &ts) const 485 485 { 486 486 ts << "[type=TURBULENCE] "; -
trunk/WebCore/kcanvas/KCanvasFilters.h
r14407 r15253 113 113 virtual void applyFilter(const FloatRect &bbox) = 0; 114 114 115 QTextStream &externalRepresentation(QTextStream &) const;115 TextStream &externalRepresentation(TextStream &) const; 116 116 117 117 protected: … … 146 146 #endif 147 147 148 virtual QTextStream &externalRepresentation(QTextStream &) const;148 virtual TextStream &externalRepresentation(TextStream &) const; 149 149 150 150 private: … … 154 154 }; 155 155 156 QTextStream &operator<<(QTextStream &, const KCanvasFilterEffect &);156 TextStream &operator<<(TextStream &, const KCanvasFilterEffect &); 157 157 158 158 typedef enum { … … 173 173 void setBlendMode(KCBlendModeType mode) { m_mode = mode; } 174 174 175 QTextStream &externalRepresentation(QTextStream &) const;175 TextStream &externalRepresentation(TextStream &) const; 176 176 177 177 private: … … 196 196 void setValues(const DeprecatedValueList<float> &values) { m_values = values; }; 197 197 198 QTextStream &externalRepresentation(QTextStream &) const;198 TextStream &externalRepresentation(TextStream &) const; 199 199 200 200 private: … … 238 238 void setAlphaFunction(const KCComponentTransferFunction& func) { m_alphaFunc = func; } 239 239 240 QTextStream& externalRepresentation(QTextStream&) const;240 TextStream& externalRepresentation(TextStream&) const; 241 241 242 242 private: … … 274 274 void setK4(float k4) { m_k4 = k4; } 275 275 276 QTextStream &externalRepresentation(QTextStream &) const;276 TextStream &externalRepresentation(TextStream &) const; 277 277 278 278 private: … … 320 320 void setPreserveAlpha(bool preserveAlpha) { m_preserveAlpha = preserveAlpha; } 321 321 322 QTextStream &externalRepresentation(QTextStream &) const;322 TextStream &externalRepresentation(TextStream &) const; 323 323 324 324 private: … … 349 349 KCLightType type() const { return m_type; } 350 350 351 virtual QTextStream &externalRepresentation(QTextStream &) const = 0;351 virtual TextStream &externalRepresentation(TextStream &) const = 0; 352 352 353 353 private: … … 364 364 float elevation() const{ return m_elevation; } 365 365 366 virtual QTextStream &externalRepresentation(QTextStream &) const;366 virtual TextStream &externalRepresentation(TextStream &) const; 367 367 368 368 private: … … 378 378 const KCanvasPoint3F& position() const { return m_position; } 379 379 380 virtual QTextStream &externalRepresentation(QTextStream &) const;380 virtual TextStream &externalRepresentation(TextStream &) const; 381 381 382 382 private: … … 396 396 float limitingConeAngle() const { return m_limitingConeAngle; } 397 397 398 virtual QTextStream &externalRepresentation(QTextStream &) const;398 virtual TextStream &externalRepresentation(TextStream &) const; 399 399 private: 400 400 KCanvasPoint3F m_position; … … 428 428 void setLightSource(KCLightSource *lightSource); 429 429 430 QTextStream &externalRepresentation(QTextStream &) const;430 TextStream &externalRepresentation(TextStream &) const; 431 431 432 432 private: … … 463 463 void setScale(float scale) { m_scale = scale; } 464 464 465 QTextStream &externalRepresentation(QTextStream &) const;465 TextStream &externalRepresentation(TextStream &) const; 466 466 467 467 private: … … 481 481 void setFloodOpacity(float floodOpacity) { m_floodOpacity = floodOpacity; } 482 482 483 QTextStream &externalRepresentation(QTextStream &) const;483 TextStream &externalRepresentation(TextStream &) const; 484 484 485 485 private: … … 497 497 void setStdDeviationY(float y); 498 498 499 QTextStream &externalRepresentation(QTextStream &) const;499 TextStream &externalRepresentation(TextStream &) const; 500 500 501 501 private: … … 515 515 void setCachedImage(CachedImage* image); 516 516 517 QTextStream &externalRepresentation(QTextStream &) const;517 TextStream &externalRepresentation(TextStream &) const; 518 518 519 519 private: … … 527 527 void setMergeInputs(const DeprecatedStringList &mergeInputs) { m_mergeInputs = mergeInputs; } 528 528 529 QTextStream &externalRepresentation(QTextStream &) const;529 TextStream &externalRepresentation(TextStream &) const; 530 530 531 531 private: … … 550 550 void setRadiusY(float radiusY) { m_radiusY = radiusY; } 551 551 552 QTextStream &externalRepresentation(QTextStream &) const;552 TextStream &externalRepresentation(TextStream &) const; 553 553 554 554 private: … … 567 567 void setDy(float dy) { m_dy = dy; } 568 568 569 QTextStream &externalRepresentation(QTextStream &) const;569 TextStream &externalRepresentation(TextStream &) const; 570 570 571 571 private: … … 601 601 void setLightSource(KCLightSource *lightSource); 602 602 603 QTextStream &externalRepresentation(QTextStream &) const;603 TextStream &externalRepresentation(TextStream &) const; 604 604 605 605 private: … … 641 641 void setStitchTiles(bool stitch) { m_stitchTiles = stitch; } 642 642 643 QTextStream &externalRepresentation(QTextStream &) const;643 TextStream &externalRepresentation(TextStream &) const; 644 644 645 645 private: -
trunk/WebCore/kcanvas/KCanvasMatrix.cpp
r13858 r15253 26 26 27 27 #include "KCanvasPath.h" 28 #include " KWQWMatrix.h"28 #include "AffineTransform.h" 29 29 #include <math.h> 30 30 … … 39 39 } 40 40 41 KCanvasMatrix::KCanvasMatrix(const QMatrix &qmatrix)42 { 43 m_mode = OPS_PREMUL; 44 (*this) = qmatrix;41 KCanvasMatrix::KCanvasMatrix(const AffineTransform &matrix) 42 { 43 m_mode = OPS_PREMUL; 44 (*this) = matrix; 45 45 } 46 46 … … 61 61 } 62 62 63 KCanvasMatrix &KCanvasMatrix::operator=(const QMatrix&other)63 KCanvasMatrix &KCanvasMatrix::operator=(const AffineTransform &other) 64 64 { 65 65 m_matrix = other; … … 73 73 } 74 74 75 bool KCanvasMatrix::operator==(const QMatrix&other) const75 bool KCanvasMatrix::operator==(const AffineTransform &other) const 76 76 { 77 77 return (m_matrix == other); 78 78 } 79 79 80 bool KCanvasMatrix::operator!=(const QMatrix&other) const80 bool KCanvasMatrix::operator!=(const AffineTransform &other) const 81 81 { 82 82 return !operator==(other); … … 164 164 else 165 165 { 166 QMatrixtemp;166 AffineTransform temp; 167 167 temp.translate(x, y); 168 168 m_matrix *= temp; … … 174 174 KCanvasMatrix &KCanvasMatrix::multiply(const KCanvasMatrix &other) 175 175 { 176 QMatrixtemp(other.a(), other.b(), other.c(), other.d(), other.e(), other.f());176 AffineTransform temp(other.a(), other.b(), other.c(), other.d(), other.e(), other.f()); 177 177 178 178 if(m_mode == OPS_PREMUL) … … 193 193 else 194 194 { 195 QMatrixtemp;195 AffineTransform temp; 196 196 temp.scale(scaleFactorX, scaleFactorY); 197 197 m_matrix *= temp; … … 207 207 else 208 208 { 209 QMatrixtemp;209 AffineTransform temp; 210 210 temp.rotate(angle); 211 211 m_matrix *= temp; … … 221 221 else 222 222 { 223 QMatrixtemp;223 AffineTransform temp; 224 224 temp.rotate(atan2(y, x) / deg2rad); 225 225 m_matrix *= temp; … … 245 245 else 246 246 { 247 QMatrixtemp;247 AffineTransform temp; 248 248 temp.shear(tan(angle * deg2rad), 0.0f); 249 249 m_matrix *= temp; … … 259 259 else 260 260 { 261 QMatrixtemp;261 AffineTransform temp; 262 262 temp.shear(0.0f, tan(angle * deg2rad)); 263 263 m_matrix *= temp; … … 284 284 } 285 285 286 QMatrix KCanvasMatrix::qmatrix() const286 AffineTransform KCanvasMatrix::matrix() const 287 287 { 288 288 return m_matrix; -
trunk/WebCore/kcanvas/KCanvasMatrix.h
r13858 r15253 25 25 #if SVG_SUPPORT 26 26 27 #include " KWQWMatrix.h"27 #include "AffineTransform.h" 28 28 29 29 namespace WebCore { … … 39 39 public: 40 40 KCanvasMatrix(); 41 KCanvasMatrix(const QMatrix &qmatrix);41 KCanvasMatrix(const AffineTransform &matrix); 42 42 KCanvasMatrix(const KCanvasMatrix &matrix); 43 43 KCanvasMatrix(double a, double b, double c, double d, double e, double f); … … 45 45 46 46 // Operators 47 KCanvasMatrix &operator=(const QMatrix&other);47 KCanvasMatrix &operator=(const AffineTransform &other); 48 48 KCanvasMatrix &operator=(const KCanvasMatrix &other); 49 49 50 bool operator==(const QMatrix&other) const;51 bool operator!=(const QMatrix&other) const;50 bool operator==(const AffineTransform &other) const; 51 bool operator!=(const AffineTransform &other) const; 52 52 53 53 bool operator==(const KCanvasMatrix &other) const; … … 95 95 void removeScale(double *xScale, double *yScale); 96 96 97 QMatrix qmatrix() const;97 AffineTransform matrix() const; 98 98 99 99 private: 100 QMatrixm_matrix;100 AffineTransform m_matrix; 101 101 KCMatrixOperationMode m_mode; 102 102 }; -
trunk/WebCore/kcanvas/KCanvasPath.cpp
r13858 r15253 27 27 #if SVG_SUPPORT 28 28 29 #include " KWQTextStream.h"29 #include "TextStream.h" 30 30 31 31 #include "KCanvasPath.h" … … 36 36 37 37 //KCWindRule 38 QTextStream &operator<<(QTextStream &ts, KCWindRule rule)38 TextStream &operator<<(TextStream &ts, KCWindRule rule) 39 39 { 40 40 switch (rule) … … 49 49 50 50 //KCClipData 51 QTextStream &operator<<(QTextStream &ts, const KCClipData &d)51 TextStream &operator<<(TextStream &ts, const KCClipData &d) 52 52 { 53 53 ts << "[winding=" << d.windRule() << "]"; -
trunk/WebCore/kcanvas/KCanvasPath.h
r14407 r15253 31 31 #include "FloatRect.h" 32 32 33 class QTextStream;33 class TextStream; 34 34 35 35 namespace WebCore { … … 95 95 }; 96 96 97 QTextStream &operator<<(QTextStream &ts, KCWindRule rule);98 QTextStream &operator<<(QTextStream &ts, const KCClipData &d);97 TextStream &operator<<(TextStream &ts, KCWindRule rule); 98 TextStream &operator<<(TextStream &ts, const KCClipData &d); 99 99 100 100 } -
trunk/WebCore/kcanvas/KCanvasResources.cpp
r13992 r15253 28 28 #include "GraphicsContext.h" 29 29 #include "IntRect.h" 30 #include " KCanvasContainer.h"30 #include "RenderSVGContainer.h" 31 31 #include "KCanvasImage.h" 32 32 #include "KCanvasMatrix.h" … … 35 35 #include "RenderPath.h" 36 36 #include "SVGStyledElement.h" 37 #include " KWQTextStream.h"37 #include "TextStream.h" 38 38 39 39 namespace WebCore { 40 40 41 QTextStream &operator<<(QTextStream &ts, const WebCore::KCanvasResource &r)41 TextStream &operator<<(TextStream &ts, const WebCore::KCanvasResource &r) 42 42 { 43 43 return r.externalRepresentation(ts); … … 85 85 } 86 86 87 QTextStream& KCanvasResource::externalRepresentation(QTextStream &ts) const87 TextStream& KCanvasResource::externalRepresentation(TextStream &ts) const 88 88 { 89 89 return ts; … … 114 114 } 115 115 116 QTextStream& KCanvasClipper::externalRepresentation(QTextStream &ts) const116 TextStream& KCanvasClipper::externalRepresentation(TextStream &ts) const 117 117 { 118 118 ts << "[type=CLIPPER]"; … … 139 139 } 140 140 141 QTextStream& KCanvasMasker::externalRepresentation(QTextStream &ts) const141 TextStream& KCanvasMasker::externalRepresentation(TextStream &ts) const 142 142 { 143 143 ts << "[type=MASKER]"; … … 241 241 // FIXME: bounding box fractions lost 242 242 RenderObject::PaintInfo info(context, enclosingIntRect(rect), PaintPhaseForeground, 0, 0); 243 m_marker->setLocalTransform(rotation.multiply(translation). qmatrix());244 static_cast< KCanvasContainer *>(m_marker)->setDrawsContents(true);243 m_marker->setLocalTransform(rotation.multiply(translation).matrix()); 244 static_cast<RenderSVGContainer *>(m_marker)->setDrawsContents(true); 245 245 m_marker->paint(info, 0, 0); 246 static_cast< KCanvasContainer *>(m_marker)->setDrawsContents(false);246 static_cast<RenderSVGContainer *>(m_marker)->setDrawsContents(false); 247 247 } 248 248 } 249 249 250 QTextStream& KCanvasMarker::externalRepresentation(QTextStream &ts) const250 TextStream& KCanvasMarker::externalRepresentation(TextStream &ts) const 251 251 { 252 252 ts << "[type=MARKER]" -
trunk/WebCore/kcanvas/KCanvasResources.h
r13992 r15253 29 29 #include <kcanvas/KCanvasResourceListener.h> 30 30 31 class QTextStream;31 class TextStream; 32 32 33 33 namespace WebCore { … … 67 67 virtual bool isMasker() const { return false; } 68 68 69 virtual QTextStream& externalRepresentation(QTextStream &) const;69 virtual TextStream& externalRepresentation(TextStream &) const; 70 70 private: 71 71 KCanvasItemList m_clients; … … 88 88 KCClipDataList clipData() const; 89 89 90 QTextStream& externalRepresentation(QTextStream &) const;90 TextStream& externalRepresentation(TextStream &) const; 91 91 protected: 92 92 KCClipDataList m_clipData; … … 107 107 virtual void applyMask(const FloatRect& boundingBox) const = 0; 108 108 109 QTextStream& externalRepresentation(QTextStream &) const;109 TextStream& externalRepresentation(TextStream &) const; 110 110 protected: 111 111 KCanvasImage *m_mask; … … 139 139 void draw(GraphicsContext*, const FloatRect&, double x, double y, double strokeWidth = 1, double angle = 0); 140 140 141 QTextStream& externalRepresentation(QTextStream &) const;141 TextStream& externalRepresentation(TextStream &) const; 142 142 143 143 private: … … 154 154 KRenderingPaintServer *getPaintServerById(Document *document, const AtomicString &id); 155 155 156 QTextStream &operator<<(QTextStream &ts, const KCanvasResource &r);156 TextStream &operator<<(TextStream &ts, const KCanvasResource &r); 157 157 158 158 } -
trunk/WebCore/kcanvas/KCanvasTreeDebug.cpp
r13821 r15253 32 32 #include "HTMLNames.h" 33 33 #include "RenderTreeAsText.h" 34 #include <kcanvas/ KCanvasContainer.h>34 #include <kcanvas/RenderSVGContainer.h> 35 35 #include <kcanvas/device/KRenderingDevice.h> 36 36 #include <kcanvas/device/KRenderingFillPainter.h> … … 49 49 * DeprecatedStringList::join for streams 50 50 */ 51 class QTextStreamSeparator51 class TextStreamSeparator 52 52 { 53 53 public: 54 QTextStreamSeparator(const DeprecatedString &s) : m_separator(s), m_needToSeparate(false) {}54 TextStreamSeparator(const DeprecatedString &s) : m_separator(s), m_needToSeparate(false) {} 55 55 private: 56 friend QTextStream& operator<<(QTextStream &ts, QTextStreamSeparator &sep);56 friend TextStream& operator<<(TextStream &ts, TextStreamSeparator &sep); 57 57 58 58 private: … … 61 61 }; 62 62 63 QTextStream& operator<<(QTextStream &ts, QTextStreamSeparator &sep)63 TextStream& operator<<(TextStream &ts, TextStreamSeparator &sep) 64 64 { 65 65 if (sep.m_needToSeparate) … … 70 70 } 71 71 72 QTextStream &operator<<(QTextStream &ts, const IntPoint &p)72 TextStream &operator<<(TextStream &ts, const IntPoint &p) 73 73 { 74 74 return ts << "(" << p.x() << "," << p.y() << ")"; 75 75 } 76 76 77 QTextStream &operator<<(QTextStream &ts, const IntRect &r)77 TextStream &operator<<(TextStream &ts, const IntRect &r) 78 78 { 79 79 return ts << "at (" << r.x() << "," << r.y() << ") size " << r.width() << "x" << r.height(); … … 88 88 } 89 89 90 QTextStream &operator<<(QTextStream &ts, const FloatRect &r)90 TextStream &operator<<(TextStream &ts, const FloatRect &r) 91 91 { 92 92 ts << "at ("; … … 113 113 } 114 114 115 QTextStream &operator<<(QTextStream &ts, const FloatPoint &p)115 TextStream &operator<<(TextStream &ts, const FloatPoint &p) 116 116 { 117 117 ts << "("; … … 128 128 } 129 129 130 QTextStream &operator<<(QTextStream &ts, const FloatSize &s)130 TextStream &operator<<(TextStream &ts, const FloatSize &s) 131 131 { 132 132 ts << "width="; … … 144 144 145 145 146 QTextStream &operator<<(QTextStream &ts, const QMatrix&m)146 TextStream &operator<<(TextStream &ts, const AffineTransform &m) 147 147 { 148 148 if (m.isIdentity()) … … 156 156 } 157 157 158 QTextStream &operator<<(QTextStream &ts, const Color &c)158 TextStream &operator<<(TextStream &ts, const Color &c) 159 159 { 160 160 return ts << c.name(); 161 161 } 162 162 163 static void writeIndent( QTextStream &ts, int indent)163 static void writeIndent(TextStream &ts, int indent) 164 164 { 165 165 for (int i = 0; i != indent; ++i) { … … 169 169 170 170 //FIXME: This should be in KRenderingStyle.cpp 171 static QTextStream &operator<<(QTextStream &ts, const KCDashArray &a)171 static TextStream &operator<<(TextStream &ts, const KCDashArray &a) 172 172 { 173 173 ts << "{"; … … 182 182 183 183 //FIXME: This should be in KRenderingStyle.cpp 184 static QTextStream &operator<<(QTextStream &ts, KCCapStyle style)184 static TextStream &operator<<(TextStream &ts, KCCapStyle style) 185 185 { 186 186 switch (style) { … … 196 196 197 197 //FIXME: This should be in KRenderingStyle.cpp 198 static QTextStream &operator<<(QTextStream &ts, KCJoinStyle style)198 static TextStream &operator<<(TextStream &ts, KCJoinStyle style) 199 199 { 200 200 switch (style) { … … 214 214 #define DIFFERS_FROM_PARENT_AVOID_TEST_IF_FALSE(pred, path) (!parentStyle || ((!parentStyle->pred) || (parentStyle->path != childStyle->path))) 215 215 216 static void writeStyle( QTextStream &ts, const RenderObject &object)216 static void writeStyle(TextStream &ts, const RenderObject &object) 217 217 { 218 218 const RenderStyle *style = object.style(); … … 229 229 KRenderingPaintServer *strokePaintServer = KSVGPainterFactory::strokePaintServer(style, &path); 230 230 if (strokePaintServer) { 231 QTextStreamSeparator s(" ");231 TextStreamSeparator s(" "); 232 232 ts << " [stroke={"; 233 233 if (strokePaintServer) { … … 256 256 KRenderingPaintServer *fillPaintServer = KSVGPainterFactory::fillPaintServer(style, &path); 257 257 if (fillPaintServer) { 258 QTextStreamSeparator s(" ");258 TextStreamSeparator s(" "); 259 259 ts << " [fill={"; 260 260 if (fillPaintServer) { … … 286 286 #undef DIFFERS_FROM_PARENT_AVOID_TEST_IF_FALSE 287 287 288 static QTextStream &operator<<(QTextStream &ts, const RenderPath &o)288 static TextStream &operator<<(TextStream &ts, const RenderPath &o) 289 289 { 290 290 ts << " " << o.absoluteTransform().mapRect(o.relativeBBox()); … … 297 297 } 298 298 299 static QTextStream &operator<<(QTextStream &ts, const KCanvasContainer &o)299 static TextStream &operator<<(TextStream &ts, const RenderSVGContainer &o) 300 300 { 301 301 ts << " " << o.absoluteTransform().mapRect(o.relativeBBox()); … … 314 314 } 315 315 316 void write( QTextStream &ts, const KCanvasContainer &container, int indent)316 void write(TextStream &ts, const RenderSVGContainer &container, int indent) 317 317 { 318 318 writeIndent(ts, indent); … … 331 331 } 332 332 333 void write( QTextStream &ts, const RenderPath &path, int indent)333 void write(TextStream &ts, const RenderPath &path, int indent) 334 334 { 335 335 writeIndent(ts, indent); … … 345 345 } 346 346 347 void writeRenderResources( QTextStream &ts, Node *parent)347 void writeRenderResources(TextStream &ts, Node *parent) 348 348 { 349 349 ASSERT(parent); … … 369 369 } 370 370 371 QTextStream &operator<<(QTextStream &ts, const DeprecatedStringList &l)371 TextStream &operator<<(TextStream &ts, const DeprecatedStringList &l) 372 372 { 373 373 ts << "["; -
trunk/WebCore/kcanvas/KCanvasTreeDebug.h
r14407 r15253 25 25 26 26 #include "DeprecatedString.h" 27 #include " KWQTextStream.h"27 #include "TextStream.h" 28 28 #include "DeprecatedValueList.h" 29 29 30 class QMatrix;30 class AffineTransform; 31 31 class DeprecatedStringList; 32 32 … … 42 42 class Node; 43 43 class RenderPath; 44 class KCanvasContainer;44 class RenderSVGContainer; 45 45 46 46 // functions used by the main RenderTreeAsText code 47 void write( QTextStream &ts, const WebCore::KCanvasContainer &container, int indent = 0);48 void write( QTextStream &ts, const WebCore::RenderPath &path, int indent = 0);49 void writeRenderResources( QTextStream &ts, WebCore::Node *parent);47 void write(TextStream &ts, const WebCore::RenderSVGContainer &container, int indent = 0); 48 void write(TextStream &ts, const WebCore::RenderPath &path, int indent = 0); 49 void writeRenderResources(TextStream &ts, WebCore::Node *parent); 50 50 51 51 // helper operators defined used in various classes to dump the render tree. 52 QTextStream &operator<<(QTextStream &ts, const QMatrix&);53 QTextStream &operator<<(QTextStream &ts, const WebCore::IntRect &);54 QTextStream &operator<<(QTextStream &ts, const WebCore::Color &);55 QTextStream &operator<<(QTextStream &ts, const WebCore::IntPoint &);56 QTextStream &operator<<(QTextStream &ts, const WebCore::FloatSize &);57 QTextStream &operator<<(QTextStream &ts, const WebCore::FloatRect &);58 QTextStream &operator<<(QTextStream &ts, const WebCore::FloatPoint &);52 TextStream &operator<<(TextStream &ts, const AffineTransform &); 53 TextStream &operator<<(TextStream &ts, const WebCore::IntRect &); 54 TextStream &operator<<(TextStream &ts, const WebCore::Color &); 55 TextStream &operator<<(TextStream &ts, const WebCore::IntPoint &); 56 TextStream &operator<<(TextStream &ts, const WebCore::FloatSize &); 57 TextStream &operator<<(TextStream &ts, const WebCore::FloatRect &); 58 TextStream &operator<<(TextStream &ts, const WebCore::FloatPoint &); 59 59 60 60 // helper operators specific to dumping the render tree. these are used in various classes to dump the render tree 61 61 // these could be defined in separate namespace to avoid matching these generic signatures unintentionally. 62 62 63 QTextStream &operator<<(QTextStream &ts, const DeprecatedStringList &l);63 TextStream &operator<<(TextStream &ts, const DeprecatedStringList &l); 64 64 65 65 template<typename Item> 66 QTextStream &operator<<(QTextStream &ts, const DeprecatedValueList<Item*> &l)66 TextStream &operator<<(TextStream &ts, const DeprecatedValueList<Item*> &l) 67 67 { 68 68 ts << "["; … … 81 81 82 82 template<typename Item> 83 QTextStream &operator<<(QTextStream &ts, const DeprecatedValueList<Item> &l)83 TextStream &operator<<(TextStream &ts, const DeprecatedValueList<Item> &l) 84 84 { 85 85 ts << "["; -
trunk/WebCore/kcanvas/RenderForeignObject.cpp
r14918 r15253 38 38 } 39 39 40 QMatrixRenderForeignObject::translationForAttributes()40 AffineTransform RenderForeignObject::translationForAttributes() 41 41 { 42 42 SVGForeignObjectElement *foreign = static_cast<SVGForeignObjectElement *>(element()); 43 return QMatrix().translate(foreign->x()->baseVal()->value(), foreign->y()->baseVal()->value());43 return AffineTransform().translate(foreign->x()->baseVal()->value(), foreign->y()->baseVal()->value()); 44 44 } 45 45 … … 61 61 paintInfo.p->save(); 62 62 63 context->concatCTM( QMatrix().translate(parentX, parentY));63 context->concatCTM(AffineTransform().translate(parentX, parentY)); 64 64 context->concatCTM(localTransform()); 65 65 context->concatCTM(translationForAttributes()); … … 88 88 void RenderForeignObject::computeAbsoluteRepaintRect(IntRect& r, bool f) 89 89 { 90 QMatrixtransform = translationForAttributes() * localTransform();90 AffineTransform transform = translationForAttributes() * localTransform(); 91 91 r = transform.mapRect(r); 92 92 … … 101 101 void RenderForeignObject::layout() 102 102 { 103 KHTMLAssert(needsLayout());104 KHTMLAssert(minMaxKnown());103 ASSERT(needsLayout()); 104 ASSERT(minMaxKnown()); 105 105 106 106 IntRect oldBounds; … … 121 121 bool RenderForeignObject::nodeAtPoint(NodeInfo& info, int x, int y, int tx, int ty, HitTestAction hitTestAction) 122 122 { 123 QMatrixtotalTransform = absoluteTransform();123 AffineTransform totalTransform = absoluteTransform(); 124 124 totalTransform *= translationForAttributes(); 125 125 double localX, localY; -
trunk/WebCore/kcanvas/RenderForeignObject.h
r14918 r15253 26 26 27 27 #include "RenderBlock.h" 28 #include " KWQWMatrix.h"28 #include "AffineTransform.h" 29 29 30 30 namespace WebCore { … … 40 40 virtual void paint(PaintInfo& paintInfo, int parentX, int parentY); 41 41 42 virtual QMatrixlocalTransform() const { return m_transform; }43 virtual void setLocalTransform(const QMatrix& transform) { m_transform = transform; }42 virtual AffineTransform localTransform() const { return m_transform; } 43 virtual void setLocalTransform(const AffineTransform& transform) { m_transform = transform; } 44 44 45 45 virtual void computeAbsoluteRepaintRect(IntRect& r, bool f); … … 50 50 51 51 private: 52 QMatrixtranslationForAttributes();53 QMatrixm_transform;52 AffineTransform translationForAttributes(); 53 AffineTransform m_transform; 54 54 IntRect m_absoluteBounds; 55 55 }; -
trunk/WebCore/kcanvas/RenderPath.cpp
r14918 r15253 27 27 28 28 #include "GraphicsContext.h" 29 #include " KCanvasContainer.h"29 #include "RenderSVGContainer.h" 30 30 #include "KRenderingDevice.h" 31 31 #include "KRenderingFillPainter.h" … … 42 42 FloatRect fillBBox; 43 43 FloatRect strokeBbox; 44 QMatrixmatrix;44 AffineTransform matrix; 45 45 IntRect absoluteBounds; 46 46 }; … … 58 58 } 59 59 60 QMatrixRenderPath::localTransform() const60 AffineTransform RenderPath::localTransform() const 61 61 { 62 62 return d->matrix; 63 63 } 64 64 65 void RenderPath::setLocalTransform(const QMatrix&matrix)65 void RenderPath::setLocalTransform(const AffineTransform &matrix) 66 66 { 67 67 d->matrix = matrix; -
trunk/WebCore/kcanvas/RenderPath.h
r14407 r15253 38 38 39 39 class KCanvasPath; 40 class KCanvasContainer;40 class RenderSVGContainer; 41 41 class KCanvasMatrix; 42 42 … … 60 60 virtual const char *renderName() const { return "KCanvasItem"; } 61 61 62 virtual QMatrixlocalTransform() const;63 virtual void setLocalTransform(const QMatrix&matrix);62 virtual AffineTransform localTransform() const; 63 virtual void setLocalTransform(const AffineTransform &matrix); 64 64 65 65 virtual void layout(); -
trunk/WebCore/kcanvas/RenderSVGContainer.cpp
r15251 r15253 25 25 #include "KCanvasRenderingStyle.h" 26 26 #include "KRenderingDevice.h" 27 #include " KCanvasContainer.h"27 #include "RenderSVGContainer.h" 28 28 #include "SVGStyledElement.h" 29 29 #include "GraphicsContext.h" … … 32 32 namespace WebCore { 33 33 34 class KCanvasContainer::Private34 class RenderSVGContainer::Private 35 35 { 36 36 public: … … 40 40 bool drawsContents : 1; 41 41 bool slice : 1; 42 QMatrixmatrix;42 AffineTransform matrix; 43 43 44 44 FloatRect viewport; … … 48 48 }; 49 49 50 KCanvasContainer::KCanvasContainer(SVGStyledElement *node)50 RenderSVGContainer::RenderSVGContainer(SVGStyledElement *node) 51 51 : RenderContainer(node), d(new Private()) 52 52 { … … 54 54 } 55 55 56 KCanvasContainer::~KCanvasContainer()56 RenderSVGContainer::~RenderSVGContainer() 57 57 { 58 58 delete d; 59 59 } 60 60 61 bool KCanvasContainer::drawsContents() const61 bool RenderSVGContainer::drawsContents() const 62 62 { 63 63 return d->drawsContents; 64 64 } 65 65 66 void KCanvasContainer::setDrawsContents(bool drawsContents)66 void RenderSVGContainer::setDrawsContents(bool drawsContents) 67 67 { 68 68 d->drawsContents = drawsContents; 69 69 } 70 70 71 QMatrix KCanvasContainer::localTransform() const71 AffineTransform RenderSVGContainer::localTransform() const 72 72 { 73 73 return d->matrix; 74 74 } 75 75 76 void KCanvasContainer::setLocalTransform(const QMatrix&matrix)76 void RenderSVGContainer::setLocalTransform(const AffineTransform &matrix) 77 77 { 78 78 d->matrix = matrix; 79 79 } 80 80 81 bool KCanvasContainer::canHaveChildren() const81 bool RenderSVGContainer::canHaveChildren() const 82 82 { 83 83 return true; 84 84 } 85 85 86 bool KCanvasContainer::requiresLayer()86 bool RenderSVGContainer::requiresLayer() 87 87 { 88 88 return false; 89 89 } 90 90 91 short KCanvasContainer::lineHeight(bool b, bool isRootLineBox) const91 short RenderSVGContainer::lineHeight(bool b, bool isRootLineBox) const 92 92 { 93 93 return height() + marginTop() + marginBottom(); 94 94 } 95 95 96 short KCanvasContainer::baselinePosition(bool b, bool isRootLineBox) const96 short RenderSVGContainer::baselinePosition(bool b, bool isRootLineBox) const 97 97 { 98 98 return height() + marginTop() + marginBottom(); 99 99 } 100 100 101 void KCanvasContainer::calcMinMaxWidth()102 { 103 KHTMLAssert(!minMaxKnown());101 void RenderSVGContainer::calcMinMaxWidth() 102 { 103 ASSERT(!minMaxKnown()); 104 104 m_minWidth = m_maxWidth = 0; 105 105 setMinMaxKnown(); 106 106 } 107 107 108 void KCanvasContainer::layout()109 { 110 KHTMLAssert(needsLayout());111 KHTMLAssert(minMaxKnown());108 void RenderSVGContainer::layout() 109 { 110 ASSERT(needsLayout()); 111 ASSERT(minMaxKnown()); 112 112 113 113 IntRect oldBounds; … … 127 127 } 128 128 129 void KCanvasContainer::paint(PaintInfo &paintInfo, int parentX, int parentY)129 void RenderSVGContainer::paint(PaintInfo &paintInfo, int parentX, int parentY) 130 130 { 131 131 if (paintInfo.p->paintingDisabled()) … … 162 162 if (parentX != 0 || parentY != 0) { 163 163 // Translate from parent offsets (khtml) to a relative transform (ksvg2/kcanvas) 164 deviceContext->concatCTM( QMatrix().translate(parentX, parentY));164 deviceContext->concatCTM(AffineTransform().translate(parentX, parentY)); 165 165 parentX = parentY = 0; 166 166 } 167 167 168 168 if (!viewport().isEmpty()) 169 deviceContext->concatCTM( QMatrix().translate(viewport().x(), viewport().y()));169 deviceContext->concatCTM(AffineTransform().translate(viewport().x(), viewport().y())); 170 170 171 171 if (!localTransform().isIdentity()) … … 204 204 } 205 205 206 void KCanvasContainer::setViewport(const FloatRect& viewport)206 void RenderSVGContainer::setViewport(const FloatRect& viewport) 207 207 { 208 208 d->viewport = viewport; 209 209 } 210 210 211 FloatRect KCanvasContainer::viewport() const211 FloatRect RenderSVGContainer::viewport() const 212 212 { 213 213 return d->viewport; 214 214 } 215 215 216 void KCanvasContainer::setViewBox(const FloatRect& viewBox)216 void RenderSVGContainer::setViewBox(const FloatRect& viewBox) 217 217 { 218 218 d->viewBox = viewBox; 219 219 } 220 220 221 FloatRect KCanvasContainer::viewBox() const221 FloatRect RenderSVGContainer::viewBox() const 222 222 { 223 223 return d->viewBox; 224 224 } 225 225 226 void KCanvasContainer::setAlign(KCAlign align)226 void RenderSVGContainer::setAlign(KCAlign align) 227 227 { 228 228 d->align = align; 229 229 } 230 230 231 KCAlign KCanvasContainer::align() const231 KCAlign RenderSVGContainer::align() const 232 232 { 233 233 return d->align; 234 234 } 235 235 236 QMatrix KCanvasContainer::viewportTransform() const236 AffineTransform RenderSVGContainer::viewportTransform() const 237 237 { 238 238 if (!viewBox().isEmpty()) { … … 240 240 if (!parent()->isKCanvasContainer()) 241 241 viewportRect = FloatRect(viewport().x(), viewport().y(), width(), height()); 242 return getAspectRatio(viewBox(), viewportRect). qmatrix();243 } 244 return QMatrix();245 } 246 247 IntRect KCanvasContainer::getAbsoluteRepaintRect()242 return getAspectRatio(viewBox(), viewportRect).matrix(); 243 } 244 return AffineTransform(); 245 } 246 247 IntRect RenderSVGContainer::getAbsoluteRepaintRect() 248 248 { 249 249 IntRect repaintRect; … … 262 262 } 263 263 264 void KCanvasContainer::computeAbsoluteRepaintRect(IntRect& r, bool f)265 { 266 QMatrixtransform = localTransform();264 void RenderSVGContainer::computeAbsoluteRepaintRect(IntRect& r, bool f) 265 { 266 AffineTransform transform = localTransform(); 267 267 r = transform.mapRect(r); 268 268 … … 272 272 } 273 273 274 QMatrix KCanvasContainer::absoluteTransform() const274 AffineTransform RenderSVGContainer::absoluteTransform() const 275 275 { 276 276 return viewportTransform() * RenderContainer::absoluteTransform(); 277 277 } 278 278 279 bool KCanvasContainer::fillContains(const FloatPoint &p) const279 bool RenderSVGContainer::fillContains(const FloatPoint &p) const 280 280 { 281 281 RenderObject *current = firstChild(); … … 289 289 } 290 290 291 bool KCanvasContainer::strokeContains(const FloatPoint &p) const291 bool RenderSVGContainer::strokeContains(const FloatPoint &p) const 292 292 { 293 293 RenderObject *current = firstChild(); … … 301 301 } 302 302 303 FloatRect KCanvasContainer::relativeBBox(bool includeStroke) const303 FloatRect RenderSVGContainer::relativeBBox(bool includeStroke) const 304 304 { 305 305 FloatRect rect; … … 315 315 } 316 316 317 void KCanvasContainer::setSlice(bool slice)317 void RenderSVGContainer::setSlice(bool slice) 318 318 { 319 319 d->slice = slice; 320 320 } 321 321 322 bool KCanvasContainer::slice() const322 bool RenderSVGContainer::slice() const 323 323 { 324 324 return d->slice; 325 325 } 326 326 327 KCanvasMatrix KCanvasContainer::getAspectRatio(const FloatRect& logical, const FloatRect& physical) const327 KCanvasMatrix RenderSVGContainer::getAspectRatio(const FloatRect& logical, const FloatRect& physical) const 328 328 { 329 329 KCanvasMatrix temp; -
trunk/WebCore/kcanvas/RenderSVGContainer.h
r15251 r15253 45 45 class KCanvasRenderingStyle; 46 46 47 class KCanvasContainer : public RenderContainer47 class RenderSVGContainer : public RenderContainer 48 48 { 49 49 public: 50 KCanvasContainer(SVGStyledElement*);51 ~ KCanvasContainer();50 RenderSVGContainer(SVGStyledElement*); 51 ~RenderSVGContainer(); 52 52 53 53 // Some containers do not want it's children … … 74 74 virtual void computeAbsoluteRepaintRect(IntRect& r, bool f); 75 75 76 virtual QMatrixabsoluteTransform() const;76 virtual AffineTransform absoluteTransform() const; 77 77 78 78 bool fillContains(const FloatPoint&) const; … … 80 80 FloatRect relativeBBox(bool includeStroke = true) const; 81 81 82 virtual QMatrixlocalTransform() const;83 void setLocalTransform(const QMatrix&);82 virtual AffineTransform localTransform() const; 83 void setLocalTransform(const AffineTransform&); 84 84 85 85 void setViewport(const FloatRect&); … … 97 97 private: 98 98 KCanvasMatrix getAspectRatio(const FloatRect& logical, const FloatRect& physical) const; 99 QMatrixviewportTransform() const;99 AffineTransform viewportTransform() const; 100 100 101 101 class Private; -
trunk/WebCore/kcanvas/RenderSVGImage.cpp
r14918 r15253 141 141 } 142 142 143 context->concatCTM( QMatrix().translate(parentX, parentY));143 context->concatCTM(AffineTransform().translate(parentX, parentY)); 144 144 context->concatCTM(localTransform()); 145 145 translateForAttributes(); … … 200 200 void RenderSVGImage::computeAbsoluteRepaintRect(IntRect& r, bool f) 201 201 { 202 QMatrixtransform = translationForAttributes() * localTransform();202 AffineTransform transform = translationForAttributes() * localTransform(); 203 203 r = transform.mapRect(r); 204 204 … … 208 208 bool RenderSVGImage::nodeAtPoint(NodeInfo& info, int _x, int _y, int _tx, int _ty, HitTestAction hitTestAction) 209 209 { 210 QMatrixtotalTransform = absoluteTransform();210 AffineTransform totalTransform = absoluteTransform(); 211 211 totalTransform *= translationForAttributes(); 212 212 double localX, localY; … … 222 222 void RenderSVGImage::layout() 223 223 { 224 KHTMLAssert(needsLayout());225 KHTMLAssert(minMaxKnown());224 ASSERT(needsLayout()); 225 ASSERT(minMaxKnown()); 226 226 227 227 IntRect oldBounds; … … 280 280 281 281 282 QMatrixRenderSVGImage::translationForAttributes()282 AffineTransform RenderSVGImage::translationForAttributes() 283 283 { 284 284 SVGImageElement *image = static_cast<SVGImageElement *>(node()); 285 285 float xOffset = image->x()->baseVal() ? image->x()->baseVal()->value() : 0; 286 286 float yOffset = image->y()->baseVal() ? image->y()->baseVal()->value() : 0; 287 return QMatrix().translate(xOffset, yOffset);287 return AffineTransform().translate(xOffset, yOffset); 288 288 } 289 289 -
trunk/WebCore/kcanvas/RenderSVGImage.h
r14918 r15253 26 26 27 27 #include "RenderImage.h" 28 #include " KWQWMatrix.h"28 #include "AffineTransform.h" 29 29 30 30 namespace WebCore … … 37 37 virtual ~RenderSVGImage(); 38 38 39 virtual QMatrixlocalTransform() const { return m_transform; }40 virtual void setLocalTransform(const QMatrix& transform) { m_transform = transform; }39 virtual AffineTransform localTransform() const { return m_transform; } 40 virtual void setLocalTransform(const AffineTransform& transform) { m_transform = transform; } 41 41 42 42 virtual FloatRect relativeBBox(bool includeStroke = true) const; … … 58 58 private: 59 59 void translateForAttributes(); 60 QMatrixtranslationForAttributes();61 QMatrixm_transform;60 AffineTransform translationForAttributes(); 61 AffineTransform m_transform; 62 62 IntRect m_absoluteBounds; 63 63 }; -
trunk/WebCore/kcanvas/RenderSVGText.cpp
r14921 r15253 41 41 } 42 42 43 QMatrixRenderSVGText::translationTopToBaseline()43 AffineTransform RenderSVGText::translationTopToBaseline() 44 44 { 45 45 int offset = baselinePosition(true, true); 46 return QMatrix().translate(0, -offset);46 return AffineTransform().translate(0, -offset); 47 47 } 48 48 49 QMatrixRenderSVGText::translationForAttributes()49 AffineTransform RenderSVGText::translationForAttributes() 50 50 { 51 51 SVGTextElement *text = static_cast<SVGTextElement *>(element()); … … 54 54 float yOffset = text->y()->baseVal()->getFirst() ? text->y()->baseVal()->getFirst()->value() : 0; 55 55 56 return QMatrix().translate(xOffset, yOffset);56 return AffineTransform().translate(xOffset, yOffset); 57 57 } 58 58 … … 75 75 76 76 context->concatCTM(localTransform()); 77 context->concatCTM( QMatrix().translate(parentX, parentY));77 context->concatCTM(AffineTransform().translate(parentX, parentY)); 78 78 context->concatCTM(translationForAttributes()); 79 79 context->concatCTM(translationTopToBaseline()); … … 140 140 void RenderSVGText::computeAbsoluteRepaintRect(IntRect& r, bool f) 141 141 { 142 QMatrixtransform = translationTopToBaseline() * translationForAttributes() * absoluteTransform();142 AffineTransform transform = translationTopToBaseline() * translationForAttributes() * absoluteTransform(); 143 143 r = transform.mapRect(r); 144 144 … … 153 153 void RenderSVGText::layout() 154 154 { 155 KHTMLAssert(needsLayout());156 KHTMLAssert(minMaxKnown());155 ASSERT(needsLayout()); 156 ASSERT(minMaxKnown()); 157 157 158 158 IntRect oldBounds; … … 174 174 bool RenderSVGText::nodeAtPoint(NodeInfo& info, int _x, int _y, int _tx, int _ty, HitTestAction hitTestAction) 175 175 { 176 QMatrixtotalTransform = translationForAttributes();176 AffineTransform totalTransform = translationForAttributes(); 177 177 totalTransform *= translationTopToBaseline(); 178 178 totalTransform *= absoluteTransform(); … … 184 184 void RenderSVGText::absoluteRects(DeprecatedValueList<IntRect>& rects, int _tx, int _ty) 185 185 { 186 QMatrixmat = translationForAttributes();186 AffineTransform mat = translationForAttributes(); 187 187 mat *= translationTopToBaseline(); 188 188 mat *= absoluteTransform(); -
trunk/WebCore/kcanvas/RenderSVGText.h
r14918 r15253 26 26 27 27 #include "RenderBlock.h" 28 #include " KWQWMatrix.h"28 #include "AffineTransform.h" 29 29 30 30 namespace WebCore { … … 40 40 virtual void paint(PaintInfo&, int parentX, int parentY); 41 41 42 virtual QMatrixlocalTransform() const { return m_transform; }43 virtual void setLocalTransform(const QMatrix& transform) { m_transform = transform; }42 virtual AffineTransform localTransform() const { return m_transform; } 43 virtual void setLocalTransform(const AffineTransform& transform) { m_transform = transform; } 44 44 45 45 virtual bool nodeAtPoint(NodeInfo&, int _x, int _y, int _tx, int _ty, WebCore::HitTestAction); … … 52 52 53 53 private: 54 QMatrixtranslationTopToBaseline();55 QMatrixtranslationForAttributes();56 QMatrixm_transform;54 AffineTransform translationTopToBaseline(); 55 AffineTransform translationForAttributes(); 56 AffineTransform m_transform; 57 57 IntRect m_absoluteBounds; 58 58 }; -
trunk/WebCore/kcanvas/device/KRenderingPaintServer.h
r13393 r15253 28 28 #include <kcanvas/KCanvasResources.h> 29 29 30 class QTextStream;30 class TextStream; 31 31 32 32 namespace WebCore { … … 75 75 void setPaintingText(bool paintingText) { m_paintingText = paintingText; } 76 76 77 virtual QTextStream &externalRepresentation(QTextStream &) const = 0;77 virtual TextStream &externalRepresentation(TextStream &) const = 0; 78 78 79 79 virtual void renderPath(KRenderingDeviceContext*, const RenderPath*, KCPaintTargetType) const = 0; … … 86 86 } 87 87 88 QTextStream &operator<<(QTextStream &, const WebCore::KRenderingPaintServer &);88 TextStream &operator<<(TextStream &, const WebCore::KRenderingPaintServer &); 89 89 90 90 #endif // SVG_SUPPORT -
trunk/WebCore/kcanvas/device/KRenderingPaintServerGradient.cpp
r13858 r15253 28 28 #include "KCanvasMatrix.h" 29 29 30 #include " KWQTextStream.h"30 #include "TextStream.h" 31 31 #include "KCanvasTreeDebug.h" 32 32 … … 34 34 35 35 //KCGradientSpreadMethod 36 QTextStream &operator<<(QTextStream &ts, KCGradientSpreadMethod m)36 TextStream &operator<<(TextStream &ts, KCGradientSpreadMethod m) 37 37 { 38 38 switch (m) … … 48 48 } 49 49 50 QTextStream &operator<<(QTextStream &ts, const Vector<KCGradientStop>& l)50 TextStream &operator<<(TextStream &ts, const Vector<KCGradientStop>& l) 51 51 { 52 52 ts << "["; … … 134 134 } 135 135 136 QTextStream &KRenderingPaintServerGradient::externalRepresentation(QTextStream &ts) const136 TextStream &KRenderingPaintServerGradient::externalRepresentation(TextStream &ts) const 137 137 { 138 138 // abstract, don't stream type … … 142 142 if (!boundingBoxMode()) 143 143 ts << " [bounding box mode=" << boundingBoxMode() << "]"; 144 if (!gradientTransform(). qmatrix().isIdentity())145 ts << " [transform=" << gradientTransform(). qmatrix() << "]";144 if (!gradientTransform().matrix().isIdentity()) 145 ts << " [transform=" << gradientTransform().matrix() << "]"; 146 146 147 147 return ts; … … 192 192 } 193 193 194 QTextStream &KRenderingPaintServerLinearGradient::externalRepresentation(QTextStream &ts) const194 TextStream &KRenderingPaintServerLinearGradient::externalRepresentation(TextStream &ts) const 195 195 { 196 196 ts << "[type=LINEAR-GRADIENT] "; … … 266 266 } 267 267 268 QTextStream &KRenderingPaintServerRadialGradient::externalRepresentation(QTextStream &ts) const268 TextStream &KRenderingPaintServerRadialGradient::externalRepresentation(TextStream &ts) const 269 269 { 270 270 ts << "[type=RADIAL-GRADIENT] "; -
trunk/WebCore/kcanvas/device/KRenderingPaintServerGradient.h
r13821 r15253 38 38 inline KCGradientStop makeGradientStop(float offset, const Color& color) { return std::make_pair(offset, color); } 39 39 40 QTextStream &operator<<(QTextStream &ts, WebCore::KCGradientSpreadMethod m);40 TextStream &operator<<(TextStream &ts, WebCore::KCGradientSpreadMethod m); 41 41 42 42 class KCanvasMatrix; … … 68 68 void setListener(KCanvasResourceListener *listener); 69 69 70 QTextStream &externalRepresentation(QTextStream &) const;70 TextStream &externalRepresentation(TextStream &) const; 71 71 private: 72 72 class Private; … … 89 89 void setGradientEnd(const FloatPoint &end); 90 90 91 QTextStream &externalRepresentation(QTextStream &) const;91 TextStream &externalRepresentation(TextStream &) const; 92 92 private: 93 93 class Private; … … 113 113 void setGradientRadius(float radius); 114 114 115 QTextStream &externalRepresentation(QTextStream &) const;115 TextStream &externalRepresentation(TextStream &) const; 116 116 private: 117 117 class Private; -
trunk/WebCore/kcanvas/device/KRenderingPaintServerPattern.cpp
r13858 r15253 27 27 #include "KRenderingPaintServerPattern.h" 28 28 29 #include " KWQTextStream.h"29 #include "TextStream.h" 30 30 #include "KCanvasTreeDebug.h" 31 31 … … 114 114 } 115 115 116 QTextStream &KRenderingPaintServerPattern::externalRepresentation(QTextStream &ts) const116 TextStream &KRenderingPaintServerPattern::externalRepresentation(TextStream &ts) const 117 117 { 118 118 ts << "[type=PATTERN]" … … 120 120 if (!boundingBoxMode()) 121 121 ts << " [bounding box mode=" << boundingBoxMode() << "]"; 122 if (!patternTransform(). qmatrix().isIdentity())123 ts << " [pattern transform=" << patternTransform(). qmatrix() << "]";122 if (!patternTransform().matrix().isIdentity()) 123 ts << " [pattern transform=" << patternTransform().matrix() << "]"; 124 124 return ts; 125 125 } -
trunk/WebCore/kcanvas/device/KRenderingPaintServerPattern.h
r13821 r15253 57 57 KCanvasResourceListener *listener() const; 58 58 void setListener(KCanvasResourceListener *listener); 59 QTextStream &externalRepresentation(QTextStream &) const;59 TextStream &externalRepresentation(TextStream &) const; 60 60 61 61 private: -
trunk/WebCore/kcanvas/device/KRenderingPaintServerSolid.cpp
r13858 r15253 24 24 #if SVG_SUPPORT 25 25 #include "KRenderingPaintServerSolid.h" 26 #include " KWQTextStream.h"26 #include "TextStream.h" 27 27 #include "KCanvasTreeDebug.h" 28 28 29 29 // this is related to KRenderingPaintServer, but currently it doesn't have its own .cpp file 30 QTextStream &operator<<(QTextStream &ts, const WebCore::KRenderingPaintServer &ps)30 TextStream &operator<<(TextStream &ts, const WebCore::KRenderingPaintServer &ps) 31 31 { 32 32 return ps.externalRepresentation(ts); … … 68 68 } 69 69 70 QTextStream &KRenderingPaintServerSolid::externalRepresentation(QTextStream &ts) const70 TextStream &KRenderingPaintServerSolid::externalRepresentation(TextStream &ts) const 71 71 { 72 72 ts << "[type=SOLID]" -
trunk/WebCore/kcanvas/device/KRenderingPaintServerSolid.h
r13821 r15253 41 41 void setColor(const Color &color); 42 42 43 QTextStream &externalRepresentation(QTextStream &) const;43 TextStream &externalRepresentation(TextStream &) const; 44 44 private: 45 45 class Private; -
trunk/WebCore/kcanvas/device/quartz/KCanvasFilterQuartz.mm
r14096 r15253 92 92 KCanvasFilterQuartz::KCanvasFilterQuartz() : m_filterCIContext(0), m_filterCGLayer(0) 93 93 { 94 m_imagesByName = KWQRetainNSRelease([[NSMutableDictionary alloc] init]);94 m_imagesByName = HardRetainWithNSRelease([[NSMutableDictionary alloc] init]); 95 95 } 96 96 … … 99 99 ASSERT(!m_filterCGLayer); 100 100 ASSERT(!m_filterCIContext); 101 KWQRelease(m_imagesByName);101 HardRelease(m_imagesByName); 102 102 } 103 103 … … 116 116 contextOptions = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], kCIContextUseSoftwareRenderer, nil]; 117 117 118 m_filterCIContext = KWQRetain([CIContext contextWithCGContext:cgContext options:contextOptions]);118 m_filterCIContext = HardRetain([CIContext contextWithCGContext:cgContext options:contextOptions]); 119 119 m_filterCGLayer = [m_filterCIContext createCGLayerWithSize:CGRect(bbox).size info:NULL]; 120 120 … … 122 122 renderingDevice()->pushContext(filterContext); 123 123 124 filterContext->concatCTM( QMatrix().translate(-1.0f * bbox.x(), -1.0f * bbox.y()));124 filterContext->concatCTM(AffineTransform().translate(-1.0f * bbox.x(), -1.0f * bbox.y())); 125 125 } 126 126 … … 155 155 m_filterCGLayer = 0; 156 156 157 KWQRelease(m_filterCIContext);157 HardRelease(m_filterCIContext); 158 158 m_filterCIContext = 0; 159 159 } -
trunk/WebCore/kcanvas/device/quartz/KCanvasItemQuartz.h
r13992 r15253 29 29 #import "kcanvas/RenderPath.h" 30 30 31 #include " KWQWMatrix.h"31 #include "AffineTransform.h" 32 32 33 33 namespace WebCore { -
trunk/WebCore/kcanvas/device/quartz/KCanvasResourcesQuartz.h
r14097 r15253 28 28 29 29 #import "KCanvasImage.h" 30 #import " KCanvasContainer.h"31 #import " KWQWMatrix.h"30 #import "RenderSVGContainer.h" 31 #import "AffineTransform.h" 32 32 33 33 typedef struct CGContext *CGContextRef; -
trunk/WebCore/kcanvas/device/quartz/KRenderingDeviceQuartz.mm
r14638 r15253 54 54 { 55 55 CGContextRelease(m_cgContext); 56 KWQRelease(m_nsGraphicsContext);56 HardRelease(m_nsGraphicsContext); 57 57 } 58 58 … … 95 95 { 96 96 if (!m_nsGraphicsContext && m_cgContext) 97 m_nsGraphicsContext = KWQRetain([NSGraphicsContext graphicsContextWithGraphicsPort:m_cgContext flipped:YES]);97 m_nsGraphicsContext = HardRetain([NSGraphicsContext graphicsContextWithGraphicsPort:m_cgContext flipped:YES]); 98 98 return m_nsGraphicsContext; 99 99 } -
trunk/WebCore/kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm
r15021 r15253 290 290 291 291 // apply the gradient's own transform 292 CGAffineTransform gradientTransform = CGAffineTransform(server->gradientTransform(). qmatrix());292 CGAffineTransform gradientTransform = CGAffineTransform(server->gradientTransform().matrix()); 293 293 CGContextConcatCTM(context, gradientTransform); 294 294 } -
trunk/WebCore/kcanvas/device/quartz/KRenderingPaintServerQuartz.mm
r13901 r15253 167 167 // Patterns don't seem to resepect the CTM unless we make them... 168 168 CGAffineTransform ctm = CGContextGetCTM(context); 169 CGAffineTransform transform = CGAffineTransform(patternTransform(). qmatrix());169 CGAffineTransform transform = CGAffineTransform(patternTransform().matrix()); 170 170 transform = CGAffineTransformConcat(transform, ctm); 171 171 -
trunk/WebCore/ksvg2/css/CSSValueKeywords.in
r13393 r15253 5 5 # 6 6 # The Values are sorted according to the properties they belong to, 7 # and have to be in the same order as the enums in render_style.h.7 # and have to be in the same order as the enums in RenderStyle.h. 8 8 # 9 9 # If not, the optimizations in the cssparser and style selector will fail, -
trunk/WebCore/ksvg2/css/SVGRenderStyleDefs.cpp
r12761 r15253 30 30 #if SVG_SUPPORT 31 31 #include "ksvg.h" 32 #include " render_style.h"32 #include "RenderStyle.h" 33 33 #include "SVGRenderStyle.h" 34 34 #include "SVGRenderStyleDefs.h" -
trunk/WebCore/ksvg2/misc/KCanvasRenderingStyle.cpp
r14407 r15253 41 41 #include "SVGStyledElement.h" 42 42 #include "ksvg.h" 43 #include " render_style.h"43 #include "RenderStyle.h" 44 44 45 45 namespace WebCore { -
trunk/WebCore/ksvg2/misc/KSVGTimeScheduler.cpp
r13634 r15253 190 190 if(animation->isAdditive() && initialMatrix) 191 191 { 192 RefPtr<SVGMatrix> matrix = new SVGMatrix(initialMatrix-> qmatrix());192 RefPtr<SVGMatrix> matrix = new SVGMatrix(initialMatrix->matrix()); 193 193 194 194 data->setMatrix(matrix.get()); -
trunk/WebCore/ksvg2/svg/SVGAElement.cpp
r14916 r15253 36 36 #include "SVGNames.h" 37 37 #include "csshelper.h" 38 #include <kcanvas/ KCanvasContainer.h>38 #include <kcanvas/RenderSVGContainer.h> 39 39 #include <kcanvas/KCanvasCreator.h> 40 40 #include <kcanvas/device/KRenderingDevice.h> … … 76 76 RenderObject* SVGAElement::createRenderer(RenderArena* arena, RenderStyle* style) 77 77 { 78 return new (arena) KCanvasContainer(this);78 return new (arena) RenderSVGContainer(this); 79 79 } 80 80 -
trunk/WebCore/ksvg2/svg/SVGAnimateTransformElement.cpp
r14646 r15253 173 173 timePercentage = 1.0; 174 174 175 QWMatrixqToMatrix, qFromMatrix;175 AffineTransform qToMatrix, qFromMatrix; 176 176 double useTimePercentage = timePercentage; 177 177 … … 192 192 bool apply = false; 193 193 if (m_toTransform && m_fromTransform) { 194 qToMatrix = m_toTransform->matrix()-> qmatrix();195 qFromMatrix = m_fromTransform->matrix()-> qmatrix();194 qToMatrix = m_toTransform->matrix()->matrix(); 195 qFromMatrix = m_fromTransform->matrix()->matrix(); 196 196 197 197 apply = true; … … 216 216 217 217 if (m_toTransform && m_toTransform->matrix() && qToMatrix.isIdentity()) 218 qToMatrix = m_toTransform->matrix()-> qmatrix();218 qToMatrix = m_toTransform->matrix()->matrix(); 219 219 220 220 if (m_fromTransform && m_fromTransform->matrix() && qFromMatrix.isIdentity()) 221 qFromMatrix = m_fromTransform->matrix()-> qmatrix();221 qFromMatrix = m_fromTransform->matrix()->matrix(); 222 222 223 223 if (!m_transformMatrix) … … 420 420 } 421 421 422 void SVGAnimateTransformElement::calculateRotationFromMatrix(const QWMatrix&matrix, double &angle, double &cx, double &cy) const422 void SVGAnimateTransformElement::calculateRotationFromMatrix(const AffineTransform &matrix, double &angle, double &cx, double &cy) const 423 423 { 424 424 double cosa = matrix.m11(); -
trunk/WebCore/ksvg2/svg/SVGAnimateTransformElement.h
r14646 r15253 45 45 // Helpers 46 46 RefPtr<SVGTransform> parseTransformValue(const DeprecatedString &data) const; 47 void calculateRotationFromMatrix(const QWMatrix&matrix, double &angle, double &cx, double &cy) const;47 void calculateRotationFromMatrix(const AffineTransform &matrix, double &angle, double &cx, double &cy) const; 48 48 49 49 SVGMatrix *initialMatrix() const; -
trunk/WebCore/ksvg2/svg/SVGGElement.cpp
r14097 r15253 26 26 27 27 #include <kcanvas/KCanvasCreator.h> 28 #include <kcanvas/ KCanvasContainer.h>28 #include <kcanvas/RenderSVGContainer.h> 29 29 #include <kcanvas/device/KRenderingDevice.h> 30 30 … … 49 49 RenderObject* SVGGElement::createRenderer(RenderArena* arena, RenderStyle* style) 50 50 { 51 return new (arena) KCanvasContainer(this);51 return new (arena) RenderSVGContainer(this); 52 52 } 53 53 -
trunk/WebCore/ksvg2/svg/SVGHelper.cpp
r14646 r15253 79 79 } 80 80 81 void SVGHelper::ParseSeperatedList(SVGStringList *list, const DeprecatedString &data, const QChar &delimiter)81 void SVGHelper::ParseSeperatedList(SVGStringList *list, const DeprecatedString &data, const DeprecatedChar &delimiter) 82 82 { 83 83 // TODO : more error checking/reporting -
trunk/WebCore/ksvg2/svg/SVGHelper.h
r13821 r15253 46 46 static float PercentageOfViewport(float value, const SVGElement *viewportElement, LengthMode mode); 47 47 48 static void ParseSeperatedList(SVGStringList *list, const DeprecatedString &data, const QChar &delimiter = ',');48 static void ParseSeperatedList(SVGStringList *list, const DeprecatedString &data, const DeprecatedChar &delimiter = ','); 49 49 }; 50 50 -
trunk/WebCore/ksvg2/svg/SVGImageElement.cpp
r14256 r15253 38 38 #include "SVGSVGElement.h" 39 39 #include "XLinkNames.h" 40 #include <kcanvas/ KCanvasContainer.h>40 #include <kcanvas/RenderSVGContainer.h> 41 41 #include <kcanvas/KCanvasCreator.h> 42 42 #include <kcanvas/KCanvasImage.h> -
trunk/WebCore/ksvg2/svg/SVGLinearGradientElement.cpp
r13634 r15253 113 113 KCanvasMatrix mat; 114 114 if(gradientTransform()->baseVal()->numberOfItems() > 0) 115 mat = KCanvasMatrix(gradientTransform()->baseVal()->consolidate()->matrix()-> qmatrix());115 mat = KCanvasMatrix(gradientTransform()->baseVal()->consolidate()->matrix()->matrix()); 116 116 117 117 DeprecatedString ref = String(href()->baseVal()).deprecatedString(); -
trunk/WebCore/ksvg2/svg/SVGMarkerElement.cpp
r14621 r15253 37 37 #include "SVGSVGElement.h" 38 38 #include "ksvg.h" 39 #include <kcanvas/ KCanvasContainer.h>39 #include <kcanvas/RenderSVGContainer.h> 40 40 #include <kcanvas/KCanvasCreator.h> 41 41 #include <kcanvas/device/KRenderingDevice.h> … … 168 168 double h = markerHeight()->baseVal()->value(); 169 169 RefPtr<SVGMatrix> viewBox = viewBoxToViewTransform(w, h); 170 m_marker->setScale(viewBox-> qmatrix().m11(), viewBox->qmatrix().m22());170 m_marker->setScale(viewBox->matrix().m11(), viewBox->matrix().m22()); 171 171 172 172 return m_marker; … … 175 175 RenderObject* SVGMarkerElement::createRenderer(RenderArena* arena, RenderStyle* style) 176 176 { 177 KCanvasContainer *markerContainer = new (arena) KCanvasContainer(this);177 RenderSVGContainer *markerContainer = new (arena) RenderSVGContainer(this); 178 178 markerContainer->setDrawsContents(false); // Marker contents will be explicitly drawn. 179 179 return markerContainer; -
trunk/WebCore/ksvg2/svg/SVGMaskElement.cpp
r14256 r15253 27 27 28 28 #include "GraphicsContext.h" 29 #include " KCanvasContainer.h"29 #include "RenderSVGContainer.h" 30 30 #include "KCanvasImage.h" 31 31 #include "KCanvasPath.h" … … 126 126 OwnPtr<GraphicsContext> context(patternContext->createGraphicsContext()); 127 127 128 KCanvasContainer *maskContainer = static_cast<KCanvasContainer *>(renderer());128 RenderSVGContainer *maskContainer = static_cast<RenderSVGContainer *>(renderer()); 129 129 RenderObject::PaintInfo info(context.get(), IntRect(), PaintPhaseForeground, 0, 0); 130 130 maskContainer->setDrawsContents(true); … … 140 140 RenderObject* SVGMaskElement::createRenderer(RenderArena* arena, RenderStyle*) 141 141 { 142 KCanvasContainer* maskContainer = new (arena) KCanvasContainer(this);142 RenderSVGContainer* maskContainer = new (arena) RenderSVGContainer(this); 143 143 maskContainer->setDrawsContents(false); 144 144 return maskContainer; -
trunk/WebCore/ksvg2/svg/SVGMatrix.cpp
r14646 r15253 36 36 } 37 37 38 SVGMatrix::SVGMatrix(const QMatrix& mat)38 SVGMatrix::SVGMatrix(const AffineTransform& mat) 39 39 : Shared<SVGMatrix>() 40 40 , m_mat(mat) … … 118 118 SVGMatrix* SVGMatrix::postMultiply(const SVGMatrix* secondMatrix) 119 119 { 120 QMatrixtemp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());120 AffineTransform temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f()); 121 121 m_mat *= temp; 122 122 return this; … … 134 134 { 135 135 // Could optimise these. 136 QMatrixtemp;136 AffineTransform temp; 137 137 temp.translate(x, y); 138 138 m_mat *= temp; … … 142 142 SVGMatrix* SVGMatrix::postScale(double scaleFactor) 143 143 { 144 QMatrixtemp;144 AffineTransform temp; 145 145 temp.scale(scaleFactor, scaleFactor); 146 146 m_mat *= temp; … … 150 150 SVGMatrix* SVGMatrix::postScaleNonUniform(double scaleFactorX, double scaleFactorY) 151 151 { 152 QMatrixtemp;152 AffineTransform temp; 153 153 temp.scale(scaleFactorX, scaleFactorY); 154 154 m_mat *= temp; … … 158 158 SVGMatrix* SVGMatrix::postRotate(double angle) 159 159 { 160 QMatrixtemp;160 AffineTransform temp; 161 161 temp.rotate(angle); 162 162 m_mat *= temp; … … 166 166 SVGMatrix* SVGMatrix::postRotateFromVector(double x, double y) 167 167 { 168 QMatrixtemp;168 AffineTransform temp; 169 169 temp.rotate(SVGAngle::todeg(atan2(y, x))); 170 170 m_mat *= temp; … … 174 174 SVGMatrix* SVGMatrix::postFlipX() 175 175 { 176 QMatrixtemp(-1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F);176 AffineTransform temp(-1.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F); 177 177 m_mat *= temp; 178 178 return this; … … 181 181 SVGMatrix* SVGMatrix::postFlipY() 182 182 { 183 QMatrixtemp(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, 0.0F);183 AffineTransform temp(1.0F, 0.0F, 0.0F, -1.0F, 0.0F, 0.0F); 184 184 m_mat *= temp; 185 185 return this; … … 188 188 SVGMatrix* SVGMatrix::postSkewX(double angle) 189 189 { 190 QMatrixtemp;190 AffineTransform temp; 191 191 temp.shear(tan(SVGAngle::torad(angle)), 0.0F); 192 192 m_mat *= temp; … … 196 196 SVGMatrix* SVGMatrix::postSkewY(double angle) 197 197 { 198 QMatrixtemp;198 AffineTransform temp; 199 199 temp.shear(0.0F, tan(SVGAngle::torad(angle))); 200 200 m_mat *= temp; … … 204 204 SVGMatrix* SVGMatrix::multiply(const SVGMatrix* secondMatrix) 205 205 { 206 QMatrixtemp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f());206 AffineTransform temp(secondMatrix->a(), secondMatrix->b(), secondMatrix->c(), secondMatrix->d(), secondMatrix->e(), secondMatrix->f()); 207 207 temp *= m_mat; 208 208 m_mat = temp; … … 268 268 } 269 269 270 void SVGMatrix::setMatrix(const QMatrix& mat)270 void SVGMatrix::setMatrix(const AffineTransform& mat) 271 271 { 272 272 m_mat = mat; 273 273 } 274 274 275 QMatrix& SVGMatrix::qmatrix()275 AffineTransform& SVGMatrix::matrix() 276 276 { 277 277 return m_mat; 278 278 } 279 279 280 const QMatrix& SVGMatrix::qmatrix() const280 const AffineTransform& SVGMatrix::matrix() const 281 281 { 282 282 return m_mat; -
trunk/WebCore/ksvg2/svg/SVGMatrix.h
r14646 r15253 25 25 #if SVG_SUPPORT 26 26 27 #include " KWQWMatrix.h"27 #include "AffineTransform.h" 28 28 29 29 #include "Shared.h" … … 38 38 SVGMatrix(); 39 39 SVGMatrix(double a, double b, double c, double d, double e, double f); 40 SVGMatrix(const QMatrix& mat);40 SVGMatrix(const AffineTransform& mat); 41 41 virtual ~SVGMatrix(); 42 42 … … 90 90 91 91 // KSVG helper method 92 QMatrix& qmatrix();93 const QMatrix& qmatrix() const;92 AffineTransform& matrix(); 93 const AffineTransform& matrix() const; 94 94 95 95 // Determine the scaling component of the matrix and factor it out. After … … 98 98 99 99 private: 100 void setMatrix(const QMatrix&);101 QMatrixm_mat;100 void setMatrix(const AffineTransform&); 101 AffineTransform m_mat; 102 102 }; 103 103 }; -
trunk/WebCore/ksvg2/svg/SVGPatternElement.cpp
r14680 r15253 28 28 #include "Document.h" 29 29 #include "GraphicsContext.h" 30 #include " KCanvasContainer.h"30 #include "RenderSVGContainer.h" 31 31 #include "KCanvasCreator.h" 32 32 #include "KCanvasImage.h" … … 261 261 RefPtr<SVGMatrix> ctm = getCTM(); 262 262 263 KCanvasMatrix newMatrix(svgCTM-> qmatrix());263 KCanvasMatrix newMatrix(svgCTM->matrix()); 264 264 newMatrix.multiply(savedMatrix); 265 265 newMatrix.scale(1.0 / ctm->a(), 1.0 / ctm->d()); 266 266 267 item->setLocalTransform(newMatrix. qmatrix());267 item->setLocalTransform(newMatrix.matrix()); 268 268 } 269 269 #endif … … 276 276 e->pushAttributeContext(savedContext); 277 277 278 item->setLocalTransform(savedMatrix. qmatrix());278 item->setLocalTransform(savedMatrix.matrix()); 279 279 #endif 280 280 } … … 341 341 KCanvasMatrix patternTransformMatrix; 342 342 if (patternTransform()->baseVal()->numberOfItems() > 0) 343 patternTransformMatrix = KCanvasMatrix(patternTransform()->baseVal()->consolidate()->matrix()-> qmatrix());343 patternTransformMatrix = KCanvasMatrix(patternTransform()->baseVal()->consolidate()->matrix()->matrix()); 344 344 345 345 fillAttributesFromReferencePattern(target, patternTransformMatrix); … … 357 357 RenderObject* SVGPatternElement::createRenderer(RenderArena* arena, RenderStyle*) 358 358 { 359 KCanvasContainer* patternContainer = new (arena) KCanvasContainer(this);359 RenderSVGContainer* patternContainer = new (arena) RenderSVGContainer(this); 360 360 patternContainer->setDrawsContents(false); 361 361 return patternContainer; -
trunk/WebCore/ksvg2/svg/SVGRadialGradientElement.cpp
r13634 r15253 133 133 KCanvasMatrix mat; 134 134 if(gradientTransform()->baseVal()->numberOfItems() > 0) 135 mat = KCanvasMatrix(gradientTransform()->baseVal()->consolidate()->matrix()-> qmatrix());135 mat = KCanvasMatrix(gradientTransform()->baseVal()->consolidate()->matrix()->matrix()); 136 136 137 137 DeprecatedString ref = String(href()->baseVal()).deprecatedString(); -
trunk/WebCore/ksvg2/svg/SVGSVGElement.cpp
r14646 r15253 42 42 #include "SVGZoomEvent.h" 43 43 #include "ksvg.h" 44 #include <kcanvas/ KCanvasContainer.h>44 #include <kcanvas/RenderSVGContainer.h> 45 45 #include <kcanvas/KCanvasCreator.h> 46 46 #include <kcanvas/device/KRenderingDevice.h> 47 #include " KWQTextStream.h"47 #include "TextStream.h" 48 48 49 49 namespace WebCore { … … 132 132 double h = height()->baseVal()->value(); 133 133 RefPtr<SVGMatrix> viewBox = viewBoxToViewTransform(w, h); 134 viewBox-> qmatrix().map(_x, _y, &_x, &_y);135 viewBox-> qmatrix().map(w, h, &w, &h);134 viewBox->matrix().map(_x, _y, &_x, &_y); 135 viewBox->matrix().map(w, h, &w, &h); 136 136 return FloatRect(_x, _y, w, h); 137 137 } … … 255 255 if (SVGFitToViewBox::parseMappedAttribute(attr)) { 256 256 if (renderer()) 257 static_cast< KCanvasContainer*>(renderer())->setViewBox(FloatRect(viewBox()->baseVal()->x(), viewBox()->baseVal()->y(), viewBox()->baseVal()->width(), viewBox()->baseVal()->height()));257 static_cast<RenderSVGContainer*>(renderer())->setViewBox(FloatRect(viewBox()->baseVal()->x(), viewBox()->baseVal()->y(), viewBox()->baseVal()->width(), viewBox()->baseVal()->height())); 258 258 } 259 259 if(SVGZoomAndPan::parseMappedAttribute(attr)) return; … … 395 395 RenderObject* SVGSVGElement::createRenderer(RenderArena* arena, RenderStyle*) 396 396 { 397 KCanvasContainer *rootContainer = new (arena) KCanvasContainer(this);397 RenderSVGContainer *rootContainer = new (arena) RenderSVGContainer(this); 398 398 399 399 // FIXME: all this setup should be done after attributesChanged, not here. -
trunk/WebCore/ksvg2/svg/SVGStyledElement.h
r14646 r15253 28 28 #include "SVGStylable.h" 29 29 30 #include " KWQWMatrix.h"30 #include "AffineTransform.h" 31 31 #include <kcanvas/KCanvasPath.h> 32 #include " render_style.h"32 #include "RenderStyle.h" 33 33 34 34 namespace WebCore -
trunk/WebCore/ksvg2/svg/SVGStyledTransformableElement.cpp
r14646 r15253 86 86 m_localMatrix = localTransform->matrix(); 87 87 if (renderer()) { 88 renderer()->setLocalTransform(m_localMatrix-> qmatrix());88 renderer()->setLocalTransform(m_localMatrix->matrix()); 89 89 renderer()->setNeedsLayout(true); 90 90 } … … 129 129 130 130 if (renderer() && m_localMatrix) 131 renderer()->setLocalTransform(m_localMatrix-> qmatrix());131 renderer()->setLocalTransform(m_localMatrix->matrix()); 132 132 } 133 133 -
trunk/WebCore/ksvg2/svg/SVGStyledTransformableElement.h
r14646 r15253 28 28 #include "SVGTransformable.h" 29 29 30 class QMatrix;30 class AffineTransform; 31 31 32 32 namespace WebCore -
trunk/WebCore/ksvg2/svg/SVGSwitchElement.cpp
r14097 r15253 26 26 27 27 #include <kcanvas/KCanvasCreator.h> 28 #include <kcanvas/ KCanvasContainer.h>28 #include <kcanvas/RenderSVGContainer.h> 29 29 #include <kcanvas/device/KRenderingDevice.h> 30 30 … … 59 59 RenderObject* SVGSwitchElement::createRenderer(RenderArena* arena, RenderStyle*) 60 60 { 61 return new (arena) KCanvasContainer(this);61 return new (arena) RenderSVGContainer(this); 62 62 } 63 63 -
trunk/WebCore/ksvg2/svg/SVGTextElement.cpp
r14646 r15253 31 31 #include "SVGRenderStyle.h" 32 32 #include "SVGTSpanElement.h" 33 #include " render_style.h"33 #include "RenderStyle.h" 34 34 #include <kcanvas/KCanvasCreator.h> 35 35 #include <kcanvas/RenderSVGText.h> … … 75 75 m_localMatrix = localTransform->matrix(); 76 76 if (renderer()) { 77 renderer()->setLocalTransform(m_localMatrix-> qmatrix());77 renderer()->setLocalTransform(m_localMatrix->matrix()); 78 78 renderer()->setNeedsLayout(true); 79 79 } … … 86 86 87 87 if (renderer() && m_localMatrix) 88 renderer()->setLocalTransform(m_localMatrix-> qmatrix());88 renderer()->setLocalTransform(m_localMatrix->matrix()); 89 89 } 90 90 -
trunk/WebCore/ksvg2/svg/SVGTransformable.h
r13393 r15253 27 27 #include "SVGLocatable.h" 28 28 29 class QMatrix;29 class AffineTransform; 30 30 31 31 namespace WebCore { -
trunk/WebCore/ksvg2/svg/SVGUseElement.cpp
r14097 r15253 38 38 #include "SVGSymbolElement.h" 39 39 #include "ksvg.h" 40 #include <kcanvas/ KCanvasContainer.h>40 #include <kcanvas/RenderSVGContainer.h> 41 41 #include <kcanvas/KCanvasCreator.h> 42 42 #include <kcanvas/device/KRenderingDevice.h> … … 166 166 RenderObject* SVGUseElement::createRenderer(RenderArena* arena, RenderStyle*) 167 167 { 168 return new (arena) KCanvasContainer(this);168 return new (arena) RenderSVGContainer(this); 169 169 } 170 170 -
trunk/WebCore/kwq/AffineTransform.cpp
r15251 r15253 25 25 26 26 #include "config.h" 27 #include " KWQWMatrix.h"27 #include "AffineTransform.h" 28 28 29 29 #include "FloatRect.h" … … 32 32 static const double deg2rad = 0.017453292519943295769; // pi/180 33 33 34 QMatrix::QMatrix()34 AffineTransform::AffineTransform() 35 35 { 36 36 m_transform = CGAffineTransformIdentity; 37 37 } 38 38 39 QMatrix::QMatrix(double a, double b, double c, double d, double tx, double ty)39 AffineTransform::AffineTransform(double a, double b, double c, double d, double tx, double ty) 40 40 { 41 41 m_transform = CGAffineTransformMake(a,b,c,d,tx,ty); 42 42 } 43 43 44 QMatrix::QMatrix(CGAffineTransform t) {44 AffineTransform::AffineTransform(CGAffineTransform t) { 45 45 m_transform = t; 46 46 } 47 47 48 void QMatrix::setMatrix(double a, double b, double c, double d, double tx, double ty)48 void AffineTransform::setMatrix(double a, double b, double c, double d, double tx, double ty) 49 49 { 50 50 m_transform = CGAffineTransformMake(a,b,c,d,tx,ty); 51 51 } 52 52 53 void QMatrix::map(double x, double y, double *x2, double *y2) const53 void AffineTransform::map(double x, double y, double *x2, double *y2) const 54 54 { 55 55 CGPoint result = CGPointApplyAffineTransform(CGPointMake(x,y),m_transform); … … 58 58 } 59 59 60 IntRect QMatrix::mapRect(const IntRect &rect) const60 IntRect AffineTransform::mapRect(const IntRect &rect) const 61 61 { 62 62 return enclosingIntRect(CGRectApplyAffineTransform(CGRect(rect), m_transform)); 63 63 } 64 64 65 FloatRect QMatrix::mapRect(const FloatRect &rect) const65 FloatRect AffineTransform::mapRect(const FloatRect &rect) const 66 66 { 67 67 return FloatRect(CGRectApplyAffineTransform(CGRect(rect), m_transform)); 68 68 } 69 69 70 bool QMatrix::isIdentity() const70 bool AffineTransform::isIdentity() const 71 71 { 72 72 return CGAffineTransformIsIdentity(m_transform); 73 73 } 74 74 75 void QMatrix::reset()75 void AffineTransform::reset() 76 76 { 77 77 m_transform = CGAffineTransformIdentity; 78 78 } 79 79 80 QMatrix &QMatrix::scale(double sx, double sy)80 AffineTransform &AffineTransform::scale(double sx, double sy) 81 81 { 82 82 m_transform = CGAffineTransformScale(m_transform, sx, sy); … … 84 84 } 85 85 86 QMatrix &QMatrix::rotate(double d)86 AffineTransform &AffineTransform::rotate(double d) 87 87 { 88 88 m_transform = CGAffineTransformRotate(m_transform, d * deg2rad); … … 90 90 } 91 91 92 QMatrix &QMatrix::translate(double tx, double ty)92 AffineTransform &AffineTransform::translate(double tx, double ty) 93 93 { 94 94 m_transform = CGAffineTransformTranslate(m_transform, tx, ty); … … 96 96 } 97 97 98 QMatrix &QMatrix::shear(double sx, double sy)98 AffineTransform &AffineTransform::shear(double sx, double sy) 99 99 { 100 100 CGAffineTransform shear = CGAffineTransformMake(1, sy, sx, 1, 0, 0); … … 103 103 } 104 104 105 double QMatrix::det() const105 double AffineTransform::det() const 106 106 { 107 107 return m_transform.a * m_transform.d - m_transform.b * m_transform.c; 108 108 } 109 109 110 bool QMatrix::isInvertible() const110 bool AffineTransform::isInvertible() const 111 111 { 112 112 return det() != 0.0; 113 113 } 114 114 115 QMatrix QMatrix::invert() const115 AffineTransform AffineTransform::invert() const 116 116 { 117 117 if (isInvertible()) 118 return QMatrix(CGAffineTransformInvert(m_transform));119 return QMatrix();118 return AffineTransform(CGAffineTransformInvert(m_transform)); 119 return AffineTransform(); 120 120 } 121 121 122 QMatrix::operator CGAffineTransform() const122 AffineTransform::operator CGAffineTransform() const 123 123 { 124 124 return m_transform; 125 125 } 126 126 127 bool QMatrix::operator== (const QMatrix&m2) const127 bool AffineTransform::operator== (const AffineTransform &m2) const 128 128 { 129 129 return CGAffineTransformEqualToTransform(m_transform, CGAffineTransform(m2)); 130 130 } 131 131 132 QMatrix &QMatrix::operator*= (const QMatrix&m2)132 AffineTransform &AffineTransform::operator*= (const AffineTransform &m2) 133 133 { 134 134 m_transform = CGAffineTransformConcat(m_transform, CGAffineTransform(m2)); … … 136 136 } 137 137 138 QMatrix QMatrix::operator* (const QMatrix&m2)138 AffineTransform AffineTransform::operator* (const AffineTransform &m2) 139 139 { 140 140 return CGAffineTransformConcat(m_transform, CGAffineTransform(m2)); -
trunk/WebCore/kwq/AffineTransform.h
r15251 r15253 24 24 */ 25 25 26 #ifndef QWMATRIX_H_27 #define QWMATRIX_H_26 #ifndef AffineTransform_h 27 #define AffineTransform_h 28 28 29 29 #if __APPLE__ … … 37 37 } 38 38 39 class QMatrix{39 class AffineTransform { 40 40 public: 41 QMatrix();42 QMatrix(double a, double b, double c, double d, double tx, double ty);43 QMatrix(CGAffineTransform transform);41 AffineTransform(); 42 AffineTransform(double a, double b, double c, double d, double tx, double ty); 43 AffineTransform(CGAffineTransform transform); 44 44 45 45 void setMatrix(double a, double b, double c, double d, double tx, double ty); 46 46 void map(double x, double y, double *x2, double *y2) const; 47 WebCore::IntRect QMatrix::mapRect(const WebCore::IntRect&) const;48 WebCore::FloatRect QMatrix::mapRect(const WebCore::FloatRect&) const;47 WebCore::IntRect AffineTransform::mapRect(const WebCore::IntRect&) const; 48 WebCore::FloatRect AffineTransform::mapRect(const WebCore::FloatRect&) const; 49 49 50 50 bool isIdentity() const; … … 59 59 void reset(); 60 60 61 QMatrix&scale(double sx, double sy);62 QMatrix&rotate(double d);63 QMatrix&translate(double tx, double ty);64 QMatrix&shear(double sx, double sy);61 AffineTransform &scale(double sx, double sy); 62 AffineTransform &rotate(double d); 63 AffineTransform &translate(double tx, double ty); 64 AffineTransform &shear(double sx, double sy); 65 65 66 66 double det() const; 67 67 bool isInvertible() const; 68 QMatrixinvert() const;68 AffineTransform invert() const; 69 69 70 70 operator CGAffineTransform() const; 71 71 72 bool operator== (const QMatrix&) const;73 QMatrix &operator*= (const QMatrix&);74 QMatrix operator* (const QMatrix&m2);72 bool operator== (const AffineTransform &) const; 73 AffineTransform &operator*= (const AffineTransform &); 74 AffineTransform operator* (const AffineTransform &m2); 75 75 76 76 private: … … 78 78 }; 79 79 80 #define QWMatrix QMatrix80 #define AffineTransform AffineTransform 81 81 82 82 #endif // __APPLE__ -
trunk/WebCore/kwq/DeprecatedCString.cpp
r15251 r15253 25 25 26 26 #include "config.h" 27 #include " KWQCString.h"27 #include "DeprecatedCString.h" 28 28 29 29 #include <wtf/Assertions.h> -
trunk/WebCore/kwq/DeprecatedCString.h
r15251 r15253 68 68 inline bool operator!=(const char *s1, const DeprecatedCString &s2) { return !(s1 == s2); } 69 69 70 typedef DeprecatedCString Q3CString;70 typedef DeprecatedCString DeprecatedCString; 71 71 72 72 #endif -
trunk/WebCore/kwq/DeprecatedPtrQueue.h
r15251 r15253 24 24 */ 25 25 26 #ifndef KWQPTRQUEUE_H_27 #define KWQPTRQUEUE_H_26 #ifndef DeprecatedPtrQueue_h 27 #define DeprecatedPtrQueue_h 28 28 29 29 #include "DeprecatedPtrList.h" … … 43 43 }; 44 44 45 #endif /* KWQPTRQUEUE_H_*/45 #endif /* DeprecatedPtrQueue_h */ -
trunk/WebCore/kwq/FileButton.h
r15251 r15253 24 24 */ 25 25 26 #ifndef KWQFILEBUTTON_H27 #define KWQFILEBUTTON_H26 #ifndef FileButton_h 27 #define FileButton_h 28 28 29 29 #include "PlatformString.h" … … 40 40 } 41 41 42 class KWQFileButton : public Widget {42 class FileButton : public Widget { 43 43 public: 44 KWQFileButton(WebCore::Frame*);44 FileButton(WebCore::Frame*); 45 45 46 46 void setFilename(const DeprecatedString &); -
trunk/WebCore/kwq/FileButton.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQFileButton.h"27 #import "FileButton.h" 28 28 29 29 #import "BlockExceptions.h" … … 56 56 @interface WebFileChooserButton : NSButton 57 57 { 58 KWQFileButton *_widget;59 } 60 - (id)initWithWidget:( KWQFileButton *)widget;58 FileButton *_widget; 59 } 60 - (id)initWithWidget:(FileButton *)widget; 61 61 @end 62 62 … … 68 68 NSString *_label; 69 69 BOOL _inNextValidKeyView; 70 KWQFileButton *_widget;70 FileButton *_widget; 71 71 BOOL _isCurrentDragTarget; 72 72 } … … 78 78 - (NSRect)visualFrame; 79 79 - (NSSize)bestVisualFrameSizeForCharacterCount:(int)count; 80 - (id)initWithWidget:( KWQFileButton *)widget;80 - (id)initWithWidget:(FileButton *)widget; 81 81 - (void)setEnabled:(BOOL)flag; 82 82 @end … … 90 90 } 91 91 92 - (id)initWithWidget:( KWQFileButton*)widget92 - (id)initWithWidget:(FileButton*)widget 93 93 { 94 94 self = [super init]; … … 331 331 { 332 332 return _inNextValidKeyView 333 ? FrameMac::nextKeyViewForWidget(_widget, KWQSelectingNext)333 ? FrameMac::nextKeyViewForWidget(_widget, SelectingNext) 334 334 : [super nextKeyView]; 335 335 } … … 338 338 { 339 339 return _inNextValidKeyView 340 ? FrameMac::nextKeyViewForWidget(_widget, KWQSelectingPrevious)340 ? FrameMac::nextKeyViewForWidget(_widget, SelectingPrevious) 341 341 : [super previousKeyView]; 342 342 } … … 414 414 @implementation WebFileChooserButton 415 415 416 - (id)initWithWidget:( KWQFileButton *)widget416 - (id)initWithWidget:(FileButton *)widget 417 417 { 418 418 [super init]; … … 441 441 442 442 443 KWQFileButton::KWQFileButton(Frame *frame)443 FileButton::FileButton(Frame *frame) 444 444 { 445 445 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 452 452 } 453 453 454 void KWQFileButton::setFilename(const DeprecatedString &f)454 void FileButton::setFilename(const DeprecatedString &f) 455 455 { 456 456 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 459 459 } 460 460 461 void KWQFileButton::click(bool sendMouseEvents)461 void FileButton::click(bool sendMouseEvents) 462 462 { 463 463 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 466 466 } 467 467 468 IntSize KWQFileButton::sizeForCharacterWidth(int characters) const468 IntSize FileButton::sizeForCharacterWidth(int characters) const 469 469 { 470 470 ASSERT(characters > 0); … … 478 478 } 479 479 480 IntRect KWQFileButton::frameGeometry() const480 IntRect FileButton::frameGeometry() const 481 481 { 482 482 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 486 486 } 487 487 488 void KWQFileButton::setFrameGeometry(const IntRect &rect)488 void FileButton::setFrameGeometry(const IntRect &rect) 489 489 { 490 490 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 493 493 } 494 494 495 int KWQFileButton::baselinePosition(int height) const495 int FileButton::baselinePosition(int height) const 496 496 { 497 497 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 502 502 } 503 503 504 Widget::FocusPolicy KWQFileButton::focusPolicy() const504 Widget::FocusPolicy FileButton::focusPolicy() const 505 505 { 506 506 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 516 516 } 517 517 518 void KWQFileButton::filenameChanged(const DeprecatedString& filename)518 void FileButton::filenameChanged(const DeprecatedString& filename) 519 519 { 520 520 m_name = filename; … … 523 523 } 524 524 525 void KWQFileButton::setDisabled(bool flag)525 void FileButton::setDisabled(bool flag) 526 526 { 527 527 BEGIN_BLOCK_OBJC_EXCEPTIONS; -
trunk/WebCore/kwq/FormDataMac.mm
r15251 r15253 25 25 26 26 #include "config.h" 27 #import " KWQFormData.h"27 #import "FormDataMac.h" 28 28 29 29 #import <wtf/Assertions.h> -
trunk/WebCore/kwq/ListBox.h
r15251 r15253 24 24 */ 25 25 26 #ifndef KWQLISTBOX_H_27 #define KWQLISTBOX_H_26 #ifndef ListBox_h 27 #define ListBox_h 28 28 29 29 #include "DeprecatedValueList.h" … … 32 32 #include "TextDirection.h" 33 33 34 enum KWQListBoxItemType {35 KWQListBoxOption,36 KWQListBoxGroupLabel,37 KWQListBoxSeparator34 enum ListBoxItemType { 35 ListBoxOption, 36 ListBoxGroupLabel, 37 ListBoxSeparator 38 38 }; 39 39 40 struct KWQListBoxItem40 struct ListBoxItem 41 41 { 42 42 DeprecatedString string; 43 KWQListBoxItemType type;43 ListBoxItemType type; 44 44 bool enabled; 45 45 46 KWQListBoxItem(const DeprecatedString &s, KWQListBoxItemType t, bool e) : string(s), type(t), enabled(e) { }46 ListBoxItem(const DeprecatedString &s, ListBoxItemType t, bool e) : string(s), type(t), enabled(e) { } 47 47 }; 48 48 49 class QListBox : public WebCore::ScrollView {49 class ListBox : public WebCore::ScrollView { 50 50 public: 51 51 enum SelectionMode { Single, Extended }; 52 52 53 QListBox();54 ~ QListBox();53 ListBox(); 54 ~ListBox(); 55 55 56 56 IntSize sizeForNumberOfLines(int numLines) const; … … 61 61 62 62 void clear(); 63 void appendItem(const DeprecatedString &s, bool enabled) { appendItem(s, KWQListBoxOption, enabled); }64 void appendGroupLabel(const DeprecatedString &s, bool enabled) { appendItem(s, KWQListBoxGroupLabel, enabled); }63 void appendItem(const DeprecatedString &s, bool enabled) { appendItem(s, ListBoxOption, enabled); } 64 void appendGroupLabel(const DeprecatedString &s, bool enabled) { appendItem(s, ListBoxGroupLabel, enabled); } 65 65 void doneAppendingItems(); 66 66 … … 71 71 bool isEnabled(); 72 72 73 const KWQListBoxItem &itemAtIndex(int index) const { return _items[index]; }73 const ListBoxItem &itemAtIndex(int index) const { return _items[index]; } 74 74 75 75 void setWritingDirection(WebCore::TextDirection); … … 84 84 85 85 private: 86 void appendItem(const DeprecatedString &, KWQListBoxItemType, bool);86 void appendItem(const DeprecatedString &, ListBoxItemType, bool); 87 87 88 // A Vector< KWQListBoxItem> might be more efficient for large lists.89 DeprecatedValueList< KWQListBoxItem> _items;88 // A Vector<ListBoxItem> might be more efficient for large lists. 89 DeprecatedValueList<ListBoxItem> _items; 90 90 91 91 bool _changingSelection; -
trunk/WebCore/kwq/ListBox.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQListBox.h"27 #import "ListBox.h" 28 28 29 29 #import "BlockExceptions.h" … … 44 44 const float rightMargin = 2; 45 45 46 @interface KWQListBoxScrollView : NSScrollView <WebCoreWidgetHolder>46 @interface WebCoreListBoxScrollView : NSScrollView <WebCoreWidgetHolder> 47 47 @end 48 48 49 @interface KWQTableView : NSTableView <WebCoreWidgetHolder>49 @interface WebCoreTableView : NSTableView <WebCoreWidgetHolder> 50 50 { 51 51 @public 52 QListBox *_box;52 ListBox *_box; 53 53 BOOL processingMouseEvent; 54 54 BOOL clickedDuringMouseEvent; … … 58 58 UCTypeSelectRef typeSelectSelector; 59 59 } 60 - (id)initWithListBox:( QListBox *)b;60 - (id)initWithListBox:(ListBox *)b; 61 61 - (void)detach; 62 - (void)_ KWQ_setKeyboardFocusRingNeedsDisplay;62 - (void)_webcore_setKeyboardFocusRingNeedsDisplay; 63 63 - (Widget *)widget; 64 64 - (void)setBaseWritingDirection:(NSWritingDirection)direction; … … 112 112 } 113 113 114 QListBox::QListBox()114 ListBox::ListBox() 115 115 : _changingSelection(false) 116 116 , _enabled(true) … … 119 119 BEGIN_BLOCK_OBJC_EXCEPTIONS; 120 120 121 NSScrollView *scrollView = [[ KWQListBoxScrollView alloc] initWithFrame:NSZeroRect];121 NSScrollView *scrollView = [[WebCoreListBoxScrollView alloc] initWithFrame:NSZeroRect]; 122 122 setView(scrollView); 123 123 [scrollView release]; … … 141 141 [[scrollView contentView] releaseGState]; 142 142 143 KWQTableView *tableView = [[KWQTableView alloc] initWithListBox:this];143 WebCoreTableView *tableView = [[WebCoreTableView alloc] initWithListBox:this]; 144 144 [scrollView setDocumentView:tableView]; 145 145 [tableView release]; … … 149 149 } 150 150 151 QListBox::~QListBox()151 ListBox::~ListBox() 152 152 { 153 153 NSScrollView *scrollView = static_cast<NSScrollView *>(getView()); 154 154 155 155 BEGIN_BLOCK_OBJC_EXCEPTIONS; 156 KWQTableView *tableView = [scrollView documentView];156 WebCoreTableView *tableView = [scrollView documentView]; 157 157 [tableView detach]; 158 158 END_BLOCK_OBJC_EXCEPTIONS; 159 159 } 160 160 161 void QListBox::clear()161 void ListBox::clear() 162 162 { 163 163 _items.clear(); … … 165 165 } 166 166 167 void QListBox::setSelectionMode(SelectionMode mode)167 void ListBox::setSelectionMode(SelectionMode mode) 168 168 { 169 169 NSScrollView *scrollView = static_cast<NSScrollView *>(getView()); … … 175 175 } 176 176 177 void QListBox::appendItem(const DeprecatedString &text, KWQListBoxItemType type, bool enabled)178 { 179 _items.append( KWQListBoxItem(text, type, enabled));177 void ListBox::appendItem(const DeprecatedString &text, ListBoxItemType type, bool enabled) 178 { 179 _items.append(ListBoxItem(text, type, enabled)); 180 180 _widthGood = false; 181 181 } 182 182 183 void QListBox::doneAppendingItems()183 void ListBox::doneAppendingItems() 184 184 { 185 185 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 192 192 } 193 193 194 void QListBox::setSelected(int index, bool selectIt)194 void ListBox::setSelected(int index, bool selectIt) 195 195 { 196 196 ASSERT(index >= 0); … … 213 213 } 214 214 215 bool QListBox::isSelected(int index) const215 bool ListBox::isSelected(int index) const 216 216 { 217 217 ASSERT(index >= 0); … … 228 228 } 229 229 230 void QListBox::setEnabled(bool enabled)230 void ListBox::setEnabled(bool enabled) 231 231 { 232 232 if (enabled != _enabled) { … … 245 245 } 246 246 247 bool QListBox::isEnabled()247 bool ListBox::isEnabled() 248 248 { 249 249 return _enabled; 250 250 } 251 251 252 IntSize QListBox::sizeForNumberOfLines(int lines) const252 IntSize ListBox::sizeForNumberOfLines(int lines) const 253 253 { 254 254 NSSize size = {0,0}; … … 257 257 258 258 NSScrollView *scrollView = static_cast<NSScrollView *>(getView()); 259 KWQTableView *tableView = [scrollView documentView];259 WebCoreTableView *tableView = [scrollView documentView]; 260 260 261 261 if (!_widthGood) { 262 262 float width = 0; 263 DeprecatedValueListConstIterator< KWQListBoxItem> i = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).begin();264 DeprecatedValueListConstIterator< KWQListBoxItem> e = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).end();263 DeprecatedValueListConstIterator<ListBoxItem> i = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).begin(); 264 DeprecatedValueListConstIterator<ListBoxItem> e = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).end(); 265 265 if (i != e) { 266 266 WebCore::TextStyle style; … … 287 287 const DeprecatedString &s = (*i).string; 288 288 TextRun run(reinterpret_cast<const UniChar *>(s.unicode()), s.length(), 0, s.length()); 289 float textWidth = (((*i).type == KWQListBoxGroupLabel) ? groupLabelRenderer : renderer)->floatWidth(run, style);289 float textWidth = (((*i).type == ListBoxGroupLabel) ? groupLabelRenderer : renderer)->floatWidth(run, style); 290 290 width = max(width, textWidth); 291 291 ++i; … … 309 309 } 310 310 311 Widget::FocusPolicy QListBox::focusPolicy() const311 Widget::FocusPolicy ListBox::focusPolicy() const 312 312 { 313 313 FocusPolicy policy = Widget::focusPolicy(); … … 315 315 } 316 316 317 bool QListBox::checksDescendantsForFocus() const317 bool ListBox::checksDescendantsForFocus() const 318 318 { 319 319 return true; 320 320 } 321 321 322 void QListBox::setWritingDirection(TextDirection d)322 void ListBox::setWritingDirection(TextDirection d) 323 323 { 324 324 BEGIN_BLOCK_OBJC_EXCEPTIONS; 325 325 326 326 NSScrollView *scrollView = static_cast<NSScrollView *>(getView()); 327 KWQTableView *tableView = [scrollView documentView];327 WebCoreTableView *tableView = [scrollView documentView]; 328 328 NSWritingDirection direction = d == RTL ? NSWritingDirectionRightToLeft : NSWritingDirectionLeftToRight; 329 329 if ([tableView baseWritingDirection] != direction) { … … 335 335 } 336 336 337 void QListBox::clearCachedTextRenderers()337 void ListBox::clearCachedTextRenderers() 338 338 { 339 339 delete itemScreenRenderer; … … 350 350 } 351 351 352 void QListBox::setFont(const Font& font)352 void ListBox::setFont(const Font& font) 353 353 { 354 354 Widget::setFont(font); 355 355 356 356 NSScrollView *scrollView = static_cast<NSScrollView *>(getView()); 357 KWQTableView *tableView = [scrollView documentView];357 WebCoreTableView *tableView = [scrollView documentView]; 358 358 [tableView fontChanged]; 359 359 } 360 360 361 @implementation KWQListBoxScrollView361 @implementation WebCoreListBoxScrollView 362 362 363 363 - (Widget *)widget 364 364 { 365 KWQTableView *tableView = [self documentView];366 367 assert([tableView isKindOfClass:[ KWQTableView class]]);365 WebCoreTableView *tableView = [self documentView]; 366 367 assert([tableView isKindOfClass:[WebCoreTableView class]]); 368 368 369 369 return [tableView widget]; … … 381 381 - (BOOL)becomeFirstResponder 382 382 { 383 KWQTableView *documentView = [self documentView];383 WebCoreTableView *documentView = [self documentView]; 384 384 Widget *widget = [documentView widget]; 385 385 [FrameMac::bridgeForWidget(widget) makeFirstResponder:documentView]; … … 394 394 @end 395 395 396 static Boolean KWQTableViewTypeSelectCallback(UInt32 index, void *listDataPtr, void *refcon, CFStringRef *outString, UCTypeSelectOptions *tsOptions)397 { 398 KWQTableView *self = static_cast<KWQTableView *>(refcon);399 QListBox *box = static_cast<QListBox *>([self widget]);396 static Boolean ListBoxTypeSelectCallback(UInt32 index, void *listDataPtr, void *refcon, CFStringRef *outString, UCTypeSelectOptions *tsOptions) 397 { 398 WebCoreTableView *self = static_cast<WebCoreTableView *>(refcon); 399 ListBox *box = static_cast<ListBox *>([self widget]); 400 400 401 401 if (!box) … … 414 414 } 415 415 416 @implementation KWQTableView417 418 - (id)initWithListBox:( QListBox *)b416 @implementation WebCoreTableView 417 418 - (id)initWithListBox:(ListBox *)b 419 419 { 420 420 [super init]; … … 536 536 UInt32 closestItem = 0; 537 537 538 err = UCTypeSelectFindItem(typeSelectSelector, [self numberOfRowsInTableView:self], 0, self, KWQTableViewTypeSelectCallback, &closestItem);538 err = UCTypeSelectFindItem(typeSelectSelector, [self numberOfRowsInTableView:self], 0, self, ListBoxTypeSelectCallback, &closestItem); 539 539 540 540 if (err) … … 558 558 if (_box && _box->client() && !FrameMac::currentEventIsMouseDownInWidget(_box)) 559 559 _box->client()->scrollToVisible(_box); 560 [self _ KWQ_setKeyboardFocusRingNeedsDisplay];560 [self _webcore_setKeyboardFocusRingNeedsDisplay]; 561 561 if (_box && _box->client()) { 562 562 _box->client()->focusIn(_box); … … 588 588 { 589 589 return _box && inNextValidKeyView 590 ? FrameMac::nextKeyViewForWidget(_box, KWQSelectingNext)590 ? FrameMac::nextKeyViewForWidget(_box, SelectingNext) 591 591 : [super nextKeyView]; 592 592 } … … 595 595 { 596 596 return _box && inNextValidKeyView 597 ? FrameMac::nextKeyViewForWidget(_box, KWQSelectingPrevious)597 ? FrameMac::nextKeyViewForWidget(_box, SelectingPrevious) 598 598 : [super previousKeyView]; 599 599 } … … 644 644 return NO; 645 645 646 const KWQListBoxItem &item = _box->itemAtIndex(row);647 648 return item.type == KWQListBoxOption && item.enabled;646 const ListBoxItem &item = _box->itemAtIndex(row); 647 648 return item.type == ListBoxOption && item.enabled; 649 649 } 650 650 … … 660 660 } 661 661 662 const KWQListBoxItem &item = _box->itemAtIndex(row);662 const ListBoxItem &item = _box->itemAtIndex(row); 663 663 664 664 NSColor *color; … … 678 678 const Font* renderer; 679 679 if (isSystemFont) { 680 renderer = (item.type == KWQListBoxGroupLabel) ? groupLabelTextRenderer() : itemTextRenderer();680 renderer = (item.type == ListBoxGroupLabel) ? groupLabelTextRenderer() : itemTextRenderer(); 681 681 } else { 682 if (item.type == KWQListBoxGroupLabel) {682 if (item.type == ListBoxGroupLabel) { 683 683 deleteRenderer = true; 684 684 FontDescription boldDesc = _box->font().fontDescription(); … … 713 713 } 714 714 715 - (void)_ KWQ_setKeyboardFocusRingNeedsDisplay715 - (void)_webcore_setKeyboardFocusRingNeedsDisplay 716 716 { 717 717 [self setKeyboardFocusRingNeedsDisplayInRect:[self bounds]]; -
trunk/WebCore/kwq/LoaderFunctions.h
r15251 r15253 53 53 } 54 54 55 Vector<char> KWQServeSynchronousRequest(WebCore::Loader*, WebCore::DocLoader*, WebCore::TransferJob*, KURL& finalURL, DeprecatedString& headers);55 Vector<char> ServeSynchronousRequest(WebCore::Loader*, WebCore::DocLoader*, WebCore::TransferJob*, KURL& finalURL, DeprecatedString& headers); 56 56 57 void KWQCheckCacheObjectStatus(WebCore::DocLoader*, WebCore::CachedObject*);58 bool KWQCheckIfReloading(WebCore::DocLoader*);59 bool KWQIsResponseURLEqualToURL(NSURLResponse*, const WebCore::String& m_url);60 DeprecatedString KWQResponseURL(NSURLResponse *response);61 DeprecatedString KWQResponseMIMEType(NSURLResponse *response);62 bool KWQResponseIsMultipart(NSURLResponse *response);63 int KWQNumberOfPendingOrLoadingRequests(WebCore::DocLoader*);64 time_t KWQCacheObjectExpiresTime(WebCore::DocLoader*, NSURLResponse*);65 NSString* KWQHeaderStringFromDictionary(NSDictionary* headers, int statusCode);57 void CheckCacheObjectStatus(WebCore::DocLoader*, WebCore::CachedObject*); 58 bool CheckIfReloading(WebCore::DocLoader*); 59 bool IsResponseURLEqualToURL(NSURLResponse*, const WebCore::String& m_url); 60 DeprecatedString ResponseURL(NSURLResponse *response); 61 DeprecatedString ResponseMIMEType(NSURLResponse *response); 62 bool ResponseIsMultipart(NSURLResponse *response); 63 int NumberOfPendingOrLoadingRequests(WebCore::DocLoader*); 64 time_t CacheObjectExpiresTime(WebCore::DocLoader*, NSURLResponse*); 65 NSString* HeaderStringFromDictionary(NSDictionary* headers, int statusCode); -
trunk/WebCore/kwq/LoaderFunctions.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQLoader.h"27 #import "LoaderFunctions.h" 28 28 29 29 #import "BlockExceptions.h" … … 33 33 #import "FoundationExtras.h" 34 34 #import "FrameMac.h" 35 #import " KWQFormData.h"36 #import " KWQResourceLoader.h"35 #import "FormDataMac.h" 36 #import "WebCoreResourceLoaderImp.h" 37 37 #import "Logging.h" 38 38 #import "Request.h" … … 96 96 @end 97 97 98 NSString * KWQHeaderStringFromDictionary(NSDictionary *headers, int statusCode)98 NSString *HeaderStringFromDictionary(NSDictionary *headers, int statusCode) 99 99 { 100 100 NSMutableString *headerString = [[[NSMutableString alloc] init] autorelease]; … … 120 120 } 121 121 122 Vector<char> KWQServeSynchronousRequest(Loader *loader, DocLoader *docLoader, TransferJob *job, KURL &finalURL, DeprecatedString &responseHeaders)122 Vector<char> ServeSynchronousRequest(Loader *loader, DocLoader *docLoader, TransferJob *job, KURL &finalURL, DeprecatedString &responseHeaders) 123 123 { 124 124 FrameMac *frame = static_cast<FrameMac *>(docLoader->frame()); … … 152 152 153 153 finalURL = finalNSURL; 154 responseHeaders = DeprecatedString::fromNSString( KWQHeaderStringFromDictionary(responseHeaderDict, statusCode));154 responseHeaders = DeprecatedString::fromNSString(HeaderStringFromDictionary(responseHeaderDict, statusCode)); 155 155 156 156 Vector<char> results([resultData length]); … … 165 165 } 166 166 167 int KWQNumberOfPendingOrLoadingRequests(WebCore::DocLoader *dl)167 int NumberOfPendingOrLoadingRequests(WebCore::DocLoader *dl) 168 168 { 169 169 return WebCore::Cache::loader()->numRequests(dl); 170 170 } 171 171 172 bool KWQCheckIfReloading(DocLoader *loader)172 bool CheckIfReloading(DocLoader *loader) 173 173 { 174 174 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 180 180 } 181 181 182 void KWQCheckCacheObjectStatus(DocLoader *loader, CachedObject *cachedObject)182 void CheckCacheObjectStatus(DocLoader *loader, CachedObject *cachedObject) 183 183 { 184 184 // Return from the function for objects that we didn't load from the cache. … … 215 215 } 216 216 217 bool KWQIsResponseURLEqualToURL(NSURLResponse *response, const WebCore::String& m_url)217 bool IsResponseURLEqualToURL(NSURLResponse *response, const WebCore::String& m_url) 218 218 { 219 219 NSURL *responseURL = [(NSURLResponse *)response URL]; … … 229 229 } 230 230 231 DeprecatedString KWQResponseURL(NSURLResponse *response)231 DeprecatedString ResponseURL(NSURLResponse *response) 232 232 { 233 233 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 245 245 } 246 246 247 DeprecatedString KWQResponseMIMEType(NSURLResponse *response)247 DeprecatedString ResponseMIMEType(NSURLResponse *response) 248 248 { 249 249 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 254 254 } 255 255 256 bool KWQResponseIsMultipart(NSURLResponse *response)256 bool ResponseIsMultipart(NSURLResponse *response) 257 257 { 258 258 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 263 263 } 264 264 265 time_t KWQCacheObjectExpiresTime(WebCore::DocLoader *docLoader, NSURLResponse *response)265 time_t CacheObjectExpiresTime(WebCore::DocLoader *docLoader, NSURLResponse *response) 266 266 { 267 267 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 282 282 void CachedObject::setResponse(NSURLResponse *response) 283 283 { 284 KWQRetain(response);285 BEGIN_BLOCK_OBJC_EXCEPTIONS; 286 KWQRelease(m_response);284 HardRetain(response); 285 BEGIN_BLOCK_OBJC_EXCEPTIONS; 286 HardRelease(m_response); 287 287 END_BLOCK_OBJC_EXCEPTIONS; 288 288 … … 292 292 void CachedObject::setAllData(NSData *allData) 293 293 { 294 KWQRetain(allData);295 BEGIN_BLOCK_OBJC_EXCEPTIONS; 296 KWQRelease(m_allData);294 HardRetain(allData); 295 BEGIN_BLOCK_OBJC_EXCEPTIONS; 296 HardRelease(m_allData); 297 297 END_BLOCK_OBJC_EXCEPTIONS; 298 298 -
trunk/WebCore/kwq/PopUpButton.h
r15251 r15253 24 24 */ 25 25 26 #ifndef QCOMBOBOX_H_27 #define QCOMBOBOX_H_26 #ifndef PopUpButton_h 27 #define PopUpButton_h 28 28 29 #include " KWQListBox.h"29 #include "ListBox.h" 30 30 31 31 #ifdef __OBJC__ 32 @class KWQComboBoxAdapter;32 @class WebCorePopUpButtonAdapter; 33 33 #else 34 class KWQComboBoxAdapter;34 class WebCorePopUpButtonAdapter; 35 35 class NSMenuItem; 36 36 class NSFont; 37 37 #endif 38 38 39 class QComboBox: public Widget {39 class PopUpButton : public Widget { 40 40 public: 41 QComboBox();42 ~ QComboBox();41 PopUpButton(); 42 ~PopUpButton(); 43 43 44 44 void clear(); 45 void appendItem(const DeprecatedString &text, bool enabled) { appendItem(text, KWQListBoxOption, enabled); }46 void appendGroupLabel(const DeprecatedString &text) { appendItem(text, KWQListBoxGroupLabel, false); }47 void appendSeparator() { appendItem(DeprecatedString::null, KWQListBoxSeparator, true); }45 void appendItem(const DeprecatedString &text, bool enabled) { appendItem(text, ListBoxOption, enabled); } 46 void appendGroupLabel(const DeprecatedString &text) { appendItem(text, ListBoxGroupLabel, false); } 47 void appendSeparator() { appendItem(DeprecatedString::null, ListBoxSeparator, true); } 48 48 49 49 int currentItem() const { return _currentItem; } … … 66 66 67 67 private: 68 void appendItem(const DeprecatedString &, KWQListBoxItemType, bool);68 void appendItem(const DeprecatedString &, ListBoxItemType, bool); 69 69 const int *dimensions() const; 70 70 NSFont *labelFont() const; 71 void setTitle(NSMenuItem *, const KWQListBoxItem &);71 void setTitle(NSMenuItem *, const ListBoxItem &); 72 72 73 73 mutable int _width; … … 76 76 mutable int _currentItem; 77 77 78 // A Vector< KWQListBoxItem> may be more efficient for large menus.79 DeprecatedValueList< KWQListBoxItem> _items;78 // A Vector<ListBoxItem> may be more efficient for large menus. 79 DeprecatedValueList<ListBoxItem> _items; 80 80 mutable bool _menuPopulated; 81 81 -
trunk/WebCore/kwq/PopUpButton.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQComboBox.h"27 #import "PopUpButton.h" 28 28 29 29 #import "BlockExceptions.h" 30 30 #import "FoundationExtras.h" 31 31 #import "FrameMac.h" 32 #import " KWQLineEdit.h"32 #import "TextField.h" 33 33 #import "WebCoreFrameBridge.h" 34 34 #import "FontData.h" … … 39 39 using namespace WebCore; 40 40 41 @interface NSCell ( KWQComboBoxKnowsAppKitSecrets)41 @interface NSCell (WebCorePopUpButtonKnowsAppKitSecrets) 42 42 - (NSMutableDictionary *)_textAttributes; 43 43 @end … … 53 53 }; 54 54 55 @interface KWQPopUpButtonCell : NSPopUpButtonCell <WebCoreWidgetHolder>56 { 57 QComboBox*box;55 @interface WebCorePopUpButtonCell : NSPopUpButtonCell <WebCoreWidgetHolder> 56 { 57 PopUpButton *box; 58 58 NSWritingDirection baseWritingDirection; 59 59 } 60 - (id)initWithQComboBox:( QComboBox*)b;60 - (id)initWithQComboBox:(PopUpButton *)b; 61 61 - (void)detachQComboBox; 62 62 - (void)setBaseWritingDirection:(NSWritingDirection)direction; … … 64 64 @end 65 65 66 @interface KWQPopUpButton : NSPopUpButton <WebCoreWidgetHolder>66 @interface WebCorePopUpButton : NSPopUpButton <WebCoreWidgetHolder> 67 67 { 68 68 BOOL inNextValidKeyView; … … 73 73 @end 74 74 75 QComboBox::QComboBox()75 PopUpButton::PopUpButton() 76 76 : _widthGood(false) 77 77 , _currentItem(0) … … 81 81 BEGIN_BLOCK_OBJC_EXCEPTIONS; 82 82 83 KWQPopUpButton *button = [[KWQPopUpButton alloc] init];83 WebCorePopUpButton *button = [[WebCorePopUpButton alloc] init]; 84 84 setView(button); 85 85 [button release]; 86 86 87 KWQPopUpButtonCell *cell = [[KWQPopUpButtonCell alloc] initWithQComboBox:this];87 WebCorePopUpButtonCell *cell = [[WebCorePopUpButtonCell alloc] initWithQComboBox:this]; 88 88 // Work around problem where the pop-up menu gets a "..." in it 89 89 // by turning off the default "ellipsizing" behavior. … … 102 102 } 103 103 104 QComboBox::~QComboBox()105 { 106 BEGIN_BLOCK_OBJC_EXCEPTIONS; 107 108 KWQPopUpButton *button = (KWQPopUpButton *)getView();104 PopUpButton::~PopUpButton() 105 { 106 BEGIN_BLOCK_OBJC_EXCEPTIONS; 107 108 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 109 109 [button setTarget:nil]; 110 110 [[button cell] detachQComboBox]; 111 KWQRelease(_labelFont);112 113 END_BLOCK_OBJC_EXCEPTIONS; 114 } 115 116 void QComboBox::setTitle(NSMenuItem *menuItem, const KWQListBoxItem &title)117 { 118 if (title.type == KWQListBoxGroupLabel) {111 HardRelease(_labelFont); 112 113 END_BLOCK_OBJC_EXCEPTIONS; 114 } 115 116 void PopUpButton::setTitle(NSMenuItem *menuItem, const ListBoxItem &title) 117 { 118 if (title.type == ListBoxGroupLabel) { 119 119 NSDictionary *attributes = [[NSDictionary alloc] initWithObjectsAndKeys:labelFont(), NSFontAttributeName, nil]; 120 120 NSAttributedString *string = [[NSAttributedString alloc] initWithString:title.string.getNSString() attributes:attributes]; … … 129 129 } 130 130 131 void QComboBox::appendItem(const DeprecatedString &text, KWQListBoxItemType type, bool enabled)132 { 133 const KWQListBoxItem listItem(text, type, enabled);131 void PopUpButton::appendItem(const DeprecatedString &text, ListBoxItemType type, bool enabled) 132 { 133 const ListBoxItem listItem(text, type, enabled); 134 134 _items.append(listItem); 135 135 if (_menuPopulated) { 136 KWQPopUpButton *button = (KWQPopUpButton *)getView();136 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 137 137 if (![[button cell] isHighlighted]) { 138 138 _menuPopulated = false; 139 139 } else { 140 140 BEGIN_BLOCK_OBJC_EXCEPTIONS; 141 if (type == KWQListBoxSeparator) {141 if (type == ListBoxSeparator) { 142 142 NSMenuItem *separator = [NSMenuItem separatorItem]; 143 143 [[button menu] addItem:separator]; … … 155 155 } 156 156 157 IntSize QComboBox::sizeHint() const158 { 159 BEGIN_BLOCK_OBJC_EXCEPTIONS; 160 161 KWQPopUpButton *button = (KWQPopUpButton *)getView();157 IntSize PopUpButton::sizeHint() const 158 { 159 BEGIN_BLOCK_OBJC_EXCEPTIONS; 160 161 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 162 162 163 163 if (!_widthGood) { 164 164 float width = 0; 165 DeprecatedValueListConstIterator< KWQListBoxItem> i = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).begin();166 DeprecatedValueListConstIterator< KWQListBoxItem> e = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).end();165 DeprecatedValueListConstIterator<ListBoxItem> i = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).begin(); 166 DeprecatedValueListConstIterator<ListBoxItem> e = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).end(); 167 167 if (i != e) { 168 168 FontPlatformData itemFont([button font], ![NSGraphicsContext currentContextDrawingToScreen]); … … 172 172 do { 173 173 const DeprecatedString &s = (*i).string; 174 bool isGroupLabel = ((*i).type == KWQListBoxGroupLabel);174 bool isGroupLabel = ((*i).type == ListBoxGroupLabel); 175 175 ++i; 176 176 … … 195 195 } 196 196 197 IntRect QComboBox::frameGeometry() const197 IntRect PopUpButton::frameGeometry() const 198 198 { 199 199 IntRect r = Widget::frameGeometry(); … … 203 203 } 204 204 205 void QComboBox::setFrameGeometry(const IntRect& r)205 void PopUpButton::setFrameGeometry(const IntRect& r) 206 206 { 207 207 Widget::setFrameGeometry(IntRect(-dimensions()[leftMargin] + r.x(), -dimensions()[topMargin] + r.y(), … … 210 210 } 211 211 212 int QComboBox::baselinePosition(int height) const212 int PopUpButton::baselinePosition(int height) const 213 213 { 214 214 // Menu text is at the top. 215 KWQPopUpButton *button = (KWQPopUpButton *)getView();215 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 216 216 return static_cast<int>(ceilf(-dimensions()[topMargin] + dimensions()[baselineFudgeFactor] + [[button font] ascender])); 217 217 } 218 218 219 void QComboBox::clear()220 { 221 KWQPopUpButton *button = (KWQPopUpButton *)getView();219 void PopUpButton::clear() 220 { 221 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 222 222 [button removeAllItems]; 223 223 _widthGood = false; … … 227 227 } 228 228 229 void QComboBox::setCurrentItem(int index)229 void PopUpButton::setCurrentItem(int index) 230 230 { 231 231 ASSERT(index < (int)_items.count()); … … 233 233 BEGIN_BLOCK_OBJC_EXCEPTIONS; 234 234 235 KWQPopUpButton *button = (KWQPopUpButton *)getView();235 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 236 236 if (_menuPopulated) { 237 237 [button selectItemAtIndex:index]; … … 248 248 } 249 249 250 void QComboBox::itemSelected()250 void PopUpButton::itemSelected() 251 251 { 252 252 ASSERT(_menuPopulated); … … 254 254 BEGIN_BLOCK_OBJC_EXCEPTIONS; 255 255 256 KWQPopUpButton *button = (KWQPopUpButton *)getView();256 WebCorePopUpButton *button = (WebCorePopUpButton *)getView(); 257 257 int i = [button indexOfSelectedItem]; 258 258 if (_currentItem == i) { … … 267 267 } 268 268 269 void QComboBox::setFont(const Font& f)269 void PopUpButton::setFont(const Font& f) 270 270 { 271 271 Widget::setFont(f); 272 272 273 const NSControlSize size = KWQNSControlSizeForFont(f);273 const NSControlSize size = ControlSizeForFont(f); 274 274 NSControl * const button = static_cast<NSControl *>(getView()); 275 275 … … 279 279 [[button cell] setControlSize:size]; 280 280 [button setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:size]]]; 281 KWQRelease(_labelFont);281 HardRelease(_labelFont); 282 282 _labelFont = nil; 283 283 _widthGood = false; … … 287 287 } 288 288 289 NSFont * QComboBox::labelFont() const289 NSFont *PopUpButton::labelFont() const 290 290 { 291 291 if (_labelFont == nil) { 292 292 NSControl * const button = static_cast<NSControl *>(getView()); 293 _labelFont = KWQRetain([NSFont boldSystemFontOfSize:[[button font] pointSize]]);293 _labelFont = HardRetain([NSFont boldSystemFontOfSize:[[button font] pointSize]]); 294 294 } 295 295 return _labelFont; 296 296 } 297 297 298 const int * QComboBox::dimensions() const298 const int *PopUpButton::dimensions() const 299 299 { 300 300 // We empirically determined these dimensions. … … 314 314 } 315 315 316 Widget::FocusPolicy QComboBox::focusPolicy() const316 Widget::FocusPolicy PopUpButton::focusPolicy() const 317 317 { 318 318 FocusPolicy policy = Widget::focusPolicy(); … … 320 320 } 321 321 322 void QComboBox::setWritingDirection(TextDirection direction)323 { 324 BEGIN_BLOCK_OBJC_EXCEPTIONS; 325 326 KWQPopUpButton *button = static_cast<KWQPopUpButton *>(getView());327 KWQPopUpButtonCell *cell = [button cell];322 void PopUpButton::setWritingDirection(TextDirection direction) 323 { 324 BEGIN_BLOCK_OBJC_EXCEPTIONS; 325 326 WebCorePopUpButton *button = static_cast<WebCorePopUpButton *>(getView()); 327 WebCorePopUpButtonCell *cell = [button cell]; 328 328 NSWritingDirection d = direction == RTL ? NSWritingDirectionRightToLeft : NSWritingDirectionLeftToRight; 329 329 if ([cell baseWritingDirection] != d) { … … 335 335 } 336 336 337 void QComboBox::populateMenu()337 void PopUpButton::populateMenu() 338 338 { 339 339 if (!_menuPopulated) { 340 340 BEGIN_BLOCK_OBJC_EXCEPTIONS; 341 341 342 KWQPopUpButton *button = static_cast<KWQPopUpButton *>(getView());342 WebCorePopUpButton *button = static_cast<WebCorePopUpButton *>(getView()); 343 343 [button setPopulatingMenu:YES]; 344 344 [button removeAllItems]; 345 DeprecatedValueListConstIterator< KWQListBoxItem> i = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).begin();346 DeprecatedValueListConstIterator< KWQListBoxItem> e = const_cast<const DeprecatedValueList<KWQListBoxItem> &>(_items).end();345 DeprecatedValueListConstIterator<ListBoxItem> i = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).begin(); 346 DeprecatedValueListConstIterator<ListBoxItem> e = const_cast<const DeprecatedValueList<ListBoxItem> &>(_items).end(); 347 347 for (; i != e; ++i) { 348 if ((*i).type == KWQListBoxSeparator) {348 if ((*i).type == ListBoxSeparator) { 349 349 NSMenuItem *separator = [NSMenuItem separatorItem]; 350 350 [[button menu] addItem:separator]; … … 366 366 } 367 367 368 void QComboBox::populate()368 void PopUpButton::populate() 369 369 { 370 370 populateMenu(); 371 371 } 372 372 373 @implementation KWQPopUpButtonCell374 375 - (id)initWithQComboBox:( QComboBox*)b373 @implementation WebCorePopUpButtonCell 374 375 - (id)initWithQComboBox:(PopUpButton *)b 376 376 { 377 377 box = b; … … 442 442 @end 443 443 444 @implementation KWQPopUpButton444 @implementation WebCorePopUpButton 445 445 446 446 - (void)action:(id)sender 447 447 { 448 QComboBox *box = static_cast<QComboBox*>([self widget]);448 PopUpButton *box = static_cast<PopUpButton *>([self widget]); 449 449 if (box) { 450 450 box->itemSelected(); … … 509 509 Widget *widget = [self widget]; 510 510 return widget && inNextValidKeyView 511 ? FrameMac::nextKeyViewForWidget(widget, KWQSelectingNext)511 ? FrameMac::nextKeyViewForWidget(widget, SelectingNext) 512 512 : [super nextKeyView]; 513 513 } … … 517 517 Widget *widget = [self widget]; 518 518 return widget && inNextValidKeyView 519 ? FrameMac::nextKeyViewForWidget(widget, KWQSelectingPrevious)519 ? FrameMac::nextKeyViewForWidget(widget, SelectingPrevious) 520 520 : [super previousKeyView]; 521 521 } -
trunk/WebCore/kwq/SSLKeyGenerator.h
r15251 r15253 31 31 class KURL; 32 32 33 class KSSLKeyGen33 class SSLKeyGenerator 34 34 { 35 35 public: -
trunk/WebCore/kwq/SSLKeyGenerator.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQKSSLKeyGen.h"27 #import "SSLKeyGenerator.h" 28 28 29 29 #import "KURL.h" 30 30 #import "WebCoreKeyGenerator.h" 31 31 32 DeprecatedStringList KSSLKeyGen::supportedKeySizes()32 DeprecatedStringList SSLKeyGenerator::supportedKeySizes() 33 33 { 34 34 NSEnumerator *enumerator = [[[WebCoreKeyGenerator sharedGenerator] strengthMenuItemTitles] objectEnumerator]; … … 41 41 } 42 42 43 DeprecatedString KSSLKeyGen::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url)43 DeprecatedString SSLKeyGenerator::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url) 44 44 { 45 45 return DeprecatedString::fromNSString([[WebCoreKeyGenerator sharedGenerator] signedPublicKeyAndChallengeStringWithStrengthIndex:keySizeIndex -
trunk/WebCore/kwq/Settings.h
r15251 r15253 30 30 #include "KURL.h" 31 31 32 class KHTMLSettings32 class Settings 33 33 { 34 34 public: 35 KHTMLSettings()35 Settings() 36 36 : m_minimumFontSize(0) 37 37 , m_minimumLogicalFontSize(0) -
trunk/WebCore/kwq/TextBox.h
r15251 r15253 24 24 */ 25 25 26 #ifndef QTEXTEDIT_H_27 #define QTEXTEDIT_H_26 #ifndef TextBox_h 27 #define TextBox_h 28 28 29 29 #include "GraphicsTypes.h" … … 36 36 } 37 37 38 class QTextEdit: public WebCore::ScrollView {38 class TextBox : public WebCore::ScrollView { 39 39 public: 40 40 typedef enum { … … 47 47 } TextFormat; 48 48 49 QTextEdit(WebCore::Widget* parent);50 ~ QTextEdit();49 TextBox(WebCore::Widget* parent); 50 ~TextBox(); 51 51 52 52 void setColors(const WebCore::Color& background, const WebCore::Color& foreground); … … 95 95 }; 96 96 97 #endif /* QTEXTEDIT_H_*/97 #endif /* TextBox_h */ -
trunk/WebCore/kwq/TextBox.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQTextEdit.h"27 #import "TextBox.h" 28 28 29 29 #import "Font.h" 30 30 #import "IntSize.h" 31 31 #import "BlockExceptions.h" 32 #import " KWQLineEdit.h"32 #import "TextField.h" 33 33 #import "WebCoreTextArea.h" 34 34 #import "WidgetClient.h" … … 37 37 using namespace WebCore; 38 38 39 QTextEdit::QTextEdit(Widget *parent)39 TextBox::TextBox(Widget *parent) 40 40 { 41 41 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 46 46 } 47 47 48 QTextEdit::~QTextEdit()48 TextBox::~TextBox() 49 49 { 50 50 WebCoreTextArea *textArea = (WebCoreTextArea *)getView(); … … 52 52 } 53 53 54 void QTextEdit::setText(const String& string)54 void TextBox::setText(const String& string) 55 55 { 56 56 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 60 60 } 61 61 62 String QTextEdit::text() const62 String TextBox::text() const 63 63 { 64 64 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 71 71 } 72 72 73 String QTextEdit::textWithHardLineBreaks() const73 String TextBox::textWithHardLineBreaks() const 74 74 { 75 75 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 82 82 } 83 83 84 void QTextEdit::getCursorPosition(int *paragraph, int *index) const84 void TextBox::getCursorPosition(int *paragraph, int *index) const 85 85 { 86 86 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 95 95 } 96 96 97 void QTextEdit::setCursorPosition(int paragraph, int index)97 void TextBox::setCursorPosition(int paragraph, int index) 98 98 { 99 99 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 104 104 } 105 105 106 QTextEdit::WrapStyle QTextEdit::wordWrap() const106 TextBox::WrapStyle TextBox::wordWrap() const 107 107 { 108 108 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 115 115 } 116 116 117 void QTextEdit::setWordWrap(WrapStyle style)117 void TextBox::setWordWrap(WrapStyle style) 118 118 { 119 119 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 123 123 } 124 124 125 void QTextEdit::setScrollBarModes(ScrollBarMode hMode, ScrollBarMode vMode)125 void TextBox::setScrollBarModes(ScrollBarMode hMode, ScrollBarMode vMode) 126 126 { 127 127 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 142 142 } 143 143 144 bool QTextEdit::isReadOnly() const144 bool TextBox::isReadOnly() const 145 145 { 146 146 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 153 153 } 154 154 155 void QTextEdit::setReadOnly(bool flag)155 void TextBox::setReadOnly(bool flag) 156 156 { 157 157 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 162 162 } 163 163 164 bool QTextEdit::isDisabled() const164 bool TextBox::isDisabled() const 165 165 { 166 166 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 173 173 } 174 174 175 void QTextEdit::setDisabled(bool flag)175 void TextBox::setDisabled(bool flag) 176 176 { 177 177 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 182 182 } 183 183 184 int QTextEdit::selectionStart()184 int TextBox::selectionStart() 185 185 { 186 186 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 196 196 } 197 197 198 int QTextEdit::selectionEnd()198 int TextBox::selectionEnd() 199 199 { 200 200 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 210 210 } 211 211 212 void QTextEdit::setSelectionStart(int start)212 void TextBox::setSelectionStart(int start) 213 213 { 214 214 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 243 243 } 244 244 245 void QTextEdit::setSelectionEnd(int end)245 void TextBox::setSelectionEnd(int end) 246 246 { 247 247 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 275 275 } 276 276 277 bool QTextEdit::hasSelectedText() const277 bool TextBox::hasSelectedText() const 278 278 { 279 279 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 286 286 } 287 287 288 void QTextEdit::selectAll()288 void TextBox::selectAll() 289 289 { 290 290 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 295 295 } 296 296 297 void QTextEdit::setSelectionRange(int start, int length)297 void TextBox::setSelectionRange(int start, int length) 298 298 { 299 299 WebCoreTextArea *textView = (WebCoreTextArea *)getView(); … … 322 322 } 323 323 324 void QTextEdit::setFont(const Font& font)324 void TextBox::setFont(const Font& font) 325 325 { 326 326 Widget::setFont(font); … … 332 332 } 333 333 334 void QTextEdit::setAlignment(HorizontalAlignment alignment)334 void TextBox::setAlignment(HorizontalAlignment alignment) 335 335 { 336 336 BEGIN_BLOCK_OBJC_EXCEPTIONS; 337 337 338 338 WebCoreTextArea *textArea = static_cast<WebCoreTextArea *>(getView()); 339 [textArea setAlignment: KWQNSTextAlignment(alignment)];340 341 END_BLOCK_OBJC_EXCEPTIONS; 342 } 343 344 void QTextEdit::setLineHeight(int lineHeight)339 [textArea setAlignment:TextAlignment(alignment)]; 340 341 END_BLOCK_OBJC_EXCEPTIONS; 342 } 343 344 void TextBox::setLineHeight(int lineHeight) 345 345 { 346 346 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 352 352 } 353 353 354 void QTextEdit::setWritingDirection(TextDirection direction)354 void TextBox::setWritingDirection(TextDirection direction) 355 355 { 356 356 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 362 362 } 363 363 364 IntSize QTextEdit::sizeWithColumnsAndRows(int numColumns, int numRows) const364 IntSize TextBox::sizeWithColumnsAndRows(int numColumns, int numRows) const 365 365 { 366 366 WebCoreTextArea *textArea = static_cast<WebCoreTextArea *>(getView()); … … 374 374 } 375 375 376 Widget::FocusPolicy QTextEdit::focusPolicy() const376 Widget::FocusPolicy TextBox::focusPolicy() const 377 377 { 378 378 FocusPolicy policy = ScrollView::focusPolicy(); … … 380 380 } 381 381 382 bool QTextEdit::checksDescendantsForFocus() const382 bool TextBox::checksDescendantsForFocus() const 383 383 { 384 384 return true; 385 385 } 386 386 387 void QTextEdit::setColors(const Color& background, const Color& foreground)387 void TextBox::setColors(const Color& background, const Color& foreground) 388 388 { 389 389 WebCoreTextArea *textArea = static_cast<WebCoreTextArea *>(getView()); -
trunk/WebCore/kwq/TextField.h
r15251 r15253 24 24 */ 25 25 26 #ifndef QLineEdit_H27 #define QLineEdit_H26 #ifndef TextField_h 27 #define TextField_h 28 28 29 29 #include "GraphicsTypes.h" … … 37 37 38 38 #ifdef __OBJC__ 39 @class KWQTextFieldController;40 NSControlSize KWQNSControlSizeForFont(const WebCore::Font&);39 @class WebCoreTextFieldController; 40 NSControlSize ControlSizeForFont(const WebCore::Font&); 41 41 #else 42 class KWQTextFieldController;42 class WebCoreTextFieldController; 43 43 #endif 44 44 45 class QLineEdit: public Widget {45 class TextField : public Widget { 46 46 public: 47 47 enum Type { Normal, Password, Search }; 48 48 49 QLineEdit(Type);50 ~ QLineEdit();49 TextField(Type); 50 ~TextField(); 51 51 52 52 void setColors(const WebCore::Color& background, const WebCore::Color& foreground); … … 96 96 private: 97 97 Type m_type; 98 KWQTextFieldController *m_controller;98 WebCoreTextFieldController *m_controller; 99 99 }; 100 100 101 101 #ifdef __OBJC__ 102 NSTextAlignment KWQNSTextAlignment(WebCore::HorizontalAlignment);102 NSTextAlignment TextAlignment(WebCore::HorizontalAlignment); 103 103 #endif 104 104 -
trunk/WebCore/kwq/TextField.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQLineEdit.h"27 #import "TextField.h" 28 28 29 29 #import "Color.h" … … 44 44 @end 45 45 46 NSControlSize KWQNSControlSizeForFont(const Font& f)46 NSControlSize ControlSizeForFont(const Font& f) 47 47 { 48 48 const int fontSize = f.pixelSize(); … … 54 54 } 55 55 56 QLineEdit::QLineEdit(Type type)56 TextField::TextField(Type type) 57 57 : m_type(type) 58 58 { … … 64 64 break; 65 65 case Password: 66 view = [ KWQSecureTextField alloc];66 view = [WebCoreSecureTextField alloc]; 67 67 break; 68 68 case Search: 69 view = [ KWQSearchField alloc];69 view = [WebCoreSearchField alloc]; 70 70 break; 71 71 } … … 79 79 } 80 80 81 QLineEdit::~QLineEdit()81 TextField::~TextField() 82 82 { 83 83 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 86 86 } 87 87 88 void QLineEdit::setCursorPosition(int pos)88 void TextField::setCursorPosition(int pos) 89 89 { 90 90 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 94 94 } 95 95 96 int QLineEdit::cursorPosition() const96 int TextField::cursorPosition() const 97 97 { 98 98 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 102 102 } 103 103 104 void QLineEdit::setFont(const Font &font)104 void TextField::setFont(const Font &font) 105 105 { 106 106 Widget::setFont(font); 107 107 if (m_type == Search) { 108 const NSControlSize size = KWQNSControlSizeForFont(font);108 const NSControlSize size = ControlSizeForFont(font); 109 109 NSControl * const searchField = static_cast<NSControl *>(getView()); 110 110 [[searchField cell] setControlSize:size]; … … 119 119 } 120 120 121 void QLineEdit::setColors(const Color& background, const Color& foreground)121 void TextField::setColors(const Color& background, const Color& foreground) 122 122 { 123 123 NSTextField *textField = (NSTextField *)getView(); … … 140 140 } 141 141 142 void QLineEdit::setText(const String& s)142 void TextField::setText(const String& s) 143 143 { 144 144 NSTextField *textField = (NSTextField *)getView(); … … 148 148 } 149 149 150 String QLineEdit::text() const150 String TextField::text() const 151 151 { 152 152 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 156 156 } 157 157 158 void QLineEdit::setMaxLength(int len)158 void TextField::setMaxLength(int len) 159 159 { 160 160 [m_controller setMaximumLength:len]; 161 161 } 162 162 163 bool QLineEdit::isReadOnly() const163 bool TextField::isReadOnly() const 164 164 { 165 165 NSTextField *textField = (NSTextField *)getView(); … … 172 172 } 173 173 174 void QLineEdit::setReadOnly(bool flag)174 void TextField::setReadOnly(bool flag) 175 175 { 176 176 NSTextField *textField = (NSTextField *)getView(); … … 180 180 } 181 181 182 int QLineEdit::maxLength() const182 int TextField::maxLength() const 183 183 { 184 184 return [m_controller maximumLength]; … … 186 186 187 187 188 void QLineEdit::selectAll()188 void TextField::selectAll() 189 189 { 190 190 if (!hasFocus()) { … … 200 200 } 201 201 202 int QLineEdit::selectionStart() const202 int TextField::selectionStart() const 203 203 { 204 204 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 210 210 } 211 211 212 String QLineEdit::selectedText() const212 String TextField::selectedText() const 213 213 { 214 214 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 220 220 } 221 221 222 void QLineEdit::setSelection(int start, int length)222 void TextField::setSelection(int start, int length) 223 223 { 224 224 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 228 228 } 229 229 230 bool QLineEdit::hasSelectedText() const230 bool TextField::hasSelectedText() const 231 231 { 232 232 return [m_controller hasSelection]; 233 233 } 234 234 235 bool QLineEdit::edited() const235 bool TextField::edited() const 236 236 { 237 237 return [m_controller edited]; 238 238 } 239 239 240 void QLineEdit::setEdited(bool flag)240 void TextField::setEdited(bool flag) 241 241 { 242 242 [m_controller setEdited:flag]; … … 245 245 static const NSSize textFieldMargins = { 8, 6 }; 246 246 247 IntSize QLineEdit::sizeForCharacterWidth(int numCharacters) const247 IntSize TextField::sizeForCharacterWidth(int numCharacters) const 248 248 { 249 249 // Figure out how big a text field needs to be for a given number of characters … … 281 281 } 282 282 283 int QLineEdit::baselinePosition(int height) const283 int TextField::baselinePosition(int height) const 284 284 { 285 285 NSTextField *textField = (NSTextField *)getView(); … … 298 298 } 299 299 300 void QLineEdit::setAlignment(HorizontalAlignment alignment)301 { 302 BEGIN_BLOCK_OBJC_EXCEPTIONS; 303 304 NSTextField *textField = (NSTextField *)getView(); 305 [textField setAlignment: KWQNSTextAlignment(alignment)];306 307 END_BLOCK_OBJC_EXCEPTIONS; 308 } 309 310 void QLineEdit::setWritingDirection(TextDirection direction)300 void TextField::setAlignment(HorizontalAlignment alignment) 301 { 302 BEGIN_BLOCK_OBJC_EXCEPTIONS; 303 304 NSTextField *textField = (NSTextField *)getView(); 305 [textField setAlignment:TextAlignment(alignment)]; 306 307 END_BLOCK_OBJC_EXCEPTIONS; 308 } 309 310 void TextField::setWritingDirection(TextDirection direction) 311 311 { 312 312 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 315 315 } 316 316 317 Widget::FocusPolicy QLineEdit::focusPolicy() const317 Widget::FocusPolicy TextField::focusPolicy() const 318 318 { 319 319 FocusPolicy policy = Widget::focusPolicy(); … … 321 321 } 322 322 323 bool QLineEdit::checksDescendantsForFocus() const323 bool TextField::checksDescendantsForFocus() const 324 324 { 325 325 return true; 326 326 } 327 327 328 NSTextAlignment KWQNSTextAlignment(HorizontalAlignment a)328 NSTextAlignment TextAlignment(HorizontalAlignment a) 329 329 { 330 330 switch (a) { … … 340 340 } 341 341 342 void QLineEdit::setLiveSearch(bool liveSearch)342 void TextField::setLiveSearch(bool liveSearch) 343 343 { 344 344 if (m_type != Search) … … 349 349 } 350 350 351 void QLineEdit::setAutoSaveName(const String& name)351 void TextField::setAutoSaveName(const String& name) 352 352 { 353 353 if (m_type != Search) … … 362 362 } 363 363 364 void QLineEdit::setMaxResults(int maxResults)364 void TextField::setMaxResults(int maxResults) 365 365 { 366 366 if (m_type != Search) … … 387 387 } 388 388 389 void QLineEdit::setPlaceholderString(const WebCore::String& placeholder)389 void TextField::setPlaceholderString(const WebCore::String& placeholder) 390 390 { 391 391 NSTextField *textField = (NSTextField *)getView(); … … 393 393 } 394 394 395 void QLineEdit::addSearchResult()395 void TextField::addSearchResult() 396 396 { 397 397 if (m_type != Search) -
trunk/WebCore/kwq/TextStream.cpp
r15251 r15253 25 25 26 26 #include "config.h" 27 #include " KWQTextStream.h"27 #include "TextStream.h" 28 28 29 29 #include "DeprecatedString.h" … … 37 37 const int defaultPrecision = 6; // matches qt and sprintf(.., "%f", ...) behaviour 38 38 39 QTextStream::QTextStream(DeprecatedString* s)39 TextStream::TextStream(DeprecatedString* s) 40 40 : m_hasByteArray(false), m_string(s), m_precision(defaultPrecision) 41 41 { 42 42 } 43 43 44 QTextStream& QTextStream::operator<<(char c)44 TextStream& TextStream::operator<<(char c) 45 45 { 46 46 if (m_hasByteArray) … … 48 48 49 49 if (m_string) 50 m_string->append( QChar(c));50 m_string->append(DeprecatedChar(c)); 51 51 return *this; 52 52 } 53 53 54 QTextStream& QTextStream::operator<<(short i)54 TextStream& TextStream::operator<<(short i) 55 55 { 56 56 char buffer[integerOrPointerAsStringBufferSize]; … … 59 59 } 60 60 61 QTextStream& QTextStream::operator<<(unsigned short i)61 TextStream& TextStream::operator<<(unsigned short i) 62 62 { 63 63 char buffer[integerOrPointerAsStringBufferSize]; … … 66 66 } 67 67 68 QTextStream& QTextStream::operator<<(int i)68 TextStream& TextStream::operator<<(int i) 69 69 { 70 70 char buffer[integerOrPointerAsStringBufferSize]; … … 73 73 } 74 74 75 QTextStream& QTextStream::operator<<(unsigned i)75 TextStream& TextStream::operator<<(unsigned i) 76 76 { 77 77 char buffer[integerOrPointerAsStringBufferSize]; … … 80 80 } 81 81 82 QTextStream& QTextStream::operator<<(long i)82 TextStream& TextStream::operator<<(long i) 83 83 { 84 84 char buffer[integerOrPointerAsStringBufferSize]; … … 87 87 } 88 88 89 QTextStream& QTextStream::operator<<(unsigned long i)89 TextStream& TextStream::operator<<(unsigned long i) 90 90 { 91 91 char buffer[integerOrPointerAsStringBufferSize]; … … 94 94 } 95 95 96 QTextStream& QTextStream::operator<<(float f)96 TextStream& TextStream::operator<<(float f) 97 97 { 98 98 char buffer[integerOrPointerAsStringBufferSize]; … … 101 101 } 102 102 103 QTextStream& QTextStream::operator<<(double d)103 TextStream& TextStream::operator<<(double d) 104 104 { 105 105 char buffer[integerOrPointerAsStringBufferSize]; … … 108 108 } 109 109 110 QTextStream& QTextStream::operator<<(const char* s)110 TextStream& TextStream::operator<<(const char* s) 111 111 { 112 112 if (m_hasByteArray) { … … 121 121 } 122 122 123 QTextStream& QTextStream::operator<<(const DeprecatedCString& qcs)123 TextStream& TextStream::operator<<(const DeprecatedCString& qcs) 124 124 { 125 125 const char *s = qcs; … … 127 127 } 128 128 129 QTextStream& QTextStream::operator<<(const DeprecatedString& s)129 TextStream& TextStream::operator<<(const DeprecatedString& s) 130 130 { 131 131 if (m_hasByteArray) { … … 140 140 } 141 141 142 QTextStream& QTextStream::operator<<(const WebCore::String& s)142 TextStream& TextStream::operator<<(const WebCore::String& s) 143 143 { 144 144 return (*this) << s.deprecatedString(); 145 145 } 146 146 147 QTextStream& QTextStream::operator<<(void* p)147 TextStream& TextStream::operator<<(void* p) 148 148 { 149 149 char buffer[integerOrPointerAsStringBufferSize]; … … 152 152 } 153 153 154 QTextStream& QTextStream::operator<<(const QTextStreamManipulator& m)154 TextStream& TextStream::operator<<(const TextStreamManipulator& m) 155 155 { 156 156 return m(*this); 157 157 } 158 158 159 int QTextStream::precision(int p)159 int TextStream::precision(int p) 160 160 { 161 161 int oldPrecision = m_precision; … … 167 167 } 168 168 169 QTextStream &endl(QTextStream& stream)169 TextStream &endl(TextStream& stream) 170 170 { 171 171 return stream << '\n'; -
trunk/WebCore/kwq/TextStream.h
r15251 r15253 24 24 */ 25 25 26 #ifndef QTextStream_H27 #define QTextStream_H26 #ifndef TextStream_h 27 #define TextStream_h 28 28 29 29 #include <wtf/Vector.h> … … 31 31 class DeprecatedCString; 32 32 class DeprecatedString; 33 class QChar;34 class QTextStream;33 class DeprecatedChar; 34 class TextStream; 35 35 36 36 namespace WebCore { … … 38 38 } 39 39 40 typedef QTextStream &(*QTextStreamManipulator)(QTextStream&);40 typedef TextStream &(*TextStreamManipulator)(TextStream&); 41 41 42 QTextStream &endl(QTextStream& stream);42 TextStream &endl(TextStream& stream); 43 43 44 class QTextStream {44 class TextStream { 45 45 public: 46 QTextStream(DeprecatedString*);46 TextStream(DeprecatedString*); 47 47 48 QTextStream& operator<<(char);49 QTextStream& operator<<(const QChar&);50 QTextStream& operator<<(short);51 QTextStream& operator<<(unsigned short);52 QTextStream& operator<<(int);53 QTextStream& operator<<(unsigned);54 QTextStream& operator<<(long);55 QTextStream& operator<<(unsigned long);56 QTextStream& operator<<(float);57 QTextStream& operator<<(double);58 QTextStream& operator<<(const char*);59 QTextStream& operator<<(const WebCore::String&);60 QTextStream& operator<<(const DeprecatedString&);61 QTextStream& operator<<(const DeprecatedCString&);62 QTextStream& operator<<(void*);48 TextStream& operator<<(char); 49 TextStream& operator<<(const DeprecatedChar&); 50 TextStream& operator<<(short); 51 TextStream& operator<<(unsigned short); 52 TextStream& operator<<(int); 53 TextStream& operator<<(unsigned); 54 TextStream& operator<<(long); 55 TextStream& operator<<(unsigned long); 56 TextStream& operator<<(float); 57 TextStream& operator<<(double); 58 TextStream& operator<<(const char*); 59 TextStream& operator<<(const WebCore::String&); 60 TextStream& operator<<(const DeprecatedString&); 61 TextStream& operator<<(const DeprecatedCString&); 62 TextStream& operator<<(void*); 63 63 64 QTextStream& operator<<(const QTextStreamManipulator&);64 TextStream& operator<<(const TextStreamManipulator&); 65 65 int precision(int); 66 66 private: 67 QTextStream(const QTextStream&);68 QTextStream& operator=(const QTextStream&);67 TextStream(const TextStream&); 68 TextStream& operator=(const TextStream&); 69 69 70 70 bool m_hasByteArray; -
trunk/WebCore/kwq/WebCoreEditCommand.h
r15251 r15253 28 28 } 29 29 30 @interface KWQEditCommand : NSObject30 @interface WebCoreEditCommand : NSObject 31 31 { 32 32 WebCore::EditCommand *m_command; 33 33 } 34 34 35 + ( KWQEditCommand *)commandWithEditCommand:(WebCore::EditCommand *)command;35 + (WebCoreEditCommand *)commandWithEditCommand:(WebCore::EditCommand *)command; 36 36 - (WebCore::EditCommand *)command; 37 37 -
trunk/WebCore/kwq/WebCoreEditCommand.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQEditCommand.h"27 #import "WebCoreEditCommand.h" 28 28 29 29 #import "EditCommand.h" … … 31 31 using namespace WebCore; 32 32 33 @implementation KWQEditCommand33 @implementation WebCoreEditCommand 34 34 35 35 - (id)initWithEditCommand:(EditCommand *)command … … 54 54 } 55 55 56 + ( KWQEditCommand *)commandWithEditCommand:(EditCommand *)command56 + (WebCoreEditCommand *)commandWithEditCommand:(EditCommand *)command 57 57 { 58 return [[[ KWQEditCommand alloc] initWithEditCommand:command] autorelease];58 return [[[WebCoreEditCommand alloc] initWithEditCommand:command] autorelease]; 59 59 } 60 60 -
trunk/WebCore/kwq/WebCorePageState.h
r15251 r15253 39 39 class KURL; 40 40 41 @interface KWQPageState : NSObject41 @interface WebCorePageState : NSObject 42 42 { 43 43 WebCore::Document *document; -
trunk/WebCore/kwq/WebCorePageState.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQPageState.h"27 #import "WebCorePageState.h" 28 28 29 29 #import "Document.h" … … 36 36 using namespace KJS; 37 37 38 @implementation KWQPageState38 @implementation WebCorePageState 39 39 40 40 - (id)initWithDocument:(Document *)doc URL:(const KURL &)u windowProperties:(SavedProperties *)wp locationProperties:(SavedProperties *)lp interpreterBuiltins:(SavedBuiltins *)ib pausedTimeouts:(PausedTimeouts *)pt -
trunk/WebCore/kwq/WebCoreResourceLoaderImp.h
r15251 r15253 30 30 } 31 31 32 @interface KWQResourceLoader: NSObject <WebCoreResourceLoader>32 @interface WebCoreResourceLoaderImp : NSObject <WebCoreResourceLoader> 33 33 { 34 34 WebCore::TransferJob* _job; -
trunk/WebCore/kwq/WebCoreResourceLoaderImp.mm
r15251 r15253 25 25 26 26 #include "config.h" 27 #import " KWQResourceLoader.h"27 #import "WebCoreResourceLoaderImp.h" 28 28 29 29 #import "TransferJob.h" … … 34 34 using namespace WebCore; 35 35 36 @implementation KWQResourceLoader36 @implementation WebCoreResourceLoaderImp 37 37 38 38 - (id)initWithJob:(TransferJob *)job; -
trunk/WebCore/kwq/WebCoreScrollBar.h
r15251 r15253 24 24 */ 25 25 26 #ifndef KWQSCROLLBAR_H_27 #define KWQSCROLLBAR_H_26 #ifndef ScrollBar_h 27 #define ScrollBar_h 28 28 29 29 #include "Widget.h" … … 37 37 38 38 typedef enum { 39 KWQScrollUp,40 KWQScrollDown,41 KWQScrollLeft,42 KWQScrollRight43 } KWQScrollDirection;39 ScrollUp, 40 ScrollDown, 41 ScrollLeft, 42 ScrollRight 43 } ScrollDirection; 44 44 45 45 typedef enum { 46 KWQScrollLine,47 KWQScrollPage,48 KWQScrollDocument,49 KWQScrollWheel50 } KWQScrollGranularity;46 ScrollByLine, 47 ScrollByPage, 48 ScrollByDocument, 49 ScrollByWheel 50 } ScrollGranularity; 51 51 52 52 namespace WebCore { … … 54 54 } 55 55 56 class QScrollBar : public Widget {56 class ScrollBar : public Widget { 57 57 public: 58 QScrollBar(WebCore::ScrollBarOrientation);59 virtual ~ QScrollBar();58 ScrollBar(WebCore::ScrollBarOrientation); 59 virtual ~ScrollBar(); 60 60 61 61 WebCore::ScrollBarOrientation orientation() { return m_orientation; } … … 70 70 void valueChanged(); 71 71 72 bool scroll( KWQScrollDirection, KWQScrollGranularity, float multiplier = 1.0);72 bool scroll(ScrollDirection, ScrollGranularity, float multiplier = 1.0); 73 73 74 74 private: -
trunk/WebCore/kwq/WebCoreScrollBar.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQScrollBar.h"27 #import "WebCoreScrollBar.h" 28 28 29 29 #import "BlockExceptions.h" … … 33 33 using namespace WebCore; 34 34 35 @interface KWQScrollBar : NSScroller <WebCoreWidgetHolder>36 { 37 QScrollBar* scrollBar;38 } 39 40 - (id)initWithQScrollBar:( QScrollBar *)s;35 @interface WebCoreScrollBar : NSScroller <WebCoreWidgetHolder> 36 { 37 ScrollBar* scrollBar; 38 } 39 40 - (id)initWithQScrollBar:(ScrollBar *)s; 41 41 - (void)detachQScrollBar; 42 42 43 43 @end 44 44 45 @implementation KWQScrollBar46 47 - (id)initWithQScrollBar:( QScrollBar *)s45 @implementation WebCoreScrollBar 46 47 - (id)initWithQScrollBar:(ScrollBar *)s 48 48 { 49 49 // Cocoa scrollbars just set their orientation by examining their own … … 96 96 @end 97 97 98 QScrollBar::QScrollBar(ScrollBarOrientation orientation)98 ScrollBar::ScrollBar(ScrollBarOrientation orientation) 99 99 : m_orientation(orientation) 100 100 , m_visibleSize(0) … … 106 106 BEGIN_BLOCK_OBJC_EXCEPTIONS; 107 107 108 KWQScrollBar *bar = [[KWQScrollBar alloc] initWithQScrollBar:this];108 WebCoreScrollBar *bar = [[WebCoreScrollBar alloc] initWithQScrollBar:this]; 109 109 setView(bar); 110 110 [bar release]; … … 113 113 } 114 114 115 QScrollBar::~QScrollBar()116 { 117 KWQScrollBar *bar = (KWQScrollBar *)getView();115 ScrollBar::~ScrollBar() 116 { 117 WebCoreScrollBar *bar = (WebCoreScrollBar *)getView(); 118 118 [bar detachQScrollBar]; 119 119 … … 121 121 // But we don't need it for form elements, and for frames it doesn't work 122 122 // well because of the way the NSViews are created in WebKit. So for now, 123 // we'll just do it explictly for QScrollBar.123 // we'll just do it explictly for ScrollBar. 124 124 [bar removeFromSuperview]; 125 125 } 126 126 127 bool QScrollBar::setValue(int v)127 bool ScrollBar::setValue(int v) 128 128 { 129 129 int maxPos = m_totalSize - m_visibleSize; … … 136 136 137 137 BEGIN_BLOCK_OBJC_EXCEPTIONS; 138 KWQScrollBar *bar = (KWQScrollBar *)getView();138 WebCoreScrollBar *bar = (WebCoreScrollBar *)getView(); 139 139 [bar setFloatValue:(float)m_currentPos/maxPos 140 140 knobProportion:[bar knobProportion]]; … … 146 146 } 147 147 148 void QScrollBar::setSteps(int lineStep, int pageStep)148 void ScrollBar::setSteps(int lineStep, int pageStep) 149 149 { 150 150 m_lineStep = lineStep; … … 152 152 } 153 153 154 void QScrollBar::setKnobProportion(int visibleArea, int totalArea)154 void ScrollBar::setKnobProportion(int visibleArea, int totalArea) 155 155 { 156 156 m_visibleSize = visibleArea; … … 159 159 160 160 BEGIN_BLOCK_OBJC_EXCEPTIONS; 161 KWQScrollBar *bar = (KWQScrollBar *)getView();161 WebCoreScrollBar *bar = (WebCoreScrollBar *)getView(); 162 162 if (!(val == [bar knobProportion] || val < 0.0)) 163 163 [bar setFloatValue: [bar floatValue] knobProportion: val]; … … 165 165 } 166 166 167 bool QScrollBar::scrollbarHit(NSScrollerPart hitPart)167 bool ScrollBar::scrollbarHit(NSScrollerPart hitPart) 168 168 { 169 169 int maxPos = m_totalSize - m_visibleSize; … … 171 171 return false; // Impossible to scroll anywhere. 172 172 173 KWQScrollBar *bar = (KWQScrollBar *)getView();173 WebCoreScrollBar *bar = (WebCoreScrollBar *)getView(); 174 174 int newPos = m_currentPos; 175 175 switch (hitPart) { … … 200 200 } 201 201 202 void QScrollBar::valueChanged()202 void ScrollBar::valueChanged() 203 203 { 204 204 if (client()) … … 206 206 } 207 207 208 bool QScrollBar::scroll(KWQScrollDirection direction, KWQScrollGranularity granularity, float multiplier)208 bool ScrollBar::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier) 209 209 { 210 210 float delta = 0.0; 211 if ((direction == KWQScrollUp && m_orientation == VerticalScrollBar) || (direction == KWQScrollLeft && m_orientation == HorizontalScrollBar)) {212 if (granularity == KWQScrollLine) {211 if ((direction == ScrollUp && m_orientation == VerticalScrollBar) || (direction == ScrollLeft && m_orientation == HorizontalScrollBar)) { 212 if (granularity == ScrollByLine) { 213 213 delta = -m_lineStep; 214 } else if (granularity == KWQScrollPage) {214 } else if (granularity == ScrollByPage) { 215 215 delta = -m_pageStep; 216 } else if (granularity == KWQScrollDocument) {216 } else if (granularity == ScrollByDocument) { 217 217 delta = -m_currentPos; 218 } else if (granularity == KWQScrollWheel) {218 } else if (granularity == ScrollByWheel) { 219 219 delta = -m_lineStep; 220 220 } 221 } else if ((direction == KWQScrollDown && m_orientation == VerticalScrollBar) || (direction == KWQScrollRight && m_orientation == HorizontalScrollBar)) {222 if (granularity == KWQScrollLine) {221 } else if ((direction == ScrollDown && m_orientation == VerticalScrollBar) || (direction == ScrollRight && m_orientation == HorizontalScrollBar)) { 222 if (granularity == ScrollByLine) { 223 223 delta = m_lineStep; 224 } else if (granularity == KWQScrollPage) {224 } else if (granularity == ScrollByPage) { 225 225 delta = m_pageStep; 226 } else if (granularity == KWQScrollDocument) {226 } else if (granularity == ScrollByDocument) { 227 227 delta = m_totalSize - m_visibleSize - m_currentPos; 228 } else if (granularity == KWQScrollWheel) {228 } else if (granularity == ScrollByWheel) { 229 229 delta = m_lineStep; 230 230 } -
trunk/WebCore/kwq/WebCoreSlider.h
r15251 r15253 24 24 */ 25 25 26 #ifndef KWQSLIDER_H_27 #define KWQSLIDER_H_26 #ifndef WebCoreSlider_h 27 #define WebCoreSlider_h 28 28 29 29 #include "Widget.h" 30 30 31 class QSlider : public Widget {31 class Slider : public Widget { 32 32 public: 33 QSlider();34 ~ QSlider();33 Slider(); 34 ~Slider(); 35 35 36 36 IntSize sizeHint() const; -
trunk/WebCore/kwq/WebCoreSlider.mm
r15251 r15253 25 25 26 26 #import "config.h" 27 #import " KWQSlider.h"27 #import "WebCoreSlider.h" 28 28 29 29 #import "BlockExceptions.h" 30 #import " KWQLineEdit.h"30 #import "TextField.h" 31 31 #import "FrameMac.h" 32 32 #import "WebCoreFrameBridge.h" … … 37 37 using namespace WebCore; 38 38 39 @interface KWQSlider : NSSlider <WebCoreWidgetHolder>40 { 41 QSlider* slider;39 @interface WebCoreSlider : NSSlider <WebCoreWidgetHolder> 40 { 41 Slider* slider; 42 42 BOOL inNextValidKeyView; 43 43 } 44 44 45 - (id)initWith QSlider:(QSlider*)s;46 - (void)detach QSlider;45 - (id)initWithSlider:(Slider*)s; 46 - (void)detachSlider; 47 47 48 48 @end 49 49 50 @implementation KWQSlider51 52 - (id)initWith QSlider:(QSlider*)s50 @implementation WebCoreSlider 51 52 - (id)initWithSlider:(Slider*)s 53 53 { 54 54 self = [self init]; … … 66 66 } 67 67 68 - (void)detach QSlider68 - (void)detachSlider 69 69 { 70 70 [self setTarget:nil]; … … 128 128 [self resignFirstResponder]; 129 129 if (slider) { 130 view = FrameMac::nextKeyViewForWidget(slider, KWQSelectingNext);130 view = FrameMac::nextKeyViewForWidget(slider, SelectingNext); 131 131 } else { 132 132 view = [super nextKeyView]; … … 148 148 [self resignFirstResponder]; 149 149 if (slider) { 150 view = FrameMac::nextKeyViewForWidget(slider, KWQSelectingPrevious);150 view = FrameMac::nextKeyViewForWidget(slider, SelectingPrevious); 151 151 } else { 152 152 view = [super previousKeyView]; … … 191 191 }; 192 192 193 QSlider::QSlider()193 Slider::Slider() 194 194 : m_minVal(0.0), m_maxVal(100.0), m_val(50.0) 195 195 { 196 196 BEGIN_BLOCK_OBJC_EXCEPTIONS; 197 KWQSlider* slider = [[KWQSlider alloc] initWithQSlider:this];197 WebCoreSlider* slider = [[WebCoreSlider alloc] initWithSlider:this]; 198 198 [[slider cell] setControlSize:NSSmallControlSize]; 199 199 setView(slider); … … 202 202 } 203 203 204 QSlider::~QSlider()205 { 206 KWQSlider* slider = (KWQSlider*)getView();207 [slider detach QSlider];208 } 209 210 void QSlider::setFont(const Font& f)204 Slider::~Slider() 205 { 206 WebCoreSlider* slider = (WebCoreSlider*)getView(); 207 [slider detachSlider]; 208 } 209 210 void Slider::setFont(const Font& f) 211 211 { 212 212 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 214 214 Widget::setFont(f); 215 215 216 const NSControlSize size = KWQNSControlSizeForFont(f);216 const NSControlSize size = ControlSizeForFont(f); 217 217 NSControl * const slider = static_cast<NSControl *>(getView()); 218 218 [[slider cell] setControlSize:size]; … … 222 222 } 223 223 224 Widget::FocusPolicy QSlider::focusPolicy() const224 Widget::FocusPolicy Slider::focusPolicy() const 225 225 { 226 226 BEGIN_BLOCK_OBJC_EXCEPTIONS; … … 236 236 } 237 237 238 IntSize QSlider::sizeHint() const238 IntSize Slider::sizeHint() const 239 239 { 240 240 return IntSize(dimensions()[dimWidth], dimensions()[dimHeight]); 241 241 } 242 242 243 void QSlider::setValue(double v)243 void Slider::setValue(double v) 244 244 { 245 245 double val = max(m_minVal, min(v, m_maxVal)); 246 246 247 KWQSlider* slider = (KWQSlider*)getView();247 WebCoreSlider* slider = (WebCoreSlider*)getView(); 248 248 [slider setDoubleValue: val]; 249 249 m_val = val; 250 250 } 251 251 252 void QSlider::setMinValue(double v)252 void Slider::setMinValue(double v) 253 253 { 254 254 if (v == m_minVal) return; 255 255 256 KWQSlider* slider = (KWQSlider*)getView();256 WebCoreSlider* slider = (WebCoreSlider*)getView(); 257 257 [slider setMinValue: v]; 258 258 m_minVal = v; 259 259 } 260 260 261 void QSlider::setMaxValue(double v)261 void Slider::setMaxValue(double v) 262 262 { 263 263 if (v == m_maxVal) return; 264 264 265 KWQSlider* slider = (KWQSlider*)getView();265 WebCoreSlider* slider = (WebCoreSlider*)getView(); 266 266 [slider setMaxValue: v]; 267 267 m_maxVal = v; 268 268 } 269 269 270 double QSlider::value() const270 double Slider::value() const 271 271 { 272 272 return m_val; 273 273 } 274 274 275 double QSlider::minValue() const275 double Slider::minValue() const 276 276 { 277 277 return m_minVal; 278 278 } 279 279 280 double QSlider::maxValue() const280 double Slider::maxValue() const 281 281 { 282 282 return m_maxVal; 283 283 } 284 284 285 void QSlider::sliderValueChanged()286 { 287 KWQSlider* slider = (KWQSlider*)getView();285 void Slider::sliderValueChanged() 286 { 287 WebCoreSlider* slider = (WebCoreSlider*)getView(); 288 288 double v = [slider doubleValue]; 289 289 if (m_val != v) { … … 294 294 } 295 295 296 const int* QSlider::dimensions() const296 const int* Slider::dimensions() const 297 297 { 298 298 // We empirically determined these dimensions. -
trunk/WebCore/loader/Cache.h
r14732 r15253 29 29 30 30 #include "PlatformString.h" 31 #include " KWQKIOGlobal.h"31 #include "CacheControl.h" 32 32 #include "DeprecatedPtrList.h" 33 33 #include <wtf/HashSet.h> -
trunk/WebCore/loader/CachedCSSStyleSheet.cpp
r14816 r15253 33 33 #include "CachedObjectClient.h" 34 34 #include "CachedObjectClientWalker.h" 35 #include " KWQLoader.h"35 #include "LoaderFunctions.h" 36 36 #include "loader.h" 37 37 #include <wtf/Vector.h> … … 109 109 while (CachedObjectClient *c = w.next()) { 110 110 #if __APPLE__ 111 if (m_response && ! KWQIsResponseURLEqualToURL(m_response, m_url))112 c->setStyleSheet(String( KWQResponseURL(m_response)), m_sheet);111 if (m_response && !IsResponseURLEqualToURL(m_response, m_url)) 112 c->setStyleSheet(String(ResponseURL(m_response)), m_sheet); 113 113 else 114 114 #endif -
trunk/WebCore/loader/CachedImage.cpp
r14816 r15253 35 35 #include "DocLoader.h" 36 36 #include "Image.h" 37 #include " KWQLoader.h"37 #include "LoaderFunctions.h" 38 38 #include "Request.h" 39 39 #include <wtf/Vector.h> … … 117 117 if (!m_image) 118 118 #if __APPLE__ 119 m_image = new Image(this, KWQResponseMIMEType(m_response) == "application/pdf");119 m_image = new Image(this, ResponseMIMEType(m_response) == "application/pdf"); 120 120 #else 121 121 m_image = new Image(this, false); -
trunk/WebCore/loader/CachedObject.h
r14816 r15253 26 26 */ 27 27 28 #ifndef KHTML_CachedObject_h29 #define KHTML_CachedObject_h28 #ifndef CachedObject_h 29 #define CachedObject_h 30 30 31 31 #include "DeprecatedString.h" 32 32 #include "PlatformString.h" 33 #include " KWQKIOGlobal.h"33 #include "CacheControl.h" 34 34 #include <wtf/HashSet.h> 35 35 #include <wtf/Vector.h> -
trunk/WebCore/loader/CachedObjectClientWalker.h
r14271 r15253 25 25 */ 26 26 27 #ifndef KHTML_CachedObjectClientWalker_h28 #define KHTML_CachedObjectClientWalker_h27 #ifndef CachedObjectClientWalker_h 28 #define CachedObjectClientWalker_h 29 29 30 30 #include <wtf/HashSet.h> -
trunk/WebCore/loader/CachedResource.h
r14818 r15253 25 25 */ 26 26 27 #ifndef KHTML_CachedObject_h28 #define KHTML_CachedObject_h27 #ifndef CachedObject_h 28 #define CachedObject_h 29 29 30 30 #include "PlatformString.h" 31 #include " KWQKIOGlobal.h"31 #include "CacheControl.h" 32 32 #include <wtf/HashSet.h> 33 33 #include <time.h> -
trunk/WebCore/loader/CachedResourceClientWalker.h
r14264 r15253 25 25 */ 26 26 27 #ifndef KHTML_CachedObjectClientWalker_h28 #define KHTML_CachedObjectClientWalker_h27 #ifndef CachedObjectClientWalker_h 28 #define CachedObjectClientWalker_h 29 29 30 30 #include <wtf/HashSet.h> -
trunk/WebCore/loader/CachedScript.h
r14816 r15253 26 26 */ 27 27 28 #ifndef KHTML_CachedScript_h29 #define KHTML_CachedScript_h28 #ifndef CachedScript_h 29 #define CachedScript_h 30 30 31 31 #include "CachedObject.h" -
trunk/WebCore/loader/CachedXBLDocument.h
r14816 r15253 26 26 */ 27 27 28 #ifndef KHTML_CachedXBLDocument_h29 #define KHTML_CachedXBLDocument_h28 #ifndef CachedXBLDocument_h 29 #define CachedXBLDocument_h 30 30 31 31 #include "CachedObject.h" -
trunk/WebCore/loader/Decoder.h
r14256 r15253 20 20 21 21 */ 22 #ifndef KHTMLDECODER_H23 #define KHTMLDECODER_H22 #ifndef Decoder_h 23 #define Decoder_h 24 24 25 25 #include <wtf/OwnPtr.h> -
trunk/WebCore/loader/DocLoader.cpp
r14251 r15253 36 36 #include "Document.h" 37 37 #include "Frame.h" 38 #include " KWQLoader.h"38 #include "LoaderFunctions.h" 39 39 #include "loader.h" 40 40 … … 92 92 KURL fullURL = m_doc->completeURL(url.deprecatedString()); 93 93 94 if ( KWQCheckIfReloading(this))94 if (CheckIfReloading(this)) 95 95 setCachePolicy(KIO::CC_Reload); 96 96 … … 98 98 99 99 CachedImage *cachedObject = Cache::requestImage(this, fullURL, reload, m_expireDate); 100 KWQCheckCacheObjectStatus(this, cachedObject);100 CheckCacheObjectStatus(this, cachedObject); 101 101 return cachedObject; 102 102 } … … 106 106 KURL fullURL = m_doc->completeURL(url.deprecatedString()); 107 107 108 if ( KWQCheckIfReloading(this))108 if (CheckIfReloading(this)) 109 109 setCachePolicy(KIO::CC_Reload); 110 110 … … 112 112 113 113 CachedCSSStyleSheet *cachedObject = Cache::requestStyleSheet(this, url, reload, m_expireDate, charset); 114 KWQCheckCacheObjectStatus(this, cachedObject);114 CheckCacheObjectStatus(this, cachedObject); 115 115 return cachedObject; 116 116 } … … 120 120 KURL fullURL = m_doc->completeURL(url.deprecatedString()); 121 121 122 if ( KWQCheckIfReloading(this))122 if (CheckIfReloading(this)) 123 123 setCachePolicy(KIO::CC_Reload); 124 124 … … 126 126 127 127 CachedScript *cachedObject = Cache::requestScript(this, url, reload, m_expireDate, charset); 128 KWQCheckCacheObjectStatus(this, cachedObject);128 CheckCacheObjectStatus(this, cachedObject); 129 129 return cachedObject; 130 130 } … … 135 135 KURL fullURL = m_doc->completeURL(url.deprecatedString()); 136 136 137 if ( KWQCheckIfReloading(this))137 if (CheckIfReloading(this)) 138 138 setCachePolicy(KIO::CC_Reload); 139 139 … … 141 141 142 142 CachedXSLStyleSheet *cachedObject = Cache::requestXSLStyleSheet(this, url, reload, m_expireDate); 143 KWQCheckCacheObjectStatus(this, cachedObject);143 CheckCacheObjectStatus(this, cachedObject); 144 144 return cachedObject; 145 145 } … … 154 154 if (m_frame && m_frame->onlyLocalReferences() && fullURL.protocol() != "file") return 0; 155 155 156 if ( KWQCheckIfReloading(this))156 if (CheckIfReloading(this)) 157 157 setCachePolicy(KIO::CC_Reload); 158 158 … … 160 160 161 161 CachedXBLDocument *cachedObject = Cache::requestXBLDocument(this, url, reload, m_expireDate); 162 KWQCheckCacheObjectStatus(this, cachedObject);162 CheckCacheObjectStatus(this, cachedObject); 163 163 return cachedObject; 164 164 } -
trunk/WebCore/loader/DocLoader.h
r14414 r15253 25 25 */ 26 26 27 #ifndef KHTML_DocLoader_h28 #define KHTML_DocLoader_h27 #ifndef DocLoader_h 28 #define DocLoader_h 29 29 30 #include " KWQKHTMLSettings.h"31 #include " KWQKIOGlobal.h"30 #include "Settings.h" 31 #include "CacheControl.h" 32 32 #include "DeprecatedPtrList.h" 33 33 #include "DeprecatedStringList.h" … … 36 36 37 37 class KURL; 38 class KWQLoader;38 class LoaderFunctions; 39 39 40 40 namespace WebCore { -
trunk/WebCore/loader/FormData.h
r14816 r15253 19 19 */ 20 20 21 #ifndef KHTML_FORM_DATA_H22 #define KHTML_FORM_DATA_H21 #ifndef FormData_h 22 #define FormData_h 23 23 24 24 #include "DeprecatedString.h" -
trunk/WebCore/loader/ImageDocument.cpp
r15154 r15253 32 32 #include "SegmentedString.h" 33 33 #include "Text.h" 34 #include " xml_tokenizer.h"34 #include "XMLTokenizer.h" 35 35 36 36 #if PLATFORM(MAC) -
trunk/WebCore/loader/PluginDocument.cpp
r14838 r15253 34 34 #include "Text.h" 35 35 #include "HTMLEmbedElement.h" 36 #include " xml_tokenizer.h"36 #include "XMLTokenizer.h" 37 37 38 38 namespace WebCore { -
trunk/WebCore/loader/TextDocument.cpp
r14924 r15253 31 31 #include "SegmentedString.h" 32 32 #include "Text.h" 33 #include " xml_tokenizer.h"33 #include "XMLTokenizer.h" 34 34 35 35 using namespace std; -
trunk/WebCore/loader/loader.cpp
r14816 r15253 36 36 #include "Frame.h" 37 37 #include "HTMLDocument.h" 38 #include " KWQLoader.h"38 #include "LoaderFunctions.h" 39 39 #include "Request.h" 40 40 #include "TransferJob.h" … … 155 155 ASSERT(response); 156 156 req->cachedObject()->setResponse(response); 157 req->cachedObject()->setExpireDate( KWQCacheObjectExpiresTime(req->docLoader(), response), false);157 req->cachedObject()->setExpireDate(CacheObjectExpiresTime(req->docLoader(), response), false); 158 158 159 159 DeprecatedString chs = job->queryMetaData("charset").deprecatedString(); … … 166 166 if (req->docLoader()->frame()) 167 167 req->docLoader()->frame()->checkCompleted(); 168 } else if ( KWQResponseIsMultipart(response)) {168 } else if (ResponseIsMultipart(response)) { 169 169 req->setIsMultipart(true); 170 170 if (!req->cachedObject()->isImage()) -
trunk/WebCore/loader/loader.h
r14256 r15253 25 25 */ 26 26 27 #ifndef KHTML_Loader_h28 #define KHTML_Loader_h27 #ifndef loader_h 28 #define loader_h 29 29 30 30 #include "TransferJobClient.h" -
trunk/WebCore/page/Frame.cpp
r15240 r15253 63 63 #include "RenderPart.h" 64 64 #include "RenderTheme.h" 65 #include "RenderText Field.h"65 #include "RenderTextControl.h" 66 66 #include "RenderView.h" 67 67 #include "SegmentedString.h" … … 74 74 #include "markup.h" 75 75 #include "visible_units.h" 76 #include " xml_tokenizer.h"76 #include "XMLTokenizer.h" 77 77 #include "xmlhttprequest.h" 78 78 #include <math.h> … … 823 823 } 824 824 825 const KHTMLSettings *Frame::settings() const825 const Settings *Frame::settings() const 826 826 { 827 827 return d->m_settings; … … 1203 1203 // If the current selection is in a textfield or textarea, notify the renderer that the selection has changed 1204 1204 if (renderer && (renderer->isTextArea() || renderer->isTextField())) 1205 static_cast<RenderText Field*>(renderer)->selectionChanged(userTriggered);1205 static_cast<RenderTextControl*>(renderer)->selectionChanged(userTriggered); 1206 1206 } 1207 1207 … … 2457 2457 2458 2458 2459 bool Frame::isCharacterSmartReplaceExempt(const QChar&, bool)2459 bool Frame::isCharacterSmartReplaceExempt(const DeprecatedChar&, bool) 2460 2460 { 2461 2461 // no smart replace … … 2565 2565 } 2566 2566 2567 void Frame::setSettings( KHTMLSettings *settings)2567 void Frame::setSettings(Settings *settings) 2568 2568 { 2569 2569 d->m_settings = settings; … … 2736 2736 2737 2737 // FIXME: should this be here? 2738 bool Frame::scrollOverflow( KWQScrollDirection direction, KWQScrollGranularity granularity)2738 bool Frame::scrollOverflow(ScrollDirection direction, ScrollGranularity granularity) 2739 2739 { 2740 2740 if (!document()) { -
trunk/WebCore/page/Frame.h
r15222 r15253 34 34 #include "EditAction.h" 35 35 #include "FrameView.h" 36 #include " KWQScrollBar.h"36 #include "WebCoreScrollBar.h" 37 37 #include "Node.h" 38 38 #include "TextAffinity.h" … … 41 41 #include "RenderObject.h" 42 42 43 class KHTMLSettings;43 class Settings; 44 44 45 45 namespace KJS { … … 458 458 void setInViewSourceMode(bool = true) const; 459 459 460 const KHTMLSettings* settings() const;460 const Settings* settings() const; 461 461 462 462 void setJSStatusBarText(const String&); … … 503 503 void removeEditingStyleFromElement(Element*) const; 504 504 virtual void print() = 0; 505 virtual bool isCharacterSmartReplaceExempt(const QChar&, bool);505 virtual bool isCharacterSmartReplaceExempt(const DeprecatedChar&, bool); 506 506 507 507 // Used to keep the part alive when running a script that might destroy it. … … 652 652 void setOpenedByJS(bool _openedByJS); 653 653 654 void setSettings( KHTMLSettings*);654 void setSettings(Settings*); 655 655 656 656 void provisionalLoadStarted(); … … 682 682 void setSelectionFromNone(); 683 683 684 bool scrollOverflow( KWQScrollDirection direction, KWQScrollGranularity granularity);684 bool scrollOverflow(ScrollDirection direction, ScrollGranularity granularity); 685 685 686 686 void adjustPageHeight(float* newBottom, float oldTop, float oldBottom, float bottomLimit); -
trunk/WebCore/page/FramePrivate.h
r15170 r15253 36 36 #include "Timer.h" 37 37 #include "kjs_proxy.h" 38 #include " KWQKIOGlobal.h"38 #include "CacheControl.h" 39 39 #include <wtf/HashMap.h> 40 40 #include "CSSMutableStyleDeclaration.h" … … 134 134 bool m_bPluginsEnabled : 1; 135 135 136 KHTMLSettings* m_settings;136 Settings* m_settings; 137 137 138 138 HashMap<String, String> m_metaData; -
trunk/WebCore/page/Page.cpp
r15048 r15253 118 118 } 119 119 120 void Page::setNeedsReapplyStylesForSettingsChange( KHTMLSettings* settings)120 void Page::setNeedsReapplyStylesForSettingsChange(Settings* settings) 121 121 { 122 122 if (!allPages) -
trunk/WebCore/page/Page.h
r14643 r15253 34 34 #endif 35 35 36 class KHTMLSettings;36 class Settings; 37 37 38 38 namespace WebCore { … … 65 65 66 66 static void setNeedsReapplyStyles(); 67 static void setNeedsReapplyStylesForSettingsChange( KHTMLSettings*);67 static void setNeedsReapplyStylesForSettingsChange(Settings*); 68 68 69 69 // FIXME: Replace this with a function on the selection controller or change it to Selection instead? -
trunk/WebCore/platform/DeprecatedPtrList.h
r13852 r15253 24 24 */ 25 25 26 #ifndef QLIST_H_27 #define QLIST_H_26 #ifndef DeprecatedPtrList_h 27 #define DeprecatedPtrList_h 28 28 29 29 #include "DeprecatedPtrListImpl.h" … … 107 107 }; 108 108 109 #define Q3PtrList DeprecatedPtrList110 #define Q3PtrListIterator DeprecatedPtrListIterator109 #define DeprecatedPtrList DeprecatedPtrList 110 #define DeprecatedPtrListIterator DeprecatedPtrListIterator 111 111 112 112 #endif -
trunk/WebCore/platform/DeprecatedPtrListImpl.cpp
r14256 r15253 31 31 #include <wtf/Assertions.h> 32 32 33 class KWQListNode33 class DeprecatedListNode 34 34 { 35 35 public: 36 KWQListNode(void *d) : data(d), next(0), prev(0) { }36 DeprecatedListNode(void *d) : data(d), next(0), prev(0) { } 37 37 38 38 void *data; 39 KWQListNode *next;40 KWQListNode *prev;39 DeprecatedListNode *next; 40 DeprecatedListNode *prev; 41 41 }; 42 42 43 43 44 static KWQListNode *copyList(KWQListNode *l, KWQListNode *&tail)45 { 46 KWQListNode *node = l;47 KWQListNode *copyHead = 0;48 KWQListNode *last = 0;44 static DeprecatedListNode *copyList(DeprecatedListNode *l, DeprecatedListNode *&tail) 45 { 46 DeprecatedListNode *node = l; 47 DeprecatedListNode *copyHead = 0; 48 DeprecatedListNode *last = 0; 49 49 50 50 while (node != 0) { 51 KWQListNode *copy = new KWQListNode(node->data);51 DeprecatedListNode *copy = new DeprecatedListNode(node->data); 52 52 if (last != 0) { 53 53 last->next = copy; … … 102 102 void DeprecatedPtrListImpl::clear(bool deleteItems) 103 103 { 104 KWQListNode *next;105 106 for ( KWQListNode *node = head; node; node = next) {104 DeprecatedListNode *next; 105 106 for (DeprecatedListNode *node = head; node; node = next) { 107 107 next = node->next; 108 108 if (deleteItems) … … 122 122 void *DeprecatedPtrListImpl::at(unsigned n) 123 123 { 124 KWQListNode *node;124 DeprecatedListNode *node; 125 125 if (n >= nodeCount - 1) { 126 126 node = tail; … … 142 142 } 143 143 144 KWQListNode *node = new KWQListNode((void *)item);144 DeprecatedListNode *node = new DeprecatedListNode((void *)item); 145 145 146 146 if (n == 0) { … … 166 166 // iterate to one node before the insertion point, can't be null 167 167 // since we know n > 0 and n < nodeCount 168 KWQListNode *prevNode = head;168 DeprecatedListNode *prevNode = head; 169 169 170 170 for (unsigned i = 0; i < n - 1; i++) { … … 186 186 bool DeprecatedPtrListImpl::remove(bool shouldDeleteItem) 187 187 { 188 KWQListNode *node = cur;188 DeprecatedListNode *node = cur; 189 189 if (node == 0) { 190 190 return false; … … 247 247 bool DeprecatedPtrListImpl::removeRef(const void *item, bool deleteItem) 248 248 { 249 KWQListNode *node;249 DeprecatedListNode *node; 250 250 251 251 node = head; … … 349 349 unsigned count = 0; 350 350 351 for ( KWQListNode *node = head; node; node = node->next) {351 for (DeprecatedListNode *node = head; node; node = node->next) { 352 352 if (item == node->data) { 353 353 ++count; … … 362 362 int DeprecatedPtrListImpl::findRef(const void *item) 363 363 { 364 KWQListNode *node = head;364 DeprecatedListNode *node = head; 365 365 int index = 0; 366 366 -
trunk/WebCore/platform/DeprecatedPtrListImpl.h
r13859 r15253 24 24 */ 25 25 26 #ifndef KWQ_LIST_IMPL_H27 #define KWQ_LIST_IMPL_H26 #ifndef DeprecatedPtrListImpl_h 27 #define DeprecatedPtrListImpl_h 28 28 29 class KWQListNode;29 class DeprecatedListNode; 30 30 class DeprecatedPtrListImplIterator; 31 31 … … 79 79 void removeIterator(DeprecatedPtrListImplIterator *iter) const; 80 80 81 KWQListNode *head;82 KWQListNode *tail;83 KWQListNode *cur;81 DeprecatedListNode *head; 82 DeprecatedListNode *tail; 83 DeprecatedListNode *cur; 84 84 unsigned nodeCount; 85 85 void (*deleteItem)(void *); … … 109 109 private: 110 110 const DeprecatedPtrListImpl *list; 111 KWQListNode *node;111 DeprecatedListNode *node; 112 112 DeprecatedPtrListImplIterator *next; 113 113 DeprecatedPtrListImplIterator *prev; -
trunk/WebCore/platform/DeprecatedString.cpp
r14816 r15253 51 51 #define DELETE_CHAR(P) fastFree(P) 52 52 53 #define ALLOC_QCHAR(N) (QChar*)fastMalloc(sizeof(QChar)*(N))54 #define REALLOC_QCHAR(P, N) (QChar *)fastRealloc(P, sizeof(QChar)*(N))53 #define WEBCORE_ALLOCATE_CHARACTERS(N) (DeprecatedChar*)fastMalloc(sizeof(DeprecatedChar)*(N)) 54 #define WEBCORE_REALLOCATE_CHARACTERS(P, N) (DeprecatedChar *)fastRealloc(P, sizeof(DeprecatedChar)*(N)) 55 55 #define DELETE_QCHAR(P) fastFree(P) 56 56 … … 70 70 } 71 71 72 static inline KWQStringData **allocateHandle()72 static inline DeprecatedStringData **allocateHandle() 73 73 { 74 74 #if CHECK_FOR_HANDLE_LEAKS 75 return static_cast< KWQStringData **>(fastMalloc(sizeof(KWQStringData *)));75 return static_cast<DeprecatedStringData **>(fastMalloc(sizeof(DeprecatedStringData *))); 76 76 #endif 77 77 78 78 initializeHandleNodes(); 79 79 80 return reinterpret_cast< KWQStringData **>(allocateNode(freeNodeAllocationPages));81 } 82 83 static void freeHandle( KWQStringData **);80 return reinterpret_cast<DeprecatedStringData **>(allocateNode(freeNodeAllocationPages)); 81 } 82 83 static void freeHandle(DeprecatedStringData **); 84 84 85 85 #define IS_ASCII_QCHAR(c) ((c).unicode() > 0 && (c).unicode() <= 0xff) … … 89 89 const char * const DeprecatedString::null = 0; 90 90 91 KWQStringData *DeprecatedString::shared_null = 0;92 KWQStringData **DeprecatedString::shared_null_handle = 0;91 DeprecatedStringData *DeprecatedString::shared_null = 0; 92 DeprecatedStringData **DeprecatedString::shared_null_handle = 0; 93 93 94 94 // ------------------------------------------------------------------------- … … 98 98 static inline int ucstrcmp( const DeprecatedString &as, const DeprecatedString &bs ) 99 99 { 100 const QChar *a = as.unicode();101 const QChar *b = bs.unicode();100 const DeprecatedChar *a = as.unicode(); 101 const DeprecatedChar *b = bs.unicode(); 102 102 if ( a == b ) 103 103 return 0; … … 115 115 116 116 117 static bool equal(const QChar *a, const char *b, int l)117 static bool equal(const DeprecatedChar *a, const char *b, int l) 118 118 { 119 119 ASSERT(l >= 0); … … 139 139 } 140 140 141 static bool equalCaseInsensitive(const QChar *a, const char *b, int l)141 static bool equalCaseInsensitive(const DeprecatedChar *a, const char *b, int l) 142 142 { 143 143 ASSERT(l >= 0); … … 150 150 } 151 151 152 static bool equalCaseInsensitive(const QChar *a, const QChar *b, int l)152 static bool equalCaseInsensitive(const DeprecatedChar *a, const DeprecatedChar *b, int l) 153 153 { 154 154 ASSERT(l >= 0); … … 166 166 } 167 167 168 static inline bool equalCaseInsensitive( QChar c1, char c2)168 static inline bool equalCaseInsensitive(DeprecatedChar c1, char c2) 169 169 { 170 170 return tolower(c1.unicode()) == tolower(static_cast<unsigned char>(c2)); 171 171 } 172 172 173 static bool ok_in_base( QChar c, int base)173 static bool ok_in_base(DeprecatedChar c, int base) 174 174 { 175 175 int uc = c.unicode(); … … 186 186 187 187 // ------------------------------------------------------------------------- 188 // KWQStringData188 // DeprecatedStringData 189 189 // ------------------------------------------------------------------------- 190 190 … … 193 193 // deleting QStrings. 194 194 195 KWQStringData::KWQStringData() :196 refCount(1), _length(0), _unicode(0), _ascii(0), _maxUnicode( QS_INTERNAL_BUFFER_UCHARS), _isUnicodeValid(0), _isHeapAllocated(0), _maxAscii(QS_INTERNAL_BUFFER_CHARS), _isAsciiValid(1)195 DeprecatedStringData::DeprecatedStringData() : 196 refCount(1), _length(0), _unicode(0), _ascii(0), _maxUnicode(WEBCORE_DS_INTERNAL_BUFFER_UCHARS), _isUnicodeValid(0), _isHeapAllocated(0), _maxAscii(WEBCORE_DS_INTERNAL_BUFFER_CHARS), _isAsciiValid(1) 197 197 { 198 198 _ascii = _internalBuffer; … … 200 200 } 201 201 202 void KWQStringData::initialize()202 void DeprecatedStringData::initialize() 203 203 { 204 204 refCount = 1; … … 206 206 _unicode = 0; 207 207 _ascii = _internalBuffer; 208 _maxUnicode = QS_INTERNAL_BUFFER_UCHARS;208 _maxUnicode = WEBCORE_DS_INTERNAL_BUFFER_UCHARS; 209 209 _isUnicodeValid = 0; 210 _maxAscii = QS_INTERNAL_BUFFER_CHARS;210 _maxAscii = WEBCORE_DS_INTERNAL_BUFFER_CHARS; 211 211 _isAsciiValid = 1; 212 212 _internalBuffer[0] = 0; … … 215 215 216 216 // Don't copy data. 217 KWQStringData::KWQStringData(QChar *u, unsigned l, unsigned m) :218 refCount(1), _length(l), _unicode(u), _ascii(0), _maxUnicode(m), _isUnicodeValid(1), _isHeapAllocated(0), _maxAscii( QS_INTERNAL_BUFFER_CHARS), _isAsciiValid(0)217 DeprecatedStringData::DeprecatedStringData(DeprecatedChar *u, unsigned l, unsigned m) : 218 refCount(1), _length(l), _unicode(u), _ascii(0), _maxUnicode(m), _isUnicodeValid(1), _isHeapAllocated(0), _maxAscii(WEBCORE_DS_INTERNAL_BUFFER_CHARS), _isAsciiValid(0) 219 219 { 220 220 ASSERT(m >= l); … … 222 222 223 223 // Don't copy data. 224 void KWQStringData::initialize(QChar *u, unsigned l, unsigned m)224 void DeprecatedStringData::initialize(DeprecatedChar *u, unsigned l, unsigned m) 225 225 { 226 226 ASSERT(m >= l); … … 237 237 238 238 // Copy data 239 KWQStringData::KWQStringData(const QChar *u, unsigned l)239 DeprecatedStringData::DeprecatedStringData(const DeprecatedChar *u, unsigned l) 240 240 { 241 241 initialize (u, l); … … 243 243 244 244 // Copy data 245 void KWQStringData::initialize(const QChar *u, unsigned l)245 void DeprecatedStringData::initialize(const DeprecatedChar *u, unsigned l) 246 246 { 247 247 refCount = 1; … … 253 253 _isHeapAllocated = 0; 254 254 255 if (l > QS_INTERNAL_BUFFER_UCHARS) {255 if (l > WEBCORE_DS_INTERNAL_BUFFER_UCHARS) { 256 256 _maxUnicode = ALLOC_QCHAR_GOOD_SIZE(l); 257 _unicode = ALLOC_QCHAR(_maxUnicode);258 memcpy(_unicode, u, l*sizeof( QChar));257 _unicode = WEBCORE_ALLOCATE_CHARACTERS(_maxUnicode); 258 memcpy(_unicode, u, l*sizeof(DeprecatedChar)); 259 259 } else { 260 _maxUnicode = QS_INTERNAL_BUFFER_UCHARS;261 _unicode = ( QChar *)_internalBuffer;260 _maxUnicode = WEBCORE_DS_INTERNAL_BUFFER_UCHARS; 261 _unicode = (DeprecatedChar *)_internalBuffer; 262 262 if (l) 263 memcpy(_internalBuffer, u, l*sizeof( QChar));263 memcpy(_internalBuffer, u, l*sizeof(DeprecatedChar)); 264 264 } 265 265 } … … 267 267 268 268 // Copy data 269 KWQStringData::KWQStringData(const char *a, unsigned l)269 DeprecatedStringData::DeprecatedStringData(const char *a, unsigned l) 270 270 { 271 271 initialize(a, l); … … 274 274 275 275 // Copy data 276 void KWQStringData::initialize(const char *a, unsigned l)276 void DeprecatedStringData::initialize(const char *a, unsigned l) 277 277 { 278 278 refCount = 1; … … 284 284 _isHeapAllocated = 0; 285 285 286 if (l > QS_INTERNAL_BUFFER_CHARS) {286 if (l > WEBCORE_DS_INTERNAL_BUFFER_CHARS) { 287 287 _maxAscii = ALLOC_CHAR_GOOD_SIZE(l+1); 288 288 _ascii = ALLOC_CHAR(_maxAscii); … … 291 291 _ascii[l] = 0; 292 292 } else { 293 _maxAscii = QS_INTERNAL_BUFFER_CHARS;293 _maxAscii = WEBCORE_DS_INTERNAL_BUFFER_CHARS; 294 294 _ascii = _internalBuffer; 295 295 if (a) … … 299 299 } 300 300 301 KWQStringData::KWQStringData(KWQStringData &o)301 DeprecatedStringData::DeprecatedStringData(DeprecatedStringData &o) 302 302 : refCount(1) 303 303 , _length(o._length) … … 313 313 // pointing to the internal buffer. We need to point at the 314 314 // internal buffer in the new object, and copy the characters. 315 if (_unicode == reinterpret_cast< QChar *>(o._internalBuffer)) {315 if (_unicode == reinterpret_cast<DeprecatedChar *>(o._internalBuffer)) { 316 316 if (_isUnicodeValid) { 317 317 ASSERT(!_isAsciiValid || _ascii != o._internalBuffer); 318 ASSERT(_length <= QS_INTERNAL_BUFFER_UCHARS);319 memcpy(_internalBuffer, o._internalBuffer, _length * sizeof( QChar));320 _unicode = reinterpret_cast< QChar *>(_internalBuffer);318 ASSERT(_length <= WEBCORE_DS_INTERNAL_BUFFER_UCHARS); 319 memcpy(_internalBuffer, o._internalBuffer, _length * sizeof(DeprecatedChar)); 320 _unicode = reinterpret_cast<DeprecatedChar *>(_internalBuffer); 321 321 } else { 322 322 _unicode = 0; … … 325 325 if (_ascii == o._internalBuffer) { 326 326 if (_isAsciiValid) { 327 ASSERT(_length <= QS_INTERNAL_BUFFER_CHARS);327 ASSERT(_length <= WEBCORE_DS_INTERNAL_BUFFER_CHARS); 328 328 memcpy(_internalBuffer, o._internalBuffer, _length); 329 329 _internalBuffer[_length] = 0; … … 334 334 } 335 335 336 // Clean up the other KWQStringData just enough so that it can be destroyed336 // Clean up the other DeprecatedStringData just enough so that it can be destroyed 337 337 // cleanly. It's not in a good enough state to use, but that's OK. It just 338 // needs to be in a state where ~ KWQStringData won't do anything harmful,338 // needs to be in a state where ~DeprecatedStringData won't do anything harmful, 339 339 // and setting these to 0 will do that (preventing any double-free problems). 340 340 o._unicode = 0; … … 342 342 } 343 343 344 KWQStringData *DeprecatedString::makeSharedNull()344 DeprecatedStringData *DeprecatedString::makeSharedNull() 345 345 { 346 346 if (!shared_null) { 347 shared_null = new KWQStringData;347 shared_null = new DeprecatedStringData; 348 348 shared_null->ref(); 349 349 shared_null->_maxAscii = 0; 350 350 shared_null->_maxUnicode = 0; 351 shared_null->_unicode = ( QChar *)&shared_null->_internalBuffer[0];351 shared_null->_unicode = (DeprecatedChar *)&shared_null->_internalBuffer[0]; 352 352 shared_null->_isUnicodeValid = 1; 353 353 } … … 355 355 } 356 356 357 KWQStringData **DeprecatedString::makeSharedNullHandle()357 DeprecatedStringData **DeprecatedString::makeSharedNullHandle() 358 358 { 359 359 if (!shared_null_handle) { … … 364 364 } 365 365 366 KWQStringData::~KWQStringData()366 DeprecatedStringData::~DeprecatedStringData() 367 367 { 368 368 ASSERT(refCount == 0); … … 373 373 } 374 374 375 void KWQStringData::increaseAsciiSize(unsigned size)375 void DeprecatedStringData::increaseAsciiSize(unsigned size) 376 376 { 377 377 ASSERT(this != DeprecatedString::shared_null); … … 398 398 399 399 400 void KWQStringData::increaseUnicodeSize(unsigned size)400 void DeprecatedStringData::increaseUnicodeSize(unsigned size) 401 401 { 402 402 ASSERT(size > _length); … … 410 410 411 411 if (isUnicodeInternal()) { 412 QChar *newUni = ALLOC_QCHAR(newSize);412 DeprecatedChar *newUni = WEBCORE_ALLOCATE_CHARACTERS(newSize); 413 413 if (_length) 414 memcpy(newUni, _unicode, _length*sizeof( QChar));414 memcpy(newUni, _unicode, _length*sizeof(DeprecatedChar)); 415 415 _unicode = newUni; 416 416 } else { 417 _unicode = REALLOC_QCHAR(_unicode, newSize);417 _unicode = WEBCORE_REALLOCATE_CHARACTERS(_unicode, newSize); 418 418 } 419 419 … … 424 424 425 425 426 char * KWQStringData::makeAscii()426 char *DeprecatedStringData::makeAscii() 427 427 { 428 428 ASSERT(this != DeprecatedString::shared_null); 429 429 430 430 if (_isUnicodeValid){ 431 QChar copyBuf[QS_INTERNAL_BUFFER_CHARS];432 QChar *str;431 DeprecatedChar copyBuf[WEBCORE_DS_INTERNAL_BUFFER_CHARS]; 432 DeprecatedChar *str; 433 433 434 434 if (_ascii && !isAsciiInternal()) 435 435 DELETE_QCHAR(_ascii); 436 436 437 if (_length < QS_INTERNAL_BUFFER_CHARS){437 if (_length < WEBCORE_DS_INTERNAL_BUFFER_CHARS){ 438 438 if (isUnicodeInternal()) { 439 439 unsigned i = _length; 440 QChar *tp = ©Buf[0], *fp = _unicode;440 DeprecatedChar *tp = ©Buf[0], *fp = _unicode; 441 441 while (i--) 442 442 *tp++ = *fp++; … … 447 447 str = _unicode; 448 448 _ascii = _internalBuffer; 449 _maxAscii = QS_INTERNAL_BUFFER_CHARS;449 _maxAscii = WEBCORE_DS_INTERNAL_BUFFER_CHARS; 450 450 } 451 451 else { … … 471 471 472 472 473 QChar *KWQStringData::makeUnicode()473 DeprecatedChar *DeprecatedStringData::makeUnicode() 474 474 { 475 475 ASSERT(this != DeprecatedString::shared_null); 476 476 477 477 if (_isAsciiValid){ 478 char copyBuf[ QS_INTERNAL_BUFFER_CHARS];478 char copyBuf[WEBCORE_DS_INTERNAL_BUFFER_CHARS]; 479 479 char *str; 480 480 … … 482 482 DELETE_QCHAR(_unicode); 483 483 484 if (_length <= QS_INTERNAL_BUFFER_UCHARS){484 if (_length <= WEBCORE_DS_INTERNAL_BUFFER_UCHARS){ 485 485 if (isAsciiInternal()) { 486 486 unsigned i = _length; … … 493 493 else 494 494 str = _ascii; 495 _unicode = ( QChar *)_internalBuffer;496 _maxUnicode = QS_INTERNAL_BUFFER_UCHARS;495 _unicode = (DeprecatedChar *)_internalBuffer; 496 _maxUnicode = WEBCORE_DS_INTERNAL_BUFFER_UCHARS; 497 497 } 498 498 else { 499 499 unsigned newSize = ALLOC_QCHAR_GOOD_SIZE(_length); 500 _unicode = ALLOC_QCHAR(newSize);500 _unicode = WEBCORE_ALLOCATE_CHARACTERS(newSize); 501 501 _maxUnicode = newSize; 502 502 str = _ascii; 503 503 } 504 504 unsigned i = _length; 505 QChar *cp = _unicode;505 DeprecatedChar *cp = _unicode; 506 506 while ( i-- ) 507 507 *cp++ = *str++; … … 558 558 inline void DeprecatedString::detachIfInternal() 559 559 { 560 KWQStringData *oldData = *dataHandle;560 DeprecatedStringData *oldData = *dataHandle; 561 561 if (oldData->refCount > 1 && oldData == &internalData) { 562 KWQStringData *newData = new KWQStringData(*oldData);562 DeprecatedStringData *newData = new DeprecatedStringData(*oldData); 563 563 newData->_isHeapAllocated = 1; 564 564 newData->refCount = oldData->refCount; … … 569 569 } 570 570 571 const QChar *DeprecatedString::stableUnicode()571 const DeprecatedChar *DeprecatedString::stableUnicode() 572 572 { 573 573 // if we're using the internal data of another string, detach now … … 593 593 594 594 // Remove our reference. This should always be the last reference 595 // if *dataHandle points to our internal KWQStringData. If we just detached,595 // if *dataHandle points to our internal DeprecatedStringData. If we just detached, 596 596 // this will remove the extra ref from the new handle. 597 597 dataHandle[0]->deref(); … … 616 616 617 617 618 // Careful, just used by QConstString619 DeprecatedString::DeprecatedString( KWQStringData *constData, bool /*dummy*/)618 // Careful, just used by DeprecatedConstString 619 DeprecatedString::DeprecatedString(DeprecatedStringData *constData, bool /*dummy*/) 620 620 { 621 621 internalData.deref(); … … 623 623 *dataHandle = constData; 624 624 625 // The QConstString constructor allocated the KWQStringData.625 // The DeprecatedConstString constructor allocated the DeprecatedStringData. 626 626 constData->_isHeapAllocated = 1; 627 627 } 628 628 629 629 630 DeprecatedString::DeprecatedString( QChar qc)630 DeprecatedString::DeprecatedString(DeprecatedChar qc) 631 631 { 632 632 dataHandle = allocateHandle(); 633 633 634 // Copy the QChar.634 // Copy the DeprecatedChar. 635 635 if (IS_ASCII_QCHAR(qc)) { 636 636 char c = qc.unicode(); … … 644 644 } 645 645 646 DeprecatedString::DeprecatedString(const QChar *unicode, unsigned length)646 DeprecatedString::DeprecatedString(const DeprecatedChar *unicode, unsigned length) 647 647 { 648 648 if (!unicode && !length) { … … 653 653 dataHandle = allocateHandle(); 654 654 655 // Copy the QChar *655 // Copy the DeprecatedChar * 656 656 *dataHandle = &internalData; 657 657 internalData.initialize(unicode, length); … … 714 714 } 715 715 716 DeprecatedString &DeprecatedString::operator=( QChar qc)716 DeprecatedString &DeprecatedString::operator=(DeprecatedChar qc) 717 717 { 718 718 return *this = DeprecatedString(qc); … … 721 721 DeprecatedString &DeprecatedString::operator=(char ch) 722 722 { 723 return *this = DeprecatedString( QChar(ch));724 } 725 726 QChar DeprecatedString::at(unsigned i) const727 { 728 KWQStringData *thisData = *dataHandle;723 return *this = DeprecatedString(DeprecatedChar(ch)); 724 } 725 726 DeprecatedChar DeprecatedString::at(unsigned i) const 727 { 728 DeprecatedStringData *thisData = *dataHandle; 729 729 730 730 if (i >= thisData->_length) … … 750 750 if (!chs) 751 751 return isEmpty() ? 0 : 1; 752 KWQStringData *d = dataHandle[0];752 DeprecatedStringData *d = dataHandle[0]; 753 753 if (d->_isAsciiValid) 754 754 return strcmp(ascii(), chs); 755 const QChar *s = unicode();755 const DeprecatedChar *s = unicode(); 756 756 unsigned len = d->_length; 757 757 for (unsigned i = 0; i != len; ++i) { … … 759 759 if (!c2) 760 760 return 1; 761 QChar c1 = s[i];761 DeprecatedChar c1 = s[i]; 762 762 if (c1.unicode() < c2) 763 763 return -1; … … 779 779 } 780 780 else if (dataHandle[0]->_isUnicodeValid){ 781 const QChar *uni = unicode();781 const DeprecatedChar *uni = unicode(); 782 782 783 783 for ( int i =0; i < (int) s.dataHandle[0]->_length; i++ ) { … … 794 794 bool DeprecatedString::startsWith(const char *prefix) const 795 795 { 796 KWQStringData *data = *dataHandle;796 DeprecatedStringData *data = *dataHandle; 797 797 798 798 unsigned prefixLength = strlen(prefix); … … 804 804 return false; 805 805 } 806 const QChar *uni = data->_unicode;806 const DeprecatedChar *uni = data->_unicode; 807 807 for (unsigned i = 0; i < prefixLength; ++i) { 808 808 if (uni[i] != prefix[i]) { … … 827 827 } 828 828 829 KWQStringData *data = *dataHandle;829 DeprecatedStringData *data = *dataHandle; 830 830 831 831 unsigned prefixLength = strlen(prefix); … … 837 837 return false; 838 838 } 839 const QChar *uni = data->_unicode;839 const DeprecatedChar *uni = data->_unicode; 840 840 for (unsigned i = 0; i < prefixLength; ++i) { 841 841 if (!equalCaseInsensitive(uni[i], prefix[i])) { … … 849 849 bool DeprecatedString::endsWith(const DeprecatedString& s) const 850 850 { 851 const QChar *uni = unicode();851 const DeprecatedChar *uni = unicode(); 852 852 853 853 int length = dataHandle[0]->_length; … … 869 869 } 870 870 871 int DeprecatedString::find( QChar qc, int index) const871 int DeprecatedString::find(DeprecatedChar qc, int index) const 872 872 { 873 873 if (dataHandle[0]->_isAsciiValid) { … … 895 895 } 896 896 else if (dataHandle[0]->_isUnicodeValid) 897 return find( QChar(ch), index, true);897 return find(DeprecatedChar(ch), index, true); 898 898 else 899 899 FATAL("invalid character cache"); … … 924 924 return -1; 925 925 926 const QChar *uthis = unicode() + index;927 const QChar *ustr = str.unicode();926 const DeprecatedChar *uthis = unicode() + index; 927 const DeprecatedChar *ustr = str.unicode(); 928 928 unsigned hthis = 0; 929 929 unsigned hstr = 0; … … 936 936 i = 0; 937 937 while ( true ) { 938 if ( hthis == hstr && memcmp(uthis + i, ustr, lstr * sizeof( QChar)) == 0 )938 if ( hthis == hstr && memcmp(uthis + i, ustr, lstr * sizeof(DeprecatedChar)) == 0 ) 939 939 return index + i; 940 940 if ( i == delta ) … … 971 971 return -1; 972 972 973 KWQStringData *data = *dataHandle;973 DeprecatedStringData *data = *dataHandle; 974 974 975 975 int chsLength = strlen(chs); … … 1004 1004 ASSERT(data->_isUnicodeValid); 1005 1005 1006 const QChar *ptr = data->_unicode + index - 1;1006 const DeprecatedChar *ptr = data->_unicode + index - 1; 1007 1007 if (caseSensitive) { 1008 QChar c = *chs;1008 DeprecatedChar c = *chs; 1009 1009 do { 1010 1010 if (*++ptr == c && equal(ptr + 1, chsPlusOne, chsLengthMinusOne)) { … … 1048 1048 } 1049 1049 else if (dataHandle[0]->_isUnicodeValid) 1050 return findRev(DeprecatedString( QChar(ch)), index);1050 return findRev(DeprecatedString(DeprecatedChar(ch)), index); 1051 1051 else 1052 1052 FATAL("invalid character cache"); … … 1077 1077 index = delta; 1078 1078 1079 const QChar *uthis = unicode();1080 const QChar *ustr = str.unicode();1079 const DeprecatedChar *uthis = unicode(); 1080 const DeprecatedChar *ustr = str.unicode(); 1081 1081 unsigned hthis = 0; 1082 1082 unsigned hstr = 0; … … 1089 1089 i = index; 1090 1090 while ( true ) { 1091 if ( hthis == hstr && memcmp(uthis + i, ustr, lstr * sizeof( QChar)) == 0 )1091 if ( hthis == hstr && memcmp(uthis + i, ustr, lstr * sizeof(DeprecatedChar)) == 0 ) 1092 1092 return i; 1093 1093 if ( i == 0 ) … … 1119 1119 1120 1120 1121 int DeprecatedString::contains( QChar c, bool cs) const1121 int DeprecatedString::contains(DeprecatedChar c, bool cs) const 1122 1122 { 1123 1123 int count = 0; 1124 1124 1125 KWQStringData *data = *dataHandle;1125 DeprecatedStringData *data = *dataHandle; 1126 1126 1127 1127 if (data->_isAsciiValid) { … … 1142 1142 } else { 1143 1143 ASSERT(data->_isUnicodeValid); 1144 const QChar *uc = data->_unicode;1144 const DeprecatedChar *uc = data->_unicode; 1145 1145 int n = data->_length; 1146 1146 if (cs) { // case sensitive … … 1161 1161 int DeprecatedString::contains(char ch) const 1162 1162 { 1163 return contains( QChar(ch), true);1163 return contains(DeprecatedChar(ch), true); 1164 1164 } 1165 1165 … … 1172 1172 char c = *str; 1173 1173 1174 KWQStringData *data = *dataHandle;1174 DeprecatedStringData *data = *dataHandle; 1175 1175 int n = data->_length; 1176 1176 … … 1197 1197 } else { 1198 1198 ASSERT(data->_isUnicodeValid); 1199 const QChar *p = data->_unicode;1199 const DeprecatedChar *p = data->_unicode; 1200 1200 if (caseSensitive) { 1201 1201 do { … … 1220 1220 return 0; 1221 1221 1222 const QChar *strP = str.unicode();1222 const DeprecatedChar *strP = str.unicode(); 1223 1223 int len = str.dataHandle[0]->_length; 1224 QChar c = *strP;1225 1226 const QChar *p = unicode();1224 DeprecatedChar c = *strP; 1225 1226 const DeprecatedChar *p = unicode(); 1227 1227 int n = dataHandle[0]->_length; 1228 1228 … … 1234 1234 1235 1235 if (caseSensitive) { 1236 int byteCount = len * sizeof( QChar);1236 int byteCount = len * sizeof(DeprecatedChar); 1237 1237 do { 1238 1238 count += *p == c && memcmp(p, strP, byteCount) == 0; … … 1251 1251 bool DeprecatedString::isAllASCII() const 1252 1252 { 1253 KWQStringData *data = *dataHandle;1253 DeprecatedStringData *data = *dataHandle; 1254 1254 1255 1255 int n = data->_length; … … 1264 1264 } else { 1265 1265 ASSERT(data->_isUnicodeValid); 1266 const QChar *p = data->_unicode;1266 const DeprecatedChar *p = data->_unicode; 1267 1267 while (n--) { 1268 1268 if ((*p++).unicode() > 0x7F) { … … 1277 1277 bool DeprecatedString::isAllLatin1() const 1278 1278 { 1279 KWQStringData *data = *dataHandle;1279 DeprecatedStringData *data = *dataHandle; 1280 1280 1281 1281 if (data->_isAsciiValid) { … … 1285 1285 ASSERT(data->_isUnicodeValid); 1286 1286 int n = data->_length; 1287 const QChar *p = data->_unicode;1287 const DeprecatedChar *p = data->_unicode; 1288 1288 while (n--) { 1289 1289 if ((*p++).unicode() > 0xFF) { … … 1297 1297 bool DeprecatedString::hasFastLatin1() const 1298 1298 { 1299 KWQStringData *data = *dataHandle;1299 DeprecatedStringData *data = *dataHandle; 1300 1300 return data->_isAsciiValid; 1301 1301 } … … 1303 1303 void DeprecatedString::copyLatin1(char *buffer, unsigned position, unsigned maxLength) const 1304 1304 { 1305 KWQStringData *data = *dataHandle;1305 DeprecatedStringData *data = *dataHandle; 1306 1306 1307 1307 int length = data->_length; … … 1321 1321 1322 1322 ASSERT(data->_isUnicodeValid); 1323 const QChar* uc = data->_unicode + position;1323 const DeprecatedChar* uc = data->_unicode + position; 1324 1324 while (length--) 1325 1325 *buffer++ = (*uc++).latin1(); … … 1352 1352 int DeprecatedString::toInt(bool *ok, int base) const 1353 1353 { 1354 const QChar *p = unicode();1354 const DeprecatedChar *p = unicode(); 1355 1355 int val=0; 1356 1356 int l = dataHandle[0]->_length; … … 1405 1405 unsigned DeprecatedString::toUInt(bool *ok, int base) const 1406 1406 { 1407 const QChar *p = unicode();1407 const DeprecatedChar *p = unicode(); 1408 1408 unsigned val=0; 1409 1409 int l = dataHandle[0]->_length; … … 1476 1476 { 1477 1477 if (dataHandle && *dataHandle) { 1478 KWQStringData &data = **dataHandle;1478 DeprecatedStringData &data = **dataHandle; 1479 1479 1480 1480 // clip length … … 1516 1516 { 1517 1517 DeprecatedString s(*this); 1518 KWQStringData *d = *s.dataHandle;1518 DeprecatedStringData *d = *s.dataHandle; 1519 1519 int l = d->_length; 1520 1520 if (l) { … … 1539 1539 else { 1540 1540 ASSERT(d->_isUnicodeValid); 1541 QChar *p = d->_unicode;1541 DeprecatedChar *p = d->_unicode; 1542 1542 while (l--) { 1543 QChar c = *p;1543 DeprecatedChar c = *p; 1544 1544 // FIXME: Doesn't work for 0x80-0xFF. 1545 1545 if (IS_ASCII_QCHAR(c)) { … … 1554 1554 } 1555 1555 } else { 1556 QChar clower = c.lower();1556 DeprecatedChar clower = c.lower(); 1557 1557 if (clower != c) { 1558 1558 if (!detached) { … … 1600 1600 result.setLength( l ); 1601 1601 if ( l ) 1602 memcpy(result.forceUnicode(), &unicode()[start], sizeof( QChar)*l );1602 memcpy(result.forceUnicode(), &unicode()[start], sizeof(DeprecatedChar)*l ); 1603 1603 } 1604 1604 else … … 1622 1622 char *to = const_cast<char*>(result.ascii()); 1623 1623 while ( true ) { 1624 while ( from!=fromend && QChar(*from).isSpace() )1624 while ( from!=fromend && DeprecatedChar(*from).isSpace() ) 1625 1625 from++; 1626 while ( from!=fromend && ! QChar(*from).isSpace() )1626 while ( from!=fromend && !DeprecatedChar(*from).isSpace() ) 1627 1627 to[outc++] = *from++; 1628 1628 if ( from!=fromend ) … … 1637 1637 else if (dataHandle[0]->_isUnicodeValid){ 1638 1638 result.setLength( dataHandle[0]->_length ); 1639 const QChar *from = unicode();1640 const QChar *fromend = from + dataHandle[0]->_length;1639 const DeprecatedChar *from = unicode(); 1640 const DeprecatedChar *fromend = from + dataHandle[0]->_length; 1641 1641 int outc=0; 1642 1642 1643 QChar *to = result.forceUnicode();1643 DeprecatedChar *to = result.forceUnicode(); 1644 1644 while ( true ) { 1645 1645 while ( from!=fromend && from->isSpace() ) … … 1668 1668 1669 1669 1670 DeprecatedString &DeprecatedString::setUnicode(const QChar *uni, unsigned len)1670 DeprecatedString &DeprecatedString::setUnicode(const DeprecatedChar *uni, unsigned len) 1671 1671 { 1672 1672 detachAndDiscardCharacters(); … … 1686 1686 freeHandle(dataHandle); 1687 1687 dataHandle = allocateHandle(); 1688 *dataHandle = new KWQStringData(uni, len);1688 *dataHandle = new DeprecatedStringData(uni, len); 1689 1689 dataHandle[0]->_isHeapAllocated = 1; 1690 1690 } else { 1691 1691 if ( uni ) 1692 memcpy( (void *)unicode(), uni, sizeof( QChar)*len );1692 memcpy( (void *)unicode(), uni, sizeof(DeprecatedChar)*len ); 1693 1693 dataHandle[0]->_length = len; 1694 1694 dataHandle[0]->_isAsciiValid = 0; … … 1716 1716 freeHandle(dataHandle); 1717 1717 dataHandle = allocateHandle(); 1718 *dataHandle = new KWQStringData(str,len);1718 *dataHandle = new DeprecatedStringData(str,len); 1719 1719 dataHandle[0]->_isHeapAllocated = 1; 1720 1720 } else { … … 1786 1786 freeHandle(dataHandle); 1787 1787 dataHandle = allocateHandle(); 1788 *dataHandle = new KWQStringData((char *)0, len);1788 *dataHandle = new DeprecatedStringData((char *)0, len); 1789 1789 dataHandle[0]->_isHeapAllocated = 1; 1790 1790 } else { … … 1804 1804 } 1805 1805 1806 DeprecatedString &DeprecatedString::prepend(const QChar *characters, unsigned length)1806 DeprecatedString &DeprecatedString::prepend(const DeprecatedChar *characters, unsigned length) 1807 1807 { 1808 1808 return insert(0, characters, length); … … 1819 1819 } 1820 1820 1821 DeprecatedString &DeprecatedString::append(const QChar *characters, unsigned length)1821 DeprecatedString &DeprecatedString::append(const DeprecatedChar *characters, unsigned length) 1822 1822 { 1823 1823 return insert(dataHandle[0]->_length, characters, length); … … 1849 1849 else if (dataHandle[0]->_isUnicodeValid){ 1850 1850 unsigned originalLength = dataHandle[0]->_length; 1851 QChar *targetChars;1851 DeprecatedChar *targetChars; 1852 1852 1853 1853 // Ensure that we have enough space. 1854 1854 setLength (originalLength + insertLength); 1855 targetChars = ( QChar *)unicode();1855 targetChars = (DeprecatedChar *)unicode(); 1856 1856 1857 1857 // Move tail to make space for inserted characters. 1858 memmove (targetChars+(index+insertLength), targetChars+index, (originalLength-index)*sizeof( QChar));1858 memmove (targetChars+(index+insertLength), targetChars+index, (originalLength-index)*sizeof(DeprecatedChar)); 1859 1859 1860 1860 // Insert characters. 1861 1861 unsigned i = insertLength; 1862 QChar *target = targetChars+index;1862 DeprecatedChar *target = targetChars+index; 1863 1863 1864 1864 while (i--) … … 1883 1883 unsigned insertLength = qs.dataHandle[0]->_length; 1884 1884 unsigned originalLength = dataHandle[0]->_length; 1885 QChar *targetChars;1885 DeprecatedChar *targetChars; 1886 1886 1887 1887 // Ensure that we have enough space. … … 1890 1890 1891 1891 // Move tail to make space for inserted characters. 1892 memmove (targetChars+(index+insertLength), targetChars+index, (originalLength-index)*sizeof( QChar));1892 memmove (targetChars+(index+insertLength), targetChars+index, (originalLength-index)*sizeof(DeprecatedChar)); 1893 1893 1894 1894 // Insert characters. 1895 1895 if (qs.dataHandle[0]->_isAsciiValid){ 1896 1896 unsigned i = insertLength; 1897 QChar *target = targetChars+index;1897 DeprecatedChar *target = targetChars+index; 1898 1898 char *a = const_cast<char*>(qs.ascii()); 1899 1899 … … 1902 1902 } 1903 1903 else { 1904 QChar *insertChars = (QChar *)qs.unicode();1905 memcpy (targetChars+index, insertChars, insertLength*sizeof( QChar));1904 DeprecatedChar *insertChars = (DeprecatedChar *)qs.unicode(); 1905 memcpy (targetChars+index, insertChars, insertLength*sizeof(DeprecatedChar)); 1906 1906 } 1907 1907 … … 1913 1913 1914 1914 1915 DeprecatedString &DeprecatedString::insert(unsigned index, const QChar *insertChars, unsigned insertLength)1915 DeprecatedString &DeprecatedString::insert(unsigned index, const DeprecatedChar *insertChars, unsigned insertLength) 1916 1916 { 1917 1917 if (insertLength == 0) … … 1923 1923 setLength(originalLength + insertLength); 1924 1924 1925 QChar *targetChars = const_cast<QChar *>(unicode());1925 DeprecatedChar *targetChars = const_cast<DeprecatedChar *>(unicode()); 1926 1926 if (originalLength > index) { 1927 memmove(targetChars + index + insertLength, targetChars + index, (originalLength - index) * sizeof( QChar));1928 } 1929 memcpy(targetChars + index, insertChars, insertLength * sizeof( QChar));1927 memmove(targetChars + index + insertLength, targetChars + index, (originalLength - index) * sizeof(DeprecatedChar)); 1928 } 1929 memcpy(targetChars + index, insertChars, insertLength * sizeof(DeprecatedChar)); 1930 1930 1931 1931 return *this; … … 1933 1933 1934 1934 1935 DeprecatedString &DeprecatedString::insert(unsigned index, QChar qc)1935 DeprecatedString &DeprecatedString::insert(unsigned index, DeprecatedChar qc) 1936 1936 { 1937 1937 detach(); … … 1957 1957 else { 1958 1958 unsigned originalLength = dataHandle[0]->_length; 1959 QChar *targetChars;1959 DeprecatedChar *targetChars; 1960 1960 1961 1961 // Ensure that we have enough space. … … 1964 1964 1965 1965 // Move tail to make space for inserted character. 1966 memmove (targetChars+(index+1), targetChars+index, (originalLength-index)*sizeof( QChar));1966 memmove (targetChars+(index+1), targetChars+index, (originalLength-index)*sizeof(DeprecatedChar)); 1967 1967 1968 1968 targetChars[index] = qc; … … 1996 1996 else if (dataHandle[0]->_isUnicodeValid){ 1997 1997 unsigned originalLength = dataHandle[0]->_length; 1998 QChar *targetChars;1998 DeprecatedChar *targetChars; 1999 1999 2000 2000 // Ensure that we have enough space. 2001 2001 setLength (originalLength + 1); 2002 targetChars = ( QChar *)unicode();2002 targetChars = (DeprecatedChar *)unicode(); 2003 2003 2004 2004 // Move tail to make space for inserted character. 2005 memmove (targetChars+(index+1), targetChars+index, (originalLength-index)*sizeof( QChar));2006 2007 targetChars[index] = ( QChar)ch;2005 memmove (targetChars+(index+1), targetChars+index, (originalLength-index)*sizeof(DeprecatedChar)); 2006 2007 targetChars[index] = (DeprecatedChar)ch; 2008 2008 } 2009 2009 else … … 2013 2013 } 2014 2014 2015 // Copy KWQStringData if necessary. Must be called before the string data is mutated.2015 // Copy DeprecatedStringData if necessary. Must be called before the string data is mutated. 2016 2016 void DeprecatedString::detach() 2017 2017 { 2018 KWQStringData *oldData = *dataHandle;2018 DeprecatedStringData *oldData = *dataHandle; 2019 2019 2020 2020 if (oldData->refCount == 1 && oldData != shared_null) … … 2022 2022 2023 2023 // Copy data for this string so we can safely mutate it. 2024 KWQStringData *newData;2024 DeprecatedStringData *newData; 2025 2025 if (oldData->_isAsciiValid) 2026 newData = new KWQStringData(oldData->ascii(), oldData->_length);2026 newData = new DeprecatedStringData(oldData->ascii(), oldData->_length); 2027 2027 else 2028 newData = new KWQStringData(oldData->unicode(), oldData->_length);2028 newData = new DeprecatedStringData(oldData->unicode(), oldData->_length); 2029 2029 newData->_isHeapAllocated = 1; 2030 2030 … … 2074 2074 else if (dataHandle[0]->_isUnicodeValid){ 2075 2075 memmove( dataHandle[0]->unicode()+index, dataHandle[0]->unicode()+index+len, 2076 sizeof( QChar)*(olen-index-len) );2076 sizeof(DeprecatedChar)*(olen-index-len) ); 2077 2077 setLength( olen-len ); 2078 2078 } … … 2099 2099 } 2100 2100 2101 DeprecatedString &DeprecatedString::replace( QChar pattern, const DeprecatedString &str)2101 DeprecatedString &DeprecatedString::replace(DeprecatedChar pattern, const DeprecatedString &str) 2102 2102 { 2103 2103 int slen = str.dataHandle[0]->_length; … … 2147 2147 2148 2148 2149 DeprecatedString &DeprecatedString::replace( QChar oldChar, QChar newChar)2149 DeprecatedString &DeprecatedString::replace(DeprecatedChar oldChar, DeprecatedChar newChar) 2150 2150 { 2151 2151 if (oldChar != newChar && find(oldChar) != -1) { … … 2164 2164 } 2165 2165 } else { 2166 QChar *p = const_cast<QChar *>(unicode());2166 DeprecatedChar *p = const_cast<DeprecatedChar *>(unicode()); 2167 2167 dataHandle[0]->_isAsciiValid = 0; 2168 2168 for (unsigned i = 0; i != length; ++i) { … … 2178 2178 2179 2179 2180 QChar *DeprecatedString::forceUnicode()2180 DeprecatedChar *DeprecatedString::forceUnicode() 2181 2181 { 2182 2182 detach(); 2183 QChar *result = const_cast<QChar *>(unicode());2183 DeprecatedChar *result = const_cast<DeprecatedChar *>(unicode()); 2184 2184 dataHandle[0]->_isAsciiValid = 0; 2185 2185 return result; … … 2228 2228 } 2229 2229 2230 void DeprecatedString::fill( QChar qc, int len)2230 void DeprecatedString::fill(DeprecatedChar qc, int len) 2231 2231 { 2232 2232 detachAndDiscardCharacters(); … … 2254 2254 } else { 2255 2255 setLength(len); 2256 QChar *nd = forceUnicode();2256 DeprecatedChar *nd = forceUnicode(); 2257 2257 while (len--) 2258 2258 *nd++ = qc; … … 2261 2261 } 2262 2262 2263 DeprecatedString &DeprecatedString::append( QChar qc)2263 DeprecatedString &DeprecatedString::append(DeprecatedChar qc) 2264 2264 { 2265 2265 detach(); 2266 2266 2267 KWQStringData *thisData = *dataHandle;2267 DeprecatedStringData *thisData = *dataHandle; 2268 2268 if (thisData->_isUnicodeValid && thisData->_length + 1 < thisData->_maxUnicode){ 2269 2269 thisData->_unicode[thisData->_length] = qc; … … 2286 2286 detach(); 2287 2287 2288 KWQStringData *thisData = *dataHandle;2288 DeprecatedStringData *thisData = *dataHandle; 2289 2289 if (thisData->_isUnicodeValid && thisData->_length + 1 < thisData->_maxUnicode){ 2290 thisData->_unicode[thisData->_length] = ( QChar)ch;2290 thisData->_unicode[thisData->_length] = (DeprecatedChar)ch; 2291 2291 thisData->_length++; 2292 2292 thisData->_isAsciiValid = 0; … … 2317 2317 } 2318 2318 return s1.dataHandle[0]->_length == s2.dataHandle[0]->_length 2319 && memcmp(s1.unicode(), s2.unicode(), s1.dataHandle[0]->_length * sizeof( QChar)) == 0;2319 && memcmp(s1.unicode(), s2.unicode(), s1.dataHandle[0]->_length * sizeof(DeprecatedChar)) == 0; 2320 2320 } 2321 2321 … … 2324 2324 if (!chs) 2325 2325 return s1.isNull(); 2326 KWQStringData *d = s1.dataHandle[0];2326 DeprecatedStringData *d = s1.dataHandle[0]; 2327 2327 unsigned len = d->_length; 2328 2328 if (d->_isAsciiValid) { … … 2334 2334 } 2335 2335 } else { 2336 const QChar *s = s1.unicode();2336 const DeprecatedChar *s = s1.unicode(); 2337 2337 for (unsigned i = 0; i != len; ++i) { 2338 2338 char c = chs[i]; … … 2354 2354 } 2355 2355 2356 DeprecatedString operator+(const DeprecatedString &qs, QChar qc)2356 DeprecatedString operator+(const DeprecatedString &qs, DeprecatedChar qc) 2357 2357 { 2358 2358 return DeprecatedString(qs) += qc; … … 2369 2369 } 2370 2370 2371 DeprecatedString operator+( QChar qc, const DeprecatedString &qs)2371 DeprecatedString operator+(DeprecatedChar qc, const DeprecatedString &qs) 2372 2372 { 2373 2373 return DeprecatedString(qc) += qs; … … 2376 2376 DeprecatedString operator+(char ch, const DeprecatedString &qs) 2377 2377 { 2378 return DeprecatedString( QChar(ch)) += qs;2379 } 2380 2381 QConstString::QConstString(const QChar* unicode, unsigned length) :2382 DeprecatedString(new KWQStringData((QChar *)unicode, length, length), true)2383 { 2384 } 2385 2386 QConstString::~QConstString()2387 { 2388 KWQStringData *data = *dataHandle;2378 return DeprecatedString(DeprecatedChar(ch)) += qs; 2379 } 2380 2381 DeprecatedConstString::DeprecatedConstString(const DeprecatedChar* unicode, unsigned length) : 2382 DeprecatedString(new DeprecatedStringData((DeprecatedChar *)unicode, length, length), true) 2383 { 2384 } 2385 2386 DeprecatedConstString::~DeprecatedConstString() 2387 { 2388 DeprecatedStringData *data = *dataHandle; 2389 2389 if (data->refCount > 1) { 2390 QChar *tp;2391 if (data->_length <= QS_INTERNAL_BUFFER_UCHARS) {2392 data->_maxUnicode = QS_INTERNAL_BUFFER_UCHARS;2393 tp = ( QChar *)&data->_internalBuffer[0];2390 DeprecatedChar *tp; 2391 if (data->_length <= WEBCORE_DS_INTERNAL_BUFFER_UCHARS) { 2392 data->_maxUnicode = WEBCORE_DS_INTERNAL_BUFFER_UCHARS; 2393 tp = (DeprecatedChar *)&data->_internalBuffer[0]; 2394 2394 } else { 2395 2395 data->_maxUnicode = ALLOC_QCHAR_GOOD_SIZE(data->_length); 2396 tp = ALLOC_QCHAR(data->_maxUnicode);2397 } 2398 memcpy(tp, data->_unicode, data->_length * sizeof( QChar));2396 tp = WEBCORE_ALLOCATE_CHARACTERS(data->_maxUnicode); 2397 } 2398 memcpy(tp, data->_unicode, data->_length * sizeof(DeprecatedChar)); 2399 2399 data->_unicode = tp; 2400 2400 data->_isUnicodeValid = 1; … … 2504 2504 } 2505 2505 2506 void freeHandle( KWQStringData **_free)2506 void freeHandle(DeprecatedStringData **_free) 2507 2507 { 2508 2508 #if CHECK_FOR_HANDLE_LEAKS … … 2570 2570 dataHandle = allocateHandle(); 2571 2571 *dataHandle = &internalData; 2572 internalData.initialize(reinterpret_cast<const QChar*>(str.data()), str.size());2572 internalData.initialize(reinterpret_cast<const DeprecatedChar*>(str.data()), str.size()); 2573 2573 } 2574 2574 } … … 2583 2583 dataHandle = allocateHandle(); 2584 2584 *dataHandle = &internalData; 2585 internalData.initialize(reinterpret_cast<const QChar*>(str.data()), str.size());2585 internalData.initialize(reinterpret_cast<const DeprecatedChar*>(str.data()), str.size()); 2586 2586 } 2587 2587 } -
trunk/WebCore/platform/DeprecatedString.h
r14816 r15253 24 24 */ 25 25 26 #ifndef QSTRING_H_27 #define QSTRING_H_26 #ifndef DeprecatedString_h 27 #define DeprecatedString_h 28 28 29 29 #include <ctype.h> … … 32 32 #include <CoreFoundation/CoreFoundation.h> 33 33 #endif 34 #include " KWQCString.h"34 #include "DeprecatedCString.h" 35 35 36 36 class RegularExpression; … … 49 49 } 50 50 51 class QChar {51 class DeprecatedChar { 52 52 public: 53 QChar();54 QChar(char);55 QChar(unsigned char);56 QChar(short);57 QChar(unsigned short);58 QChar(int);59 QChar(unsigned);53 DeprecatedChar(); 54 DeprecatedChar(char); 55 DeprecatedChar(unsigned char); 56 DeprecatedChar(short); 57 DeprecatedChar(unsigned short); 58 DeprecatedChar(int); 59 DeprecatedChar(unsigned); 60 60 61 61 unsigned short unicode() const; 62 62 char latin1() const; 63 63 bool isSpace() const; 64 QChar lower() const;65 QChar upper() const;64 DeprecatedChar lower() const; 65 DeprecatedChar upper() const; 66 66 67 67 private: … … 69 69 }; 70 70 71 inline QChar::QChar() : c(0)72 { 73 } 74 75 inline QChar::QChar(char ch) : c((unsigned char) ch)76 { 77 } 78 79 inline QChar::QChar(unsigned char uch) : c(uch)80 { 81 } 82 83 inline QChar::QChar(short n) : c(n)84 { 85 } 86 87 inline QChar::QChar(unsigned short n) : c(n)88 { 89 } 90 91 inline QChar::QChar(unsigned n) : c(n)92 { 93 } 94 95 inline QChar::QChar(int n) : c(n)96 { 97 } 98 99 inline unsigned short QChar::unicode() const71 inline DeprecatedChar::DeprecatedChar() : c(0) 72 { 73 } 74 75 inline DeprecatedChar::DeprecatedChar(char ch) : c((unsigned char) ch) 76 { 77 } 78 79 inline DeprecatedChar::DeprecatedChar(unsigned char uch) : c(uch) 80 { 81 } 82 83 inline DeprecatedChar::DeprecatedChar(short n) : c(n) 84 { 85 } 86 87 inline DeprecatedChar::DeprecatedChar(unsigned short n) : c(n) 88 { 89 } 90 91 inline DeprecatedChar::DeprecatedChar(unsigned n) : c(n) 92 { 93 } 94 95 inline DeprecatedChar::DeprecatedChar(int n) : c(n) 96 { 97 } 98 99 inline unsigned short DeprecatedChar::unicode() const 100 100 { 101 101 return c; 102 102 } 103 103 104 inline bool QChar::isSpace() const104 inline bool DeprecatedChar::isSpace() const 105 105 { 106 106 // Use isspace() for basic Latin-1. … … 109 109 } 110 110 111 inline QChar QChar::lower() const111 inline DeprecatedChar DeprecatedChar::lower() const 112 112 { 113 113 // FIXME: If fast enough, we should just call u_tolower directly. … … 115 115 } 116 116 117 inline QChar QChar::upper() const117 inline DeprecatedChar DeprecatedChar::upper() const 118 118 { 119 119 // FIXME: If fast enough, we should just call u_toupper directly. … … 121 121 } 122 122 123 inline char QChar::latin1() const123 inline char DeprecatedChar::latin1() const 124 124 { 125 125 return c > 0xff ? 0 : c; 126 126 } 127 127 128 inline bool operator==( QChar qc1, QChar qc2)128 inline bool operator==(DeprecatedChar qc1, DeprecatedChar qc2) 129 129 { 130 130 return qc1.unicode() == qc2.unicode(); 131 131 } 132 132 133 inline bool operator==( QChar qc, char ch)133 inline bool operator==(DeprecatedChar qc, char ch) 134 134 { 135 135 return qc.unicode() == (unsigned char) ch; 136 136 } 137 137 138 inline bool operator==(char ch, QChar qc)138 inline bool operator==(char ch, DeprecatedChar qc) 139 139 { 140 140 return (unsigned char) ch == qc.unicode(); 141 141 } 142 142 143 inline bool operator!=( QChar qc1, QChar qc2)143 inline bool operator!=(DeprecatedChar qc1, DeprecatedChar qc2) 144 144 { 145 145 return qc1.unicode() != qc2.unicode(); 146 146 } 147 147 148 inline bool operator!=( QChar qc, char ch)148 inline bool operator!=(DeprecatedChar qc, char ch) 149 149 { 150 150 return qc.unicode() != (unsigned char) ch; 151 151 } 152 152 153 inline bool operator!=(char ch, QChar qc)153 inline bool operator!=(char ch, DeprecatedChar qc) 154 154 { 155 155 return (unsigned char) ch != qc.unicode(); … … 159 159 // Will be rounded up to a multiple of 4, so we're stuck at 44. 160 160 161 #define QS_INTERNAL_BUFFER_SIZE 20162 #define QS_INTERNAL_BUFFER_CHARS QS_INTERNAL_BUFFER_SIZE-1163 #define QS_INTERNAL_BUFFER_UCHARS QS_INTERNAL_BUFFER_SIZE/2164 165 struct KWQStringData161 #define WEBCORE_DS_INTERNAL_BUFFER_SIZE 20 162 #define WEBCORE_DS_INTERNAL_BUFFER_CHARS WEBCORE_DS_INTERNAL_BUFFER_SIZE-1 163 #define WEBCORE_DS_INTERNAL_BUFFER_UCHARS WEBCORE_DS_INTERNAL_BUFFER_SIZE/2 164 165 struct DeprecatedStringData 166 166 { 167 167 // Uses shared null data. 168 KWQStringData();168 DeprecatedStringData(); 169 169 void initialize(); 170 170 171 171 // No copy. 172 KWQStringData(QChar *u, unsigned l, unsigned m);173 void initialize( QChar *u, unsigned l, unsigned m);172 DeprecatedStringData(DeprecatedChar *u, unsigned l, unsigned m); 173 void initialize(DeprecatedChar *u, unsigned l, unsigned m); 174 174 175 175 // Copy bytes. 176 KWQStringData(const QChar *u, unsigned l);177 void initialize(const QChar *u, unsigned l);176 DeprecatedStringData(const DeprecatedChar *u, unsigned l); 177 void initialize(const DeprecatedChar *u, unsigned l); 178 178 179 179 // Copy bytes. 180 KWQStringData(const char *u, unsigned l);180 DeprecatedStringData(const char *u, unsigned l); 181 181 void initialize(const char *u, unsigned l); 182 182 183 183 // Move from destination to source. 184 KWQStringData(KWQStringData &);185 186 ~ KWQStringData();187 188 #ifdef QSTRING_DEBUG_ALLOCATIONS184 DeprecatedStringData(DeprecatedStringData &); 185 186 ~DeprecatedStringData(); 187 188 #ifdef WEBCORE_DS_DEBUG_ALLOCATIONS 189 189 void* operator new(size_t s); 190 190 void operator delete(void*p); … … 198 198 void increaseAsciiSize(unsigned size); 199 199 200 QChar *unicode();201 QChar *makeUnicode();200 DeprecatedChar *unicode(); 201 DeprecatedChar *makeUnicode(); 202 202 void increaseUnicodeSize(unsigned size); 203 203 … … 207 207 unsigned refCount; 208 208 unsigned _length; 209 mutable QChar *_unicode;209 mutable DeprecatedChar *_unicode; 210 210 mutable char *_ascii; 211 211 unsigned _maxUnicode : 30; … … 215 215 bool _isAsciiValid : 1; 216 216 217 char _internalBuffer[ QS_INTERNAL_BUFFER_SIZE]; // Pad out to a (((size + 1) & ~15) + 14) size217 char _internalBuffer[WEBCORE_DS_INTERNAL_BUFFER_SIZE]; // Pad out to a (((size + 1) & ~15) + 14) size 218 218 219 219 private: 220 KWQStringData(const KWQStringData &);221 KWQStringData &operator=(const KWQStringData &);220 DeprecatedStringData(const DeprecatedStringData &); 221 DeprecatedStringData &operator=(const DeprecatedStringData &); 222 222 }; 223 223 … … 227 227 228 228 DeprecatedString(); 229 DeprecatedString( QChar);230 DeprecatedString(const QChar *, unsigned);229 DeprecatedString(DeprecatedChar); 230 DeprecatedString(const DeprecatedChar *, unsigned); 231 231 DeprecatedString(const char *); 232 232 DeprecatedString(const char *, int len); … … 251 251 #endif 252 252 DeprecatedString &operator=(char); 253 DeprecatedString &operator=( QChar);253 DeprecatedString &operator=(DeprecatedChar); 254 254 DeprecatedString &operator=(const char *); 255 255 DeprecatedString &operator=(const DeprecatedCString &); … … 257 257 unsigned length() const; 258 258 259 const QChar *unicode() const;260 const QChar *stableUnicode();259 const DeprecatedChar *unicode() const; 260 const DeprecatedChar *stableUnicode(); 261 261 const char *latin1() const; 262 262 const char *ascii() const; … … 271 271 bool isEmpty() const; 272 272 273 QChar at(unsigned) const;273 DeprecatedChar at(unsigned) const; 274 274 275 275 int compare(const DeprecatedString &) const; … … 281 281 282 282 int find(char, int index = 0) const; 283 int find( QChar, int index = 0) const;283 int find(DeprecatedChar, int index = 0) const; 284 284 int find(const char *, int index = 0, bool cs = true) const; 285 285 int find(const DeprecatedString &, int index = 0, bool cs = true) const; … … 293 293 int contains(const char *, bool cs = true) const; 294 294 int contains(const DeprecatedString &, bool cs = true) const; 295 int contains( QChar c, bool cs = true) const;295 int contains(DeprecatedChar c, bool cs = true) const; 296 296 297 297 bool endsWith(const DeprecatedString &) const; … … 319 319 DeprecatedString simplifyWhiteSpace() const; 320 320 321 DeprecatedString &setUnicode(const QChar *, unsigned);321 DeprecatedString &setUnicode(const DeprecatedChar *, unsigned); 322 322 DeprecatedString &setLatin1(const char *, int len=-1); 323 323 … … 337 337 338 338 DeprecatedString &append(const DeprecatedString &); 339 DeprecatedString &append( QChar);339 DeprecatedString &append(DeprecatedChar); 340 340 DeprecatedString &append(char); 341 341 DeprecatedString &insert(unsigned, const DeprecatedString &); 342 DeprecatedString &insert(unsigned, QChar);342 DeprecatedString &insert(unsigned, DeprecatedChar); 343 343 DeprecatedString &insert(unsigned, char); 344 344 DeprecatedString &insert(unsigned index, const char *insertChars, unsigned insertLength); 345 345 DeprecatedString &prepend(const DeprecatedString &); 346 346 DeprecatedString &remove(unsigned, unsigned); 347 DeprecatedString &remove(const QChar &c) { return replace(DeprecatedString(c), ""); }347 DeprecatedString &remove(const DeprecatedChar &c) { return replace(DeprecatedString(c), ""); } 348 348 DeprecatedString &remove(const DeprecatedString &s) { return replace(s, ""); } 349 349 DeprecatedString &replace(unsigned index, unsigned len, const DeprecatedString &s); 350 350 DeprecatedString &replace(char, const DeprecatedString &); 351 DeprecatedString &replace( QChar, const DeprecatedString &);351 DeprecatedString &replace(DeprecatedChar, const DeprecatedString &); 352 352 DeprecatedString &replace(const DeprecatedString &, const DeprecatedString &); 353 353 DeprecatedString &replace(const RegularExpression &, const DeprecatedString &); 354 DeprecatedString &replace( QChar, QChar);355 356 DeprecatedString &append(const QChar *, unsigned length);354 DeprecatedString &replace(DeprecatedChar, DeprecatedChar); 355 356 DeprecatedString &append(const DeprecatedChar *, unsigned length); 357 357 DeprecatedString &append(const char *, unsigned length); 358 DeprecatedString &insert(unsigned position, const QChar *, unsigned length);359 DeprecatedString &prepend(const QChar *, unsigned length);360 361 void fill( QChar, int len=-1);358 DeprecatedString &insert(unsigned position, const DeprecatedChar *, unsigned length); 359 DeprecatedString &prepend(const DeprecatedChar *, unsigned length); 360 361 void fill(DeprecatedChar, int len=-1); 362 362 void truncate(unsigned); 363 363 … … 366 366 bool operator!() const; 367 367 368 const QChar operator[](int) const;368 const DeprecatedChar operator[](int) const; 369 369 370 370 DeprecatedString &operator+=(const DeprecatedString &s) { return append(s); } 371 DeprecatedString &operator+=( QChar c) { return append(c); }371 DeprecatedString &operator+=(DeprecatedChar c) { return append(c); } 372 372 DeprecatedString &operator+=(char c) { return append(c); } 373 373 … … 379 379 380 380 private: 381 // Used by QConstString.382 DeprecatedString( KWQStringData *constData, bool /*dummy*/);381 // Used by DeprecatedConstString. 382 DeprecatedString(DeprecatedStringData *constData, bool /*dummy*/); 383 383 void detach(); 384 384 void detachAndDiscardCharacters(); … … 386 386 void detachInternal(); 387 387 void deref(); 388 QChar *forceUnicode();388 DeprecatedChar *forceUnicode(); 389 389 void setLength(unsigned); 390 390 391 KWQStringData **dataHandle;392 KWQStringData internalData;393 394 static KWQStringData *shared_null;395 static KWQStringData *makeSharedNull();396 static KWQStringData **shared_null_handle;397 static KWQStringData **makeSharedNullHandle();391 DeprecatedStringData **dataHandle; 392 DeprecatedStringData internalData; 393 394 static DeprecatedStringData *shared_null; 395 static DeprecatedStringData *makeSharedNull(); 396 static DeprecatedStringData **shared_null_handle; 397 static DeprecatedStringData **makeSharedNullHandle(); 398 398 399 399 friend bool operator==(const DeprecatedString &, const DeprecatedString &); 400 400 friend bool operator==(const DeprecatedString &, const char *); 401 401 402 friend class QConstString;402 friend class DeprecatedConstString; 403 403 friend class QGDict; 404 friend struct KWQStringData;404 friend struct DeprecatedStringData; 405 405 }; 406 406 407 407 DeprecatedString operator+(const DeprecatedString &, const DeprecatedString &); 408 408 DeprecatedString operator+(const DeprecatedString &, const char *); 409 DeprecatedString operator+(const DeprecatedString &, QChar);409 DeprecatedString operator+(const DeprecatedString &, DeprecatedChar); 410 410 DeprecatedString operator+(const DeprecatedString &, char); 411 411 DeprecatedString operator+(const char *, const DeprecatedString &); 412 DeprecatedString operator+( QChar, const DeprecatedString &);412 DeprecatedString operator+(DeprecatedChar, const DeprecatedString &); 413 413 DeprecatedString operator+(char, const DeprecatedString &); 414 414 415 inline char * KWQStringData::ascii()415 inline char *DeprecatedStringData::ascii() 416 416 { 417 417 return _isAsciiValid ? _ascii : makeAscii(); 418 418 } 419 419 420 inline QChar *KWQStringData::unicode()420 inline DeprecatedChar *DeprecatedStringData::unicode() 421 421 { 422 422 return _isUnicodeValid ? _unicode : makeUnicode(); … … 438 438 } 439 439 440 inline const QChar *DeprecatedString::unicode() const440 inline const DeprecatedChar *DeprecatedString::unicode() const 441 441 { 442 442 return dataHandle[0]->unicode(); … … 470 470 } 471 471 472 inline const QChar DeprecatedString::operator[](int index) const472 inline const DeprecatedChar DeprecatedString::operator[](int index) const 473 473 { 474 474 return at(index); … … 555 555 } 556 556 557 class QConstString : private DeprecatedString {557 class DeprecatedConstString : private DeprecatedString { 558 558 public: 559 QConstString(const QChar *, unsigned);560 ~ QConstString();559 DeprecatedConstString(const DeprecatedChar *, unsigned); 560 ~DeprecatedConstString(); 561 561 const DeprecatedString &string() const { return *this; } 562 562 }; -
trunk/WebCore/platform/DeprecatedStringList.cpp
r13393 r15253 44 44 } 45 45 46 DeprecatedStringList DeprecatedStringList::split(const QChar &separator, const DeprecatedString &s, bool allowEmptyEntries)46 DeprecatedStringList DeprecatedStringList::split(const DeprecatedChar &separator, const DeprecatedString &s, bool allowEmptyEntries) 47 47 { 48 48 return DeprecatedStringList::split(DeprecatedString(separator), s, allowEmptyEntries); -
trunk/WebCore/platform/DeprecatedStringList.h
r13393 r15253 24 24 */ 25 25 26 #ifndef QSTRINGLIST_H_27 #define QSTRINGLIST_H_26 #ifndef DeprecatedStringList_h 27 #define DeprecatedStringList_h 28 28 29 29 #include "DeprecatedString.h" … … 41 41 public: 42 42 static DeprecatedStringList split(const DeprecatedString &, const DeprecatedString &, bool allowEmptyEntries = false); 43 static DeprecatedStringList split(const QChar &, const DeprecatedString &, bool allowEmptyEntries = false);43 static DeprecatedStringList split(const DeprecatedChar &, const DeprecatedString &, bool allowEmptyEntries = false); 44 44 45 45 DeprecatedString join(const DeprecatedString &) const; -
trunk/WebCore/platform/DeprecatedValueList.h
r14407 r15253 24 24 */ 25 25 26 #ifndef QVALUELIST_H_27 #define QVALUELIST_H_26 #ifndef DeprecatedValueList_h 27 #define DeprecatedValueList_h 28 28 29 29 #include "DeprecatedValueListImpl.h" -
trunk/WebCore/platform/DeprecatedValueListImpl.cpp
r13852 r15253 30 30 #include <stdlib.h> 31 31 32 class DeprecatedValueListImpl:: KWQValueListPrivate : public Shared<DeprecatedValueListImpl::KWQValueListPrivate>32 class DeprecatedValueListImpl::Private : public Shared<DeprecatedValueListImpl::Private> 33 33 { 34 34 public: 35 KWQValueListPrivate(void (*deleteFunc)(DeprecatedValueListImplNode *), DeprecatedValueListImplNode *(*copyFunc)(DeprecatedValueListImplNode *));36 KWQValueListPrivate(const KWQValueListPrivate &other);37 38 ~ KWQValueListPrivate();35 Private(void (*deleteFunc)(DeprecatedValueListImplNode *), DeprecatedValueListImplNode *(*copyFunc)(DeprecatedValueListImplNode *)); 36 Private(const Private &other); 37 38 ~Private(); 39 39 40 40 void copyList(DeprecatedValueListImplNode *l, DeprecatedValueListImplNode *&head, DeprecatedValueListImplNode *&tail) const; … … 49 49 }; 50 50 51 inline DeprecatedValueListImpl:: KWQValueListPrivate::KWQValueListPrivate(void (*deleteFunc)(DeprecatedValueListImplNode*),51 inline DeprecatedValueListImpl::Private::Private(void (*deleteFunc)(DeprecatedValueListImplNode*), 52 52 DeprecatedValueListImplNode* (*copyFunc)(DeprecatedValueListImplNode*)) : 53 53 head(NULL), … … 59 59 } 60 60 61 inline DeprecatedValueListImpl:: KWQValueListPrivate::KWQValueListPrivate(const KWQValueListPrivate &other) :62 Shared<DeprecatedValueListImpl:: KWQValueListPrivate>(),61 inline DeprecatedValueListImpl::Private::Private(const Private &other) : 62 Shared<DeprecatedValueListImpl::Private>(), 63 63 deleteNode(other.deleteNode), 64 64 copyNode(other.copyNode), … … 68 68 } 69 69 70 inline DeprecatedValueListImpl:: KWQValueListPrivate::~KWQValueListPrivate()70 inline DeprecatedValueListImpl::Private::~Private() 71 71 { 72 72 deleteList(head); 73 73 } 74 74 75 void DeprecatedValueListImpl:: KWQValueListPrivate::copyList(DeprecatedValueListImplNode *l, DeprecatedValueListImplNode *&head, DeprecatedValueListImplNode *&tail) const75 void DeprecatedValueListImpl::Private::copyList(DeprecatedValueListImplNode *l, DeprecatedValueListImplNode *&head, DeprecatedValueListImplNode *&tail) const 76 76 { 77 77 DeprecatedValueListImplNode *prev = NULL; … … 98 98 } 99 99 100 void DeprecatedValueListImpl:: KWQValueListPrivate::deleteList(DeprecatedValueListImplNode *l)100 void DeprecatedValueListImpl::Private::deleteList(DeprecatedValueListImplNode *l) 101 101 { 102 102 DeprecatedValueListImplNode *p = l; … … 110 110 111 111 DeprecatedValueListImpl::DeprecatedValueListImpl(void (*deleteFunc)(DeprecatedValueListImplNode *), DeprecatedValueListImplNode *(*copyFunc)(DeprecatedValueListImplNode *)) : 112 d(new KWQValueListPrivate(deleteFunc, copyFunc))112 d(new Private(deleteFunc, copyFunc)) 113 113 { 114 114 } … … 378 378 { 379 379 DeprecatedValueListImpl tmp(other); 380 RefPtr< KWQValueListPrivate> tmpD = tmp.d;380 RefPtr<Private> tmpD = tmp.d; 381 381 382 382 tmp.d = d; … … 389 389 { 390 390 if (!d->hasOneRef()) 391 d = new KWQValueListPrivate(*d);391 d = new Private(*d); 392 392 } 393 393 -
trunk/WebCore/platform/DeprecatedValueListImpl.h
r14256 r15253 24 24 */ 25 25 26 #ifndef KWQVALUELIST_H_27 #define KWQVALUELIST_H_26 #ifndef DeprecatedValueListImpl_h 27 #define DeprecatedValueListImpl_h 28 28 29 29 #include <wtf/RefPtr.h> … … 99 99 void copyOnWrite(); 100 100 101 class KWQValueListPrivate;101 class Private; 102 102 103 RefPtr< KWQValueListPrivate> d;103 RefPtr<Private> d; 104 104 105 105 friend class DeprecatedValueListImplNode; … … 117 117 friend class DeprecatedValueListImpl; 118 118 friend class DeprecatedValueListImplIterator; 119 friend class DeprecatedValueListImpl:: KWQValueListPrivate;119 friend class DeprecatedValueListImpl::Private; 120 120 }; 121 121 -
trunk/WebCore/platform/FloatSize.h
r14520 r15253 25 25 */ 26 26 27 #ifndef QSIZEF_H_28 #define QSIZEF_H_27 #ifndef FloatSize_h 28 #define FloatSize_h 29 29 30 30 #if __APPLE__ -
trunk/WebCore/platform/Font.cpp
r14541 r15253 30 30 #include "FontFallbackList.h" 31 31 #include "GraphicsContext.h" 32 #include " KWQKHTMLSettings.h"32 #include "Settings.h" 33 33 34 34 #include "GlyphBuffer.h" -
trunk/WebCore/platform/KURL.cpp
r15010 r15253 1248 1248 return s; 1249 1249 } 1250 return DeprecatedString(reinterpret_cast< QChar *>(buffer), numCharactersConverted);1250 return DeprecatedString(reinterpret_cast<DeprecatedChar *>(buffer), numCharactersConverted); 1251 1251 } 1252 1252 … … 1266 1266 return a; 1267 1267 } 1268 QChar c = s[hostnameOrStringStart];1268 DeprecatedChar c = s[hostnameOrStringStart]; 1269 1269 p = hostnameOrStringStart + 1; 1270 1270 -
trunk/WebCore/platform/RegularExpression.cpp
r13867 r15253 35 35 #define MAX_OFFSETS (3 *MAX_SUBSTRINGS) 36 36 37 class RegularExpression:: KWQRegExpPrivate : public Shared<RegularExpression::KWQRegExpPrivate>37 class RegularExpression::Private : public Shared<RegularExpression::Private> 38 38 { 39 39 public: 40 KWQRegExpPrivate();41 KWQRegExpPrivate(DeprecatedString pattern, bool caseSensitive, bool glob);42 ~ KWQRegExpPrivate();40 Private(); 41 Private(DeprecatedString pattern, bool caseSensitive, bool glob); 42 ~Private(); 43 43 44 44 void compile(bool caseSensitive, bool glob); … … 54 54 }; 55 55 56 RegularExpression:: KWQRegExpPrivate::KWQRegExpPrivate() : pattern("")56 RegularExpression::Private::Private() : pattern("") 57 57 { 58 58 compile(true, false); 59 59 } 60 60 61 RegularExpression:: KWQRegExpPrivate::KWQRegExpPrivate(DeprecatedString p, bool caseSensitive, bool glob) : pattern(p), lastMatchPos(-1), lastMatchLength(-1)61 RegularExpression::Private::Private(DeprecatedString p, bool caseSensitive, bool glob) : pattern(p), lastMatchPos(-1), lastMatchLength(-1) 62 62 { 63 63 compile(caseSensitive, glob); … … 87 87 } 88 88 89 void RegularExpression:: KWQRegExpPrivate::compile(bool caseSensitive, bool glob)89 void RegularExpression::Private::compile(bool caseSensitive, bool glob) 90 90 { 91 91 DeprecatedString p; … … 110 110 } 111 111 112 RegularExpression:: KWQRegExpPrivate::~KWQRegExpPrivate()112 RegularExpression::Private::~Private() 113 113 { 114 114 pcre_free(regex); … … 116 116 117 117 118 RegularExpression::RegularExpression() : d(new RegularExpression:: KWQRegExpPrivate())119 { 120 } 121 122 RegularExpression::RegularExpression(const DeprecatedString &pattern, bool caseSensitive, bool glob) : d(new RegularExpression:: KWQRegExpPrivate(pattern, caseSensitive, glob))123 { 124 } 125 126 RegularExpression::RegularExpression(const char *cpattern) : d(new RegularExpression:: KWQRegExpPrivate(cpattern, true, false))118 RegularExpression::RegularExpression() : d(new RegularExpression::Private()) 119 { 120 } 121 122 RegularExpression::RegularExpression(const DeprecatedString &pattern, bool caseSensitive, bool glob) : d(new RegularExpression::Private(pattern, caseSensitive, glob)) 123 { 124 } 125 126 RegularExpression::RegularExpression(const char *cpattern) : d(new RegularExpression::Private(cpattern, true, false)) 127 127 { 128 128 } … … 140 140 { 141 141 RegularExpression tmp(re); 142 RefPtr<RegularExpression:: KWQRegExpPrivate> tmpD = tmp.d;142 RefPtr<RegularExpression::Private> tmpD = tmp.d; 143 143 144 144 tmp.d = d; … … 225 225 int substringLength = pcre_get_substring(reinterpret_cast<const uint16_t *>(d->lastMatchString.unicode()), d->lastMatchOffsets, d->lastMatchCount, n, &substring); 226 226 if (substringLength > 0) { 227 DeprecatedString capture(reinterpret_cast<const QChar *>(substring), substringLength);227 DeprecatedString capture(reinterpret_cast<const DeprecatedChar *>(substring), substringLength); 228 228 pcre_free_substring(substring); 229 229 return capture; -
trunk/WebCore/platform/RegularExpression.h
r13867 r15253 24 24 */ 25 25 26 #ifndef QREGEXP_H_27 #define QREGEXP_H_26 #ifndef RegularExpression_h 27 #define RegularExpression_h 28 28 29 29 #include "DeprecatedString.h" … … 51 51 52 52 private: 53 class KWQRegExpPrivate;54 RefPtr< KWQRegExpPrivate> d;53 class Private; 54 RefPtr<Private> d; 55 55 }; 56 56 -
trunk/WebCore/platform/SegmentedString.h
r14273 r15253 52 52 str.append(m_string); 53 53 } else { 54 str.insert(str.length(), reinterpret_cast<const QChar*>(m_current), m_length);54 str.insert(str.length(), reinterpret_cast<const DeprecatedChar*>(m_current), m_length); 55 55 } 56 56 } -
trunk/WebCore/platform/StreamingTextDecoder.cpp
r14911 r15253 79 79 80 80 if (c) 81 result.append(reinterpret_cast< QChar*>(&c), 1);81 result.append(reinterpret_cast<DeprecatedChar*>(&c), 1); 82 82 83 83 m_numBufferedBytes = 0; … … 105 105 } 106 106 } 107 result.append(reinterpret_cast< QChar*>(buffer), bufferLength);107 result.append(reinterpret_cast<DeprecatedChar*>(buffer), bufferLength); 108 108 len -= runLength * 2; 109 109 } … … 139 139 if (ored & 0x80) 140 140 return false; 141 result.append(reinterpret_cast< QChar*>(buffer), bufferLength);141 result.append(reinterpret_cast<DeprecatedChar*>(buffer), bufferLength); 142 142 len -= runLength; 143 143 } … … 189 189 if (BOM == characters[i]) { 190 190 if (start != i) 191 s.append(reinterpret_cast<const QChar*>(&characters[start]), i - start);191 s.append(reinterpret_cast<const DeprecatedChar*>(&characters[start]), i - start); 192 192 start = i + 1; 193 193 } 194 194 } 195 195 if (start != characterCount) 196 s.append(reinterpret_cast<const QChar*>(&characters[start]), characterCount - start);196 s.append(reinterpret_cast<const DeprecatedChar*>(&characters[start]), characterCount - start); 197 197 } 198 198 -
trunk/WebCore/platform/String.cpp
r14989 r15253 225 225 return false; 226 226 227 result = QConstString(reinterpret_cast<const QChar*>(m_impl->characters()), m_impl->length() - 1).string().toInt();227 result = DeprecatedConstString(reinterpret_cast<const DeprecatedChar*>(m_impl->characters()), m_impl->length() - 1).string().toInt(); 228 228 return true; 229 229 } … … 242 242 if (!m_impl->characters()) 243 243 return DeprecatedString("", 0); 244 return DeprecatedString(reinterpret_cast<const QChar*>(m_impl->characters()), m_impl->length());244 return DeprecatedString(reinterpret_cast<const DeprecatedChar*>(m_impl->characters()), m_impl->length()); 245 245 } 246 246 -
trunk/WebCore/platform/StringImpl.cpp
r14831 r15253 253 253 254 254 unsigned i = 0; 255 while (i < m_length && QChar(m_data[i]).isSpace())255 while (i < m_length && DeprecatedChar(m_data[i]).isSpace()) 256 256 ++i; 257 257 if (i < m_length && (m_data[i] == '+' || m_data[i] == '-')) … … 261 261 262 262 bool ok; 263 int r = QConstString(reinterpret_cast<const QChar*>(m_data), i).string().toInt(&ok);263 int r = DeprecatedConstString(reinterpret_cast<const DeprecatedChar*>(m_data), i).string().toInt(&ok); 264 264 265 265 /* Skip over any remaining digits, we are not that accurate (5.5% => 5%) */ … … 268 268 269 269 /* IE Quirk: Skip any whitespace (20 % => 20%) */ 270 while (i < m_length && QChar(m_data[i]).isSpace())270 while (i < m_length && DeprecatedChar(m_data[i]).isSpace()) 271 271 ++i; 272 272 … … 307 307 spacified[i] = cc; 308 308 } 309 DeprecatedString str(reinterpret_cast<const QChar*>(spacified), m_length);309 DeprecatedString str(reinterpret_cast<const DeprecatedChar*>(spacified), m_length); 310 310 deleteUCharVector(spacified); 311 311 … … 334 334 return 0; 335 335 } 336 DeprecatedString str(reinterpret_cast<const QChar*>(m_data), m_length);336 DeprecatedString str(reinterpret_cast<const DeprecatedChar*>(m_data), m_length); 337 337 str = str.simplifyWhiteSpace(); 338 338 … … 529 529 // Allow leading spaces. 530 530 for (; i != m_length; ++i) 531 if (! QChar(m_data[i]).isSpace())531 if (!DeprecatedChar(m_data[i]).isSpace()) 532 532 break; 533 533 … … 541 541 break; 542 542 543 return QConstString(reinterpret_cast<const QChar*>(m_data), i).string().toInt(ok);543 return DeprecatedConstString(reinterpret_cast<const DeprecatedChar*>(m_data), i).string().toInt(ok); 544 544 } 545 545 -
trunk/WebCore/platform/TextEncoding.cpp
r14816 r15253 143 143 normalizedString.truncate(copy.length()); // normalization to NFC rarely increases the length, so this first attempt will usually succeed 144 144 145 int32_t normalizedLength = unorm_normalize(source, copy.length(), UNORM_NFC, 0, reinterpret_cast<UChar*>(const_cast< QChar*>(normalizedString.unicode())), copy.length(), &err);145 int32_t normalizedLength = unorm_normalize(source, copy.length(), UNORM_NFC, 0, reinterpret_cast<UChar*>(const_cast<DeprecatedChar*>(normalizedString.unicode())), copy.length(), &err); 146 146 if (err == U_BUFFER_OVERFLOW_ERROR) { 147 147 err = U_ZERO_ERROR; 148 148 normalizedString.truncate(normalizedLength); 149 normalizedLength = unorm_normalize(source, copy.length(), UNORM_NFC, 0, reinterpret_cast<UChar*>(const_cast< QChar*>(normalizedString.unicode())), normalizedLength, &err);149 normalizedLength = unorm_normalize(source, copy.length(), UNORM_NFC, 0, reinterpret_cast<UChar*>(const_cast<DeprecatedChar*>(normalizedString.unicode())), normalizedLength, &err); 150 150 } 151 151 -
trunk/WebCore/platform/TransferJob.cpp
r13821 r15253 28 28 #include "TransferJobInternal.h" 29 29 30 #include " KWQLoader.h"30 #include "LoaderFunctions.h" 31 31 #include "Logging.h" 32 32 -
trunk/WebCore/platform/TransferJob.h
r14807 r15253 46 46 #if __APPLE__ 47 47 #ifdef __OBJC__ 48 @class KWQResourceLoader;48 @class WebCoreResourceLoaderImp; 49 49 #else 50 class KWQResourceLoader;50 class WebCoreResourceLoaderImp; 51 51 #endif 52 52 #endif … … 82 82 83 83 #if __APPLE__ 84 void setLoader( KWQResourceLoader*);84 void setLoader(WebCoreResourceLoaderImp*); 85 85 #endif 86 86 #if WIN32 -
trunk/WebCore/platform/TransferJobInternal.h
r14807 r15253 42 42 // The allocations and releases in TransferJobInternal are 43 43 // Cocoa-exception-free (either simple Foundation classes or 44 // KWQResourceLoaderwhich avoids doing work in dealloc).44 // WebCoreResourceLoaderImp which avoids doing work in dealloc). 45 45 46 46 namespace WebCore { … … 123 123 124 124 #if __APPLE__ 125 KWQResourceLoader* loader;125 WebCoreResourceLoaderImp* loader; 126 126 NSURLResponse* response; 127 127 #endif -
trunk/WebCore/platform/gdk/FrameGdk.cpp
r15124 r15253 38 38 #include "BrowserExtensionGdk.h" 39 39 #include "Document.h" 40 #include " KWQKHTMLSettings.h"40 #include "Settings.h" 41 41 #include "Plugin.h" 42 42 #include "FramePrivate.h" … … 50 50 #include "SelectionController.h" 51 51 #include "TypingCommand.h" 52 #include " KWQKSSLKeyGen.h"52 #include "SSLKeyGenerator.h" 53 53 #include "KeyboardCodes.h" 54 54 #include <gdk/gdk.h> 55 55 56 DeprecatedStringList KSSLKeyGen::supportedKeySizes(){return DeprecatedStringList();};57 DeprecatedString KSSLKeyGen::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();};56 DeprecatedStringList SSLKeyGenerator::supportedKeySizes(){return DeprecatedStringList();}; 57 DeprecatedString SSLKeyGenerator::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();}; 58 58 59 59 // This function loads resources from WebKit … … 82 82 //broken since it calls scroll on scrollbars 83 83 //and we have none now 84 //r->scroll(direction, KWQScrollWheel, multiplier);84 //r->scroll(direction, ScrollByWheel, multiplier); 85 85 if (!r->layer()) 86 86 return; … … 103 103 { 104 104 d->m_extension = new BrowserExtensionGdk(this); 105 KHTMLSettings* settings = new KHTMLSettings;105 Settings* settings = new Settings; 106 106 settings->setAutoLoadImages(true); 107 107 settings->setMinFontSize(5); … … 128 128 { 129 129 d->m_extension = new BrowserExtensionGdk(this); 130 KHTMLSettings* settings = new KHTMLSettings;130 Settings* settings = new Settings; 131 131 settings->setAutoLoadImages(true); 132 132 setSettings(settings); -
trunk/WebCore/platform/gdk/TemporaryLinkStubs.cpp
r15135 r15253 33 33 #include <stdlib.h> 34 34 #include "Node.h" 35 #include " KWQLineEdit.h"35 #include "TextField.h" 36 36 #include "Font.h" 37 #include " KWQFileButton.h"38 #include " KWQTextEdit.h"39 #include " KWQComboBox.h"37 #include "FileButton.h" 38 #include "TextBox.h" 39 #include "PopUpButton.h" 40 40 #include "IntPoint.h" 41 41 #include "Widget.h" 42 42 #include "GraphicsContext.h" 43 #include " KWQSlider.h"43 #include "WebCoreSlider.h" 44 44 #include "Cursor.h" 45 45 #include "loader.h" 46 46 #include "FrameView.h" 47 47 #include "KURL.h" 48 #include " KWQScrollBar.h"48 #include "WebCoreScrollBar.h" 49 49 #include "JavaAppletWidget.h" 50 #include " KWQScrollBar.h"50 #include "WebCoreScrollBar.h" 51 51 #include "Path.h" 52 52 #include "PlatformMouseEvent.h" … … 73 73 //bool FrameView::isFrameView() const { notImplemented(); return 0; } 74 74 75 QTextEdit::QTextEdit(Widget*) { notImplemented(); }76 QTextEdit::~QTextEdit() { notImplemented(); }77 String QTextEdit::textWithHardLineBreaks() const { notImplemented(); return String(); }78 IntSize QTextEdit::sizeWithColumnsAndRows(int, int) const { notImplemented(); return IntSize(); }79 void QTextEdit::setText(String const&) { notImplemented(); }80 void QTextEdit::setColors(Color const&, Color const&) { notImplemented(); }81 void QTextEdit::setFont(WebCore::Font const&) { notImplemented(); }82 void QTextEdit::setWritingDirection(enum WebCore::TextDirection) { notImplemented(); }83 bool QTextEdit::checksDescendantsForFocus() const { notImplemented(); return false; }84 int QTextEdit::selectionStart() { notImplemented(); return 0; }85 bool QTextEdit::hasSelectedText() const { notImplemented(); return 0; }86 int QTextEdit::selectionEnd() { notImplemented(); return 0; }87 void QTextEdit::setScrollBarModes(ScrollBarMode, ScrollBarMode) { notImplemented(); }88 void QTextEdit::setReadOnly(bool) { notImplemented(); }89 void QTextEdit::selectAll() { notImplemented(); }90 void QTextEdit::setDisabled(bool) { notImplemented(); }91 void QTextEdit::setLineHeight(int) { notImplemented(); }92 void QTextEdit::setSelectionStart(int) { notImplemented(); }93 void QTextEdit::setCursorPosition(int, int) { notImplemented(); }94 String QTextEdit::text() const { notImplemented(); return String(); }95 void QTextEdit::setWordWrap(QTextEdit::WrapStyle) { notImplemented(); }96 void QTextEdit::setAlignment(HorizontalAlignment) { notImplemented(); }97 void QTextEdit::setSelectionEnd(int) { notImplemented(); }98 void QTextEdit::getCursorPosition(int*, int*) const { notImplemented(); }99 void QTextEdit::setSelectionRange(int, int) { notImplemented(); }100 101 Widget::FocusPolicy QComboBox::focusPolicy() const { notImplemented(); return NoFocus; }102 void QComboBox::populate() { notImplemented(); }75 TextBox::TextBox(Widget*) { notImplemented(); } 76 TextBox::~TextBox() { notImplemented(); } 77 String TextBox::textWithHardLineBreaks() const { notImplemented(); return String(); } 78 IntSize TextBox::sizeWithColumnsAndRows(int, int) const { notImplemented(); return IntSize(); } 79 void TextBox::setText(String const&) { notImplemented(); } 80 void TextBox::setColors(Color const&, Color const&) { notImplemented(); } 81 void TextBox::setFont(WebCore::Font const&) { notImplemented(); } 82 void TextBox::setWritingDirection(enum WebCore::TextDirection) { notImplemented(); } 83 bool TextBox::checksDescendantsForFocus() const { notImplemented(); return false; } 84 int TextBox::selectionStart() { notImplemented(); return 0; } 85 bool TextBox::hasSelectedText() const { notImplemented(); return 0; } 86 int TextBox::selectionEnd() { notImplemented(); return 0; } 87 void TextBox::setScrollBarModes(ScrollBarMode, ScrollBarMode) { notImplemented(); } 88 void TextBox::setReadOnly(bool) { notImplemented(); } 89 void TextBox::selectAll() { notImplemented(); } 90 void TextBox::setDisabled(bool) { notImplemented(); } 91 void TextBox::setLineHeight(int) { notImplemented(); } 92 void TextBox::setSelectionStart(int) { notImplemented(); } 93 void TextBox::setCursorPosition(int, int) { notImplemented(); } 94 String TextBox::text() const { notImplemented(); return String(); } 95 void TextBox::setWordWrap(TextBox::WrapStyle) { notImplemented(); } 96 void TextBox::setAlignment(HorizontalAlignment) { notImplemented(); } 97 void TextBox::setSelectionEnd(int) { notImplemented(); } 98 void TextBox::getCursorPosition(int*, int*) const { notImplemented(); } 99 void TextBox::setSelectionRange(int, int) { notImplemented(); } 100 101 Widget::FocusPolicy PopUpButton::focusPolicy() const { notImplemented(); return NoFocus; } 102 void PopUpButton::populate() { notImplemented(); } 103 103 104 104 void Widget::enableFlushDrawing() { notImplemented(); } … … 111 111 JavaAppletWidget::JavaAppletWidget(IntSize const&, Element*, WTF::HashMap<String, String> const&) { notImplemented(); } 112 112 113 void QLineEdit::selectAll() { notImplemented(); }114 void QLineEdit::addSearchResult() { notImplemented(); }115 int QLineEdit::selectionStart() const { notImplemented(); return 0; }116 bool QLineEdit::hasSelectedText() const { notImplemented(); return 0; }117 String QLineEdit::selectedText() const { notImplemented(); return String(); }118 void QLineEdit::setAutoSaveName(String const&) { notImplemented(); }119 bool QLineEdit::checksDescendantsForFocus() const { notImplemented(); return false; }120 void QLineEdit::setSelection(int, int) { notImplemented(); }121 void QLineEdit::setMaxResults(int) { notImplemented(); }122 bool QLineEdit::edited() const { notImplemented(); return 0; }123 124 QSlider::QSlider() { notImplemented(); }125 IntSize QSlider::sizeHint() const { notImplemented(); return IntSize(); }126 void QSlider::setValue(double) { notImplemented(); }127 void QSlider::setMaxValue(double) { notImplemented(); }128 void QSlider::setMinValue(double) { notImplemented(); }129 QSlider::~QSlider() { notImplemented(); }130 void QSlider::setFont(WebCore::Font const&) { notImplemented(); }131 double QSlider::value() const { notImplemented(); return 0; }132 133 void QListBox::setSelected(int, bool) { notImplemented(); }134 IntSize QListBox::sizeForNumberOfLines(int) const { notImplemented(); return IntSize(); }135 bool QListBox::isSelected(int) const { notImplemented(); return 0; }136 void QListBox::appendItem(DeprecatedString const&, KWQListBoxItemType, bool) { notImplemented(); }137 void QListBox::doneAppendingItems() { notImplemented(); }138 void QListBox::setWritingDirection(TextDirection) { notImplemented(); }139 void QListBox::setEnabled(bool) { notImplemented(); }140 void QListBox::clear() { notImplemented(); }141 bool QListBox::checksDescendantsForFocus() const { notImplemented(); return 0; }142 143 KWQFileButton::KWQFileButton(Frame*) { notImplemented(); }144 void KWQFileButton::click(bool) { notImplemented(); }145 IntSize KWQFileButton::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); }146 Widget::FocusPolicy KWQFileButton::focusPolicy() const { notImplemented(); return NoFocus; }147 WebCore::IntRect KWQFileButton::frameGeometry() const { notImplemented(); return IntRect(); }148 void KWQFileButton::setFilename(DeprecatedString const&) { notImplemented(); }149 int KWQFileButton::baselinePosition(int) const { notImplemented(); return 0; }150 void KWQFileButton::setFrameGeometry(WebCore::IntRect const&) { notImplemented(); }151 void KWQFileButton::setDisabled(bool) { notImplemented(); }152 153 Widget::FocusPolicy QTextEdit::focusPolicy() const { notImplemented(); return NoFocus; }154 Widget::FocusPolicy QSlider::focusPolicy() const { notImplemented(); return NoFocus; }155 Widget::FocusPolicy QListBox::focusPolicy() const { notImplemented(); return NoFocus; }156 Widget::FocusPolicy QLineEdit::focusPolicy() const { notImplemented(); return NoFocus; }113 void TextField::selectAll() { notImplemented(); } 114 void TextField::addSearchResult() { notImplemented(); } 115 int TextField::selectionStart() const { notImplemented(); return 0; } 116 bool TextField::hasSelectedText() const { notImplemented(); return 0; } 117 String TextField::selectedText() const { notImplemented(); return String(); } 118 void TextField::setAutoSaveName(String const&) { notImplemented(); } 119 bool TextField::checksDescendantsForFocus() const { notImplemented(); return false; } 120 void TextField::setSelection(int, int) { notImplemented(); } 121 void TextField::setMaxResults(int) { notImplemented(); } 122 bool TextField::edited() const { notImplemented(); return 0; } 123 124 Slider::Slider() { notImplemented(); } 125 IntSize Slider::sizeHint() const { notImplemented(); return IntSize(); } 126 void Slider::setValue(double) { notImplemented(); } 127 void Slider::setMaxValue(double) { notImplemented(); } 128 void Slider::setMinValue(double) { notImplemented(); } 129 Slider::~Slider() { notImplemented(); } 130 void Slider::setFont(WebCore::Font const&) { notImplemented(); } 131 double Slider::value() const { notImplemented(); return 0; } 132 133 void ListBox::setSelected(int, bool) { notImplemented(); } 134 IntSize ListBox::sizeForNumberOfLines(int) const { notImplemented(); return IntSize(); } 135 bool ListBox::isSelected(int) const { notImplemented(); return 0; } 136 void ListBox::appendItem(DeprecatedString const&, ListBoxItemType, bool) { notImplemented(); } 137 void ListBox::doneAppendingItems() { notImplemented(); } 138 void ListBox::setWritingDirection(TextDirection) { notImplemented(); } 139 void ListBox::setEnabled(bool) { notImplemented(); } 140 void ListBox::clear() { notImplemented(); } 141 bool ListBox::checksDescendantsForFocus() const { notImplemented(); return 0; } 142 143 FileButton::FileButton(Frame*) { notImplemented(); } 144 void FileButton::click(bool) { notImplemented(); } 145 IntSize FileButton::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); } 146 Widget::FocusPolicy FileButton::focusPolicy() const { notImplemented(); return NoFocus; } 147 WebCore::IntRect FileButton::frameGeometry() const { notImplemented(); return IntRect(); } 148 void FileButton::setFilename(DeprecatedString const&) { notImplemented(); } 149 int FileButton::baselinePosition(int) const { notImplemented(); return 0; } 150 void FileButton::setFrameGeometry(WebCore::IntRect const&) { notImplemented(); } 151 void FileButton::setDisabled(bool) { notImplemented(); } 152 153 Widget::FocusPolicy TextBox::focusPolicy() const { notImplemented(); return NoFocus; } 154 Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; } 155 Widget::FocusPolicy ListBox::focusPolicy() const { notImplemented(); return NoFocus; } 156 Widget::FocusPolicy TextField::focusPolicy() const { notImplemented(); return NoFocus; } 157 157 158 158 Cursor::Cursor(Image*) { notImplemented(); } … … 165 165 int WebCore::findNextWordFromIndex(UChar const*, int, int, bool) { notImplemented(); return 0; } 166 166 167 DeprecatedArray<char> KWQServeSynchronousRequest(Loader*, DocLoader*, TransferJob*, KURL&, DeprecatedString&) { notImplemented(); return 0; }167 DeprecatedArray<char> ServeSynchronousRequest(Loader*, DocLoader*, TransferJob*, KURL&, DeprecatedString&) { notImplemented(); return 0; } 168 168 169 169 void FrameGdk::focusWindow() { notImplemented(); } … … 261 261 int BrowserExtensionGdk::getHistoryLength() { return 0; } 262 262 263 bool KWQCheckIfReloading(WebCore::DocLoader*) { return false; }264 void KWQCheckCacheObjectStatus(DocLoader*, CachedObject*) { }263 bool CheckIfReloading(WebCore::DocLoader*) { return false; } 264 void CheckCacheObjectStatus(DocLoader*, CachedObject*) { } 265 265 266 266 void Widget::setEnabled(bool) { } … … 313 313 void Path::addEllipse(const FloatRect&) { } 314 314 315 QLineEdit::QLineEdit(QLineEdit::Type) { }316 QLineEdit::~QLineEdit() { }317 void QLineEdit::setFont(WebCore::Font const&) { }318 void QLineEdit::setAlignment(HorizontalAlignment) { }319 void QLineEdit::setWritingDirection(TextDirection) { }320 int QLineEdit::maxLength() const { return 0; }321 void QLineEdit::setMaxLength(int) { }322 String QLineEdit::text() const { return String(); }323 void QLineEdit::setText(String const&) { }324 int QLineEdit::cursorPosition() const { return 0; }325 void QLineEdit::setCursorPosition(int) { }326 void QLineEdit::setEdited(bool) { }327 void QLineEdit::setReadOnly(bool) { }328 void QLineEdit::setPlaceholderString(String const&) { }329 void QLineEdit::setColors(Color const&, Color const&) { }330 IntSize QLineEdit::sizeForCharacterWidth(int) const { return IntSize(); }331 int QLineEdit::baselinePosition(int) const { return 0; }332 void QLineEdit::setLiveSearch(bool) { }333 334 QComboBox::QComboBox() { }335 QComboBox::~QComboBox() { }336 void QComboBox::setFont(WebCore::Font const&) { }337 int QComboBox::baselinePosition(int) const { return 0; }338 void QComboBox::setWritingDirection(TextDirection) { }339 void QComboBox::clear() { }340 void QComboBox::appendItem(DeprecatedString const&, KWQListBoxItemType, bool) { }341 void QComboBox::setCurrentItem(int) { }342 IntSize QComboBox::sizeHint() const { return IntSize(); }343 IntRect QComboBox::frameGeometry() const { return IntRect(); }344 void QComboBox::setFrameGeometry(IntRect const&) { }345 346 QScrollBar::QScrollBar(ScrollBarOrientation) { }347 QScrollBar::~QScrollBar() { }348 void QScrollBar::setSteps(int, int) { }349 bool QScrollBar::scroll(KWQScrollDirection, KWQScrollGranularity, float) { return 0; }350 bool QScrollBar::setValue(int) { return 0; }351 void QScrollBar::setKnobProportion(int, int) { }352 353 QListBox::QListBox() { }354 QListBox::~QListBox() { }355 void QListBox::setSelectionMode(QListBox::SelectionMode) { }356 void QListBox::setFont(WebCore::Font const&) { }315 TextField::TextField(TextField::Type) { } 316 TextField::~TextField() { } 317 void TextField::setFont(WebCore::Font const&) { } 318 void TextField::setAlignment(HorizontalAlignment) { } 319 void TextField::setWritingDirection(TextDirection) { } 320 int TextField::maxLength() const { return 0; } 321 void TextField::setMaxLength(int) { } 322 String TextField::text() const { return String(); } 323 void TextField::setText(String const&) { } 324 int TextField::cursorPosition() const { return 0; } 325 void TextField::setCursorPosition(int) { } 326 void TextField::setEdited(bool) { } 327 void TextField::setReadOnly(bool) { } 328 void TextField::setPlaceholderString(String const&) { } 329 void TextField::setColors(Color const&, Color const&) { } 330 IntSize TextField::sizeForCharacterWidth(int) const { return IntSize(); } 331 int TextField::baselinePosition(int) const { return 0; } 332 void TextField::setLiveSearch(bool) { } 333 334 PopUpButton::PopUpButton() { } 335 PopUpButton::~PopUpButton() { } 336 void PopUpButton::setFont(WebCore::Font const&) { } 337 int PopUpButton::baselinePosition(int) const { return 0; } 338 void PopUpButton::setWritingDirection(TextDirection) { } 339 void PopUpButton::clear() { } 340 void PopUpButton::appendItem(DeprecatedString const&, ListBoxItemType, bool) { } 341 void PopUpButton::setCurrentItem(int) { } 342 IntSize PopUpButton::sizeHint() const { return IntSize(); } 343 IntRect PopUpButton::frameGeometry() const { return IntRect(); } 344 void PopUpButton::setFrameGeometry(IntRect const&) { } 345 346 ScrollBar::ScrollBar(ScrollBarOrientation) { } 347 ScrollBar::~ScrollBar() { } 348 void ScrollBar::setSteps(int, int) { } 349 bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { return 0; } 350 bool ScrollBar::setValue(int) { return 0; } 351 void ScrollBar::setKnobProportion(int, int) { } 352 353 ListBox::ListBox() { } 354 ListBox::~ListBox() { } 355 void ListBox::setSelectionMode(ListBox::SelectionMode) { } 356 void ListBox::setFont(WebCore::Font const&) { } 357 357 358 358 Color WebCore::focusRingColor() { return 0xFF0000FF; } -
trunk/WebCore/platform/mac/ClipboardMac.h
r14916 r15253 26 26 // An implementation of the clipboard class from IE that talks to the Cocoa Pasteboard 27 27 28 #ifndef KWQCLIPBOARD_H_29 #define KWQCLIPBOARD_H_28 #ifndef ClipboardMac_h 29 #define ClipboardMac_h 30 30 31 31 #include "Image.h" -
trunk/WebCore/platform/mac/ClipboardMac.mm
r14420 r15253 35 35 36 36 ClipboardMac::ClipboardMac(bool forDragging, NSPasteboard *pasteboard, AccessPolicy policy, FrameMac *frame) 37 : m_pasteboard( KWQRetain(pasteboard)), m_forDragging(forDragging), m_dragImage(0),37 : m_pasteboard(HardRetain(pasteboard)), m_forDragging(forDragging), m_dragImage(0), 38 38 m_policy(policy), m_dragStarted(false), m_frame(frame) 39 39 { … … 43 43 ClipboardMac::~ClipboardMac() 44 44 { 45 KWQRelease(m_pasteboard);45 HardRelease(m_pasteboard); 46 46 } 47 47 … … 87 87 CFRelease(UTIType); 88 88 if (pbType) 89 return KWQCFAutorelease(pbType);89 return HardAutorelease(pbType); 90 90 } 91 91 -
trunk/WebCore/platform/mac/CursorMac.mm
r15003 r15253 76 76 77 77 Cursor::Cursor(Image* image) 78 : m_impl( KWQRetainNSRelease(createCustomCursor(image)))78 : m_impl(HardRetainWithNSRelease(createCustomCursor(image))) 79 79 { 80 80 } 81 81 82 82 Cursor::Cursor(const Cursor& other) 83 : m_impl( KWQRetain(other.m_impl))83 : m_impl(HardRetain(other.m_impl)) 84 84 { 85 85 } … … 87 87 Cursor::~Cursor() 88 88 { 89 KWQRelease(m_impl);89 HardRelease(m_impl); 90 90 } 91 91 92 92 Cursor& Cursor::operator=(const Cursor& other) 93 93 { 94 KWQRetain(other.m_impl);95 KWQRelease(m_impl);94 HardRetain(other.m_impl); 95 HardRelease(m_impl); 96 96 m_impl = other.m_impl; 97 97 return *this; … … 99 99 100 100 Cursor::Cursor(NSCursor* c) 101 : m_impl( KWQRetain(c))101 : m_impl(HardRetain(c)) 102 102 { 103 103 } -
trunk/WebCore/platform/mac/DeprecatedStringMac.mm
r15251 r15253 47 47 } 48 48 CFStringGetCharacters(cfs, CFRangeMake (0, size), buffer); 49 setUnicode((const QChar *)buffer, (unsigned)size);49 setUnicode((const DeprecatedChar *)buffer, (unsigned)size); 50 50 if (buffer != fixedSizeBuffer) { 51 51 fastFree(buffer); -
trunk/WebCore/platform/mac/FontCacheMac.mm
r14514 r15253 33 33 #import "WebFontCache.h" 34 34 #import "WebCoreSystemInterface.h" 35 #import " KWQListBox.h"35 #import "ListBox.h" 36 36 #import "WebCoreStringTruncator.h" 37 37 -
trunk/WebCore/platform/mac/FontMac.mm
r14412 r15253 33 33 #import "FontFallbackList.h" 34 34 #import "GraphicsContext.h" 35 #import " KWQKHTMLSettings.h"35 #import "Settings.h" 36 36 37 37 #import "FontData.h" -
trunk/WebCore/platform/mac/FoundationExtras.h
r12953 r15253 28 28 // nil-checked CFRetain/CFRelease covers for Objective-C ids 29 29 30 // Use CFRetain, CFRelease, KWQRetain, or KWQRelease instead of30 // Use CFRetain, CFRelease, HardRetain, or HardRelease instead of 31 31 // -[NSObject retain] and -[NSObject release] if you want to store 32 32 // a pointer to an Objective-C object into memory that won't 33 33 // be scanned for GC, like a C++ object. 34 34 35 static inline id KWQRetain(id obj)35 static inline id HardRetain(id obj) 36 36 { 37 37 if (obj) CFRetain(obj); … … 39 39 } 40 40 41 static inline void KWQRelease(id obj)41 static inline void HardRelease(id obj) 42 42 { 43 43 if (obj) CFRelease(obj); … … 47 47 // this function first increments the CF retain count, and then 48 48 // decrements the NS retain count. This is needed to handle cases where 49 // -retain/-release aren't equivalent to CFRetain/ KWQRelease, such as49 // -retain/-release aren't equivalent to CFRetain/HardRelease, such as 50 50 // when GC is used. 51 51 52 // Use KWQRetainNSRelease after allocating and initializing a NSObject52 // Use HardRetainWithNSRelease after allocating and initializing a NSObject 53 53 // if you want to store a pointer to that object into memory that won't 54 54 // be scanned for GC, like a C++ object. 55 55 56 static inline id KWQRetainNSRelease(id obj)56 static inline id HardRetainWithNSRelease(id obj) 57 57 { 58 KWQRetain(obj);58 HardRetain(obj); 59 59 [obj release]; 60 60 return obj; 61 61 } 62 62 63 // Use KWQCFAutorelease to return an object made by a CoreFoundation63 // Use HardAutorelease to return an object made by a CoreFoundation 64 64 // "create" or "copy" function as an autoreleased and garbage collected 65 65 // object. CF objects need to be "made collectable" for autorelease to work 66 66 // properly under GC. 67 67 68 static inline id KWQCFAutorelease(CFTypeRef obj)68 static inline id HardAutorelease(CFTypeRef obj) 69 69 { 70 70 if (obj) -
trunk/WebCore/platform/mac/ImageMac.mm
r15095 r15253 190 190 return 0; 191 191 192 m_nsImage = KWQRetainNSRelease([[NSImage alloc] initWithData:(NSData*)data]);192 m_nsImage = HardRetainWithNSRelease([[NSImage alloc] initWithData:(NSData*)data]); 193 193 return m_nsImage; 194 194 } -
trunk/WebCore/platform/mac/KURLMac.mm
r14256 r15253 69 69 NSURL *KURL::getNSURL() const 70 70 { 71 return KWQCFAutorelease(createCFURL());71 return HardAutorelease(createCFURL()); 72 72 } -
trunk/WebCore/platform/mac/TransferJobMac.mm
r13821 r15253 33 33 #import "FrameMac.h" 34 34 #import "KURL.h" 35 #import " KWQFormData.h"36 #import " KWQLoader.h"37 #import " KWQLoader.h"38 #import " KWQResourceLoader.h"35 #import "FormDataMac.h" 36 #import "LoaderFunctions.h" 37 #import "LoaderFunctions.h" 38 #import "WebCoreResourceLoaderImp.h" 39 39 #import "Logging.h" 40 40 #import "WebCoreFrameBridge.h" … … 44 44 TransferJobInternal::~TransferJobInternal() 45 45 { 46 KWQRelease(response);47 KWQRelease(loader);46 HardRelease(response); 47 HardRelease(loader); 48 48 } 49 49 … … 71 71 72 72 BEGIN_BLOCK_OBJC_EXCEPTIONS; 73 KWQResourceLoader* resourceLoader = [[KWQResourceLoaderalloc] initWithJob:this];73 WebCoreResourceLoaderImp* resourceLoader = [[WebCoreResourceLoaderImp alloc] initWithJob:this]; 74 74 75 75 id <WebCoreResourceHandle> handle; … … 99 99 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)d->response; 100 100 NSDictionary *headers = [httpResponse allHeaderFields]; 101 d->responseHeaders = DeprecatedString::fromNSString( KWQHeaderStringFromDictionary(headers, [httpResponse statusCode]));101 d->responseHeaders = DeprecatedString::fromNSString(HeaderStringFromDictionary(headers, [httpResponse statusCode])); 102 102 } 103 103 d->assembledResponseHeaders = true; … … 115 115 } 116 116 117 void TransferJob::setLoader( KWQResourceLoader*loader)117 void TransferJob::setLoader(WebCoreResourceLoaderImp *loader) 118 118 { 119 KWQRetain(loader);120 KWQRelease(d->loader);119 HardRetain(loader); 120 HardRelease(d->loader); 121 121 d->loader = loader; 122 122 } … … 127 127 d->retrievedCharset = false; 128 128 d->response = response; 129 KWQRetain(d->response);129 HardRetain(d->response); 130 130 if (d->client) 131 131 d->client->receivedResponse(this, response); -
trunk/WebCore/platform/mac/WebCoreTextArea.h
r13852 r15253 27 27 28 28 @class WebCoreTextView; 29 class QTextEdit;29 class TextBox; 30 30 @protocol WebCoreWidgetHolder; 31 31 … … 33 33 { 34 34 WebCoreTextView *textView; 35 QTextEdit*widget;35 TextBox *widget; 36 36 NSFont *_font; 37 37 float _lineHeight; … … 45 45 } 46 46 47 - initWithQTextEdit:( QTextEdit*)w;47 - initWithQTextEdit:(TextBox *)w; 48 48 - (void)detachQTextEdit; 49 49 … … 77 77 - (NSSize)sizeWithColumns:(int)columns rows:(int)rows; 78 78 79 // paragraph-oriented functions for the benefit of QTextEdit79 // paragraph-oriented functions for the benefit of TextBox 80 80 - (void)setCursorPositionToIndex:(int)index inParagraph:(int)paragraph; 81 81 - (void)getCursorPositionAsIndex:(int *)index inParagraph:(int *)paragraph; -
trunk/WebCore/platform/mac/WebCoreTextArea.mm
r14336 r15253 31 31 #import "EventNames.h" 32 32 #import "Element.h" 33 #import " KWQKHTMLSettings.h"34 #import " KWQTextEdit.h"33 #import "Settings.h" 34 #import "TextBox.h" 35 35 #import "FrameMac.h" 36 36 #import "WebCoreFrameBridge.h" … … 62 62 63 63 @interface NSView (WebCoreTextArea) 64 - (void)_ KWQ_setKeyboardFocusRingNeedsDisplay;64 - (void)_webcore_setKeyboardFocusRingNeedsDisplay; 65 65 @end 66 66 67 67 @interface NSTextView (WebCoreTextArea) 68 - (NSParagraphStyle *)_ KWQ_typingParagraphStyle;69 - (void)_ KWQ_setTypingParagraphStyle:(NSParagraphStyle *)style;70 - (void)_ KWQ_updateTypingAttributes:(NSParagraphStyle *)style forLineHeight:(float)lineHeight font:(NSFont *)font;68 - (NSParagraphStyle *)_webcore_typingParagraphStyle; 69 - (void)_webcore_setTypingParagraphStyle:(NSParagraphStyle *)style; 70 - (void)_webcore_updateTypingAttributes:(NSParagraphStyle *)style forLineHeight:(float)lineHeight font:(NSFont *)font; 71 71 @end 72 72 73 73 @interface NSTextStorage (WebCoreTextArea) 74 - (void)_ KWQ_setBaseWritingDirection:(NSWritingDirection)direction;74 - (void)_webcore_setBaseWritingDirection:(NSWritingDirection)direction; 75 75 @end 76 76 … … 87 87 @interface WebCoreTextView : NSTextView <WebCoreWidgetHolder> 88 88 { 89 QTextEdit*widget;89 TextBox *widget; 90 90 BOOL disabled; 91 91 BOOL editableIfEnabled; … … 94 94 } 95 95 96 - (void)setWidget:( QTextEdit*)widget;96 - (void)setWidget:(TextBox *)widget; 97 97 98 98 - (void)setEnabled:(BOOL)flag; … … 186 186 } 187 187 188 - initWithQTextEdit:( QTextEdit*)w188 - initWithQTextEdit:(TextBox *)w 189 189 { 190 190 [self init]; … … 483 483 [textView setFont:font]; 484 484 485 NSParagraphStyle *style = [textView _ KWQ_typingParagraphStyle];485 NSParagraphStyle *style = [textView _webcore_typingParagraphStyle]; 486 486 if (_lineHeight) { 487 487 ASSERT(style); 488 [textView _ KWQ_updateTypingAttributes:style forLineHeight:_lineHeight font:_font];488 [textView _webcore_updateTypingAttributes:style forLineHeight:_lineHeight font:_font]; 489 489 } 490 490 } … … 533 533 NSMutableParagraphStyle *newStyle = [paraStyle mutableCopy]; 534 534 [newStyle setMinimumLineHeight:lineHeight]; 535 [textView _ KWQ_updateTypingAttributes:newStyle forLineHeight:lineHeight font:_font];535 [textView _webcore_updateTypingAttributes:newStyle forLineHeight:lineHeight font:_font]; 536 536 [newStyle release]; 537 537 } … … 564 564 { 565 565 return inNextValidKeyView && widget 566 ? FrameMac::nextKeyViewForWidget(widget, KWQSelectingNext)566 ? FrameMac::nextKeyViewForWidget(widget, SelectingNext) 567 567 : [super nextKeyView]; 568 568 } … … 571 571 { 572 572 return inNextValidKeyView && widget 573 ? FrameMac::nextKeyViewForWidget(widget, KWQSelectingPrevious)573 ? FrameMac::nextKeyViewForWidget(widget, SelectingPrevious) 574 574 : [super previousKeyView]; 575 575 } … … 728 728 } 729 729 730 - (void)_ KWQ_setKeyboardFocusRingNeedsDisplay730 - (void)_webcore_setKeyboardFocusRingNeedsDisplay 731 731 { 732 732 [self setKeyboardFocusRingNeedsDisplayInRect:[self bounds]]; … … 746 746 { 747 747 // Set the base writing direction for typing. 748 NSParagraphStyle *style = [textView _ KWQ_typingParagraphStyle];748 NSParagraphStyle *style = [textView _webcore_typingParagraphStyle]; 749 749 if ([style baseWritingDirection] != direction) { 750 750 NSMutableParagraphStyle *mutableStyle = [style mutableCopy]; 751 751 [mutableStyle setBaseWritingDirection:direction]; 752 [textView _ KWQ_setTypingParagraphStyle:mutableStyle];752 [textView _webcore_setTypingParagraphStyle:mutableStyle]; 753 753 [mutableStyle release]; 754 754 } 755 755 756 756 // Set the base writing direction for text. 757 [[textView textStorage] _ KWQ_setBaseWritingDirection:direction];757 [[textView textStorage] _webcore_setBaseWritingDirection:direction]; 758 758 [textView setNeedsDisplay:YES]; 759 759 } … … 877 877 878 878 879 - (void)setWidget:( QTextEdit*)w879 - (void)setWidget:(TextBox *)w 880 880 { 881 881 widget = w; … … 920 920 if (widget && widget->client() && !FrameMac::currentEventIsMouseDownInWidget(widget)) 921 921 widget->client()->scrollToVisible(widget); 922 [self _ KWQ_setKeyboardFocusRingNeedsDisplay];922 [self _webcore_setKeyboardFocusRingNeedsDisplay]; 923 923 if (widget && widget->client()) { 924 924 widget->client()->focusIn(widget); … … 939 939 940 940 if (resign) { 941 [self _ KWQ_setKeyboardFocusRingNeedsDisplay];941 [self _webcore_setKeyboardFocusRingNeedsDisplay]; 942 942 943 943 if (widget && widget->client()) { … … 1137 1137 } 1138 1138 1139 // Could get fancy and send this to QTextEdit, then RenderTextArea, but there's really no harm1139 // Could get fancy and send this to TextBox, then RenderTextArea, but there's really no harm 1140 1140 // in doing this directly right here. Could refactor some day if you disagree. 1141 1141 … … 1198 1198 @implementation NSView (WebCoreTextArea) 1199 1199 1200 - (void)_ KWQ_setKeyboardFocusRingNeedsDisplay1201 { 1202 [[self superview] _ KWQ_setKeyboardFocusRingNeedsDisplay];1200 - (void)_webcore_setKeyboardFocusRingNeedsDisplay 1201 { 1202 [[self superview] _webcore_setKeyboardFocusRingNeedsDisplay]; 1203 1203 } 1204 1204 … … 1207 1207 @implementation NSTextView (WebCoreTextArea) 1208 1208 1209 - (NSParagraphStyle *)_ KWQ_typingParagraphStyle1209 - (NSParagraphStyle *)_webcore_typingParagraphStyle 1210 1210 { 1211 1211 NSParagraphStyle *style = [[self typingAttributes] objectForKey:NSParagraphStyleAttributeName]; … … 1220 1220 } 1221 1221 1222 - (void)_ KWQ_setTypingParagraphStyle:(NSParagraphStyle *)style1222 - (void)_webcore_setTypingParagraphStyle:(NSParagraphStyle *)style 1223 1223 { 1224 1224 NSParagraphStyle *immutableStyle = [style copy]; … … 1236 1236 } 1237 1237 1238 - (void)_ KWQ_updateTypingAttributes:(NSParagraphStyle *)style forLineHeight:(float)lineHeight font:(NSFont *)font1238 - (void)_webcore_updateTypingAttributes:(NSParagraphStyle *)style forLineHeight:(float)lineHeight font:(NSFont *)font 1239 1239 { 1240 1240 NSDictionary *typingAttrs = [self typingAttributes]; … … 1260 1260 @implementation NSTextStorage (WebCoreTextArea) 1261 1261 1262 - (void)_ KWQ_setBaseWritingDirection:(NSWritingDirection)direction1262 - (void)_webcore_setBaseWritingDirection:(NSWritingDirection)direction 1263 1263 { 1264 1264 unsigned end = [self length]; -
trunk/WebCore/platform/mac/WebCoreTextField.h
r13852 r15253 26 26 #import <Cocoa/Cocoa.h> 27 27 28 class QLineEdit;29 @class KWQTextFieldFormatter;28 class TextField; 29 @class WebCoreTextFieldFormatter; 30 30 @protocol WebCoreWidgetHolder; 31 31 32 @interface KWQTextFieldController : NSObject32 @interface WebCoreTextFieldController : NSObject 33 33 { 34 34 @private 35 35 NSTextField* field; 36 QLineEdit*widget;37 KWQTextFieldFormatter *formatter;36 TextField *widget; 37 WebCoreTextFieldFormatter *formatter; 38 38 BOOL hasFocus; 39 39 BOOL hasFocusAndSelectionSet; … … 67 67 { 68 68 @private 69 KWQTextFieldController* controller;69 WebCoreTextFieldController* controller; 70 70 BOOL inNextValidKeyView; 71 71 } 72 72 73 - (id)initWithQLineEdit:( QLineEdit*)widget;74 - ( KWQTextFieldController *)controller;73 - (id)initWithQLineEdit:(TextField *)widget; 74 - (WebCoreTextFieldController *)controller; 75 75 76 76 @end 77 77 78 @interface KWQSecureTextField : NSSecureTextField <WebCoreWidgetHolder>78 @interface WebCoreSecureTextField : NSSecureTextField <WebCoreWidgetHolder> 79 79 { 80 80 @private 81 KWQTextFieldController* controller;81 WebCoreTextFieldController* controller; 82 82 BOOL inNextValidKeyView; 83 83 BOOL inSetFrameSize; 84 84 } 85 85 86 - (id)initWithQLineEdit:( QLineEdit*)widget;87 - ( KWQTextFieldController *)controller;86 - (id)initWithQLineEdit:(TextField *)widget; 87 - (WebCoreTextFieldController *)controller; 88 88 89 89 @end 90 90 91 @interface KWQSearchField : NSSearchField <WebCoreWidgetHolder>91 @interface WebCoreSearchField : NSSearchField <WebCoreWidgetHolder> 92 92 { 93 93 @private 94 KWQTextFieldController* controller;94 WebCoreTextFieldController* controller; 95 95 BOOL inNextValidKeyView; 96 96 } 97 97 98 - (id)initWithQLineEdit:( QLineEdit*)widget;99 - ( KWQTextFieldController *)controller;98 - (id)initWithQLineEdit:(TextField *)widget; 99 - (WebCoreTextFieldController *)controller; 100 100 101 101 @end -
trunk/WebCore/platform/mac/WebCoreTextField.mm
r14730 r15253 31 31 #import "FrameMac.h" 32 32 #import "HTMLNames.h" 33 #import " KWQKHTMLSettings.h"34 #import " KWQLineEdit.h"33 #import "Settings.h" 34 #import "TextField.h" 35 35 #import "WebCoreFrameBridge.h" 36 36 #import "WidgetClient.h" … … 41 41 42 42 @interface NSString (WebCoreTextField) 43 - (int)_ KWQ_numComposedCharacterSequences;44 - (NSString *)_ KWQ_truncateToNumComposedCharacterSequences:(int)num;43 - (int)_webcore_numComposedCharacterSequences; 44 - (NSString *)_webcore_truncateToNumComposedCharacterSequences:(int)num; 45 45 @end 46 46 47 47 @interface NSTextField (WebCoreTextField) 48 - (NSTextView *)_ KWQ_currentEditor;49 @end 50 51 @interface NSCell ( KWQTextFieldKnowsAppKitSecrets)48 - (NSTextView *)_webcore_currentEditor; 49 @end 50 51 @interface NSCell (WebCoreTextField) 52 52 - (NSMutableDictionary *)_textAttributes; 53 53 @end 54 54 55 @interface NSSearchFieldCell ( KWQTextFieldAppKitSecrets)55 @interface NSSearchFieldCell (WebCoreTextField) 56 56 - (void)_addStringToRecentSearches:(NSString *)string; 57 57 @end 58 58 59 @interface NSTextView ( KWQTextFieldAppKitSecrets)59 @interface NSTextView (WebCoreTextField) 60 60 - (void)setWantsNotificationForMarkedText:(BOOL)wantsNotification; 61 61 @end … … 65 65 @interface KWQTextFieldCell : NSTextFieldCell 66 66 @end 67 @interface KWQSecureTextFieldCell : NSSecureTextFieldCell68 @end 69 @interface KWQSearchFieldCell : NSSearchFieldCell70 @end 71 72 // KWQTextFieldFormatter enforces a maximum length.73 @interface KWQTextFieldFormatter : NSFormatter67 @interface WebCoreSecureTextFieldCell : NSSecureTextFieldCell 68 @end 69 @interface WebCoreSearchFieldCell : NSSearchFieldCell 70 @end 71 72 // WebCoreTextFieldFormatter enforces a maximum length. 73 @interface WebCoreTextFieldFormatter : NSFormatter 74 74 { 75 75 int maxLength; … … 79 79 @end 80 80 81 @interface KWQTextFieldController (KWQInternal)82 - (id)initWithTextField:(NSTextField *)f QLineEdit:(QLineEdit*)w;81 @interface WebCoreTextFieldController (WebCoreInternal) 82 - (id)initWithTextField:(NSTextField *)f TextField:(TextField *)w; 83 83 - (Widget *)widget; 84 84 - (void)textChanged; … … 94 94 @end 95 95 96 @implementation KWQTextFieldController97 98 - (id)initWithTextField:(NSTextField *)f QLineEdit:(QLineEdit*)w96 @implementation WebCoreTextFieldController 97 98 - (id)initWithTextField:(NSTextField *)f TextField:(TextField *)w 99 99 { 100 100 self = [self init]; … … 105 105 widget = w; 106 106 field = f; 107 formatter = [[ KWQTextFieldFormatter alloc] init];107 formatter = [[WebCoreTextFieldFormatter alloc] init]; 108 108 lastSelectedRange.location = NSNotFound; 109 109 [[field cell] setScrollable:YES]; … … 111 111 [field setDelegate:self]; 112 112 113 if (widget->type() == QLineEdit::Search) {113 if (widget->type() == TextField::Search) { 114 114 [field setTarget:self]; 115 115 [field setAction:@selector(action:)]; … … 146 146 { 147 147 NSString *oldValue = [self string]; 148 if ([oldValue _ KWQ_numComposedCharacterSequences] > len) {149 [field setStringValue:[oldValue _ KWQ_truncateToNumComposedCharacterSequences:len]];148 if ([oldValue _webcore_numComposedCharacterSequences] > len) { 149 [field setStringValue:[oldValue _webcore_truncateToNumComposedCharacterSequences:len]]; 150 150 } 151 151 [formatter setMaximumLength:len]; … … 167 167 } 168 168 169 static DOMHTMLInputElement* inputElement( QLineEdit* widget)169 static DOMHTMLInputElement* inputElement(TextField* widget) 170 170 { 171 171 if (!widget) … … 185 185 return; 186 186 187 [[field _ KWQ_currentEditor] setWantsNotificationForMarkedText:YES];187 [[field _webcore_currentEditor] setWantsNotificationForMarkedText:YES]; 188 188 189 189 if (DOMHTMLInputElement* input = inputElement(widget)) … … 211 211 return; 212 212 213 if (![[field _ KWQ_currentEditor] hasMarkedText])213 if (![[field _webcore_currentEditor] hasMarkedText]) 214 214 if (DOMHTMLInputElement* input = inputElement(widget)) 215 215 [FrameMac::bridgeForWidget(widget) textDidChangeInTextField:input]; … … 355 355 - (NSRange)selectedRange 356 356 { 357 NSText *editor = [field _ KWQ_currentEditor];357 NSText *editor = [field _webcore_currentEditor]; 358 358 return editor ? [editor selectedRange] : lastSelectedRange; 359 359 } … … 364 364 // Even though we don't see this in testing, we really don't want 365 365 // an exception in this case, so we protect ourselves. 366 NSText *editor = [field _ KWQ_currentEditor];366 NSText *editor = [field _webcore_currentEditor]; 367 367 if (editor) { // if we have no focus, we don't have a current editor 368 368 unsigned len = [[editor string] length]; … … 429 429 // the focus ring. So we call endEditing: manually if we detect this inconsistency, 430 430 // and the correct our internal impression of the focus state. 431 if ([field _ KWQ_currentEditor] == nil && [field currentEditor] != nil) {431 if ([field _webcore_currentEditor] == nil && [field currentEditor] != nil) { 432 432 [[field cell] endEditing:[field currentEditor]]; 433 433 [self setHasFocus:NO]; … … 459 459 // Calling stringValue can have a side effect of ending International inline input. 460 460 // So don't call it unless there's no editor. 461 NSText *editor = [field _ KWQ_currentEditor];461 NSText *editor = [field _webcore_currentEditor]; 462 462 if (editor == nil) { 463 463 return [field stringValue]; … … 488 488 if (newline.location != NSNotFound) 489 489 result = [result substringToIndex:newline.location]; 490 return [result _ KWQ_truncateToNumComposedCharacterSequences:[formatter maximumLength]];490 return [result _webcore_truncateToNumComposedCharacterSequences:[formatter maximumLength]]; 491 491 } 492 492 … … 506 506 } 507 507 508 - (id)initWithQLineEdit:( QLineEdit*)w508 - (id)initWithQLineEdit:(TextField *)w 509 509 { 510 510 self = [self init]; 511 511 if (!self) 512 512 return nil; 513 controller = [[ KWQTextFieldController alloc] initWithTextField:self QLineEdit:w];513 controller = [[WebCoreTextFieldController alloc] initWithTextField:self TextField:w]; 514 514 return self; 515 515 } … … 521 521 } 522 522 523 - ( KWQTextFieldController *)controller523 - (WebCoreTextFieldController *)controller 524 524 { 525 525 return controller; … … 558 558 if (!widget) 559 559 return [super nextKeyView]; 560 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingNext);560 return FrameMac::nextKeyViewForWidget(widget, SelectingNext); 561 561 } 562 562 … … 568 568 if (!widget) 569 569 return [super previousKeyView]; 570 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingPrevious);570 return FrameMac::nextKeyViewForWidget(widget, SelectingPrevious); 571 571 } 572 572 … … 679 679 680 680 681 @implementation KWQSecureTextField681 @implementation WebCoreSecureTextField 682 682 683 683 + (Class)cellClass 684 684 { 685 return [ KWQSecureTextFieldCell class];686 } 687 688 - (id)initWithQLineEdit:( QLineEdit*)w685 return [WebCoreSecureTextFieldCell class]; 686 } 687 688 - (id)initWithQLineEdit:(TextField *)w 689 689 { 690 690 self = [self init]; 691 691 if (!self) 692 692 return nil; 693 controller = [[ KWQTextFieldController alloc] initWithTextField:self QLineEdit:w];693 controller = [[WebCoreTextFieldController alloc] initWithTextField:self TextField:w]; 694 694 return self; 695 695 } … … 701 701 } 702 702 703 - ( KWQTextFieldController *)controller703 - (WebCoreTextFieldController *)controller 704 704 { 705 705 return controller; … … 724 724 if (!widget) 725 725 return [super nextKeyView]; 726 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingNext);726 return FrameMac::nextKeyViewForWidget(widget, SelectingNext); 727 727 } 728 728 … … 734 734 if (!widget) 735 735 return [super previousKeyView]; 736 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingPrevious);736 return FrameMac::nextKeyViewForWidget(widget, SelectingPrevious); 737 737 } 738 738 … … 816 816 // unwanted onBlur events and wreak havoc in other ways as well by setting the focus 817 817 // back to the window. 818 NSText *editor = [self _ KWQ_currentEditor];818 NSText *editor = [self _webcore_currentEditor]; 819 819 if (editor) { 820 820 [editor setSelectedRange:NSMakeRange(0, [[editor string] length])]; … … 859 859 @end 860 860 861 @implementation KWQSecureTextFieldCell861 @implementation WebCoreSecureTextFieldCell 862 862 863 863 - (void)editWithFrame:(NSRect)frame inView:(NSView *)view editor:(NSText *)editor delegate:(id)delegate event:(NSEvent *)event 864 864 { 865 865 [super editWithFrame:frame inView:view editor:editor delegate:delegate event:event]; 866 ASSERT([delegate isKindOfClass:[ KWQSecureTextField class]]);867 [[( KWQSecureTextField *)delegate controller] setHasFocus:YES];866 ASSERT([delegate isKindOfClass:[WebCoreSecureTextField class]]); 867 [[(WebCoreSecureTextField *)delegate controller] setHasFocus:YES]; 868 868 } 869 869 … … 871 871 { 872 872 [super selectWithFrame:frame inView:view editor:editor delegate:delegate start:start length:length]; 873 ASSERT([delegate isKindOfClass:[ KWQSecureTextField class]]);874 [[( KWQSecureTextField *)delegate controller] setHasFocus:YES];873 ASSERT([delegate isKindOfClass:[WebCoreSecureTextField class]]); 874 [[(WebCoreSecureTextField *)delegate controller] setHasFocus:YES]; 875 875 } 876 876 877 877 - (NSMutableDictionary *)_textAttributes 878 878 { 879 ASSERT([[self controlView] isKindOfClass:[ KWQSecureTextField class]]);879 ASSERT([[self controlView] isKindOfClass:[WebCoreSecureTextField class]]); 880 880 NSMutableDictionary* attributes = [super _textAttributes]; 881 [[( KWQSecureTextField*)[self controlView] controller] updateTextAttributes:attributes];881 [[(WebCoreSecureTextField*)[self controlView] controller] updateTextAttributes:attributes]; 882 882 return attributes; 883 883 } … … 892 892 @end 893 893 894 @implementation KWQSearchField894 @implementation WebCoreSearchField 895 895 896 896 + (Class)cellClass 897 897 { 898 return [ KWQSearchFieldCell class];899 } 900 901 - (id)initWithQLineEdit:( QLineEdit*)w898 return [WebCoreSearchFieldCell class]; 899 } 900 901 - (id)initWithQLineEdit:(TextField *)w 902 902 { 903 903 self = [self init]; 904 904 if (!self) 905 905 return nil; 906 controller = [[ KWQTextFieldController alloc] initWithTextField:self QLineEdit:w];906 controller = [[WebCoreTextFieldController alloc] initWithTextField:self TextField:w]; 907 907 return self; 908 908 } … … 914 914 } 915 915 916 - ( KWQTextFieldController *)controller916 - (WebCoreTextFieldController *)controller 917 917 { 918 918 return controller; … … 951 951 if (!widget) 952 952 return [super nextKeyView]; 953 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingNext);953 return FrameMac::nextKeyViewForWidget(widget, SelectingNext); 954 954 } 955 955 … … 961 961 if (!widget) 962 962 return [super previousKeyView]; 963 return FrameMac::nextKeyViewForWidget(widget, KWQSelectingPrevious);963 return FrameMac::nextKeyViewForWidget(widget, SelectingPrevious); 964 964 } 965 965 … … 1038 1038 @end 1039 1039 1040 @implementation KWQSearchFieldCell1040 @implementation WebCoreSearchFieldCell 1041 1041 1042 1042 - (void)editWithFrame:(NSRect)frame inView:(NSView *)view editor:(NSText *)editor delegate:(id)delegate event:(NSEvent *)event 1043 1043 { 1044 1044 [super editWithFrame:frame inView:view editor:editor delegate:delegate event:event]; 1045 ASSERT([delegate isKindOfClass:[ KWQSearchField class]]);1046 [[( KWQSearchField *)delegate controller] setHasFocus:YES];1045 ASSERT([delegate isKindOfClass:[WebCoreSearchField class]]); 1046 [[(WebCoreSearchField *)delegate controller] setHasFocus:YES]; 1047 1047 } 1048 1048 … … 1050 1050 { 1051 1051 [super selectWithFrame:frame inView:view editor:editor delegate:delegate start:start length:length]; 1052 ASSERT([delegate isKindOfClass:[ KWQSearchField class]]);1053 [[( KWQSearchField *)delegate controller] setHasFocus:YES];1052 ASSERT([delegate isKindOfClass:[WebCoreSearchField class]]); 1053 [[(WebCoreSearchField *)delegate controller] setHasFocus:YES]; 1054 1054 } 1055 1055 1056 1056 - (void)_addStringToRecentSearches:(NSString *)string 1057 1057 { 1058 ASSERT([[self controlView] isKindOfClass:[ KWQSearchField class]]);1059 Frame *frame = Frame::frameForWidget([( KWQSearchField*)[self controlView] widget]);1058 ASSERT([[self controlView] isKindOfClass:[WebCoreSearchField class]]); 1059 Frame *frame = Frame::frameForWidget([(WebCoreSearchField*)[self controlView] widget]); 1060 1060 if (frame && frame->settings()->privateBrowsingEnabled()) 1061 1061 return; … … 1066 1066 - (NSMutableDictionary *)_textAttributes 1067 1067 { 1068 ASSERT([[self controlView] isKindOfClass:[ KWQSearchField class]]);1068 ASSERT([[self controlView] isKindOfClass:[WebCoreSearchField class]]); 1069 1069 NSMutableDictionary* attributes = [super _textAttributes]; 1070 [[( KWQSearchField*)[self controlView] controller] updateTextAttributes:attributes];1070 [[(WebCoreSearchField*)[self controlView] controller] updateTextAttributes:attributes]; 1071 1071 return attributes; 1072 1072 } … … 1081 1081 @end 1082 1082 1083 @implementation KWQTextFieldFormatter1083 @implementation WebCoreTextFieldFormatter 1084 1084 1085 1085 - init … … 1118 1118 NSString *p = *partialStringPtr; 1119 1119 1120 int length = [p _ KWQ_numComposedCharacterSequences];1120 int length = [p _webcore_numComposedCharacterSequences]; 1121 1121 if (length <= maxLength) { 1122 1122 return YES; … … 1148 1148 @implementation NSString (WebCoreTextField) 1149 1149 1150 - (int)_ KWQ_numComposedCharacterSequences1150 - (int)_webcore_numComposedCharacterSequences 1151 1151 { 1152 1152 unsigned i = 0; … … 1160 1160 } 1161 1161 1162 - (NSString *)_ KWQ_truncateToNumComposedCharacterSequences:(int)num1162 - (NSString *)_webcore_truncateToNumComposedCharacterSequences:(int)num 1163 1163 { 1164 1164 unsigned i = 0; … … 1182 1182 // The currentEditor method does not work for secure text fields. 1183 1183 // This works around that limitation. 1184 - (NSTextView *)_ KWQ_currentEditor1184 - (NSTextView *)_webcore_currentEditor 1185 1185 { 1186 1186 NSResponder *firstResponder = [[self window] firstResponder]; -
trunk/WebCore/platform/mac/WidgetMac.mm
r14711 r15253 66 66 Widget::Widget(NSView* view) : data(new WidgetPrivate) 67 67 { 68 data->view = KWQRetain(view);68 data->view = HardRetain(view); 69 69 data->client = 0; 70 70 data->visible = true; … … 76 76 { 77 77 BEGIN_BLOCK_OBJC_EXCEPTIONS; 78 KWQRelease(data->view);78 HardRelease(data->view); 79 79 END_BLOCK_OBJC_EXCEPTIONS; 80 80 … … 290 290 { 291 291 BEGIN_BLOCK_OBJC_EXCEPTIONS; 292 KWQRetain(view);293 KWQRelease(data->view);292 HardRetain(view); 293 HardRelease(data->view); 294 294 data->view = view; 295 295 END_BLOCK_OBJC_EXCEPTIONS; -
trunk/WebCore/platform/win/TemporaryLinkStubs.cpp
r15179 r15253 31 31 #include <stdlib.h> 32 32 #include "Node.h" 33 #include " KWQLineEdit.h"33 #include "TextField.h" 34 34 #include "Font.h" 35 #include " KWQFileButton.h"36 #include " KWQTextEdit.h"37 #include " KWQComboBox.h"35 #include "FileButton.h" 36 #include "TextBox.h" 37 #include "PopUpButton.h" 38 38 #include "IntPoint.h" 39 39 #include "Widget.h" 40 40 #include "GraphicsContext.h" 41 #include " KWQSlider.h"41 #include "WebCoreSlider.h" 42 42 #include "Cursor.h" 43 43 #include "loader.h" 44 44 #include "FrameView.h" 45 45 #include "KURL.h" 46 #include " KWQScrollBar.h"46 #include "WebCoreScrollBar.h" 47 47 #include "JavaAppletWidget.h" 48 #include " KWQScrollBar.h"48 #include "WebCoreScrollBar.h" 49 49 #include "Path.h" 50 50 #include "PlatformMouseEvent.h" … … 71 71 bool FrameView::isFrameView() const { notImplemented(); return 0; } 72 72 73 QTextEdit::QTextEdit(Widget*) { notImplemented(); }74 QTextEdit::~QTextEdit() { notImplemented(); }75 String QTextEdit::textWithHardLineBreaks() const { notImplemented(); return String(); }76 IntSize QTextEdit::sizeWithColumnsAndRows(int,int) const { notImplemented(); return IntSize(); }77 void QTextEdit::setText(String const&) { notImplemented(); }78 void QTextEdit::setColors(Color const&,Color const&) { notImplemented(); }79 void QTextEdit::setFont(WebCore::Font const&) { notImplemented(); }80 void QTextEdit::setWritingDirection(enum WebCore::TextDirection) { notImplemented(); }81 bool QTextEdit::checksDescendantsForFocus() const { notImplemented(); return false; }82 int QTextEdit::selectionStart() { notImplemented(); return 0; }83 bool QTextEdit::hasSelectedText() const { notImplemented(); return 0; }84 int QTextEdit::selectionEnd() { notImplemented(); return 0; }85 void QTextEdit::setScrollBarModes(ScrollBarMode,ScrollBarMode) { notImplemented(); }86 void QTextEdit::setReadOnly(bool) { notImplemented(); }87 void QTextEdit::selectAll() { notImplemented(); }88 void QTextEdit::setDisabled(bool) { notImplemented(); }89 void QTextEdit::setLineHeight(int) { notImplemented(); }90 void QTextEdit::setSelectionStart(int) { notImplemented(); }91 void QTextEdit::setCursorPosition(int,int) { notImplemented(); }92 String QTextEdit::text() const { notImplemented(); return String(); }93 void QTextEdit::setWordWrap(QTextEdit::WrapStyle) { notImplemented(); }94 void QTextEdit::setAlignment(HorizontalAlignment) { notImplemented(); }95 void QTextEdit::setSelectionEnd(int) { notImplemented(); }96 void QTextEdit::getCursorPosition(int*,int*) const { notImplemented(); }97 void QTextEdit::setSelectionRange(int,int) { notImplemented(); }98 99 Widget::FocusPolicy QComboBox::focusPolicy() const { notImplemented(); return NoFocus; }100 void QComboBox::populate() { notImplemented(); }73 TextBox::TextBox(Widget*) { notImplemented(); } 74 TextBox::~TextBox() { notImplemented(); } 75 String TextBox::textWithHardLineBreaks() const { notImplemented(); return String(); } 76 IntSize TextBox::sizeWithColumnsAndRows(int,int) const { notImplemented(); return IntSize(); } 77 void TextBox::setText(String const&) { notImplemented(); } 78 void TextBox::setColors(Color const&,Color const&) { notImplemented(); } 79 void TextBox::setFont(WebCore::Font const&) { notImplemented(); } 80 void TextBox::setWritingDirection(enum WebCore::TextDirection) { notImplemented(); } 81 bool TextBox::checksDescendantsForFocus() const { notImplemented(); return false; } 82 int TextBox::selectionStart() { notImplemented(); return 0; } 83 bool TextBox::hasSelectedText() const { notImplemented(); return 0; } 84 int TextBox::selectionEnd() { notImplemented(); return 0; } 85 void TextBox::setScrollBarModes(ScrollBarMode,ScrollBarMode) { notImplemented(); } 86 void TextBox::setReadOnly(bool) { notImplemented(); } 87 void TextBox::selectAll() { notImplemented(); } 88 void TextBox::setDisabled(bool) { notImplemented(); } 89 void TextBox::setLineHeight(int) { notImplemented(); } 90 void TextBox::setSelectionStart(int) { notImplemented(); } 91 void TextBox::setCursorPosition(int,int) { notImplemented(); } 92 String TextBox::text() const { notImplemented(); return String(); } 93 void TextBox::setWordWrap(TextBox::WrapStyle) { notImplemented(); } 94 void TextBox::setAlignment(HorizontalAlignment) { notImplemented(); } 95 void TextBox::setSelectionEnd(int) { notImplemented(); } 96 void TextBox::getCursorPosition(int*,int*) const { notImplemented(); } 97 void TextBox::setSelectionRange(int,int) { notImplemented(); } 98 99 Widget::FocusPolicy PopUpButton::focusPolicy() const { notImplemented(); return NoFocus; } 100 void PopUpButton::populate() { notImplemented(); } 101 101 102 102 void Widget::enableFlushDrawing() { notImplemented(); } … … 109 109 JavaAppletWidget::JavaAppletWidget(IntSize const&,Element*,WTF::HashMap<String,String> const&) { notImplemented(); } 110 110 111 void QLineEdit::selectAll() { notImplemented(); }112 void QLineEdit::addSearchResult() { notImplemented(); }113 int QLineEdit::selectionStart() const { notImplemented(); return 0; }114 bool QLineEdit::hasSelectedText() const { notImplemented(); return 0; }115 String QLineEdit::selectedText() const { notImplemented(); return String(); }116 void QLineEdit::setAutoSaveName(String const&) { notImplemented(); }117 bool QLineEdit::checksDescendantsForFocus() const { notImplemented(); return false; }118 void QLineEdit::setSelection(int,int) { notImplemented(); }119 void QLineEdit::setMaxResults(int) { notImplemented(); }120 bool QLineEdit::edited() const { notImplemented(); return 0; }121 122 QSlider::QSlider() { notImplemented(); }123 IntSize QSlider::sizeHint() const { notImplemented(); return IntSize(); }124 void QSlider::setValue(double) { notImplemented(); }125 void QSlider::setMaxValue(double) { notImplemented(); }126 void QSlider::setMinValue(double) { notImplemented(); }127 QSlider::~QSlider() { notImplemented(); }128 void QSlider::setFont(WebCore::Font const&) { notImplemented(); }129 double QSlider::value() const { notImplemented(); return 0; }130 131 void QListBox::setSelected(int,bool) { notImplemented(); }132 IntSize QListBox::sizeForNumberOfLines(int) const { notImplemented(); return IntSize(); }133 bool QListBox::isSelected(int) const { notImplemented(); return 0; }134 void QListBox::appendItem(DeprecatedString const&,KWQListBoxItemType,bool) { notImplemented(); }135 void QListBox::doneAppendingItems() { notImplemented(); }136 void QListBox::setWritingDirection(TextDirection) { notImplemented(); }137 void QListBox::setEnabled(bool) { notImplemented(); }138 void QListBox::clear() { notImplemented(); }139 bool QListBox::checksDescendantsForFocus() const { notImplemented(); return 0; }140 141 KWQFileButton::KWQFileButton(Frame*) { notImplemented(); }142 void KWQFileButton::click(bool) { notImplemented(); }143 IntSize KWQFileButton::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); }144 Widget::FocusPolicy KWQFileButton::focusPolicy() const { notImplemented(); return NoFocus; }145 WebCore::IntRect KWQFileButton::frameGeometry() const { notImplemented(); return IntRect(); }146 void KWQFileButton::setFilename(DeprecatedString const&) { notImplemented(); }147 int KWQFileButton::baselinePosition(int) const { notImplemented(); return 0; }148 void KWQFileButton::setFrameGeometry(WebCore::IntRect const&) { notImplemented(); }149 void KWQFileButton::setDisabled(bool) { notImplemented(); }150 151 Widget::FocusPolicy QTextEdit::focusPolicy() const { notImplemented(); return NoFocus; }152 Widget::FocusPolicy QSlider::focusPolicy() const { notImplemented(); return NoFocus; }153 Widget::FocusPolicy QListBox::focusPolicy() const { notImplemented(); return NoFocus; }154 Widget::FocusPolicy QLineEdit::focusPolicy() const { notImplemented(); return NoFocus; }111 void TextField::selectAll() { notImplemented(); } 112 void TextField::addSearchResult() { notImplemented(); } 113 int TextField::selectionStart() const { notImplemented(); return 0; } 114 bool TextField::hasSelectedText() const { notImplemented(); return 0; } 115 String TextField::selectedText() const { notImplemented(); return String(); } 116 void TextField::setAutoSaveName(String const&) { notImplemented(); } 117 bool TextField::checksDescendantsForFocus() const { notImplemented(); return false; } 118 void TextField::setSelection(int,int) { notImplemented(); } 119 void TextField::setMaxResults(int) { notImplemented(); } 120 bool TextField::edited() const { notImplemented(); return 0; } 121 122 Slider::Slider() { notImplemented(); } 123 IntSize Slider::sizeHint() const { notImplemented(); return IntSize(); } 124 void Slider::setValue(double) { notImplemented(); } 125 void Slider::setMaxValue(double) { notImplemented(); } 126 void Slider::setMinValue(double) { notImplemented(); } 127 Slider::~Slider() { notImplemented(); } 128 void Slider::setFont(WebCore::Font const&) { notImplemented(); } 129 double Slider::value() const { notImplemented(); return 0; } 130 131 void ListBox::setSelected(int,bool) { notImplemented(); } 132 IntSize ListBox::sizeForNumberOfLines(int) const { notImplemented(); return IntSize(); } 133 bool ListBox::isSelected(int) const { notImplemented(); return 0; } 134 void ListBox::appendItem(DeprecatedString const&,ListBoxItemType,bool) { notImplemented(); } 135 void ListBox::doneAppendingItems() { notImplemented(); } 136 void ListBox::setWritingDirection(TextDirection) { notImplemented(); } 137 void ListBox::setEnabled(bool) { notImplemented(); } 138 void ListBox::clear() { notImplemented(); } 139 bool ListBox::checksDescendantsForFocus() const { notImplemented(); return 0; } 140 141 FileButton::FileButton(Frame*) { notImplemented(); } 142 void FileButton::click(bool) { notImplemented(); } 143 IntSize FileButton::sizeForCharacterWidth(int) const { notImplemented(); return IntSize(); } 144 Widget::FocusPolicy FileButton::focusPolicy() const { notImplemented(); return NoFocus; } 145 WebCore::IntRect FileButton::frameGeometry() const { notImplemented(); return IntRect(); } 146 void FileButton::setFilename(DeprecatedString const&) { notImplemented(); } 147 int FileButton::baselinePosition(int) const { notImplemented(); return 0; } 148 void FileButton::setFrameGeometry(WebCore::IntRect const&) { notImplemented(); } 149 void FileButton::setDisabled(bool) { notImplemented(); } 150 151 Widget::FocusPolicy TextBox::focusPolicy() const { notImplemented(); return NoFocus; } 152 Widget::FocusPolicy Slider::focusPolicy() const { notImplemented(); return NoFocus; } 153 Widget::FocusPolicy ListBox::focusPolicy() const { notImplemented(); return NoFocus; } 154 Widget::FocusPolicy TextField::focusPolicy() const { notImplemented(); return NoFocus; } 155 155 156 156 Cursor::Cursor(Image*) { notImplemented(); } … … 163 163 int WebCore::findNextWordFromIndex(UChar const*,int,int,bool) { notImplemented(); return 0; } 164 164 165 Vector<char> KWQServeSynchronousRequest(Loader*,DocLoader*,TransferJob*,KURL&,DeprecatedString&) { notImplemented(); return Vector<char>(); }165 Vector<char> ServeSynchronousRequest(Loader*,DocLoader*,TransferJob*,KURL&,DeprecatedString&) { notImplemented(); return Vector<char>(); } 166 166 167 167 void FrameWin::focusWindow() { notImplemented(); } … … 264 264 int BrowserExtensionWin::getHistoryLength() { return 0; } 265 265 266 bool KWQCheckIfReloading(WebCore::DocLoader*) { return false; }267 void KWQCheckCacheObjectStatus(DocLoader*, CachedObject*) { }266 bool CheckIfReloading(WebCore::DocLoader*) { return false; } 267 void CheckCacheObjectStatus(DocLoader*, CachedObject*) { } 268 268 269 269 void Widget::setEnabled(bool) { } … … 311 311 void Path::addEllipse(const FloatRect&) { } 312 312 313 QLineEdit::QLineEdit(QLineEdit::Type) { }314 QLineEdit::~QLineEdit() { }315 void QLineEdit::setFont(WebCore::Font const&) { }316 void QLineEdit::setAlignment(HorizontalAlignment) { }317 void QLineEdit::setWritingDirection(TextDirection) { }318 int QLineEdit::maxLength() const { return 0; }319 void QLineEdit::setMaxLength(int) { }320 String QLineEdit::text() const { return String(); }321 void QLineEdit::setText(String const&) { }322 int QLineEdit::cursorPosition() const { return 0; }323 void QLineEdit::setCursorPosition(int) { }324 void QLineEdit::setEdited(bool) { }325 void QLineEdit::setReadOnly(bool) { }326 void QLineEdit::setPlaceholderString(String const&) { }327 void QLineEdit::setColors(Color const&,Color const&) { }328 IntSize QLineEdit::sizeForCharacterWidth(int) const { return IntSize(); }329 int QLineEdit::baselinePosition(int) const { return 0; }330 void QLineEdit::setLiveSearch(bool) { }331 332 QComboBox::QComboBox() { }333 QComboBox::~QComboBox() { }334 void QComboBox::setFont(WebCore::Font const&) { }335 int QComboBox::baselinePosition(int) const { return 0; }336 void QComboBox::setWritingDirection(TextDirection) { }337 void QComboBox::clear() { }338 void QComboBox::appendItem(DeprecatedString const&,KWQListBoxItemType,bool) { }339 void QComboBox::setCurrentItem(int) { }340 IntSize QComboBox::sizeHint() const { return IntSize(); }341 IntRect QComboBox::frameGeometry() const { return IntRect(); }342 void QComboBox::setFrameGeometry(IntRect const&) { }343 344 QScrollBar::QScrollBar(ScrollBarOrientation) { }345 QScrollBar::~QScrollBar() { }346 void QScrollBar::setSteps(int, int) { }347 bool QScrollBar::scroll(KWQScrollDirection, KWQScrollGranularity, float) { return 0; }348 bool QScrollBar::setValue(int) { return 0; }349 void QScrollBar::setKnobProportion(int, int) { }350 351 QListBox::QListBox() { }352 QListBox::~QListBox() { }353 void QListBox::setSelectionMode(QListBox::SelectionMode) { }354 void QListBox::setFont(WebCore::Font const&) { }313 TextField::TextField(TextField::Type) { } 314 TextField::~TextField() { } 315 void TextField::setFont(WebCore::Font const&) { } 316 void TextField::setAlignment(HorizontalAlignment) { } 317 void TextField::setWritingDirection(TextDirection) { } 318 int TextField::maxLength() const { return 0; } 319 void TextField::setMaxLength(int) { } 320 String TextField::text() const { return String(); } 321 void TextField::setText(String const&) { } 322 int TextField::cursorPosition() const { return 0; } 323 void TextField::setCursorPosition(int) { } 324 void TextField::setEdited(bool) { } 325 void TextField::setReadOnly(bool) { } 326 void TextField::setPlaceholderString(String const&) { } 327 void TextField::setColors(Color const&,Color const&) { } 328 IntSize TextField::sizeForCharacterWidth(int) const { return IntSize(); } 329 int TextField::baselinePosition(int) const { return 0; } 330 void TextField::setLiveSearch(bool) { } 331 332 PopUpButton::PopUpButton() { } 333 PopUpButton::~PopUpButton() { } 334 void PopUpButton::setFont(WebCore::Font const&) { } 335 int PopUpButton::baselinePosition(int) const { return 0; } 336 void PopUpButton::setWritingDirection(TextDirection) { } 337 void PopUpButton::clear() { } 338 void PopUpButton::appendItem(DeprecatedString const&,ListBoxItemType,bool) { } 339 void PopUpButton::setCurrentItem(int) { } 340 IntSize PopUpButton::sizeHint() const { return IntSize(); } 341 IntRect PopUpButton::frameGeometry() const { return IntRect(); } 342 void PopUpButton::setFrameGeometry(IntRect const&) { } 343 344 ScrollBar::ScrollBar(ScrollBarOrientation) { } 345 ScrollBar::~ScrollBar() { } 346 void ScrollBar::setSteps(int, int) { } 347 bool ScrollBar::scroll(ScrollDirection, ScrollGranularity, float) { return 0; } 348 bool ScrollBar::setValue(int) { return 0; } 349 void ScrollBar::setKnobProportion(int, int) { } 350 351 ListBox::ListBox() { } 352 ListBox::~ListBox() { } 353 void ListBox::setSelectionMode(ListBox::SelectionMode) { } 354 void ListBox::setFont(WebCore::Font const&) { } 355 355 356 356 Color WebCore::focusRingColor() { return 0xFF0000FF; } -
trunk/WebCore/rendering/DataRef.h
r13674 r15253 24 24 */ 25 25 26 #ifndef KHTML_DATAREF_H27 #define KHTML_DATAREF_H26 #ifndef DataRef_h 27 #define DataRef_h 28 28 29 29 #include <assert.h> -
trunk/WebCore/rendering/DeprecatedRenderSelect.cpp
r14929 r15253 31 31 #include "HTMLOptionElement.h" 32 32 #include "HTMLSelectElement.h" 33 #include " KWQComboBox.h"33 #include "PopUpButton.h" 34 34 35 35 using std::min; … … 51 51 setWidget(createListBox()); 52 52 else 53 setWidget(new QComboBox);53 setWidget(new PopUpButton); 54 54 } 55 55 … … 58 58 TextDirection d = style()->direction() == RTL ? RTL : LTR; 59 59 if (m_useListBox) 60 static_cast< QListBox*>(m_widget)->setWritingDirection(d);60 static_cast<ListBox*>(m_widget)->setWritingDirection(d); 61 61 else 62 static_cast< QComboBox*>(m_widget)->setWritingDirection(d);62 static_cast<PopUpButton*>(m_widget)->setWritingDirection(d); 63 63 } 64 64 … … 90 90 setWidget(createListBox()); 91 91 else 92 setWidget(new QComboBox);92 setWidget(new PopUpButton); 93 93 setWidgetWritingDirection(); 94 94 } 95 95 96 96 if (m_useListBox && oldMultiple != m_multiple) { 97 static_cast< QListBox*>(m_widget)->setSelectionMode(m_multiple ? QListBox::Extended : QListBox::Single);97 static_cast<ListBox*>(m_widget)->setSelectionMode(m_multiple ? ListBox::Extended : ListBox::Single); 98 98 } 99 99 m_selectionChanged = true; … … 109 109 110 110 if (m_useListBox) 111 static_cast< QListBox*>(m_widget)->clear();111 static_cast<ListBox*>(m_widget)->clear(); 112 112 else 113 static_cast< QComboBox*>(m_widget)->clear();113 static_cast<PopUpButton*>(m_widget)->clear(); 114 114 115 115 bool groupEnabled = true; … … 129 129 130 130 if (m_useListBox) 131 static_cast< QListBox*>(m_widget)->appendGroupLabel(label, groupEnabled);131 static_cast<ListBox*>(m_widget)->appendGroupLabel(label, groupEnabled); 132 132 else 133 static_cast< QComboBox*>(m_widget)->appendGroupLabel(label);133 static_cast<PopUpButton*>(m_widget)->appendGroupLabel(label); 134 134 } else if (listItems[listIndex]->hasTagName(optionTag)) { 135 135 HTMLOptionElement* optionElement = static_cast<HTMLOptionElement*>(listItems[listIndex]); … … 149 149 150 150 if (m_useListBox) 151 static_cast< QListBox*>(m_widget)->appendItem(itemText, groupEnabled && optionElement->isEnabled());151 static_cast<ListBox*>(m_widget)->appendItem(itemText, groupEnabled && optionElement->isEnabled()); 152 152 else 153 static_cast< QComboBox*>(m_widget)->appendItem(itemText, groupEnabled && optionElement->isEnabled());153 static_cast<PopUpButton*>(m_widget)->appendItem(itemText, groupEnabled && optionElement->isEnabled()); 154 154 } else if (listItems[listIndex]->hasTagName(hrTag)) { 155 155 if (!m_useListBox) 156 static_cast< QComboBox*>(m_widget)->appendSeparator();156 static_cast<PopUpButton*>(m_widget)->appendSeparator(); 157 157 } else 158 158 ASSERT(false); … … 160 160 } 161 161 if (m_useListBox) 162 static_cast< QListBox*>(m_widget)->doneAppendingItems();162 static_cast<ListBox*>(m_widget)->doneAppendingItems(); 163 163 setNeedsLayoutAndMinMaxRecalc(); 164 164 m_optionsChanged = false; … … 177 177 { 178 178 if (m_useListBox) { 179 // FIXME: Should get the hardcoded constant of 7 by calling a QListBox function,179 // FIXME: Should get the hardcoded constant of 7 by calling a ListBox function, 180 180 // as we do for other widget classes. 181 181 return RenderWidget::baselinePosition(f, isRootLineBox) - 7; … … 211 211 // calculate size 212 212 if (m_useListBox) { 213 QListBox* w = static_cast<QListBox*>(m_widget);213 ListBox* w = static_cast<ListBox*>(m_widget); 214 214 215 215 … … 221 221 // so I did that ;-) 222 222 if (size < 1) 223 size = min(static_cast< QListBox*>(m_widget)->count(), 10U);223 size = min(static_cast<ListBox*>(m_widget)->count(), 10U); 224 224 225 225 // Let the widget tell us how big it wants to be. … … 252 252 ASSERT(!m_useListBox); 253 253 254 int index = static_cast< QComboBox*>(m_widget)->currentItem();254 int index = static_cast<PopUpButton*>(m_widget)->currentItem(); 255 255 256 256 Vector<HTMLElement*> listItems = static_cast<HTMLSelectElement*>(node())->listItems(); … … 279 279 280 280 if (found) { 281 if (index != static_cast< QComboBox*>(m_widget)->currentItem())282 static_cast< QComboBox*>(m_widget)->setCurrentItem(index);281 if (index != static_cast<PopUpButton*>(m_widget)->currentItem()) 282 static_cast<PopUpButton*>(m_widget)->setCurrentItem(index); 283 283 284 284 for (unsigned i = 0; i < listItems.size(); ++i) … … 308 308 if (listItems[i]->hasTagName(optionTag)) 309 309 static_cast<HTMLOptionElement*>(listItems[i]) 310 ->m_selected = static_cast< QListBox*>(m_widget)->isSelected(j);310 ->m_selected = static_cast<ListBox*>(m_widget)->isSelected(j); 311 311 if (listItems[i]->hasTagName(optionTag) || listItems[i]->hasTagName(optgroupTag)) 312 312 ++j; … … 320 320 } 321 321 322 QListBox* DeprecatedRenderSelect::createListBox()323 { 324 QListBox *lb = new QListBox();325 lb->setSelectionMode(m_multiple ? QListBox::Extended : QListBox::Single);322 ListBox* DeprecatedRenderSelect::createListBox() 323 { 324 ListBox *lb = new ListBox(); 325 lb->setSelectionMode(m_multiple ? ListBox::Extended : ListBox::Single); 326 326 m_ignoreSelectEvents = false; 327 327 return lb; … … 334 334 if (m_useListBox) { 335 335 // if multi-select, we select only the new selected index 336 QListBox *listBox = static_cast<QListBox*>(m_widget);336 ListBox *listBox = static_cast<ListBox*>(m_widget); 337 337 int j = 0; 338 338 for (i = 0; i < int(listItems.size()); i++) { … … 352 352 static_cast<HTMLOptionElement*>(listItems[i])->m_selected = false; 353 353 else if (static_cast<HTMLOptionElement*>(listItems[i])->selected()) { 354 static_cast< QComboBox*>(m_widget)->setCurrentItem(i);354 static_cast<PopUpButton*>(m_widget)->setCurrentItem(i); 355 355 found = true; 356 356 } -
trunk/WebCore/rendering/DeprecatedRenderSelect.h
r14929 r15253 29 29 #include "RenderFormElement.h" 30 30 31 class QListBox;31 class ListBox; 32 32 33 33 namespace WebCore { … … 62 62 63 63 protected: 64 QListBox* createListBox();64 ListBox* createListBox(); 65 65 void setWidgetWritingDirection(); 66 66 -
trunk/WebCore/rendering/DeprecatedSlider.cpp
r14862 r15253 30 30 #include "HTMLNames.h" 31 31 #include "HTMLInputElement.h" 32 #include " KWQSlider.h"32 #include "WebCoreSlider.h" 33 33 34 34 using std::min; … … 42 42 : RenderFormElement(element) 43 43 { 44 setWidget(new QSlider);44 setWidget(new Slider); 45 45 } 46 46 … … 84 84 static_cast<HTMLInputElement*>(node())->setValue(String::number(val)); 85 85 86 QSlider* slider = static_cast<QSlider*>(widget());86 Slider* slider = static_cast<Slider*>(widget()); 87 87 88 88 slider->setMinValue(minVal); … … 95 95 void DeprecatedSlider::valueChanged(Widget*) 96 96 { 97 QSlider* slider = static_cast<QSlider*>(widget());97 Slider* slider = static_cast<Slider*>(widget()); 98 98 99 99 double val = slider->value(); -
trunk/WebCore/rendering/InlineFlowBox.cpp
r14389 r15253 249 249 RenderText* rt = static_cast<RenderText*>(text->object()); 250 250 if (rt->length()) { 251 if (needsWordSpacing && QChar(rt->text()[text->start()]).isSpace())251 if (needsWordSpacing && DeprecatedChar(rt->text()[text->start()]).isSpace()) 252 252 x += rt->font(m_firstLine)->wordSpacing(); 253 needsWordSpacing = ! QChar(rt->text()[text->end()]).isSpace();253 needsWordSpacing = !DeprecatedChar(rt->text()[text->end()]).isSpace(); 254 254 } 255 255 text->setXPos(x); -
trunk/WebCore/rendering/RenderApplet.cpp
r14327 r15253 86 86 void RenderApplet::layout() 87 87 { 88 KHTMLAssert(needsLayout());89 KHTMLAssert(minMaxKnown());88 ASSERT(needsLayout()); 89 ASSERT(minMaxKnown()); 90 90 91 91 calcWidth(); -
trunk/WebCore/rendering/RenderBlock.cpp
r15121 r15253 36 36 #include "RenderView.h" 37 37 #include "RenderTheme.h" 38 #include " KWQTextStream.h"38 #include "TextStream.h" 39 39 40 40 using namespace std; … … 143 143 if (beforeChild && beforeChild->parent() != this) { 144 144 145 KHTMLAssert(beforeChild->parent());146 KHTMLAssert(beforeChild->parent()->isAnonymousBlock());145 ASSERT(beforeChild->parent()); 146 ASSERT(beforeChild->parent()->isAnonymousBlock()); 147 147 148 148 if (newChild->isInline()) { … … 167 167 if (beforeChild && beforeChild->parent() != this) { 168 168 beforeChild = beforeChild->parent(); 169 KHTMLAssert(beforeChild->isAnonymousBlock());170 KHTMLAssert(beforeChild->parent() == this);169 ASSERT(beforeChild->isAnonymousBlock()); 170 ASSERT(beforeChild->parent() == this); 171 171 } 172 172 } … … 254 254 // |insertionPoint|, because the new child is going to be inserted in between the inlines, 255 255 // splitting them. 256 KHTMLAssert(isInlineBlockOrInlineTable() || !isInline());257 KHTMLAssert(!insertionPoint || insertionPoint->parent() == this);256 ASSERT(isInlineBlockOrInlineTable() || !isInline()); 257 ASSERT(!insertionPoint || insertionPoint->parent() == this); 258 258 259 259 m_childrenInline = false; … … 284 284 #ifndef NDEBUG 285 285 for (RenderObject *c = firstChild(); c; c = c->nextSibling()) 286 KHTMLAssert(!c->isInline());286 ASSERT(!c->isInline()); 287 287 #endif 288 288 } … … 418 418 void RenderBlock::layoutBlock(bool relayoutChildren) 419 419 { 420 KHTMLAssert(needsLayout());421 KHTMLAssert(minMaxKnown());420 ASSERT(needsLayout()); 421 ASSERT(minMaxKnown()); 422 422 423 423 if (isInline() && !isInlineBlockOrInlineTable()) // Inline <form>s inside various table elements can … … 515 515 // FIXME: This needs to look at the last flow, not the last child. 516 516 if (lastChild() && lastChild()->hasOverhangingFloats()) { 517 KHTMLAssert(lastChild()->isRenderBlock());517 ASSERT(lastChild()->isRenderBlock()); 518 518 m_height = lastChild()->yPos() + static_cast<RenderBlock*>(lastChild())->floatBottom(); 519 519 m_height += borderBottom() + paddingBottom(); … … 1825 1825 // We should never get here, as insertFloatingObject() should only ever be called with floating 1826 1826 // objects. 1827 KHTMLAssert(false);1827 ASSERT(false); 1828 1828 newObj = 0; // keep gcc's uninitialized variable warnings happy 1829 1829 } … … 2707 2707 void RenderBlock::calcMinMaxWidth() 2708 2708 { 2709 KHTMLAssert( !minMaxKnown() );2709 ASSERT( !minMaxKnown() ); 2710 2710 2711 2711 #ifdef DEBUG_LAYOUT … … 3416 3416 // no text-transform or a different text-transform applied to it. 3417 3417 RefPtr<StringImpl> oldText = textObj->originalString(); 3418 KHTMLAssert(oldText);3418 ASSERT(oldText); 3419 3419 3420 3420 if (oldText && oldText->length() > 0) { … … 3422 3422 3423 3423 // account for leading spaces and punctuation 3424 while (length < oldText->length() && ( QChar((*oldText)[length]).isSpace() || u_ispunct((*oldText)[length])))3424 while (length < oldText->length() && (DeprecatedChar((*oldText)[length]).isSpace() || u_ispunct((*oldText)[length]))) 3425 3425 length++; 3426 3426 … … 3589 3589 #ifndef NDEBUG 3590 3590 3591 void RenderBlock::dump( QTextStream *stream, DeprecatedString ind) const3591 void RenderBlock::dump(TextStream *stream, DeprecatedString ind) const 3592 3592 { 3593 3593 if (m_childrenInline) { *stream << " childrenInline"; } -
trunk/WebCore/rendering/RenderBlock.h
r15121 r15253 268 268 269 269 #if !NDEBUG 270 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;270 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 271 271 #endif 272 272 -
trunk/WebCore/rendering/RenderContainer.cpp
r15087 r15253 162 162 RenderObject* RenderContainer::removeChildNode(RenderObject* oldChild) 163 163 { 164 KHTMLAssert(oldChild->parent() == this);164 ASSERT(oldChild->parent() == this); 165 165 166 166 // So that we'll get the appropriate dirty bit set (either that a normal flow child got yanked or … … 352 352 void RenderContainer::appendChildNode(RenderObject* newChild) 353 353 { 354 KHTMLAssert(newChild->parent() == 0);355 KHTMLAssert(!isBlockFlow() || (!newChild->isTableSection() && !newChild->isTableRow() && !newChild->isTableCell()));354 ASSERT(newChild->parent() == 0); 355 ASSERT(!isBlockFlow() || (!newChild->isTableSection() && !newChild->isTableRow() && !newChild->isTableCell())); 356 356 357 357 newChild->setParent(this); … … 393 393 } 394 394 395 KHTMLAssert(!child->parent());395 ASSERT(!child->parent()); 396 396 while ( beforeChild->parent() != this && beforeChild->parent()->isAnonymousBlock() ) 397 397 beforeChild = beforeChild->parent(); 398 KHTMLAssert(beforeChild->parent() == this);399 400 KHTMLAssert(!isBlockFlow() || (!child->isTableSection() && !child->isTableRow() && !child->isTableCell()));398 ASSERT(beforeChild->parent() == this); 399 400 ASSERT(!isBlockFlow() || (!child->isTableSection() && !child->isTableRow() && !child->isTableCell())); 401 401 402 402 if(beforeChild == firstChild()) … … 428 428 void RenderContainer::layout() 429 429 { 430 KHTMLAssert( needsLayout() );431 KHTMLAssert( minMaxKnown() );430 ASSERT( needsLayout() ); 431 ASSERT( minMaxKnown() ); 432 432 433 433 RenderObject* child = firstChild(); -
trunk/WebCore/rendering/RenderFileButton.cpp
r14638 r15253 30 30 #include "HTMLFormElement.h" 31 31 #include "HTMLInputElement.h" 32 #include " KWQFileButton.h"32 #include "FileButton.h" 33 33 34 34 namespace WebCore { … … 37 37 : RenderFormElement(element) 38 38 { 39 setWidget(new KWQFileButton(m_view->frame()));39 setWidget(new FileButton(m_view->frame())); 40 40 } 41 41 … … 46 46 // Let the widget tell us how big it wants to be. 47 47 int size = static_cast<HTMLInputElement*>(node())->size(); 48 IntSize s(static_cast< KWQFileButton*>(widget())->sizeForCharacterWidth(size > 0 ? size : 20));48 IntSize s(static_cast<FileButton*>(widget())->sizeForCharacterWidth(size > 0 ? size : 20)); 49 49 50 50 setIntrinsicWidth(s.width()); … … 56 56 void RenderFileButton::updateFromElement() 57 57 { 58 static_cast< KWQFileButton*>(widget())->setFilename(58 static_cast<FileButton*>(widget())->setFilename( 59 59 static_cast<HTMLInputElement*>(node())->value().deprecatedString()); 60 60 61 static_cast< KWQFileButton*>(widget())->setDisabled(61 static_cast<FileButton*>(widget())->setDisabled( 62 62 static_cast<HTMLInputElement*>(node())->disabled()); 63 63 … … 73 73 void RenderFileButton::valueChanged(Widget*) 74 74 { 75 static_cast<HTMLInputElement*>(node())->setValueFromRenderer(static_cast< KWQFileButton*>(widget())->filename());75 static_cast<HTMLInputElement*>(node())->setValueFromRenderer(static_cast<FileButton*>(widget())->filename()); 76 76 static_cast<HTMLInputElement*>(node())->onChange(); 77 77 } … … 83 83 void RenderFileButton::click(bool sendMouseEvents) 84 84 { 85 static_cast< KWQFileButton*>(widget())->click(sendMouseEvents);85 static_cast<FileButton*>(widget())->click(sendMouseEvents); 86 86 } 87 87 -
trunk/WebCore/rendering/RenderFlexibleBox.cpp
r14953 r15253 202 202 void RenderFlexibleBox::calcMinMaxWidth() 203 203 { 204 KHTMLAssert( !minMaxKnown() );204 ASSERT( !minMaxKnown() ); 205 205 206 206 m_minWidth = 0; … … 236 236 void RenderFlexibleBox::layoutBlock(bool relayoutChildren) 237 237 { 238 KHTMLAssert(needsLayout());239 KHTMLAssert(minMaxKnown());238 ASSERT(needsLayout()); 239 ASSERT(minMaxKnown()); 240 240 241 241 if (!relayoutChildren && posChildNeedsLayout() && !normalChildNeedsLayout() && !selfNeedsLayout()) { -
trunk/WebCore/rendering/RenderFlow.cpp
r14847 r15253 79 79 { 80 80 RenderFlow* flow = continuationBefore(beforeChild); 81 KHTMLAssert(!beforeChild || beforeChild->parent()->isRenderBlock() ||81 ASSERT(!beforeChild || beforeChild->parent()->isRenderBlock() || 82 82 beforeChild->parent()->isRenderInline()); 83 83 RenderFlow* beforeChildParent = beforeChild ? static_cast<RenderFlow*>(beforeChild->parent()) : … … 356 356 bool inlineFlow = isInlineFlow(); 357 357 if (inlineFlow) 358 KHTMLAssert(m_layer); // The only way a compact/run-in/inline could paint like this is if it has a layer.358 ASSERT(m_layer); // The only way a compact/run-in/inline could paint like this is if it has a layer. 359 359 360 360 // If we have no lines then we have no work to do. … … 427 427 bool inlineFlow = isInlineFlow(); 428 428 if (inlineFlow) 429 KHTMLAssert(m_layer); // The only way a compact/run-in/inline could paint like this is if it has a layer.429 ASSERT(m_layer); // The only way a compact/run-in/inline could paint like this is if it has a layer. 430 430 431 431 // If we have no lines then we have no work to do. -
trunk/WebCore/rendering/RenderFormElement.cpp
r14382 r15253 70 70 void RenderFormElement::layout() 71 71 { 72 KHTMLAssert(needsLayout());73 KHTMLAssert(minMaxKnown());72 ASSERT(needsLayout()); 73 ASSERT(minMaxKnown()); 74 74 75 75 // minimum height -
trunk/WebCore/rendering/RenderFrameSet.cpp
r15053 r15253 32 32 #include "HTMLFrameSetElement.h" 33 33 #include "HTMLNames.h" 34 #include " KWQTextStream.h"34 #include "TextStream.h" 35 35 #include "MouseEvent.h" 36 36 #include "RenderFrame.h" … … 93 93 void RenderFrameSet::layout() 94 94 { 95 KHTMLAssert(needsLayout());96 KHTMLAssert(minMaxKnown());95 ASSERT(needsLayout()); 96 ASSERT(minMaxKnown()); 97 97 98 98 if (!parent()->isFrameSet()) { … … 541 541 542 542 #ifndef NDEBUG 543 void RenderFrameSet::dump( QTextStream* stream, DeprecatedString ind) const543 void RenderFrameSet::dump(TextStream* stream, DeprecatedString ind) const 544 544 { 545 545 *stream << " totalrows=" << element()->totalRows(); -
trunk/WebCore/rendering/RenderFrameSet.h
r14334 r15253 61 61 62 62 #ifndef NDEBUG 63 virtual void dump( QTextStream* stream, DeprecatedString ind = "") const;63 virtual void dump(TextStream* stream, DeprecatedString ind = "") const; 64 64 #endif 65 65 -
trunk/WebCore/rendering/RenderImage.cpp
r14827 r15253 273 273 void RenderImage::layout() 274 274 { 275 KHTMLAssert(needsLayout());276 KHTMLAssert( minMaxKnown() );275 ASSERT(needsLayout()); 276 ASSERT( minMaxKnown() ); 277 277 278 278 IntRect oldBounds; -
trunk/WebCore/rendering/RenderInline.cpp
r15079 r15253 271 271 void RenderInline::calcMinMaxWidth() 272 272 { 273 KHTMLAssert( !minMaxKnown() );273 ASSERT( !minMaxKnown() ); 274 274 275 275 #ifdef DEBUG_LAYOUT -
trunk/WebCore/rendering/RenderLayer.cpp
r15191 r15253 80 80 using namespace HTMLNames; 81 81 82 QScrollBar* RenderLayer::gScrollBar = 0;82 ScrollBar* RenderLayer::gScrollBar = 0; 83 83 84 84 #ifndef NDEBUG … … 890 890 if (hasScrollbar && !m_hBar) { 891 891 FrameView* scrollView = m_object->element()->document()->view(); 892 m_hBar = new QScrollBar(HorizontalScrollBar);892 m_hBar = new ScrollBar(HorizontalScrollBar); 893 893 m_hBar->setClient(this); 894 894 scrollView->addChild(m_hBar, 0, -50000); … … 906 906 if (hasScrollbar && !m_vBar) { 907 907 FrameView* scrollView = m_object->element()->document()->view(); 908 m_vBar = new QScrollBar(VerticalScrollBar);908 m_vBar = new ScrollBar(VerticalScrollBar); 909 909 m_vBar->setClient(this); 910 910 scrollView->addChild(m_vBar, 0, -50000); … … 1172 1172 } 1173 1173 1174 bool RenderLayer::scroll( KWQScrollDirection direction, KWQScrollGranularity granularity, float multiplier)1174 bool RenderLayer::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier) 1175 1175 { 1176 1176 bool didHorizontalScroll = false; … … 1178 1178 1179 1179 if (m_hBar != 0) { 1180 if (granularity == KWQScrollDocument) {1181 // Special-case for the KWQScrollDocument granularity. A document scroll can only be up1180 if (granularity == ScrollByDocument) { 1181 // Special-case for the ScrollByDocument granularity. A document scroll can only be up 1182 1182 // or down and in both cases the horizontal bar goes all the way to the left. 1183 didHorizontalScroll = m_hBar->scroll( KWQScrollLeft, KWQScrollDocument, multiplier);1183 didHorizontalScroll = m_hBar->scroll(ScrollLeft, ScrollByDocument, multiplier); 1184 1184 } else { 1185 1185 didHorizontalScroll = m_hBar->scroll(direction, granularity, multiplier); -
trunk/WebCore/rendering/RenderLayer.h
r15191 r15253 49 49 #include "WidgetClient.h" 50 50 51 class QScrollBar;51 class ScrollBar; 52 52 53 53 namespace WebCore { … … 169 169 static ScrollBehavior getHiddenBehavior(const ScrollAlignment& s) { return s.m_rectHidden; } 170 170 171 static QScrollBar* gScrollBar;171 static ScrollBar* gScrollBar; 172 172 173 173 RenderLayer(RenderObject*); … … 235 235 void setHasHorizontalScrollbar(bool hasScrollbar); 236 236 void setHasVerticalScrollbar(bool hasScrollbar); 237 QScrollBar* horizontalScrollbar() { return m_hBar; }238 QScrollBar* verticalScrollbar() { return m_vBar; }237 ScrollBar* horizontalScrollbar() { return m_hBar; } 238 ScrollBar* verticalScrollbar() { return m_vBar; } 239 239 int verticalScrollbarWidth(); 240 240 int horizontalScrollbarHeight(); … … 247 247 void updateScrollInfoAfterLayout(); 248 248 void slotValueChanged(int); 249 bool scroll( KWQScrollDirection direction, KWQScrollGranularity granularity, float multiplier=1.0);249 bool scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier=1.0); 250 250 void autoscroll(); 251 251 bool shouldAutoscroll(); … … 383 383 384 384 // For layers with overflow, we have a pair of scrollbars. 385 QScrollBar* m_hBar;386 QScrollBar* m_vBar;385 ScrollBar* m_hBar; 386 ScrollBar* m_vBar; 387 387 388 388 // The rectangle for the control to resize layers that have overflow. -
trunk/WebCore/rendering/RenderLineEdit.cpp
r14382 r15253 31 31 #include "HTMLFormElement.h" 32 32 #include "HTMLInputElement.h" 33 #include " KWQLineEdit.h"33 #include "TextField.h" 34 34 35 35 namespace WebCore { … … 42 42 , m_updating(false) 43 43 { 44 QLineEdit::Type type;44 TextField::Type type; 45 45 switch (element->inputType()) { 46 46 case HTMLInputElement::PASSWORD: 47 type = QLineEdit::Password;47 type = TextField::Password; 48 48 break; 49 49 case HTMLInputElement::SEARCH: 50 type = QLineEdit::Search;50 type = TextField::Search; 51 51 break; 52 52 default: 53 type = QLineEdit::Normal;54 } 55 QLineEdit* edit = new QLineEdit(type);56 if (type == QLineEdit::Search)53 type = TextField::Normal; 54 } 55 TextField* edit = new TextField(type); 56 if (type == TextField::Search) 57 57 edit->setLiveSearch(false); 58 58 setWidget(edit); … … 62 62 { 63 63 // We only want to call onselect if there actually is a selection 64 QLineEdit* w = static_cast<QLineEdit*>(m_widget);64 TextField* w = static_cast<TextField*>(m_widget); 65 65 if (w->hasSelectedText()) 66 66 static_cast<HTMLGenericFormElement*>(node())->onSelect(); … … 90 90 { 91 91 if (widget()) 92 static_cast< QLineEdit*>(widget())->addSearchResult();92 static_cast<TextField*>(widget())->addSearchResult(); 93 93 } 94 94 95 95 void RenderLineEdit::calcMinMaxWidth() 96 96 { 97 KHTMLAssert(!minMaxKnown());97 ASSERT(!minMaxKnown()); 98 98 99 99 // Let the widget tell us how big it wants to be. 100 100 m_updating = true; 101 101 int size = static_cast<HTMLInputElement*>(node())->size(); 102 IntSize s(static_cast< QLineEdit*>(widget())->sizeForCharacterWidth(size > 0 ? size : 20));102 IntSize s(static_cast<TextField*>(widget())->sizeForCharacterWidth(size > 0 ? size : 20)); 103 103 m_updating = false; 104 104 … … 113 113 RenderFormElement::setStyle(s); 114 114 115 QLineEdit* w = static_cast<QLineEdit*>(widget());115 TextField* w = static_cast<TextField*>(widget()); 116 116 w->setAlignment(textAlignment()); 117 117 w->setWritingDirection(style()->direction() == RTL ? RTL : LTR); … … 121 121 { 122 122 HTMLInputElement* e = static_cast<HTMLInputElement*>(node()); 123 QLineEdit* w = static_cast<QLineEdit*>(widget());123 TextField* w = static_cast<TextField*>(widget()); 124 124 125 125 int ml = e->maxLength(); … … 151 151 // Handle updating the search attributes. 152 152 w->setPlaceholderString(e->getAttribute(placeholderAttr).deprecatedString()); 153 if (w->type() == QLineEdit::Search) {153 if (w->type() == TextField::Search) { 154 154 w->setLiveSearch(!e->getAttribute(incrementalAttr).isNull()); 155 155 w->setAutoSaveName(e->getAttribute(autosaveAttr)); … … 167 167 return; // we are getting the value from the DOM and it's not user input. 168 168 169 String newText = static_cast< QLineEdit*>(widget())->text();169 String newText = static_cast<TextField*>(widget())->text(); 170 170 171 171 // A null string value is used to indicate that the form control has not altered the original … … 181 181 int RenderLineEdit::selectionStart() 182 182 { 183 QLineEdit *lineEdit = static_cast<QLineEdit*>(m_widget);183 TextField *lineEdit = static_cast<TextField *>(m_widget); 184 184 int start = lineEdit->selectionStart(); 185 185 if (start == -1) … … 190 190 int RenderLineEdit::selectionEnd() 191 191 { 192 QLineEdit *lineEdit = static_cast<QLineEdit*>(m_widget);192 TextField *lineEdit = static_cast<TextField *>(m_widget); 193 193 int start = lineEdit->selectionStart(); 194 194 if (start == -1) … … 201 201 int realStart = max(start, 0); 202 202 int length = max(selectionEnd() - realStart, 0); 203 static_cast< QLineEdit*>(m_widget)->setSelection(realStart, length);203 static_cast<TextField *>(m_widget)->setSelection(realStart, length); 204 204 } 205 205 … … 213 213 length = 0; 214 214 } 215 static_cast< QLineEdit*>(m_widget)->setSelection(start, length);215 static_cast<TextField *>(m_widget)->setSelection(start, length); 216 216 } 217 217 218 218 void RenderLineEdit::select() 219 219 { 220 static_cast< QLineEdit*>(m_widget)->selectAll();220 static_cast<TextField*>(m_widget)->selectAll(); 221 221 } 222 222 223 223 bool RenderLineEdit::isEdited() const 224 224 { 225 return static_cast< QLineEdit*>(m_widget)->edited();225 return static_cast<TextField*>(m_widget)->edited(); 226 226 } 227 227 void RenderLineEdit::setEdited(bool x) 228 228 { 229 static_cast< QLineEdit*>(m_widget)->setEdited(x);229 static_cast<TextField*>(m_widget)->setEdited(x); 230 230 } 231 231 … … 234 234 int realStart = max(start, 0); 235 235 int length = max(end - realStart, 0); 236 static_cast< QLineEdit*>(m_widget)->setSelection(realStart, length);236 static_cast<TextField *>(m_widget)->setSelection(realStart, length); 237 237 } 238 238 -
trunk/WebCore/rendering/RenderListItem.cpp
r14389 r15253 211 211 void RenderListItem::layout() 212 212 { 213 KHTMLAssert(needsLayout());214 KHTMLAssert(minMaxKnown());213 ASSERT(needsLayout()); 214 ASSERT(minMaxKnown()); 215 215 216 216 updateMarkerLocation(); -
trunk/WebCore/rendering/RenderListMarker.cpp
r14827 r15253 66 66 { 67 67 if (number < 2) 68 return QChar(letterA); // match WinIE (A.) not FireFox (0.)68 return DeprecatedChar(letterA); // match WinIE (A.) not FireFox (0.) 69 69 70 70 DeprecatedString letterString; 71 71 while (number > 0) { 72 72 int onesDigit = (number - 1) % 26; 73 letterString = QChar(letterA + onesDigit) + letterString;73 letterString = DeprecatedChar(letterA + onesDigit) + letterString; 74 74 number -= onesDigit; 75 75 number /= 26; … … 81 81 static DeprecatedString toHebrew(int number) 82 82 { 83 const QChar tenDigit[] = {1497, 1499, 1500, 1502, 1504, 1505, 1506, 1508, 1510};83 const DeprecatedChar tenDigit[] = {1497, 1499, 1500, 1502, 1504, 1505, 1506, 1508, 1510}; 84 84 85 85 DeprecatedString letter; … … 90 90 int fourHundreds = number / 400; 91 91 for (int i = 0; i < fourHundreds; i++) 92 letter += QChar(1511 + 3);92 letter += DeprecatedChar(1511 + 3); 93 93 number %= 400; 94 94 if (number / 100) 95 letter += QChar(1511 + (number / 100) - 1);95 letter += DeprecatedChar(1511 + (number / 100) - 1); 96 96 number %= 100; 97 97 if (number == 15 || number == 16) { 98 letter += QChar(1487 + 9);99 letter += QChar(1487 + number - 9);98 letter += DeprecatedChar(1487 + 9); 99 letter += DeprecatedChar(1487 + number - 9); 100 100 } else { 101 101 int tens = number / 10; … … 104 104 number = number % 10; 105 105 if (number) 106 letter += QChar(1487 + number);106 letter += DeprecatedChar(1487 + number); 107 107 } 108 108 return letter; … … 143 143 InlineBox* RenderListMarker::createInlineBox(bool, bool isRootLineBox, bool) 144 144 { 145 KHTMLAssert(!isRootLineBox);145 ASSERT(!isRootLineBox); 146 146 ListMarkerBox* box = new (renderArena()) ListMarkerBox(this); 147 147 m_inlineBoxWrapper = box; … … 240 240 void RenderListMarker::layout() 241 241 { 242 KHTMLAssert(needsLayout());243 // ### KHTMLAssert(minMaxKnown());242 ASSERT(needsLayout()); 243 // ### ASSERT(minMaxKnown()); 244 244 if (!minMaxKnown()) 245 245 calcMinMaxWidth(); … … 262 262 void RenderListMarker::calcMinMaxWidth() 263 263 { 264 KHTMLAssert(!minMaxKnown());264 ASSERT(!minMaxKnown()); 265 265 266 266 if (m_listImage) { … … 310 310 if (l>16) {l++;} // Skip GREEK SMALL LETTER FINAL SIGMA 311 311 312 m_item = QChar(945 + l);312 m_item = DeprecatedChar(945 + l); 313 313 for (int i = 0; i < (number / 24); i++) { 314 314 m_item += "'"; -
trunk/WebCore/rendering/RenderObject.cpp
r15121 r15253 37 37 #include "GraphicsContext.h" 38 38 #include "HTMLNames.h" 39 #include " KWQTextStream.h"40 #include " KWQWMatrix.h"39 #include "TextStream.h" 40 #include "AffineTransform.h" 41 41 #include "Position.h" 42 42 #include "RenderArena.h" … … 225 225 void RenderObject::addChild(RenderObject* , RenderObject *) 226 226 { 227 KHTMLAssert(0);227 ASSERT(0); 228 228 } 229 229 230 230 RenderObject* RenderObject::removeChildNode(RenderObject* ) 231 231 { 232 KHTMLAssert(0);232 ASSERT(0); 233 233 return 0; 234 234 } … … 236 236 void RenderObject::removeChild(RenderObject* ) 237 237 { 238 KHTMLAssert(0);238 ASSERT(0); 239 239 } 240 240 241 241 void RenderObject::appendChildNode(RenderObject*) 242 242 { 243 KHTMLAssert(0);243 ASSERT(0); 244 244 } 245 245 246 246 void RenderObject::insertChildNode(RenderObject*, RenderObject*) 247 247 { 248 KHTMLAssert(0);248 ASSERT(0); 249 249 } 250 250 … … 623 623 } 624 624 625 bool RenderObject::scroll( KWQScrollDirection direction, KWQScrollGranularity granularity, float multiplier)625 bool RenderObject::scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier) 626 626 { 627 627 RenderLayer *l = layer(); … … 1791 1791 { 1792 1792 DeprecatedString str; 1793 QTextStream ts(&str);1793 TextStream ts(&str); 1794 1794 ts << renderName() 1795 1795 << "(" << (style() ? style()->refCount() : 0) << ")" … … 1821 1821 } 1822 1822 1823 void RenderObject::dump( QTextStream *stream, DeprecatedString ind) const1823 void RenderObject::dump(TextStream *stream, DeprecatedString ind) const 1824 1824 { 1825 1825 if (isAnonymous()) { *stream << " anonymous"; } … … 2549 2549 void RenderObject::recalcMinMaxWidths() 2550 2550 { 2551 KHTMLAssert( m_recalcMinMax );2551 ASSERT( m_recalcMinMax ); 2552 2552 2553 2553 #ifdef DEBUG_LAYOUT … … 2608 2608 InlineBox* RenderObject::createInlineBox(bool, bool isRootLineBox, bool) 2609 2609 { 2610 KHTMLAssert(!isRootLineBox);2610 ASSERT(!isRootLineBox); 2611 2611 return new (renderArena()) InlineBox(this); 2612 2612 } … … 2889 2889 } 2890 2890 2891 QMatrixRenderObject::localTransform() const2892 { 2893 return QMatrix(1, 0, 0, 1, xPos(), yPos());2891 AffineTransform RenderObject::localTransform() const 2892 { 2893 return AffineTransform(1, 0, 0, 1, xPos(), yPos()); 2894 2894 } 2895 2895 2896 void RenderObject::setLocalTransform(const QMatrix&)2896 void RenderObject::setLocalTransform(const AffineTransform&) 2897 2897 { 2898 2898 ASSERT(false); 2899 2899 } 2900 2900 2901 QMatrixRenderObject::absoluteTransform() const2901 AffineTransform RenderObject::absoluteTransform() const 2902 2902 { 2903 2903 if (parent()) -
trunk/WebCore/rendering/RenderObject.h
r15121 r15253 28 28 29 29 #include "CachedObjectClient.h" 30 #include " KWQScrollBar.h"30 #include "WebCoreScrollBar.h" 31 31 #include "VisiblePosition.h" 32 #include " render_style.h"32 #include "RenderStyle.h" 33 33 34 34 class CSSStyle; 35 class QMatrix;36 class QTextStream;35 class AffineTransform; 36 class TextStream; 37 37 class RenderArena; 38 39 #define KHTMLAssert(x) ASSERT(x)40 38 41 39 /* … … 49 47 50 48 namespace WebCore { 51 52 class AffineTransform;53 49 class Color; 54 50 class CollapsedBorderValue; … … 218 214 #ifndef NDEBUG 219 215 DeprecatedString information() const; 220 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;216 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 221 217 void showTreeForThis() const; 222 218 #endif … … 275 271 virtual FloatRect relativeBBox(bool includeStroke = true) const; 276 272 // We may eventually want to make these non-virtual 277 virtual QMatrixlocalTransform() const;278 virtual void setLocalTransform(const QMatrix&);279 virtual QMatrixabsoluteTransform() const;273 virtual AffineTransform localTransform() const; 274 virtual void setLocalTransform(const AffineTransform&); 275 virtual AffineTransform absoluteTransform() const; 280 276 #endif 281 277 … … 617 613 int scrollHeight() const; 618 614 619 virtual bool scroll( KWQScrollDirection direction, KWQScrollGranularity granularity, float multiplier=1.0);615 virtual bool scroll(ScrollDirection direction, ScrollGranularity granularity, float multiplier=1.0); 620 616 621 617 // The following seven functions are used to implement collapsing margins. -
trunk/WebCore/rendering/RenderPartObject.cpp
r15170 r15253 241 241 void RenderPartObject::layout() 242 242 { 243 KHTMLAssert(needsLayout());244 KHTMLAssert(minMaxKnown());243 ASSERT(needsLayout()); 244 ASSERT(minMaxKnown()); 245 245 246 246 calcWidth(); -
trunk/WebCore/rendering/RenderReplaced.cpp
r14784 r15253 78 78 void RenderReplaced::calcMinMaxWidth() 79 79 { 80 KHTMLAssert( !minMaxKnown());80 ASSERT( !minMaxKnown()); 81 81 82 82 #ifdef DEBUG_LAYOUT -
trunk/WebCore/rendering/RenderStyle.cpp
r15251 r15253 23 23 24 24 #include "config.h" 25 #include " render_style.h"25 #include "RenderStyle.h" 26 26 27 27 #include "cssstyleselector.h" -
trunk/WebCore/rendering/RenderStyle.h
r15251 r15253 927 927 protected: 928 928 929 // !START SYNC!: Keep this in sync with the copy constructor in render_style.cpp929 // !START SYNC!: Keep this in sync with the copy constructor in RenderStyle.cpp 930 930 931 931 // inherit -
trunk/WebCore/rendering/RenderTable.cpp
r15105 r15253 33 33 #include "FixedTableLayout.h" 34 34 #include "HTMLNames.h" 35 #include " KWQTextStream.h"35 #include "TextStream.h" 36 36 #include "RenderTableCell.h" 37 37 #include "RenderTableCol.h" … … 234 234 void RenderTable::layout() 235 235 { 236 KHTMLAssert(needsLayout());237 KHTMLAssert(minMaxKnown());238 KHTMLAssert(!needSectionRecalc);236 ASSERT(needsLayout()); 237 ASSERT(minMaxKnown()); 238 ASSERT(!needSectionRecalc); 239 239 240 240 if (posChildNeedsLayout() && !normalChildNeedsLayout() && !selfNeedsLayout()) { … … 452 452 void RenderTable::calcMinMaxWidth() 453 453 { 454 KHTMLAssert(!minMaxKnown());454 ASSERT(!minMaxKnown()); 455 455 456 456 if (needSectionRecalc) … … 472 472 columns.resize(oldSize + 1); 473 473 int oldSpan = columns[pos].span; 474 KHTMLAssert(oldSpan > firstSpan);474 ASSERT(oldSpan > firstSpan); 475 475 columns[pos].span = firstSpan; 476 476 memmove(columns.data() + pos + 1, columns.data() + pos, (oldSize-pos)*sizeof(ColumnStruct)); … … 1034 1034 1035 1035 #ifndef NDEBUG 1036 void RenderTable::dump( QTextStream *stream, DeprecatedString ind) const1036 void RenderTable::dump(TextStream *stream, DeprecatedString ind) const 1037 1037 { 1038 1038 if (tCaption) -
trunk/WebCore/rendering/RenderTable.h
r14816 r15253 112 112 113 113 #ifndef NDEBUG 114 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;114 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 115 115 #endif 116 116 struct ColumnStruct { -
trunk/WebCore/rendering/RenderTableCell.cpp
r14760 r15253 32 32 #include "HTMLNames.h" 33 33 #include "HTMLTableCellElement.h" 34 #include " KWQTextStream.h"34 #include "TextStream.h" 35 35 36 36 using namespace std; … … 753 753 754 754 #ifndef NDEBUG 755 void RenderTableCell::dump( QTextStream *stream, DeprecatedString ind) const755 void RenderTableCell::dump(TextStream *stream, DeprecatedString ind) const 756 756 { 757 757 *stream << " row=" << _row; -
trunk/WebCore/rendering/RenderTableCell.h
r13821 r15253 102 102 103 103 #if !NDEBUG 104 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;104 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 105 105 #endif 106 106 -
trunk/WebCore/rendering/RenderTableCol.cpp
r14332 r15253 30 30 #include "HTMLNames.h" 31 31 #include "HTMLTableColElement.h" 32 #include " KWQTextStream.h"32 #include "TextStream.h" 33 33 34 34 namespace WebCore { … … 65 65 66 66 #ifndef NDEBUG 67 void RenderTableCol::dump( QTextStream* stream, DeprecatedString ind) const67 void RenderTableCol::dump(TextStream* stream, DeprecatedString ind) const 68 68 { 69 69 *stream << " span=" << m_span; -
trunk/WebCore/rendering/RenderTableCol.h
r13393 r15253 45 45 46 46 #ifndef NDEBUG 47 virtual void dump( QTextStream*, DeprecatedString) const;47 virtual void dump(TextStream*, DeprecatedString) const; 48 48 #endif 49 49 -
trunk/WebCore/rendering/RenderTableRow.cpp
r14659 r15253 107 107 void RenderTableRow::layout() 108 108 { 109 KHTMLAssert(needsLayout());110 KHTMLAssert(minMaxKnown());109 ASSERT(needsLayout()); 110 ASSERT(minMaxKnown()); 111 111 112 112 for (RenderObject *child = firstChild(); child; child = child->nextSibling()) { -
trunk/WebCore/rendering/RenderTableSection.cpp
r15101 r15253 31 31 #include "Document.h" 32 32 #include "HTMLNames.h" 33 #include " KWQTextStream.h"33 #include "TextStream.h" 34 34 #include "RenderTableCell.h" 35 35 #include "RenderTableCol.h" … … 1005 1005 1006 1006 #ifndef NDEBUG 1007 void RenderTableSection::dump( QTextStream *stream, DeprecatedString ind) const1007 void RenderTableSection::dump(TextStream *stream, DeprecatedString ind) const 1008 1008 { 1009 1009 *stream << endl << ind << "grid=(" << gridRows << "," << table()->numEffCols() << ")" << endl << ind; -
trunk/WebCore/rendering/RenderTableSection.h
r14816 r15253 54 54 55 55 #ifndef NDEBUG 56 virtual void dump( QTextStream *stream, DeprecatedString ind = "") const;56 virtual void dump(TextStream *stream, DeprecatedString ind = "") const; 57 57 #endif 58 58 -
trunk/WebCore/rendering/RenderText.cpp
r15087 r15253 103 103 if (str) 104 104 str = str->replace('\\', backslashAsCurrencySymbol()); 105 KHTMLAssert(!str || !str->length() || str->characters());105 ASSERT(!str || !str->length() || str->characters()); 106 106 } 107 107 … … 484 484 else 485 485 w += m_monospaceCharacterWidth; 486 if ( QChar(c).isSpace() && i > start && !QChar((*str)[i - 1]).isSpace())486 if (DeprecatedChar(c).isSpace() && i > start && !DeprecatedChar((*str)[i - 1]).isSpace()) 487 487 w += f->wordSpacing(); 488 488 } … … 579 579 // Use 0 for the leadWidth. If the text contains a variable width tab, the real width 580 580 // will get measured when trimmedMinMaxWidth calls again with the real leadWidth. 581 KHTMLAssert( !minMaxKnown() );581 ASSERT( !minMaxKnown() ); 582 582 calcMinMaxWidth(0); 583 583 } … … 910 910 // ### what should happen if we change the text of a 911 911 // RenderBR object ? 912 KHTMLAssert(!isBR() || (str->length() == 1 && (*str)[0] == '\n'));913 KHTMLAssert(!str->length() || str->characters());912 ASSERT(!isBR() || (str->length() == 1 && (*str)[0] == '\n')); 913 ASSERT(!str->length() || str->characters()); 914 914 915 915 setNeedsLayoutAndMinMaxRecalc(); … … 943 943 InlineBox* RenderText::createInlineBox(bool, bool isRootLineBox, bool) 944 944 { 945 KHTMLAssert(!isRootLineBox);945 ASSERT(!isRootLineBox); 946 946 InlineTextBox* textBox = new (renderArena()) InlineTextBox(this); 947 947 if (!m_firstTextBox) -
trunk/WebCore/rendering/RenderText.h
r14273 r15253 23 23 */ 24 24 25 #ifndef KHTML_RenderText_H26 #define KHTML_RenderText_H25 #ifndef RenderText_h 26 #define RenderText_h 27 27 28 28 #include "RenderObject.h" -
trunk/WebCore/rendering/RenderTextArea.cpp
r14953 r15253 27 27 #include "RenderTextArea.h" 28 28 29 #include " KWQTextEdit.h"29 #include "TextBox.h" 30 30 #include "HTMLTextAreaElement.h" 31 31 #include "FrameView.h" … … 38 38 , m_updating(false) 39 39 { 40 QTextEdit* edit = new QTextEdit(m_view);40 TextBox* edit = new TextBox(m_view); 41 41 42 42 if (element->wrap() != HTMLTextAreaElement::ta_NoWrap) 43 edit->setWordWrap( QTextEdit::WidgetWidth);43 edit->setWordWrap(TextBox::WidgetWidth); 44 44 else 45 edit->setWordWrap( QTextEdit::NoWrap);45 edit->setWordWrap(TextBox::NoWrap); 46 46 47 47 setWidget(edit); … … 58 58 ASSERT(!minMaxKnown()); 59 59 60 QTextEdit* w = static_cast<QTextEdit*>(m_widget);60 TextBox* w = static_cast<TextBox*>(m_widget); 61 61 IntSize size(w->sizeWithColumnsAndRows( 62 62 max(static_cast<HTMLTextAreaElement*>(node())->cols(), 1), … … 73 73 RenderFormElement::setStyle(s); 74 74 75 QTextEdit* w = static_cast<QTextEdit*>(m_widget);75 TextBox* w = static_cast<TextBox*>(m_widget); 76 76 w->setAlignment(textAlignment()); 77 77 w->setLineHeight(RenderObject::lineHeight(true)); … … 122 122 { 123 123 HTMLTextAreaElement* e = static_cast<HTMLTextAreaElement*>(node()); 124 QTextEdit* w = static_cast<QTextEdit*>(m_widget);124 TextBox* w = static_cast<TextBox*>(m_widget); 125 125 126 126 w->setReadOnly(e->isReadOnlyControl()); … … 147 147 String RenderTextArea::text() 148 148 { 149 String txt = static_cast< QTextEdit*>(m_widget)->text();149 String txt = static_cast<TextBox*>(m_widget)->text(); 150 150 return txt.replace(backslashAsCurrencySymbol(), '\\'); 151 151 } … … 153 153 String RenderTextArea::textWithHardLineBreaks() 154 154 { 155 String txt = static_cast< QTextEdit*>(m_widget)->textWithHardLineBreaks();155 String txt = static_cast<TextBox*>(m_widget)->textWithHardLineBreaks(); 156 156 return txt.replace(backslashAsCurrencySymbol(), '\\'); 157 157 } … … 167 167 int RenderTextArea::selectionStart() 168 168 { 169 return static_cast< QTextEdit*>(m_widget)->selectionStart();169 return static_cast<TextBox*>(m_widget)->selectionStart(); 170 170 } 171 171 172 172 int RenderTextArea::selectionEnd() 173 173 { 174 return static_cast< QTextEdit*>(m_widget)->selectionEnd();174 return static_cast<TextBox*>(m_widget)->selectionEnd(); 175 175 } 176 176 177 177 void RenderTextArea::setSelectionStart(int start) 178 178 { 179 static_cast< QTextEdit*>(m_widget)->setSelectionStart(start);179 static_cast<TextBox*>(m_widget)->setSelectionStart(start); 180 180 } 181 181 182 182 void RenderTextArea::setSelectionEnd(int end) 183 183 { 184 static_cast< QTextEdit*>(m_widget)->setSelectionEnd(end);184 static_cast<TextBox*>(m_widget)->setSelectionEnd(end); 185 185 } 186 186 187 187 void RenderTextArea::select() 188 188 { 189 static_cast< QTextEdit*>(m_widget)->selectAll();189 static_cast<TextBox*>(m_widget)->selectAll(); 190 190 } 191 191 192 192 void RenderTextArea::setSelectionRange(int start, int end) 193 193 { 194 QTextEdit* textEdit = static_cast<QTextEdit*>(m_widget);194 TextBox* textEdit = static_cast<TextBox*>(m_widget); 195 195 textEdit->setSelectionRange(start, end-start); 196 196 } … … 198 198 void RenderTextArea::selectionChanged(Widget*) 199 199 { 200 QTextEdit* w = static_cast<QTextEdit*>(m_widget);200 TextBox* w = static_cast<TextBox*>(m_widget); 201 201 202 202 // We only want to call onselect if there actually is a selection -
trunk/WebCore/rendering/RenderTextControl.cpp
r15251 r15253 20 20 21 21 #include "config.h" 22 #include "RenderText Field.h"22 #include "RenderTextControl.h" 23 23 24 24 #include "Document.h" … … 43 43 using namespace std; 44 44 45 RenderText Field::RenderTextField(Node* node, bool multiLine)45 RenderTextControl::RenderTextControl(Node* node, bool multiLine) 46 46 : RenderFlexibleBox(node), m_dirty(false), m_multiLine(multiLine) 47 47 { 48 48 } 49 49 50 RenderText Field::~RenderTextField()50 RenderTextControl::~RenderTextControl() 51 51 { 52 52 if (m_multiLine && node()) … … 57 57 } 58 58 59 void RenderText Field::setStyle(RenderStyle* style)59 void RenderTextControl::setStyle(RenderStyle* style) 60 60 { 61 61 RenderFlexibleBox::setStyle(style); … … 72 72 } 73 73 74 RenderStyle* RenderText Field::createDivStyle(RenderStyle* startStyle)74 RenderStyle* RenderTextControl::createDivStyle(RenderStyle* startStyle) 75 75 { 76 76 RenderStyle* divStyle = new (renderArena()) RenderStyle(); … … 125 125 } 126 126 127 void RenderText Field::updateFromElement()127 void RenderTextControl::updateFromElement() 128 128 { 129 129 if (!m_div) { … … 163 163 } 164 164 165 int RenderText Field::selectionStart()165 int RenderTextControl::selectionStart() 166 166 { 167 167 return indexForVisiblePosition(document()->frame()->selection().start()); 168 168 } 169 169 170 int RenderText Field::selectionEnd()170 int RenderTextControl::selectionEnd() 171 171 { 172 172 return indexForVisiblePosition(document()->frame()->selection().end()); 173 173 } 174 174 175 void RenderText Field::setSelectionStart(int start)175 void RenderTextControl::setSelectionStart(int start) 176 176 { 177 177 setSelectionRange(start, max(start, selectionEnd())); 178 178 } 179 179 180 void RenderText Field::setSelectionEnd(int end)180 void RenderTextControl::setSelectionEnd(int end) 181 181 { 182 182 setSelectionRange(min(end, selectionStart()), end); 183 183 } 184 184 185 void RenderText Field::select()185 void RenderTextControl::select() 186 186 { 187 187 setSelectionRange(0, text().length()); 188 188 } 189 189 190 void RenderText Field::setSelectionRange(int start, int end)190 void RenderTextControl::setSelectionRange(int start, int end) 191 191 { 192 192 end = max(end, 0); … … 216 216 } 217 217 218 VisiblePosition RenderText Field::visiblePositionForIndex(int index)218 VisiblePosition RenderTextControl::visiblePositionForIndex(int index) 219 219 { 220 220 if (index <= 0) … … 228 228 } 229 229 230 int RenderText Field::indexForVisiblePosition(const VisiblePosition& pos)230 int RenderTextControl::indexForVisiblePosition(const VisiblePosition& pos) 231 231 { 232 232 Position indexPosition = pos.deepEquivalent(); … … 240 240 } 241 241 242 void RenderText Field::subtreeHasChanged()242 void RenderTextControl::subtreeHasChanged() 243 243 { 244 244 setEdited(true); … … 258 258 } 259 259 260 String RenderText Field::text()260 String RenderTextControl::text() 261 261 { 262 262 if (m_div) … … 265 265 } 266 266 267 String RenderText Field::textWithHardLineBreaks()267 String RenderTextControl::textWithHardLineBreaks() 268 268 { 269 269 String s(""); … … 306 306 } 307 307 308 void RenderText Field::calcHeight()308 void RenderTextControl::calcHeight() 309 309 { 310 310 … … 328 328 } 329 329 330 short RenderText Field::baselinePosition(bool b, bool isRootLineBox) const330 short RenderTextControl::baselinePosition(bool b, bool isRootLineBox) const 331 331 { 332 332 if (m_multiLine) … … 335 335 } 336 336 337 void RenderText Field::calcMinMaxWidth()337 void RenderTextControl::calcMinMaxWidth() 338 338 { 339 339 m_minWidth = 0; … … 384 384 } 385 385 386 void RenderText Field::forwardEvent(Event* evt)386 void RenderTextControl::forwardEvent(Event* evt) 387 387 { 388 388 if (evt->type() == blurEvent) { … … 397 397 } 398 398 399 void RenderText Field::selectionChanged(bool userTriggered)399 void RenderTextControl::selectionChanged(bool userTriggered) 400 400 { 401 401 HTMLGenericFormElement* element = static_cast<HTMLGenericFormElement*>(node()); -
trunk/WebCore/rendering/RenderTextControl.h
r15251 r15253 28 28 class HTMLTextFieldInnerElement; 29 29 30 class RenderText Field: public RenderFlexibleBox {30 class RenderTextControl : public RenderFlexibleBox { 31 31 public: 32 RenderText Field(Node*, bool multiLine);33 virtual ~RenderText Field();32 RenderTextControl(Node*, bool multiLine); 33 virtual ~RenderTextControl(); 34 34 35 35 virtual void calcHeight(); -
trunk/WebCore/rendering/RenderTheme.cpp
r15177 r15253 27 27 #include "HTMLInputElement.h" 28 28 #include "HTMLNames.h" 29 #include " render_style.h"29 #include "RenderStyle.h" 30 30 #include "RenderPopupMenu.h" 31 31 -
trunk/WebCore/rendering/RenderThemeMac.mm
r15177 r15253 322 322 { 323 323 if (!checkbox) { 324 checkbox = KWQRetainNSRelease([[NSButtonCell alloc] init]);324 checkbox = HardRetainWithNSRelease([[NSButtonCell alloc] init]); 325 325 [checkbox setButtonType:NSSwitchButton]; 326 326 [checkbox setTitle:nil]; … … 382 382 { 383 383 if (!radio) { 384 radio = KWQRetainNSRelease([[NSButtonCell alloc] init]);384 radio = HardRetainWithNSRelease([[NSButtonCell alloc] init]); 385 385 [radio setButtonType:NSRadioButton]; 386 386 [radio setTitle:nil]; … … 499 499 { 500 500 if (!button) { 501 button = KWQRetainNSRelease([[NSButtonCell alloc] init]);501 button = HardRetainWithNSRelease([[NSButtonCell alloc] init]); 502 502 [button setTitle:nil]; 503 503 [button setButtonType:NSMomentaryPushInButton]; … … 618 618 { 619 619 if (!popupButton) { 620 popupButton = KWQRetainNSRelease([[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO]);620 popupButton = HardRetainWithNSRelease([[NSPopUpButtonCell alloc] initTextCell:@"" pullsDown:NO]); 621 621 [popupButton setUsesItemFromMenu:NO]; 622 622 } -
trunk/WebCore/rendering/RenderTreeAsText.cpp
r14672 r15253 40 40 #if SVG_SUPPORT 41 41 #include "KCanvasTreeDebug.h" 42 #include " KCanvasContainer.h"42 #include "RenderSVGContainer.h" 43 43 #endif 44 44 45 45 using namespace WebCore; 46 46 47 static void writeLayers( QTextStream&, const RenderLayer* rootLayer, RenderLayer*, const IntRect& paintDirtyRect, int indent = 0);47 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const IntRect& paintDirtyRect, int indent = 0); 48 48 49 49 #if !SVG_SUPPORT 50 static QTextStream &operator<<(QTextStream &ts, const IntRect &r)50 static TextStream &operator<<(TextStream &ts, const IntRect &r) 51 51 { 52 52 return ts << "at (" << r.x() << "," << r.y() << ") size " << r.width() << "x" << r.height(); … … 54 54 #endif 55 55 56 static void writeIndent( QTextStream &ts, int indent)56 static void writeIndent(TextStream &ts, int indent) 57 57 { 58 58 for (int i = 0; i != indent; ++i) { … … 61 61 } 62 62 63 static void printBorderStyle( QTextStream &ts, const RenderObject &o, const EBorderStyle borderStyle)63 static void printBorderStyle(TextStream &ts, const RenderObject &o, const EBorderStyle borderStyle) 64 64 { 65 65 switch (borderStyle) { … … 108 108 } 109 109 110 static QTextStream &operator<<(QTextStream &ts, const RenderObject &o)110 static TextStream &operator<<(TextStream &ts, const RenderObject &o) 111 111 { 112 112 ts << o.renderName(); … … 229 229 } 230 230 231 static void writeTextRun( QTextStream& ts, const RenderText& o, const InlineTextBox& run)231 static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBox& run) 232 232 { 233 233 ts << "text run at (" << run.m_x << "," << run.m_y << ") width " << run.m_width; … … 242 242 } 243 243 244 void write( QTextStream &ts, const RenderObject &o, int indent)244 void write(TextStream &ts, const RenderObject &o, int indent) 245 245 { 246 246 #if SVG_SUPPORT … … 251 251 } 252 252 if (o.isKCanvasContainer()) { 253 write(ts, static_cast<const KCanvasContainer&>(o), indent);253 write(ts, static_cast<const RenderSVGContainer&>(o), indent); 254 254 return; 255 255 } … … 288 288 } 289 289 290 static void write( QTextStream &ts, RenderLayer &l,290 static void write(TextStream &ts, RenderLayer &l, 291 291 const IntRect& layerBounds, const IntRect& backgroundClipRect, const IntRect& clipRect, const IntRect& outlineClipRect, 292 292 int layerType = 0, int indent = 0) … … 328 328 } 329 329 330 static void writeLayers( QTextStream &ts, const RenderLayer* rootLayer, RenderLayer* l,330 static void writeLayers(TextStream &ts, const RenderLayer* rootLayer, RenderLayer* l, 331 331 const IntRect& paintDirtyRect, int indent) 332 332 { … … 385 385 } 386 386 387 static void writeSelection( QTextStream &ts, const RenderObject *o)387 static void writeSelection(TextStream &ts, const RenderObject *o) 388 388 { 389 389 Node *n = o->element(); … … 414 414 DeprecatedString s; 415 415 if (o) { 416 QTextStream ts(&s);416 TextStream ts(&s); 417 417 #if SVG_SUPPORT 418 418 ts.precision(2); -
trunk/WebCore/rendering/RenderTreeAsText.h
r13867 r15253 26 26 #ifdef __cplusplus 27 27 28 #include " KWQTextStream.h"28 #include "TextStream.h" 29 29 #include "RenderObject.h" 30 30 … … 34 34 35 35 DeprecatedString externalRepresentation(WebCore::RenderObject *); 36 void write( QTextStream &ts, const WebCore::RenderObject &o, int indent = 0);36 void write(TextStream &ts, const WebCore::RenderObject &o, int indent = 0); 37 37 38 38 #endif -
trunk/WebCore/rendering/RenderView.cpp
r15007 r15253 88 88 void RenderView::calcMinMaxWidth() 89 89 { 90 KHTMLAssert( !minMaxKnown() );90 ASSERT( !minMaxKnown() ); 91 91 92 92 RenderBlock::calcMinMaxWidth(); -
trunk/WebCore/rendering/RenderWidget.cpp
r14827 r15253 94 94 RenderWidget::~RenderWidget() 95 95 { 96 KHTMLAssert(m_refCount <= 0);96 ASSERT(m_refCount <= 0); 97 97 deleteWidget(); 98 98 } … … 141 141 void RenderWidget::layout() 142 142 { 143 KHTMLAssert(needsLayout());144 KHTMLAssert(minMaxKnown());143 ASSERT(needsLayout()); 144 ASSERT(minMaxKnown()); 145 145 146 146 setNeedsLayout(false); -
trunk/WebCore/rendering/bidi.cpp
r14953 r15253 755 755 // See if we have an unconstructed line box for this object that is also 756 756 // the last item on the line. 757 KHTMLAssert(obj->isInlineFlow() || obj == this);757 ASSERT(obj->isInlineFlow() || obj == this); 758 758 RenderFlow* flow = static_cast<RenderFlow*>(obj); 759 759 … … 770 770 // made, we need to place it at the end of the current line. 771 771 InlineBox* newBox = obj->createInlineBox(false, obj == this); 772 KHTMLAssert(newBox->isInlineFlowBox());772 ASSERT(newBox->isInlineFlowBox()); 773 773 box = static_cast<InlineFlowBox*>(newBox); 774 774 box->setFirstLineStyleBit(m_firstLine); … … 873 873 int rtLength = rt->length(); 874 874 if (rtLength != 0) { 875 if (r->start == 0 && needsWordSpacing && QChar(rt->text()[r->start]).isSpace())875 if (r->start == 0 && needsWordSpacing && DeprecatedChar(rt->text()[r->start]).isSpace()) 876 876 effectiveWidth += rt->font(m_firstLine)->wordSpacing(); 877 needsWordSpacing = ! QChar(rt->text()[r->stop-1]).isSpace() && r->stop == rtLength;877 needsWordSpacing = !DeprecatedChar(rt->text()[r->stop-1]).isSpace() && r->stop == rtLength; 878 878 } 879 879 if (!r->compact) { … … 951 951 } 952 952 953 KHTMLAssert(spaces <= numSpaces);953 ASSERT(spaces <= numSpaces); 954 954 955 955 // Only justify text if whitespace is collapsed. … … 1777 1777 curr = next; 1778 1778 } 1779 KHTMLAssert(!m_firstLineBox && !m_lastLineBox);1779 ASSERT(!m_firstLineBox && !m_lastLineBox); 1780 1780 } 1781 1781 } else { … … 2376 2376 tmpW += inlineWidth(o, false, true); 2377 2377 } else 2378 KHTMLAssert( false );2378 ASSERT( false ); 2379 2379 2380 2380 RenderObject* next = bidiNext(start.block, o, bidi); -
trunk/WebCore/xml/XSLStyleSheet.cpp
r15201 r15253 30 30 #include "XSLImportRule.h" 31 31 #include "loader.h" 32 #include " xml_tokenizer.h"32 #include "XMLTokenizer.h" 33 33 #include <libxml/uri.h> 34 34 #include <libxslt/xsltutils.h> -
trunk/WebCore/xml/XSLTProcessor.cpp
r14973 r15253 34 34 #include "HTMLDocument.h" 35 35 #include "HTMLTokenizer.h" 36 #include " KWQLoader.h"36 #include "LoaderFunctions.h" 37 37 #include "Text.h" 38 38 #include "TransferJob.h" … … 87 87 void *oldErrorContext = xmlGenericErrorContext; 88 88 89 Vector<char> data = KWQServeSynchronousRequest(Cache::loader(), globalDocLoader, job, finalURL, headers);89 Vector<char> data = ServeSynchronousRequest(Cache::loader(), globalDocLoader, job, finalURL, headers); 90 90 91 91 xmlSetGenericErrorFunc(0, parseErrorFunc); -
trunk/WebCore/xml/xmlhttprequest.cpp
r14916 r15253 30 30 #include "FormData.h" 31 31 #include "HTMLDocument.h" 32 #include " KWQLoader.h"32 #include "LoaderFunctions.h" 33 33 #include "PlatformString.h" 34 34 #include "RegularExpression.h" … … 91 91 if (c == ';') 92 92 break; 93 else if ( QChar(c).isSpace()) // FIXME: This seems wrong, " " is an invalid MIME type character according to RFC 2045. bug 864493 else if (DeprecatedChar(c).isSpace()) // FIXME: This seems wrong, " " is an invalid MIME type character according to RFC 2045. bug 8644 94 94 continue; 95 95 // FIXME: This is a very slow way to build a string, given WebCore::String's implementation. … … 338 338 // avoid deadlock in case the loader wants to use JS on a background thread 339 339 KJS::JSLock::DropAllLocks dropLocks; 340 data = KWQServeSynchronousRequest(Cache::loader(), m_doc->docLoader(), m_job, finalURL, headers);340 data = ServeSynchronousRequest(Cache::loader(), m_doc->docLoader(), m_job, finalURL, headers); 341 341 } 342 342 -
trunk/WebCore/xpath/impl/XPathParser.cpp
r14729 r15253 149 149 void Parser::skipWS() 150 150 { 151 while (m_nextPos < m_data.length() && QChar(m_data[m_nextPos]).isSpace())151 while (m_nextPos < m_data.length() && DeprecatedChar(m_data[m_nextPos]).isSpace()) 152 152 ++m_nextPos; 153 153 }
Note:
See TracChangeset
for help on using the changeset viewer.