Changeset 38202 in webkit
- Timestamp:
- Nov 6, 2008 3:10:10 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 83 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r38200 r38202 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD FIX: Backed out r38189 since it apparently broke the world. 4 1 5 2008-11-06 Chris Fleizach <cfleizach@apple.com> 2 6 -
trunk/WebCore/bindings/js/GCController.cpp
r38189 r38202 53 53 GCController& gcController() 54 54 { 55 static GCController & staticGCController = *newGCController;55 static GCController staticGCController; 56 56 return staticGCController; 57 57 } -
trunk/WebCore/bindings/js/JSDOMBinding.cpp
r38189 r38202 98 98 { 99 99 #if ENABLE(WORKERS) 100 static ThreadSpecific<HashSet<DOMObject*> > & staticWrapperSet = *new ThreadSpecific<HashSet<DOMObject*> >;100 static ThreadSpecific<HashSet<DOMObject*> > staticWrapperSet; 101 101 return *staticWrapperSet; 102 102 #else 103 static HashSet<DOMObject*> & staticWrapperSet = *new HashSet<DOMObject*>;103 static HashSet<DOMObject*> staticWrapperSet; 104 104 return staticWrapperSet; 105 105 #endif -
trunk/WebCore/bindings/js/JSInspectedObjectWrapper.cpp
r38189 r38202 41 41 static GlobalObjectWrapperMap& wrappers() 42 42 { 43 static GlobalObjectWrapperMap & map = *new GlobalObjectWrapperMap;43 static GlobalObjectWrapperMap map; 44 44 return map; 45 45 } -
trunk/WebCore/bindings/js/JSInspectorCallbackWrapper.cpp
r38189 r38202 39 39 static WrapperMap& wrappers() 40 40 { 41 static WrapperMap & map = *new WrapperMap;41 static WrapperMap map; 42 42 return map; 43 43 } -
trunk/WebCore/bridge/runtime_root.cpp
r38189 r38202 43 43 static RootObjectSet* rootObjectSet() 44 44 { 45 static RootObjectSet & staticRootObjectSet = *newRootObjectSet;45 static RootObjectSet staticRootObjectSet; 46 46 return &staticRootObjectSet; 47 47 } -
trunk/WebCore/css/CSSMutableStyleDeclaration.cpp
r38189 r38202 502 502 ec = 0; 503 503 504 static HashMap<int, PropertyLonghand> & shorthandMap = *new HashMap<int, PropertyLonghand>;504 static HashMap<int, PropertyLonghand> shorthandMap; 505 505 if (shorthandMap.isEmpty()) 506 506 initShorthandMap(shorthandMap); -
trunk/WebCore/css/CSSPrimitiveValue.cpp
r38189 r38202 687 687 break; 688 688 case CSS_RECT: { 689 static const String & rectParen = *new String("rect(");689 static const String rectParen("rect("); 690 690 691 691 Rect* rectVal = getRectValue(); … … 710 710 case CSS_RGBCOLOR: 711 711 case CSS_PARSER_HEXCOLOR: { 712 static const String & commaSpace = *new String(", ");713 static const String & rgbParen = *new String("rgb(");714 static const String & rgbaParen = *new String("rgba(");712 static const String commaSpace(", "); 713 static const String rgbParen("rgb("); 714 static const String rgbaParen("rgba("); 715 715 716 716 RGBA32 rgbColor = m_value.rgbcolor; -
trunk/WebCore/css/CSSSelector.cpp
r38189 r38202 63 63 return; 64 64 65 static AtomicString & active = *new AtomicString("active");66 static AtomicString & after = *new AtomicString("after");67 static AtomicString & anyLink = *new AtomicString("-webkit-any-link");68 static AtomicString & autofill = *new AtomicString("-webkit-autofill");69 static AtomicString & before = *new AtomicString("before");70 static AtomicString & checked = *new AtomicString("checked");71 static AtomicString & fileUploadButton = *new AtomicString("-webkit-file-upload-button");72 static AtomicString & disabled = *new AtomicString("disabled");73 static AtomicString & readOnly = *new AtomicString("read-only");74 static AtomicString & readWrite = *new AtomicString("read-write");75 static AtomicString & drag = *new AtomicString("-webkit-drag");76 static AtomicString & dragAlias = *new AtomicString("-khtml-drag"); // was documented with this name in Apple documentation, so keep an alias77 static AtomicString & empty = *new AtomicString("empty");78 static AtomicString & enabled = *new AtomicString("enabled");79 static AtomicString & firstChild = *new AtomicString("first-child");80 static AtomicString & firstLetter = *new AtomicString("first-letter");81 static AtomicString & firstLine = *new AtomicString("first-line");82 static AtomicString & firstOfType = *new AtomicString("first-of-type");83 static AtomicString & fullPageMedia = *new AtomicString("-webkit-full-page-media");84 static AtomicString & nthChild = *new AtomicString("nth-child(");85 static AtomicString & nthOfType = *new AtomicString("nth-of-type(");86 static AtomicString & nthLastChild = *new AtomicString("nth-last-child(");87 static AtomicString & nthLastOfType = *new AtomicString("nth-last-of-type(");88 static AtomicString & focus = *new AtomicString("focus");89 static AtomicString & hover = *new AtomicString("hover");90 static AtomicString & indeterminate = *new AtomicString("indeterminate");91 static AtomicString & inputPlaceholder = *new AtomicString("-webkit-input-placeholder");92 static AtomicString & lastChild = *new AtomicString("last-child");93 static AtomicString & lastOfType = *new AtomicString("last-of-type");94 static AtomicString & link = *new AtomicString("link");95 static AtomicString & lang = *new AtomicString("lang(");96 static AtomicString & mediaControlsPanel = *new AtomicString("-webkit-media-controls-panel");97 static AtomicString & mediaControlsMuteButton = *new AtomicString("-webkit-media-controls-mute-button");98 static AtomicString & mediaControlsPlayButton = *new AtomicString("-webkit-media-controls-play-button");99 static AtomicString & mediaControlsTimeDisplay = *new AtomicString("-webkit-media-controls-time-display");100 static AtomicString & mediaControlsTimeline = *new AtomicString("-webkit-media-controls-timeline");101 static AtomicString & mediaControlsSeekBackButton = *new AtomicString("-webkit-media-controls-seek-back-button");102 static AtomicString & mediaControlsSeekForwardButton = *new AtomicString("-webkit-media-controls-seek-forward-button");103 static AtomicString & mediaControlsFullscreenButton = *new AtomicString("-webkit-media-controls-fullscreen-button");104 static AtomicString & notStr = *new AtomicString("not(");105 static AtomicString & onlyChild = *new AtomicString("only-child");106 static AtomicString & onlyOfType = *new AtomicString("only-of-type");107 static AtomicString & resizer = *new AtomicString("-webkit-resizer");108 static AtomicString & root = *new AtomicString("root");109 static AtomicString & scrollbar = *new AtomicString("-webkit-scrollbar");110 static AtomicString & scrollbarButton = *new AtomicString("-webkit-scrollbar-button");111 static AtomicString & scrollbarCorner = *new AtomicString("-webkit-scrollbar-corner");112 static AtomicString & scrollbarThumb = *new AtomicString("-webkit-scrollbar-thumb");113 static AtomicString & scrollbarTrack = *new AtomicString("-webkit-scrollbar-track");114 static AtomicString & scrollbarTrackPiece = *new AtomicString("-webkit-scrollbar-track-piece");115 static AtomicString & searchCancelButton = *new AtomicString("-webkit-search-cancel-button");116 static AtomicString & searchDecoration = *new AtomicString("-webkit-search-decoration");117 static AtomicString & searchResultsDecoration = *new AtomicString("-webkit-search-results-decoration");118 static AtomicString & searchResultsButton = *new AtomicString("-webkit-search-results-button");119 static AtomicString & selection = *new AtomicString("selection");120 static AtomicString & sliderThumb = *new AtomicString("-webkit-slider-thumb");121 static AtomicString & target = *new AtomicString("target");122 static AtomicString & visited = *new AtomicString("visited");123 static AtomicString & windowInactive = *new AtomicString("window-inactive");124 static AtomicString & decrement = *new AtomicString("decrement");125 static AtomicString & increment = *new AtomicString("increment");126 static AtomicString & start = *new AtomicString("start");127 static AtomicString & end = *new AtomicString("end");128 static AtomicString & horizontal = *new AtomicString("horizontal");129 static AtomicString & vertical = *new AtomicString("vertical");130 static AtomicString & doubleButton = *new AtomicString("double-button");131 static AtomicString & singleButton = *new AtomicString("single-button");132 static AtomicString & noButton = *new AtomicString("no-button");133 static AtomicString & cornerPresent = *new AtomicString("corner-present");65 static AtomicString active("active"); 66 static AtomicString after("after"); 67 static AtomicString anyLink("-webkit-any-link"); 68 static AtomicString autofill("-webkit-autofill"); 69 static AtomicString before("before"); 70 static AtomicString checked("checked"); 71 static AtomicString fileUploadButton("-webkit-file-upload-button"); 72 static AtomicString disabled("disabled"); 73 static AtomicString readOnly("read-only"); 74 static AtomicString readWrite("read-write"); 75 static AtomicString drag("-webkit-drag"); 76 static AtomicString dragAlias("-khtml-drag"); // was documented with this name in Apple documentation, so keep an alias 77 static AtomicString empty("empty"); 78 static AtomicString enabled("enabled"); 79 static AtomicString firstChild("first-child"); 80 static AtomicString firstLetter("first-letter"); 81 static AtomicString firstLine("first-line"); 82 static AtomicString firstOfType("first-of-type"); 83 static AtomicString fullPageMedia("-webkit-full-page-media"); 84 static AtomicString nthChild("nth-child("); 85 static AtomicString nthOfType("nth-of-type("); 86 static AtomicString nthLastChild("nth-last-child("); 87 static AtomicString nthLastOfType("nth-last-of-type("); 88 static AtomicString focus("focus"); 89 static AtomicString hover("hover"); 90 static AtomicString indeterminate("indeterminate"); 91 static AtomicString inputPlaceholder("-webkit-input-placeholder"); 92 static AtomicString lastChild("last-child"); 93 static AtomicString lastOfType("last-of-type"); 94 static AtomicString link("link"); 95 static AtomicString lang("lang("); 96 static AtomicString mediaControlsPanel("-webkit-media-controls-panel"); 97 static AtomicString mediaControlsMuteButton("-webkit-media-controls-mute-button"); 98 static AtomicString mediaControlsPlayButton("-webkit-media-controls-play-button"); 99 static AtomicString mediaControlsTimeDisplay("-webkit-media-controls-time-display"); 100 static AtomicString mediaControlsTimeline("-webkit-media-controls-timeline"); 101 static AtomicString mediaControlsSeekBackButton("-webkit-media-controls-seek-back-button"); 102 static AtomicString mediaControlsSeekForwardButton("-webkit-media-controls-seek-forward-button"); 103 static AtomicString mediaControlsFullscreenButton("-webkit-media-controls-fullscreen-button"); 104 static AtomicString notStr("not("); 105 static AtomicString onlyChild("only-child"); 106 static AtomicString onlyOfType("only-of-type"); 107 static AtomicString resizer("-webkit-resizer"); 108 static AtomicString root("root"); 109 static AtomicString scrollbar("-webkit-scrollbar"); 110 static AtomicString scrollbarButton("-webkit-scrollbar-button"); 111 static AtomicString scrollbarCorner("-webkit-scrollbar-corner"); 112 static AtomicString scrollbarThumb("-webkit-scrollbar-thumb"); 113 static AtomicString scrollbarTrack("-webkit-scrollbar-track"); 114 static AtomicString scrollbarTrackPiece("-webkit-scrollbar-track-piece"); 115 static AtomicString searchCancelButton("-webkit-search-cancel-button"); 116 static AtomicString searchDecoration("-webkit-search-decoration"); 117 static AtomicString searchResultsDecoration("-webkit-search-results-decoration"); 118 static AtomicString searchResultsButton("-webkit-search-results-button"); 119 static AtomicString selection("selection"); 120 static AtomicString sliderThumb("-webkit-slider-thumb"); 121 static AtomicString target("target"); 122 static AtomicString visited("visited"); 123 static AtomicString windowInactive("window-inactive"); 124 static AtomicString decrement("decrement"); 125 static AtomicString increment("increment"); 126 static AtomicString start("start"); 127 static AtomicString end("end"); 128 static AtomicString horizontal("horizontal"); 129 static AtomicString vertical("vertical"); 130 static AtomicString doubleButton("double-button"); 131 static AtomicString singleButton("single-button"); 132 static AtomicString noButton("no-button"); 133 static AtomicString cornerPresent("corner-present"); 134 134 135 135 bool element = false; // pseudo-element -
trunk/WebCore/css/CSSStyleSelector.cpp
r38189 r38202 373 373 static const MediaQueryEvaluator& screenEval() 374 374 { 375 static const MediaQueryEvaluator & staticScreenEval = *new MediaQueryEvaluator("screen");375 static const MediaQueryEvaluator staticScreenEval("screen"); 376 376 return staticScreenEval; 377 377 } … … 379 379 static const MediaQueryEvaluator& printEval() 380 380 { 381 static const MediaQueryEvaluator & staticPrintEval = *new MediaQueryEvaluator("print");381 static const MediaQueryEvaluator staticPrintEval("print"); 382 382 return staticPrintEval; 383 383 } -
trunk/WebCore/dom/DOMImplementation.cpp
r38189 r38202 65 65 { 66 66 static bool initialized = false; 67 static HashSet<String, CaseFoldingHash> & svgFeatures = *new HashSet<String, CaseFoldingHash>;67 static HashSet<String, CaseFoldingHash> svgFeatures; 68 68 if (!initialized) { 69 69 #if ENABLE(SVG_USE) && ENABLE(SVG_FOREIGN_OBJECT) && ENABLE(SVG_FILTER) && ENABLE(SVG_FONTS) … … 90 90 { 91 91 static bool initialized = false; 92 static HashSet<String, CaseFoldingHash> & svgFeatures = *new HashSet<String, CaseFoldingHash>;92 static HashSet<String, CaseFoldingHash> svgFeatures; 93 93 if (!initialized) { 94 94 // Sadly, we cannot claim to implement any of the SVG 1.1 generic feature sets … … 275 275 return true; 276 276 static const char* validChars = "[0-9a-zA-Z_\\-+~!$\\^{}|.%'`#&*]"; // per RFCs: 3023, 2045 277 static RegularExpression & xmlTypeRegExp = *new RegularExpression(String("^") + validChars + "+/" + validChars + "+\\+xml$");277 static RegularExpression xmlTypeRegExp(String("^") + validChars + "+/" + validChars + "+\\+xml$"); 278 278 return xmlTypeRegExp.match(mimeType) > -1; 279 279 } -
trunk/WebCore/dom/Document.cpp
r38189 r38202 714 714 bool Document::hasPrefixNamespaceMismatch(const QualifiedName& qName) 715 715 { 716 static const AtomicString & xmlnsNamespaceURI = *new AtomicString("http://www.w3.org/2000/xmlns/");717 static const AtomicString & xmlns = *new AtomicString("xmlns");718 static const AtomicString & xml = *new AtomicString("xml");716 static const AtomicString xmlnsNamespaceURI("http://www.w3.org/2000/xmlns/"); 717 static const AtomicString xmlns("xmlns"); 718 static const AtomicString xml("xml"); 719 719 720 720 // These checks are from DOM Core Level 2, createElementNS -
trunk/WebCore/dom/ScriptElement.cpp
r38189 r38202 92 92 static bool isSupportedJavaScriptLanguage(const String& language) 93 93 { 94 static HashSet<String, CaseFoldingHash> & languages = *new HashSet<String, CaseFoldingHash>;94 static HashSet<String, CaseFoldingHash> languages; 95 95 if (languages.isEmpty()) { 96 96 languages.add("javascript"); -
trunk/WebCore/editing/ApplyStyleCommand.cpp
r38189 r38202 217 217 static String &styleSpanClassString() 218 218 { 219 static String & styleSpanClassString = *new String(AppleStyleSpanClass);219 static String styleSpanClassString = AppleStyleSpanClass; 220 220 return styleSpanClassString; 221 221 } -
trunk/WebCore/editing/HTMLInterchange.cpp
r38189 r38202 37 37 String convertedSpaceString() 38 38 { 39 static String & convertedSpaceString = *newString;39 static String convertedSpaceString; 40 40 if (convertedSpaceString.isNull()) { 41 41 convertedSpaceString = "<span class=\""; -
trunk/WebCore/editing/IndentOutdentCommand.cpp
r38189 r38202 44 44 static String indentBlockquoteString() 45 45 { 46 static String & string = *new String("webkit-indent-blockquote");46 static String string = "webkit-indent-blockquote"; 47 47 return string; 48 48 } -
trunk/WebCore/editing/ReplaceSelectionCommand.cpp
r38189 r38202 90 90 static bool isInterchangeNewlineNode(const Node *node) 91 91 { 92 static String & interchangeNewlineClassString = *newString(AppleInterchangeNewline);92 static String interchangeNewlineClassString(AppleInterchangeNewline); 93 93 return node && node->hasTagName(brTag) && 94 94 static_cast<const Element *>(node)->getAttribute(classAttr) == interchangeNewlineClassString; … … 97 97 static bool isInterchangeConvertedSpaceSpan(const Node *node) 98 98 { 99 static String & convertedSpaceSpanClassString = *newString(AppleConvertedSpace);99 static String convertedSpaceSpanClassString(AppleConvertedSpace); 100 100 return node->isHTMLElement() && 101 101 static_cast<const HTMLElement *>(node)->getAttribute(classAttr) == convertedSpaceSpanClassString; -
trunk/WebCore/editing/htmlediting.cpp
r38189 r38202 365 365 String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph) 366 366 { 367 static String & twoSpaces = *new String(" ");368 static String & nbsp = *new String("\xa0");369 static String & pattern = *new String(" \xa0");367 static String twoSpaces(" "); 368 static String nbsp("\xa0"); 369 static String pattern(" \xa0"); 370 370 371 371 String rebalancedString = string; … … 394 394 const String& nonBreakingSpaceString() 395 395 { 396 static String & nonBreakingSpaceString = *newString(&noBreakSpace, 1);396 static String nonBreakingSpaceString = String(&noBreakSpace, 1); 397 397 return nonBreakingSpaceString; 398 398 } -
trunk/WebCore/editing/markup.cpp
r38189 r38202 95 95 unsigned lastCopiedFrom = 0; 96 96 97 static const String & ampEntity = *new String("&");98 static const String & gtEntity = *new String(">");99 static const String & ltEntity = *new String("<");100 static const String & quotEntity = *new String(""");101 static const String & nbspEntity = *new String(" ");97 static const String ampEntity("&"); 98 static const String gtEntity(">"); 99 static const String ltEntity("<"); 100 static const String quotEntity("""); 101 static const String nbspEntity(" "); 102 102 103 103 for (unsigned i = 0; i < len; ++i) { … … 143 143 unsigned lastCopiedFrom = 0; 144 144 145 static const String & ampEntity = *new String("&");146 static const String & gtEntity = *new String(">");147 static const String & ltEntity = *new String("<");148 static const String & nbspEntity = *new String(" ");145 static const String ampEntity("&"); 146 static const String gtEntity(">"); 147 static const String ltEntity("<"); 148 static const String nbspEntity(" "); 149 149 150 150 for (unsigned i = 0; i < len; ++i) { … … 317 317 { 318 318 // Don't add namespace attributes twice 319 static const AtomicString & xmlnsURI = *new AtomicString("http://www.w3.org/2000/xmlns/");320 static const QualifiedName & xmlnsAttr = *new QualifiedName(nullAtom, "xmlns", xmlnsURI);319 static const AtomicString xmlnsURI = "http://www.w3.org/2000/xmlns/"; 320 static const QualifiedName xmlnsAttr(nullAtom, "xmlns", xmlnsURI); 321 321 if (attr->name() == xmlnsAttr) { 322 322 namespaces.set(emptyAtom.impl(), attr->value().impl()); … … 343 343 if (foundNS != ns.impl()) { 344 344 namespaces.set(pre, ns.impl()); 345 static const String & xmlns = *new String("xmlns");345 static const String xmlns("xmlns"); 346 346 result.append(' '); 347 347 append(result, xmlns); … … 502 502 style->setProperty(CSSPropertyDisplay, CSSValueInline, true); 503 503 if (style->length() > 0) { 504 static const String & stylePrefix = *new String(" style=\"");504 static const String stylePrefix(" style=\""); 505 505 append(result, stylePrefix); 506 506 appendAttributeValue(result, style->cssText(), documentIsHTML); … … 703 703 String createMarkup(const Range* range, Vector<Node*>* nodes, EAnnotateForInterchange annotate, bool convertBlocksToInlines) 704 704 { 705 static const String & interchangeNewlineString = *new String("<br class=\"" AppleInterchangeNewline "\">");705 static const String interchangeNewlineString = String("<br class=\"") + AppleInterchangeNewline + "\">"; 706 706 707 707 if (!range) … … 906 906 if (style->length()) { 907 907 Vector<UChar> openTag; 908 static const String & divStyle = *new String("<div style=\"");908 static const String divStyle("<div style=\""); 909 909 append(openTag, divStyle); 910 910 appendAttributeValue(openTag, style->cssText(), documentIsHTML); … … 913 913 preMarkups.append(String::adopt(openTag)); 914 914 915 static const String & divCloseTag = *new String("</div>");915 static const String divCloseTag("</div>"); 916 916 markups.append(divCloseTag); 917 917 } … … 930 930 } 931 931 932 static const String & styleSpanOpen = *newString("<span class=\"" AppleStyleSpanClass "\" style=\"");933 static const String & styleSpanClose = *new String("</span>");932 static const String styleSpanOpen = String("<span class=\"" AppleStyleSpanClass "\" style=\""); 933 static const String styleSpanClose("</span>"); 934 934 935 935 // Add a wrapper span with the styles that all of the nodes in the markup inherit. -
trunk/WebCore/html/HTMLButtonElement.cpp
r38189 r38202 58 58 switch (m_type) { 59 59 case SUBMIT: { 60 static const AtomicString & submit = *new AtomicString("submit");60 static const AtomicString submit("submit"); 61 61 return submit; 62 62 } 63 63 case BUTTON: { 64 static const AtomicString & button = *new AtomicString("button");64 static const AtomicString button("button"); 65 65 return button; 66 66 } 67 67 case RESET: { 68 static const AtomicString & reset = *new AtomicString("reset");68 static const AtomicString reset("reset"); 69 69 return reset; 70 70 } -
trunk/WebCore/html/HTMLElement.cpp
r38189 r38202 809 809 bool HTMLElement::isRecognizedTagName(const QualifiedName& tagName) 810 810 { 811 static HashSet<AtomicStringImpl*> & tagList = *new HashSet<AtomicStringImpl*>;811 static HashSet<AtomicStringImpl*> tagList; 812 812 if (tagList.isEmpty()) { 813 813 size_t tagCount = 0; … … 823 823 HashSet<AtomicStringImpl*>* inlineTagList() 824 824 { 825 static HashSet<AtomicStringImpl*> & tagList = *new HashSet<AtomicStringImpl*>;825 static HashSet<AtomicStringImpl*> tagList; 826 826 if (tagList.isEmpty()) { 827 827 tagList.add(ttTag.localName().impl()); … … 882 882 HashSet<AtomicStringImpl*>* blockTagList() 883 883 { 884 static HashSet<AtomicStringImpl*> & tagList = *new HashSet<AtomicStringImpl*>;884 static HashSet<AtomicStringImpl*> tagList; 885 885 if (tagList.isEmpty()) { 886 886 tagList.add(addressTag.localName().impl()); -
trunk/WebCore/html/HTMLFieldSetElement.cpp
r38189 r38202 56 56 const AtomicString& HTMLFieldSetElement::type() const 57 57 { 58 static const AtomicString & fieldset = *new AtomicString("fieldset");58 static const AtomicString fieldset("fieldset"); 59 59 return fieldset; 60 60 } -
trunk/WebCore/html/HTMLInputElement.cpp
r38193 r38202 374 374 switch (inputType()) { 375 375 case BUTTON: { 376 static const AtomicString & button = *new AtomicString("button");376 static const AtomicString button("button"); 377 377 return button; 378 378 } 379 379 case CHECKBOX: { 380 static const AtomicString & checkbox = *new AtomicString("checkbox");380 static const AtomicString checkbox("checkbox"); 381 381 return checkbox; 382 382 } 383 383 case FILE: { 384 static const AtomicString & file = *new AtomicString("file");384 static const AtomicString file("file"); 385 385 return file; 386 386 } 387 387 case HIDDEN: { 388 static const AtomicString & hidden = *new AtomicString("hidden");388 static const AtomicString hidden("hidden"); 389 389 return hidden; 390 390 } 391 391 case IMAGE: { 392 static const AtomicString & image = *new AtomicString("image");392 static const AtomicString image("image"); 393 393 return image; 394 394 } … … 396 396 return emptyAtom; 397 397 case PASSWORD: { 398 static const AtomicString & password = *new AtomicString("password");398 static const AtomicString password("password"); 399 399 return password; 400 400 } 401 401 case RADIO: { 402 static const AtomicString & radio = *new AtomicString("radio");402 static const AtomicString radio("radio"); 403 403 return radio; 404 404 } 405 405 case RANGE: { 406 static const AtomicString & range = *new AtomicString("range");406 static const AtomicString range("range"); 407 407 return range; 408 408 } 409 409 case RESET: { 410 static const AtomicString & reset = *new AtomicString("reset");410 static const AtomicString reset("reset"); 411 411 return reset; 412 412 } 413 413 case SEARCH: { 414 static const AtomicString & search = *new AtomicString("search");414 static const AtomicString search("search"); 415 415 return search; 416 416 } 417 417 case SUBMIT: { 418 static const AtomicString & submit = *new AtomicString("submit");418 static const AtomicString submit("submit"); 419 419 return submit; 420 420 } 421 421 case TEXT: { 422 static const AtomicString & text = *new AtomicString("text");422 static const AtomicString text("text"); 423 423 return text; 424 424 } -
trunk/WebCore/html/HTMLKeygenElement.cpp
r38189 r38202 57 57 const AtomicString& HTMLKeygenElement::type() const 58 58 { 59 static const AtomicString & keygen = *new AtomicString("keygen");59 static const AtomicString keygen("keygen"); 60 60 return keygen; 61 61 } -
trunk/WebCore/html/HTMLLegendElement.cpp
r38189 r38202 59 59 const AtomicString& HTMLLegendElement::type() const 60 60 { 61 static const AtomicString & legend = *new AtomicString("legend");61 static const AtomicString legend("legend"); 62 62 return legend; 63 63 } -
trunk/WebCore/html/HTMLOptGroupElement.cpp
r38189 r38202 50 50 const AtomicString& HTMLOptGroupElement::type() const 51 51 { 52 static const AtomicString & optgroup = *new AtomicString("optgroup");52 static const AtomicString optgroup("optgroup"); 53 53 return optgroup; 54 54 } -
trunk/WebCore/html/HTMLOptionElement.cpp
r38189 r38202 74 74 const AtomicString& HTMLOptionElement::type() const 75 75 { 76 static const AtomicString & option = *new AtomicString("option");76 static const AtomicString option("option"); 77 77 return option; 78 78 } -
trunk/WebCore/html/HTMLParser.cpp
r38189 r38202 833 833 { 834 834 // Init our error handling table. 835 static FunctionMap & gFunctionMap = *newFunctionMap;835 static FunctionMap gFunctionMap; 836 836 if (gFunctionMap.isEmpty()) { 837 837 gFunctionMap.set(aTag.localName().impl(), &HTMLParser::nestedCreateErrorCheck); … … 944 944 bool HTMLParser::isHeaderTag(const AtomicString& tagName) 945 945 { 946 static HashSet<AtomicStringImpl*> & headerTags = *new HashSet<AtomicStringImpl*>;946 static HashSet<AtomicStringImpl*> headerTags; 947 947 if (headerTags.isEmpty()) { 948 948 headerTags.add(h1Tag.localName().impl()); … … 987 987 bool HTMLParser::isResidualStyleTag(const AtomicString& tagName) 988 988 { 989 static HashSet<AtomicStringImpl*> & residualStyleTags = *new HashSet<AtomicStringImpl*>;989 static HashSet<AtomicStringImpl*> residualStyleTags; 990 990 if (residualStyleTags.isEmpty()) { 991 991 residualStyleTags.add(aTag.localName().impl()); … … 1014 1014 bool HTMLParser::isAffectedByResidualStyle(const AtomicString& tagName) 1015 1015 { 1016 static HashSet<AtomicStringImpl*> & unaffectedTags = *new HashSet<AtomicStringImpl*>;1016 static HashSet<AtomicStringImpl*> unaffectedTags; 1017 1017 if (unaffectedTags.isEmpty()) { 1018 1018 unaffectedTags.add(bodyTag.localName().impl()); -
trunk/WebCore/html/HTMLSelectElement.cpp
r38189 r38202 115 115 const AtomicString& HTMLSelectElement::type() const 116 116 { 117 static const AtomicString & selectMultiple = *new AtomicString("select-multiple");118 static const AtomicString & selectOne = *new AtomicString("select-one");117 static const AtomicString selectMultiple("select-multiple"); 118 static const AtomicString selectOne("select-one"); 119 119 return m_multiple ? selectMultiple : selectOne; 120 120 } -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r38189 r38202 60 60 const AtomicString& HTMLTextAreaElement::type() const 61 61 { 62 static const AtomicString & textarea = *new AtomicString("textarea");62 static const AtomicString textarea("textarea"); 63 63 return textarea; 64 64 } -
trunk/WebCore/inspector/InspectorController.cpp
r38189 r38202 863 863 #if PLATFORM(MAC) 864 864 #ifdef BUILDING_ON_TIGER 865 static const String & platform = *new String("mac-tiger");865 static const String platform = "mac-tiger"; 866 866 #else 867 static const String & platform = *new String("mac-leopard");867 static const String platform = "mac-leopard"; 868 868 #endif 869 869 #elif PLATFORM(WIN_OS) 870 static const String & platform = *new String("windows");870 static const String platform = "windows"; 871 871 #elif PLATFORM(QT) 872 static const String & platform = *new String("qt");872 static const String platform = "qt"; 873 873 #elif PLATFORM(GTK) 874 static const String & platform = *new String("gtk");874 static const String platform = "gtk"; 875 875 #elif PLATFORM(WX) 876 static const String & platform = *new String("wx");876 static const String platform = "wx"; 877 877 #else 878 static const String & platform = *new String("unknown");878 static const String platform = "unknown"; 879 879 #endif 880 880 -
trunk/WebCore/inspector/JavaScriptDebugServer.cpp
r38189 r38202 60 60 JavaScriptDebugServer& JavaScriptDebugServer::shared() 61 61 { 62 static JavaScriptDebugServer & server = *new JavaScriptDebugServer;62 static JavaScriptDebugServer server; 63 63 return server; 64 64 } -
trunk/WebCore/inspector/JavaScriptProfile.cpp
r38189 r38202 46 46 static ProfileMap& profileCache() 47 47 { 48 static ProfileMap & staticProfiles = *new ProfileMap;48 static ProfileMap staticProfiles; 49 49 return staticProfiles; 50 50 } -
trunk/WebCore/inspector/JavaScriptProfileNode.cpp
r38189 r38202 47 47 static ProfileNodeMap& profileNodeCache() 48 48 { 49 static ProfileNodeMap & staticProfileNodes = *new ProfileNodeMap;49 static ProfileNodeMap staticProfileNodes; 50 50 return staticProfileNodes; 51 51 } -
trunk/WebCore/loader/FrameLoader.cpp
r38201 r38202 1173 1173 static HashSet<String, CaseFoldingHash>& localSchemes() 1174 1174 { 1175 static HashSet<String, CaseFoldingHash> & localSchemes = *new HashSet<String, CaseFoldingHash>;1175 static HashSet<String, CaseFoldingHash> localSchemes; 1176 1176 1177 1177 if (localSchemes.isEmpty()) { -
trunk/WebCore/loader/appcache/ApplicationCacheStorage.cpp
r38189 r38202 654 654 ApplicationCacheStorage& cacheStorage() 655 655 { 656 static ApplicationCacheStorage & storage = *new ApplicationCacheStorage;656 static ApplicationCacheStorage storage; 657 657 658 658 return storage; -
trunk/WebCore/loader/archive/ArchiveFactory.cpp
r38189 r38202 52 52 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& archiveMIMETypes() 53 53 { 54 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash> & mimeTypes = *new HashMap<String, RawDataCreationFunction*, CaseFoldingHash>;54 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash> mimeTypes; 55 55 static bool initialized = false; 56 56 -
trunk/WebCore/loader/icon/IconDatabase.cpp
r38189 r38202 851 851 String IconDatabase::defaultDatabaseFilename() 852 852 { 853 static String & defaultDatabaseFilename = *new String("WebpageIcons.db");853 static String defaultDatabaseFilename = "WebpageIcons.db"; 854 854 return defaultDatabaseFilename.copy(); 855 855 } -
trunk/WebCore/page/EventHandler.cpp
r38189 r38202 151 151 EventHandler::EventHandlerDragState& EventHandler::dragState() 152 152 { 153 static EventHandlerDragState & state = *new EventHandlerDragState;153 static EventHandlerDragState state; 154 154 return state; 155 155 } -
trunk/WebCore/page/Frame.cpp
r38189 r38202 318 318 // the same across calls. We can't do that. 319 319 320 static RegularExpression & wordRegExp = *newRegularExpression("\\w");320 static RegularExpression wordRegExp = RegularExpression("\\w"); 321 321 String pattern("("); 322 322 unsigned int numLabels = labels.size(); … … 1012 1012 static HashSet<Frame*>& keepAliveSet() 1013 1013 { 1014 static HashSet<Frame*> & staticKeepAliveSet = *new HashSet<Frame*>;1014 static HashSet<Frame*> staticKeepAliveSet; 1015 1015 return staticKeepAliveSet; 1016 1016 } -
trunk/WebCore/page/Page.cpp
r38189 r38202 233 233 const String& Page::groupName() const 234 234 { 235 static String & nullString = *newString;235 static String nullString; 236 236 return m_group ? m_group->name() : nullString; 237 237 } -
trunk/WebCore/page/SecurityOrigin.cpp
r38189 r38202 42 42 return false; 43 43 44 static HashMap<String, unsigned> & defaultPorts = *new HashMap<String, unsigned>;44 static HashMap<String, unsigned> defaultPorts; 45 45 if (defaultPorts.isEmpty()) { 46 46 defaultPorts.set("http", 80); … … 261 261 String SecurityOrigin::databaseIdentifier() const 262 262 { 263 static String & separatorString = *newString(&SeparatorCharacter, 1);263 static String separatorString = String(&SeparatorCharacter, 1); 264 264 return m_protocol + separatorString + m_host + separatorString + String::number(m_port); 265 265 } -
trunk/WebCore/page/mac/FrameMac.mm
r38189 r38202 89 89 static const unsigned int regExpCacheSize = 4; 90 90 static NSMutableArray* regExpLabels = nil; 91 static Vector<RegularExpression*> & regExps = *new Vector<RegularExpression*>;92 static RegularExpression & wordRegExp = *newRegularExpression("\\w");91 static Vector<RegularExpression*> regExps; 92 static RegularExpression wordRegExp = RegularExpression("\\w"); 93 93 94 94 RegularExpression* result; -
trunk/WebCore/platform/KURL.cpp
r38189 r38202 1564 1564 const KURL& blankURL() 1565 1565 { 1566 static KURL & staticBlankURL = *new KURL("about:blank");1566 static KURL staticBlankURL("about:blank"); 1567 1567 return staticBlankURL; 1568 1568 } -
trunk/WebCore/platform/graphics/FontCache.cpp
r38189 r38202 125 125 { 126 126 // Alias Courier <-> Courier New 127 static AtomicString& courier = *new AtomicString("Courier"); 128 static AtomicString& courierNew = *new AtomicString("Courier New"); 127 static AtomicString courier("Courier"), courierNew("Courier New"); 129 128 if (equalIgnoringCase(familyName, courier)) 130 129 return courierNew; … … 133 132 134 133 // Alias Times and Times New Roman. 135 static AtomicString& times = *new AtomicString("Times"); 136 static AtomicString& timesNewRoman = *new AtomicString("Times New Roman"); 134 static AtomicString times("Times"), timesNewRoman("Times New Roman"); 137 135 if (equalIgnoringCase(familyName, times)) 138 136 return timesNewRoman; … … 141 139 142 140 // Alias Arial and Helvetica 143 static AtomicString& arial = *new AtomicString("Arial"); 144 static AtomicString& helvetica = *new AtomicString("Helvetica"); 141 static AtomicString arial("Arial"), helvetica("Helvetica"); 145 142 if (equalIgnoringCase(familyName, arial)) 146 143 return helvetica; -
trunk/WebCore/platform/graphics/mac/FontCacheMac.mm
r38189 r38202 141 141 if (currFamily->family().length()) { 142 142 static String matchWords[3] = { String("Arabic"), String("Pashto"), String("Urdu") }; 143 static AtomicString & geezaStr = *new AtomicString("Geeza Pro");143 static AtomicString geezaStr("Geeza Pro"); 144 144 for (int j = 0; j < 3 && !platformData; ++j) 145 145 if (currFamily->family().contains(matchWords[j], false)) … … 154 154 FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription) 155 155 { 156 static AtomicString & timesStr = *new AtomicString("Times");157 static AtomicString & lucidaGrandeStr = *new AtomicString("Lucida Grande");156 static AtomicString timesStr("Times"); 157 static AtomicString lucidaGrandeStr("Lucida Grande"); 158 158 159 159 // FIXME: Would be even better to somehow get the user's default font here. For now we'll pick -
trunk/WebCore/platform/mac/ScrollbarThemeMac.mm
r38189 r38202 87 87 ScrollbarTheme* ScrollbarTheme::nativeTheme() 88 88 { 89 static ScrollbarThemeMac & theme = *new ScrollbarThemeMac;89 static ScrollbarThemeMac theme; 90 90 return &theme; 91 91 } -
trunk/WebCore/platform/mac/ThemeMac.mm
r38189 r38202 47 47 Theme* platformTheme() 48 48 { 49 static ThemeMac & themeMac = *new ThemeMac;49 static ThemeMac themeMac; 50 50 return &themeMac; 51 51 } -
trunk/WebCore/platform/mac/ThreadCheck.mm
r38189 r38202 80 80 { 81 81 using namespace WebCore; 82 static HashSet<String> & loggedFunctions = *new HashSet<String>;82 static HashSet<String> loggedFunctions; 83 83 switch (threadViolationBehavior) { 84 84 case NoThreadCheck: -
trunk/WebCore/platform/network/NetworkStateNotifier.cpp
r38189 r38202 33 33 NetworkStateNotifier& networkStateNotifier() 34 34 { 35 static NetworkStateNotifier & networkStateNotifier = *new NetworkStateNotifier;35 static NetworkStateNotifier networkStateNotifier; 36 36 37 37 return networkStateNotifier; -
trunk/WebCore/platform/network/mac/FormDataStreamMac.mm
r38189 r38202 50 50 static StreamFormDataMap& getStreamFormDataMap() 51 51 { 52 static StreamFormDataMap & streamFormDataMap = *new StreamFormDataMap;52 static StreamFormDataMap streamFormDataMap; 53 53 return streamFormDataMap; 54 54 } … … 57 57 static StreamResourceHandleMap& getStreamResourceHandleMap() 58 58 { 59 static StreamResourceHandleMap & streamResourceHandleMap = *new StreamResourceHandleMap;59 static StreamResourceHandleMap streamResourceHandleMap; 60 60 return streamResourceHandleMap; 61 61 } -
trunk/WebCore/platform/network/mac/ResourceResponseMac.mm
r38189 r38202 100 100 if (m_url.isLocalFile() && m_mimeType == "text/html") { 101 101 const String& path = m_url.path(); 102 static const String & xhtmlExt = *new String(".xhtml");102 static const String xhtmlExt(".xhtml"); 103 103 if (path.endsWith(xhtmlExt, false)) 104 104 m_mimeType = "application/xhtml+xml"; -
trunk/WebCore/platform/text/TextEncoding.cpp
r38189 r38202 123 123 return false; 124 124 125 static HashSet<const char*> & set = *new HashSet<const char*>;125 static HashSet<const char*> set; 126 126 if (set.isEmpty()) { 127 127 addEncodingName(set, "x-mac-japanese"); -
trunk/WebCore/rendering/RenderBlock.cpp
r38189 r38202 1799 1799 HashMap<RenderBlock*, RenderFlowSequencedSet*>* continuationOutlineTable() 1800 1800 { 1801 static HashMap<RenderBlock*, RenderFlowSequencedSet*> & table = *new HashMap<RenderBlock*, RenderFlowSequencedSet*>;1801 static HashMap<RenderBlock*, RenderFlowSequencedSet*> table; 1802 1802 return &table; 1803 1803 } -
trunk/WebCore/rendering/RenderCounter.cpp
r38189 r38202 42 42 static CounterMaps& counterMaps() 43 43 { 44 static CounterMaps & staticCounterMaps = *newCounterMaps;44 static CounterMaps staticCounterMaps; 45 45 return staticCounterMaps; 46 46 } -
trunk/WebCore/rendering/RenderFlexibleBox.cpp
r38189 r38202 778 778 779 779 const UChar ellipsisAndSpace[2] = { horizontalEllipsis, ' ' }; 780 static AtomicString & ellipsisAndSpaceStr = *new AtomicString(ellipsisAndSpace, 2);780 static AtomicString ellipsisAndSpaceStr(ellipsisAndSpace, 2); 781 781 782 782 const Font& font = style(numVisibleLines == 1)->font(); -
trunk/WebCore/rendering/RenderListItem.cpp
r38189 r38202 290 290 if (m_marker) 291 291 return m_marker->text(); 292 static String & staticNullString = *newString;292 static String staticNullString; 293 293 return staticNullString; 294 294 } -
trunk/WebCore/rendering/RenderScrollbarTheme.cpp
r38189 r38202 32 32 RenderScrollbarTheme* RenderScrollbarTheme::renderScrollbarTheme() 33 33 { 34 static RenderScrollbarTheme & theme = *new RenderScrollbarTheme;34 static RenderScrollbarTheme theme; 35 35 return &theme; 36 36 } -
trunk/WebCore/rendering/RenderThemeMac.mm
r38189 r38202 169 169 void RenderThemeMac::systemFont(int cssValueId, FontDescription& fontDescription) const 170 170 { 171 static FontDescription & systemFont = *new FontDescription;172 static FontDescription & smallSystemFont = *new FontDescription;173 static FontDescription & menuFont = *new FontDescription;174 static FontDescription & labelFont = *new FontDescription;175 static FontDescription & miniControlFont = *new FontDescription;176 static FontDescription & smallControlFont = *new FontDescription;177 static FontDescription & controlFont = *new FontDescription;171 static FontDescription systemFont; 172 static FontDescription smallSystemFont; 173 static FontDescription menuFont; 174 static FontDescription labelFont; 175 static FontDescription miniControlFont; 176 static FontDescription smallControlFont; 177 static FontDescription controlFont; 178 178 179 179 FontDescription* cachedDesc; -
trunk/WebCore/rendering/bidi.cpp
r38189 r38202 2193 2193 // FIXME: CSS3 says this is configurable, also need to use 0x002E (FULL STOP) if horizontal ellipsis is "not renderable" 2194 2194 TextRun ellipsisRun(&horizontalEllipsis, 1); 2195 static AtomicString & ellipsisStr = *new AtomicString(&horizontalEllipsis, 1);2195 static AtomicString ellipsisStr(&horizontalEllipsis, 1); 2196 2196 const Font& firstLineFont = firstLineStyle()->font(); 2197 2197 const Font& font = style()->font(); -
trunk/WebCore/rendering/style/RenderStyle.cpp
r38189 r38202 721 721 const Vector<StyleDashboardRegion>& RenderStyle::initialDashboardRegions() 722 722 { 723 static Vector<StyleDashboardRegion> & emptyList = *new Vector<StyleDashboardRegion>;723 static Vector<StyleDashboardRegion> emptyList; 724 724 return emptyList; 725 725 } … … 727 727 const Vector<StyleDashboardRegion>& RenderStyle::noneDashboardRegions() 728 728 { 729 static Vector<StyleDashboardRegion> & noneList = *new Vector<StyleDashboardRegion>;729 static Vector<StyleDashboardRegion> noneList; 730 730 static bool noneListInitialized = false; 731 731 -
trunk/WebCore/storage/LocalStorage.cpp
r38189 r38202 43 43 static LocalStorageMap& localStorageMap() 44 44 { 45 static LocalStorageMap & localStorageMap = *new LocalStorageMap;45 static LocalStorageMap localStorageMap; 46 46 return localStorageMap; 47 47 } -
trunk/WebCore/svg/SVGAnimateMotionElement.cpp
r38189 r38202 92 92 SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const 93 93 { 94 static const AtomicString & autoVal = *new AtomicString("auto");95 static const AtomicString & autoReverse = *new AtomicString("auto-reverse");94 static const AtomicString autoVal("auto"); 95 static const AtomicString autoReverse("auto-reverse"); 96 96 String rotate = getAttribute(SVGNames::rotateAttr); 97 97 if (rotate == autoVal) -
trunk/WebCore/svg/SVGAnimationElement.cpp
r38189 r38202 197 197 SVGAnimationElement::CalcMode SVGAnimationElement::calcMode() const 198 198 { 199 static const AtomicString & discrete = *new AtomicString("discrete");200 static const AtomicString & linear = *new AtomicString("linear");201 static const AtomicString & paced = *new AtomicString("paced");202 static const AtomicString & spline = *new AtomicString("spline");199 static const AtomicString discrete("discrete"); 200 static const AtomicString linear("linear"); 201 static const AtomicString paced("paced"); 202 static const AtomicString spline("spline"); 203 203 const AtomicString& value = getAttribute(SVGNames::calcModeAttr); 204 204 if (value == discrete) … … 215 215 SVGAnimationElement::AttributeType SVGAnimationElement::attributeType() const 216 216 { 217 static const AtomicString & css = *new AtomicString("CSS");218 static const AtomicString & xml = *new AtomicString("XML");217 static const AtomicString css("CSS"); 218 static const AtomicString xml("XML"); 219 219 const AtomicString& value = getAttribute(SVGNames::attributeTypeAttr); 220 220 if (value == css) … … 242 242 bool SVGAnimationElement::isAdditive() const 243 243 { 244 static const AtomicString & sum = *new AtomicString("sum");244 static const AtomicString sum("sum"); 245 245 const AtomicString& value = getAttribute(SVGNames::additiveAttr); 246 246 return value == sum || animationMode() == ByAnimation; … … 249 249 bool SVGAnimationElement::isAccumulated() const 250 250 { 251 static const AtomicString & sum = *new AtomicString("sum");251 static const AtomicString sum("sum"); 252 252 const AtomicString& value = getAttribute(SVGNames::accumulateAttr); 253 253 return value == sum && animationMode() != ToAnimation; -
trunk/WebCore/svg/SVGLangSpace.cpp
r38189 r38202 52 52 { 53 53 if (!m_space) { 54 static const AtomicString & defaultString = *new AtomicString("default");54 static const AtomicString defaultString("default"); 55 55 return defaultString; 56 56 } -
trunk/WebCore/svg/SVGSVGElement.cpp
r38189 r38202 90 90 const AtomicString& SVGSVGElement::contentScriptType() const 91 91 { 92 static const AtomicString & defaultValue = *new AtomicString("text/ecmascript");92 static const AtomicString defaultValue("text/ecmascript"); 93 93 const AtomicString& n = getAttribute(contentScriptTypeAttr); 94 94 return n.isNull() ? defaultValue : n; … … 102 102 const AtomicString& SVGSVGElement::contentStyleType() const 103 103 { 104 static const AtomicString & defaultValue = *new AtomicString("text/css");104 static const AtomicString defaultValue("text/css"); 105 105 const AtomicString& n = getAttribute(contentStyleTypeAttr); 106 106 return n.isNull() ? defaultValue : n; -
trunk/WebCore/svg/SVGStyleElement.cpp
r38189 r38202 54 54 const AtomicString& SVGStyleElement::type() const 55 55 { 56 static const AtomicString & defaultValue = *new AtomicString("text/css");56 static const AtomicString defaultValue("text/css"); 57 57 const AtomicString& n = getAttribute(typeAttr); 58 58 return n.isNull() ? defaultValue : n; … … 66 66 const AtomicString& SVGStyleElement::media() const 67 67 { 68 static const AtomicString & defaultValue = *new AtomicString("all");68 static const AtomicString defaultValue("all"); 69 69 const AtomicString& n = getAttribute(mediaAttr); 70 70 return n.isNull() ? defaultValue : n; -
trunk/WebCore/svg/SVGTextContentElement.cpp
r38189 r38202 499 499 if (SVGLangSpace::parseMappedAttribute(attr)) { 500 500 if (attr->name().matches(XMLNames::spaceAttr)) { 501 static const AtomicString & preserveString = *new AtomicString("preserve");501 static const AtomicString preserveString("preserve"); 502 502 503 503 if (attr->value() == preserveString) -
trunk/WebCore/svg/animation/SVGSMILElement.cpp
r38189 r38202 194 194 String parse = data.stripWhiteSpace(); 195 195 196 static const AtomicString & indefiniteValue = *new AtomicString("indefinite");196 static const AtomicString indefiniteValue("indefinite"); 197 197 if (parse == indefiniteValue) 198 198 return SMILTime::indefinite(); … … 458 458 SVGSMILElement::Restart SVGSMILElement::restart() const 459 459 { 460 static const AtomicString & never = *new AtomicString("never");461 static const AtomicString & whenNotActive = *new AtomicString("whenNotActive");460 static const AtomicString never("never"); 461 static const AtomicString whenNotActive("whenNotActive"); 462 462 const AtomicString& value = getAttribute(SVGNames::restartAttr); 463 463 if (value == never) … … 470 470 SVGSMILElement::FillMode SVGSMILElement::fill() const 471 471 { 472 static const AtomicString & freeze = *new AtomicString("freeze");472 static const AtomicString freeze("freeze"); 473 473 const AtomicString& value = getAttribute(SVGNames::fillAttr); 474 474 return value == freeze ? FillFreeze : FillRemove; … … 507 507 return SMILTime::unresolved(); 508 508 509 static const AtomicString & indefiniteValue = *new AtomicString("indefinite");509 static const AtomicString indefiniteValue("indefinite"); 510 510 if (value == indefiniteValue) 511 511 return SMILTime::indefinite(); … … 862 862 { 863 863 ASSERT(m_intervalBegin.isFinite()); 864 static HashSet<SVGSMILElement*> & loopBreaker = *new HashSet<SVGSMILElement*>;864 static HashSet<SVGSMILElement*> loopBreaker; 865 865 if (loopBreaker.contains(this)) 866 866 return; -
trunk/WebCore/svg/graphics/SVGResource.cpp
r38189 r38202 49 49 50 50 static HashMap<SVGStyledElement*, ResourceSet*>& clientMap() { 51 static HashMap<SVGStyledElement*, ResourceSet*> & map = *new HashMap<SVGStyledElement*, ResourceSet*>;51 static HashMap<SVGStyledElement*, ResourceSet*> map; 52 52 return map; 53 53 } -
trunk/WebCore/svg/graphics/SVGResourceMarker.cpp
r38189 r38202 66 66 return; 67 67 68 static HashSet<SVGResourceMarker*> & currentlyDrawingMarkers = *new HashSet<SVGResourceMarker*>;68 static HashSet<SVGResourceMarker*> currentlyDrawingMarkers; 69 69 70 70 // avoid drawing circular marker references -
trunk/WebCore/xml/XMLHttpRequest.cpp
r38189 r38202 74 74 static PreflightResultCache& preflightResultCache() 75 75 { 76 static PreflightResultCache & cache = *new PreflightResultCache;76 static PreflightResultCache cache; 77 77 return cache; 78 78 } … … 89 89 static bool isSafeRequestHeader(const String& name) 90 90 { 91 static HashSet<String, CaseFoldingHash> & forbiddenHeaders = *new HashSet<String, CaseFoldingHash>;92 static String & proxyString = *newString("proxy-");93 static String & secString = *newString("sec-");91 static HashSet<String, CaseFoldingHash> forbiddenHeaders; 92 static String proxyString("proxy-"); 93 static String secString("sec-"); 94 94 95 95 if (forbiddenHeaders.isEmpty()) { … … 122 122 static bool isOnAccessControlResponseHeaderWhitelist(const String& name) 123 123 { 124 static HashSet<String, CaseFoldingHash> & allowedHeaders = *new HashSet<String, CaseFoldingHash>;124 static HashSet<String, CaseFoldingHash> allowedHeaders; 125 125 if (allowedHeaders.isEmpty()) { 126 126 allowedHeaders.add("cache-control"); -
trunk/WebCore/xml/XPathExpressionNode.cpp
r38189 r38202 38 38 EvaluationContext& Expression::evaluationContext() 39 39 { 40 static EvaluationContext & evaluationContext = *new EvaluationContext;40 static EvaluationContext evaluationContext; 41 41 return evaluationContext; 42 42 } -
trunk/WebCore/xml/XPathParser.cpp
r38189 r38202 98 98 static bool isAxisName(const String& name, Step::Axis& type) 99 99 { 100 static HashMap<String, Step::Axis> & axisNames = *new HashMap<String, Step::Axis>;100 static HashMap<String, Step::Axis> axisNames; 101 101 102 102 if (axisNames.isEmpty()) … … 112 112 static bool isNodeTypeName(const String& name) 113 113 { 114 static HashSet<String> & nodeTypeNames = *new HashSet<String>;114 static HashSet<String> nodeTypeNames; 115 115 if (nodeTypeNames.isEmpty()) { 116 116 nodeTypeNames.add("comment"); -
trunk/WebCore/xml/XPathValue.cpp
r38189 r38202 46 46 { 47 47 if (!m_data) { 48 static NodeSet & emptyNodeSet = *newNodeSet;48 static NodeSet emptyNodeSet; 49 49 return emptyNodeSet; 50 50 } -
trunk/WebKit/mac/ChangeLog
r38194 r38202 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD FIX: Backed out r38189 since it apparently broke the world. 4 1 5 2008-11-06 John Sullivan <sullivan@apple.com> 2 6 -
trunk/WebKit/mac/History/WebBackForwardList.mm
r38189 r38202 52 52 static HashMap<BackForwardList*, WebBackForwardList*>& backForwardLists() 53 53 { 54 static HashMap<BackForwardList*, WebBackForwardList*> & staticBackForwardLists = *new HashMap<BackForwardList*, WebBackForwardList*>;54 static HashMap<BackForwardList*, WebBackForwardList*> staticBackForwardLists; 55 55 return staticBackForwardLists; 56 56 } -
trunk/WebKit/mac/History/WebHistoryItem.mm
r38189 r38202 71 71 HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers() 72 72 { 73 static HashMap<HistoryItem*, WebHistoryItem*> & historyItemWrappers = *new HashMap<HistoryItem*, WebHistoryItem*>;73 static HashMap<HistoryItem*, WebHistoryItem*> historyItemWrappers; 74 74 return historyItemWrappers; 75 75 } -
trunk/WebKit/mac/Misc/WebStringTruncator.m
r38189 r38202 50 50 { 51 51 static NSFont *currentFont; 52 static Font & currentRenderer = *new Font;52 static Font currentRenderer; 53 53 54 54 if ([font isEqual:currentFont]) -
trunk/WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm
r38189 r38202 56 56 static StreamMap& streams() 57 57 { 58 static StreamMap & staticStreams = *new StreamMap;58 static StreamMap staticStreams; 59 59 return staticStreams; 60 60 } -
trunk/WebKit/mac/WebView/WebView.mm
r38194 r38202 3607 3607 } 3608 3608 else if (object->inherits(&JSArray::info)) { 3609 static HashSet<JSObject*> & visitedElems = *new HashSet<JSObject*>;3609 static HashSet<JSObject*> visitedElems; 3610 3610 if (!visitedElems.contains(object)) { 3611 3611 visitedElems.add(object); -
trunk/WebKitTools/ChangeLog
r38200 r38202 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD FIX: Backed out r38189 since it apparently broke the world. 4 1 5 2008-11-06 Chris Fleizach <cfleizach@apple.com> 2 6 -
trunk/WebKitTools/Scripts/check-for-exit-time-destructors
r38189 r38202 96 96 next if $shortName eq "AccessibilityObject.o"; 97 97 next if $shortName eq "AccessibilityRenderObject.o"; 98 next if $shortName eq "ApplicationCacheStorage.o"; 99 next if $shortName eq "ApplyStyleCommand.o"; 100 next if $shortName eq "ArchiveFactory.o"; 101 next if $shortName eq "CSSMutableStyleDeclaration.o"; 102 next if $shortName eq "CSSPrimitiveValue.o"; 103 next if $shortName eq "CSSSelector.o"; 98 104 next if $shortName eq "CSSStyleSelector.o"; 99 105 next if $shortName eq "CachedImage.o"; 100 106 next if $shortName eq "ColorMac.o"; 107 next if $shortName eq "DOMImplementation.o"; 108 next if $shortName eq "Document.o"; 109 next if $shortName eq "EventHandler.o"; 101 110 next if $shortName eq "EventHandlerMac.o"; 102 111 next if $shortName eq "FTPDirectoryDocument.o"; 103 112 next if $shortName eq "FontCache.o"; 104 113 next if $shortName eq "FontCacheMac.o"; 114 next if $shortName eq "FormDataStreamMac.o"; 115 next if $shortName eq "Frame.o"; 116 next if $shortName eq "FrameLoader.o"; 117 next if $shortName eq "FrameMac.o"; 118 next if $shortName eq "GCController.o"; 105 119 next if $shortName eq "GraphicsContextMac.o"; 120 next if $shortName eq "HTMLButtonElement.o"; 121 next if $shortName eq "HTMLElement.o"; 122 next if $shortName eq "HTMLFieldSetElement.o"; 123 next if $shortName eq "HTMLInputElement.o"; 124 next if $shortName eq "HTMLInterchange.o"; 125 next if $shortName eq "HTMLKeygenElement.o"; 126 next if $shortName eq "HTMLLegendElement.o"; 127 next if $shortName eq "HTMLOptGroupElement.o"; 128 next if $shortName eq "HTMLOptionElement.o"; 129 next if $shortName eq "HTMLParser.o"; 130 next if $shortName eq "HTMLSelectElement.o"; 106 131 next if $shortName eq "HTMLTableElement.o"; 132 next if $shortName eq "HTMLTextAreaElement.o"; 107 133 next if $shortName eq "IconDatabase.o"; 108 134 next if $shortName eq "Image.o"; 135 next if $shortName eq "IndentOutdentCommand.o"; 136 next if $shortName eq "InspectorController.o"; 137 next if $shortName eq "JSDOMBinding.o"; 109 138 next if $shortName eq "JSHTMLElementWrapperFactory.o"; 139 next if $shortName eq "JSInspectedObjectWrapper.o"; 140 next if $shortName eq "JSInspectorCallbackWrapper.o"; 110 141 next if $shortName eq "JSSVGAnimatedLength.o"; 111 142 next if $shortName eq "JSSVGAnimatedRect.o"; … … 113 144 next if $shortName eq "JSSVGLength.o"; 114 145 next if $shortName eq "JSSVGRect.o"; 146 next if $shortName eq "JavaScriptDebugServer.o"; 147 next if $shortName eq "JavaScriptProfile.o"; 148 next if $shortName eq "JavaScriptProfileNode.o"; 149 next if $shortName eq "KURL.o"; 150 next if $shortName eq "LocalStorage.o"; 151 next if $shortName eq "NetworkStateNotifier.o"; 152 next if $shortName eq "Page.o"; 115 153 next if $shortName eq "PasteboardMac.o"; 154 next if $shortName eq "RenderBlock.o"; 155 next if $shortName eq "RenderCounter.o"; 156 next if $shortName eq "RenderFlexibleBox.o"; 116 157 next if $shortName eq "RenderLayer.o"; 158 next if $shortName eq "RenderListItem.o"; 159 next if $shortName eq "RenderScrollbarTheme.o"; 160 next if $shortName eq "RenderStyle.o"; 161 next if $shortName eq "RenderThemeMac.o"; 162 next if $shortName eq "ReplaceSelectionCommand.o"; 163 next if $shortName eq "ResourceResponseMac.o"; 164 next if $shortName eq "SVGAnimateMotionElement.o"; 165 next if $shortName eq "SVGAnimationElement.o"; 166 next if $shortName eq "SVGLangSpace.o"; 167 next if $shortName eq "SVGResource.o"; 168 next if $shortName eq "SVGResourceMarker.o"; 169 next if $shortName eq "SVGSMILElement.o"; 170 next if $shortName eq "SVGSVGElement.o"; 171 next if $shortName eq "SVGStyleElement.o"; 172 next if $shortName eq "SVGTextContentElement.o"; 173 next if $shortName eq "ScriptElement.o"; 117 174 next if $shortName eq "ScrollView.o"; 175 next if $shortName eq "ScrollbarThemeMac.o"; 118 176 next if $shortName eq "SecurityOrigin.o"; 119 177 next if $shortName eq "SimpleFontDataMac.o"; 120 178 next if $shortName eq "StyleTransformData.o"; 179 next if $shortName eq "TextEncoding.o"; 180 next if $shortName eq "ThemeMac.o"; 181 next if $shortName eq "ThreadCheck.o"; 182 next if $shortName eq "XMLHttpRequest.o"; 183 next if $shortName eq "XPathExpressionNode.o"; 184 next if $shortName eq "XPathParser.o"; 185 next if $shortName eq "XPathValue.o"; 186 next if $shortName eq "bidi.o"; 187 next if $shortName eq "htmlediting.o"; 188 next if $shortName eq "markup.o"; 189 next if $shortName eq "runtime_root.o"; 121 190 } 122 191 123 192 if ($target eq "WebKit") { 193 next if $shortName eq "AccessibilityObject.o"; 194 next if $shortName eq "WebBackForwardList.o"; 195 next if $shortName eq "WebBaseNetscapePluginStream.o"; 124 196 next if $shortName eq "WebHTMLRepresentation.o"; 197 next if $shortName eq "WebHistoryItem.o"; 125 198 next if $shortName eq "WebNSPasteboardExtras.o"; 126 199 next if $shortName eq "WebPasteboardHelper.o"; 200 next if $shortName eq "WebStringTruncator.o"; 201 next if $shortName eq "WebView.o"; 127 202 } 128 203
Note: See TracChangeset
for help on using the changeset viewer.