Changeset 38203 in webkit
- Timestamp:
- Nov 6, 2008 3:46:40 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 83 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r38202 r38203 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD WAS NOT BROKEN: Rolling r38189 back in. 4 5 Please perform a clean build if you see crashes. 6 1 7 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 8 -
trunk/WebCore/bindings/js/GCController.cpp
r38202 r38203 53 53 GCController& gcController() 54 54 { 55 static GCController staticGCController;55 static GCController& staticGCController = *new GCController; 56 56 return staticGCController; 57 57 } -
trunk/WebCore/bindings/js/JSDOMBinding.cpp
r38202 r38203 98 98 { 99 99 #if ENABLE(WORKERS) 100 static ThreadSpecific<HashSet<DOMObject*> > staticWrapperSet;100 static ThreadSpecific<HashSet<DOMObject*> >& staticWrapperSet = *new ThreadSpecific<HashSet<DOMObject*> >; 101 101 return *staticWrapperSet; 102 102 #else 103 static HashSet<DOMObject*> staticWrapperSet;103 static HashSet<DOMObject*>& staticWrapperSet = *new HashSet<DOMObject*>; 104 104 return staticWrapperSet; 105 105 #endif -
trunk/WebCore/bindings/js/JSInspectedObjectWrapper.cpp
r38202 r38203 41 41 static GlobalObjectWrapperMap& wrappers() 42 42 { 43 static GlobalObjectWrapperMap map;43 static GlobalObjectWrapperMap& map = *new GlobalObjectWrapperMap; 44 44 return map; 45 45 } -
trunk/WebCore/bindings/js/JSInspectorCallbackWrapper.cpp
r38202 r38203 39 39 static WrapperMap& wrappers() 40 40 { 41 static WrapperMap map;41 static WrapperMap& map = *new WrapperMap; 42 42 return map; 43 43 } -
trunk/WebCore/bridge/runtime_root.cpp
r38202 r38203 43 43 static RootObjectSet* rootObjectSet() 44 44 { 45 static RootObjectSet staticRootObjectSet;45 static RootObjectSet& staticRootObjectSet = *new RootObjectSet; 46 46 return &staticRootObjectSet; 47 47 } -
trunk/WebCore/css/CSSMutableStyleDeclaration.cpp
r38202 r38203 502 502 ec = 0; 503 503 504 static HashMap<int, PropertyLonghand> shorthandMap;504 static HashMap<int, PropertyLonghand>& shorthandMap = *new HashMap<int, PropertyLonghand>; 505 505 if (shorthandMap.isEmpty()) 506 506 initShorthandMap(shorthandMap); -
trunk/WebCore/css/CSSPrimitiveValue.cpp
r38202 r38203 687 687 break; 688 688 case CSS_RECT: { 689 static const String rectParen("rect(");689 static const String& rectParen = *new String("rect("); 690 690 691 691 Rect* rectVal = getRectValue(); … … 710 710 case CSS_RGBCOLOR: 711 711 case CSS_PARSER_HEXCOLOR: { 712 static const String commaSpace(", ");713 static const String rgbParen("rgb(");714 static const String rgbaParen("rgba(");712 static const String& commaSpace = *new String(", "); 713 static const String& rgbParen = *new String("rgb("); 714 static const String& rgbaParen = *new String("rgba("); 715 715 716 716 RGBA32 rgbColor = m_value.rgbcolor; -
trunk/WebCore/css/CSSSelector.cpp
r38202 r38203 63 63 return; 64 64 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 alias77 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");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 alias 77 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"); 134 134 135 135 bool element = false; // pseudo-element -
trunk/WebCore/css/CSSStyleSelector.cpp
r38202 r38203 373 373 static const MediaQueryEvaluator& screenEval() 374 374 { 375 static const MediaQueryEvaluator staticScreenEval("screen");375 static const MediaQueryEvaluator& staticScreenEval = *new MediaQueryEvaluator("screen"); 376 376 return staticScreenEval; 377 377 } … … 379 379 static const MediaQueryEvaluator& printEval() 380 380 { 381 static const MediaQueryEvaluator staticPrintEval("print");381 static const MediaQueryEvaluator& staticPrintEval = *new MediaQueryEvaluator("print"); 382 382 return staticPrintEval; 383 383 } -
trunk/WebCore/dom/DOMImplementation.cpp
r38202 r38203 65 65 { 66 66 static bool initialized = false; 67 static HashSet<String, CaseFoldingHash> svgFeatures;67 static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>; 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;92 static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>; 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(String("^") + validChars + "+/" + validChars + "+\\+xml$");277 static RegularExpression& xmlTypeRegExp = *new RegularExpression(String("^") + validChars + "+/" + validChars + "+\\+xml$"); 278 278 return xmlTypeRegExp.match(mimeType) > -1; 279 279 } -
trunk/WebCore/dom/Document.cpp
r38202 r38203 714 714 bool Document::hasPrefixNamespaceMismatch(const QualifiedName& qName) 715 715 { 716 static const AtomicString xmlnsNamespaceURI("http://www.w3.org/2000/xmlns/");717 static const AtomicString xmlns("xmlns");718 static const AtomicString xml("xml");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"); 719 719 720 720 // These checks are from DOM Core Level 2, createElementNS -
trunk/WebCore/dom/ScriptElement.cpp
r38202 r38203 92 92 static bool isSupportedJavaScriptLanguage(const String& language) 93 93 { 94 static HashSet<String, CaseFoldingHash> languages;94 static HashSet<String, CaseFoldingHash>& languages = *new HashSet<String, CaseFoldingHash>; 95 95 if (languages.isEmpty()) { 96 96 languages.add("javascript"); -
trunk/WebCore/editing/ApplyStyleCommand.cpp
r38202 r38203 217 217 static String &styleSpanClassString() 218 218 { 219 static String styleSpanClassString = AppleStyleSpanClass;219 static String& styleSpanClassString = *new String(AppleStyleSpanClass); 220 220 return styleSpanClassString; 221 221 } -
trunk/WebCore/editing/HTMLInterchange.cpp
r38202 r38203 37 37 String convertedSpaceString() 38 38 { 39 static String convertedSpaceString;39 static String& convertedSpaceString = *new String; 40 40 if (convertedSpaceString.isNull()) { 41 41 convertedSpaceString = "<span class=\""; -
trunk/WebCore/editing/IndentOutdentCommand.cpp
r38202 r38203 44 44 static String indentBlockquoteString() 45 45 { 46 static String string = "webkit-indent-blockquote";46 static String& string = *new String("webkit-indent-blockquote"); 47 47 return string; 48 48 } -
trunk/WebCore/editing/ReplaceSelectionCommand.cpp
r38202 r38203 90 90 static bool isInterchangeNewlineNode(const Node *node) 91 91 { 92 static String interchangeNewlineClassString(AppleInterchangeNewline);92 static String& interchangeNewlineClassString = *new String(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(AppleConvertedSpace);99 static String& convertedSpaceSpanClassString = *new String(AppleConvertedSpace); 100 100 return node->isHTMLElement() && 101 101 static_cast<const HTMLElement *>(node)->getAttribute(classAttr) == convertedSpaceSpanClassString; -
trunk/WebCore/editing/htmlediting.cpp
r38202 r38203 365 365 String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph) 366 366 { 367 static String twoSpaces(" ");368 static String nbsp("\xa0");369 static String pattern(" \xa0");367 static String& twoSpaces = *new String(" "); 368 static String& nbsp = *new String("\xa0"); 369 static String& pattern = *new String(" \xa0"); 370 370 371 371 String rebalancedString = string; … … 394 394 const String& nonBreakingSpaceString() 395 395 { 396 static String nonBreakingSpaceString =String(&noBreakSpace, 1);396 static String& nonBreakingSpaceString = *new String(&noBreakSpace, 1); 397 397 return nonBreakingSpaceString; 398 398 } -
trunk/WebCore/editing/markup.cpp
r38202 r38203 95 95 unsigned lastCopiedFrom = 0; 96 96 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(" ");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(" "); 102 102 103 103 for (unsigned i = 0; i < len; ++i) { … … 143 143 unsigned lastCopiedFrom = 0; 144 144 145 static const String ampEntity("&");146 static const String gtEntity(">");147 static const String ltEntity("<");148 static const String nbspEntity(" ");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(" "); 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 = "http://www.w3.org/2000/xmlns/";320 static const QualifiedName xmlnsAttr(nullAtom, "xmlns", xmlnsURI);319 static const AtomicString& xmlnsURI = *new AtomicString("http://www.w3.org/2000/xmlns/"); 320 static const QualifiedName& xmlnsAttr = *new QualifiedName(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("xmlns");345 static const String& xmlns = *new String("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(" style=\"");504 static const String& stylePrefix = *new String(" 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 = String("<br class=\"") + AppleInterchangeNewline + "\">";705 static const String& interchangeNewlineString = *new 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("<div style=\"");908 static const String& divStyle = *new String("<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("</div>");915 static const String& divCloseTag = *new String("</div>"); 916 916 markups.append(divCloseTag); 917 917 } … … 930 930 } 931 931 932 static const String styleSpanOpen =String("<span class=\"" AppleStyleSpanClass "\" style=\"");933 static const String styleSpanClose("</span>");932 static const String& styleSpanOpen = *new String("<span class=\"" AppleStyleSpanClass "\" style=\""); 933 static const String& styleSpanClose = *new String("</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
r38202 r38203 58 58 switch (m_type) { 59 59 case SUBMIT: { 60 static const AtomicString submit("submit");60 static const AtomicString& submit = *new AtomicString("submit"); 61 61 return submit; 62 62 } 63 63 case BUTTON: { 64 static const AtomicString button("button");64 static const AtomicString& button = *new AtomicString("button"); 65 65 return button; 66 66 } 67 67 case RESET: { 68 static const AtomicString reset("reset");68 static const AtomicString& reset = *new AtomicString("reset"); 69 69 return reset; 70 70 } -
trunk/WebCore/html/HTMLElement.cpp
r38202 r38203 809 809 bool HTMLElement::isRecognizedTagName(const QualifiedName& tagName) 810 810 { 811 static HashSet<AtomicStringImpl*> tagList;811 static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>; 812 812 if (tagList.isEmpty()) { 813 813 size_t tagCount = 0; … … 823 823 HashSet<AtomicStringImpl*>* inlineTagList() 824 824 { 825 static HashSet<AtomicStringImpl*> tagList;825 static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>; 826 826 if (tagList.isEmpty()) { 827 827 tagList.add(ttTag.localName().impl()); … … 882 882 HashSet<AtomicStringImpl*>* blockTagList() 883 883 { 884 static HashSet<AtomicStringImpl*> tagList;884 static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>; 885 885 if (tagList.isEmpty()) { 886 886 tagList.add(addressTag.localName().impl()); -
trunk/WebCore/html/HTMLFieldSetElement.cpp
r38202 r38203 56 56 const AtomicString& HTMLFieldSetElement::type() const 57 57 { 58 static const AtomicString fieldset("fieldset");58 static const AtomicString& fieldset = *new AtomicString("fieldset"); 59 59 return fieldset; 60 60 } -
trunk/WebCore/html/HTMLInputElement.cpp
r38202 r38203 374 374 switch (inputType()) { 375 375 case BUTTON: { 376 static const AtomicString button("button");376 static const AtomicString& button = *new AtomicString("button"); 377 377 return button; 378 378 } 379 379 case CHECKBOX: { 380 static const AtomicString checkbox("checkbox");380 static const AtomicString& checkbox = *new AtomicString("checkbox"); 381 381 return checkbox; 382 382 } 383 383 case FILE: { 384 static const AtomicString file("file");384 static const AtomicString& file = *new AtomicString("file"); 385 385 return file; 386 386 } 387 387 case HIDDEN: { 388 static const AtomicString hidden("hidden");388 static const AtomicString& hidden = *new AtomicString("hidden"); 389 389 return hidden; 390 390 } 391 391 case IMAGE: { 392 static const AtomicString image("image");392 static const AtomicString& image = *new AtomicString("image"); 393 393 return image; 394 394 } … … 396 396 return emptyAtom; 397 397 case PASSWORD: { 398 static const AtomicString password("password");398 static const AtomicString& password = *new AtomicString("password"); 399 399 return password; 400 400 } 401 401 case RADIO: { 402 static const AtomicString radio("radio");402 static const AtomicString& radio = *new AtomicString("radio"); 403 403 return radio; 404 404 } 405 405 case RANGE: { 406 static const AtomicString range("range");406 static const AtomicString& range = *new AtomicString("range"); 407 407 return range; 408 408 } 409 409 case RESET: { 410 static const AtomicString reset("reset");410 static const AtomicString& reset = *new AtomicString("reset"); 411 411 return reset; 412 412 } 413 413 case SEARCH: { 414 static const AtomicString search("search");414 static const AtomicString& search = *new AtomicString("search"); 415 415 return search; 416 416 } 417 417 case SUBMIT: { 418 static const AtomicString submit("submit");418 static const AtomicString& submit = *new AtomicString("submit"); 419 419 return submit; 420 420 } 421 421 case TEXT: { 422 static const AtomicString text("text");422 static const AtomicString& text = *new AtomicString("text"); 423 423 return text; 424 424 } -
trunk/WebCore/html/HTMLKeygenElement.cpp
r38202 r38203 57 57 const AtomicString& HTMLKeygenElement::type() const 58 58 { 59 static const AtomicString keygen("keygen");59 static const AtomicString& keygen = *new AtomicString("keygen"); 60 60 return keygen; 61 61 } -
trunk/WebCore/html/HTMLLegendElement.cpp
r38202 r38203 59 59 const AtomicString& HTMLLegendElement::type() const 60 60 { 61 static const AtomicString legend("legend");61 static const AtomicString& legend = *new AtomicString("legend"); 62 62 return legend; 63 63 } -
trunk/WebCore/html/HTMLOptGroupElement.cpp
r38202 r38203 50 50 const AtomicString& HTMLOptGroupElement::type() const 51 51 { 52 static const AtomicString optgroup("optgroup");52 static const AtomicString& optgroup = *new AtomicString("optgroup"); 53 53 return optgroup; 54 54 } -
trunk/WebCore/html/HTMLOptionElement.cpp
r38202 r38203 74 74 const AtomicString& HTMLOptionElement::type() const 75 75 { 76 static const AtomicString option("option");76 static const AtomicString& option = *new AtomicString("option"); 77 77 return option; 78 78 } -
trunk/WebCore/html/HTMLParser.cpp
r38202 r38203 833 833 { 834 834 // Init our error handling table. 835 static FunctionMap gFunctionMap;835 static FunctionMap& gFunctionMap = *new FunctionMap; 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;946 static HashSet<AtomicStringImpl*>& headerTags = *new HashSet<AtomicStringImpl*>; 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;989 static HashSet<AtomicStringImpl*>& residualStyleTags = *new HashSet<AtomicStringImpl*>; 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;1016 static HashSet<AtomicStringImpl*>& unaffectedTags = *new HashSet<AtomicStringImpl*>; 1017 1017 if (unaffectedTags.isEmpty()) { 1018 1018 unaffectedTags.add(bodyTag.localName().impl()); -
trunk/WebCore/html/HTMLSelectElement.cpp
r38202 r38203 115 115 const AtomicString& HTMLSelectElement::type() const 116 116 { 117 static const AtomicString selectMultiple("select-multiple");118 static const AtomicString selectOne("select-one");117 static const AtomicString& selectMultiple = *new AtomicString("select-multiple"); 118 static const AtomicString& selectOne = *new AtomicString("select-one"); 119 119 return m_multiple ? selectMultiple : selectOne; 120 120 } -
trunk/WebCore/html/HTMLTextAreaElement.cpp
r38202 r38203 60 60 const AtomicString& HTMLTextAreaElement::type() const 61 61 { 62 static const AtomicString textarea("textarea");62 static const AtomicString& textarea = *new AtomicString("textarea"); 63 63 return textarea; 64 64 } -
trunk/WebCore/inspector/InspectorController.cpp
r38202 r38203 863 863 #if PLATFORM(MAC) 864 864 #ifdef BUILDING_ON_TIGER 865 static const String platform = "mac-tiger";865 static const String& platform = *new String("mac-tiger"); 866 866 #else 867 static const String platform = "mac-leopard";867 static const String& platform = *new String("mac-leopard"); 868 868 #endif 869 869 #elif PLATFORM(WIN_OS) 870 static const String platform = "windows";870 static const String& platform = *new String("windows"); 871 871 #elif PLATFORM(QT) 872 static const String platform = "qt";872 static const String& platform = *new String("qt"); 873 873 #elif PLATFORM(GTK) 874 static const String platform = "gtk";874 static const String& platform = *new String("gtk"); 875 875 #elif PLATFORM(WX) 876 static const String platform = "wx";876 static const String& platform = *new String("wx"); 877 877 #else 878 static const String platform = "unknown";878 static const String& platform = *new String("unknown"); 879 879 #endif 880 880 -
trunk/WebCore/inspector/JavaScriptDebugServer.cpp
r38202 r38203 60 60 JavaScriptDebugServer& JavaScriptDebugServer::shared() 61 61 { 62 static JavaScriptDebugServer server;62 static JavaScriptDebugServer& server = *new JavaScriptDebugServer; 63 63 return server; 64 64 } -
trunk/WebCore/inspector/JavaScriptProfile.cpp
r38202 r38203 46 46 static ProfileMap& profileCache() 47 47 { 48 static ProfileMap staticProfiles;48 static ProfileMap& staticProfiles = *new ProfileMap; 49 49 return staticProfiles; 50 50 } -
trunk/WebCore/inspector/JavaScriptProfileNode.cpp
r38202 r38203 47 47 static ProfileNodeMap& profileNodeCache() 48 48 { 49 static ProfileNodeMap staticProfileNodes;49 static ProfileNodeMap& staticProfileNodes = *new ProfileNodeMap; 50 50 return staticProfileNodes; 51 51 } -
trunk/WebCore/loader/FrameLoader.cpp
r38202 r38203 1173 1173 static HashSet<String, CaseFoldingHash>& localSchemes() 1174 1174 { 1175 static HashSet<String, CaseFoldingHash> localSchemes;1175 static HashSet<String, CaseFoldingHash>& localSchemes = *new HashSet<String, CaseFoldingHash>; 1176 1176 1177 1177 if (localSchemes.isEmpty()) { -
trunk/WebCore/loader/appcache/ApplicationCacheStorage.cpp
r38202 r38203 654 654 ApplicationCacheStorage& cacheStorage() 655 655 { 656 static ApplicationCacheStorage storage;656 static ApplicationCacheStorage& storage = *new ApplicationCacheStorage; 657 657 658 658 return storage; -
trunk/WebCore/loader/archive/ArchiveFactory.cpp
r38202 r38203 52 52 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& archiveMIMETypes() 53 53 { 54 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash> mimeTypes;54 static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& mimeTypes = *new HashMap<String, RawDataCreationFunction*, CaseFoldingHash>; 55 55 static bool initialized = false; 56 56 -
trunk/WebCore/loader/icon/IconDatabase.cpp
r38202 r38203 851 851 String IconDatabase::defaultDatabaseFilename() 852 852 { 853 static String defaultDatabaseFilename = "WebpageIcons.db";853 static String& defaultDatabaseFilename = *new String("WebpageIcons.db"); 854 854 return defaultDatabaseFilename.copy(); 855 855 } -
trunk/WebCore/page/EventHandler.cpp
r38202 r38203 151 151 EventHandler::EventHandlerDragState& EventHandler::dragState() 152 152 { 153 static EventHandlerDragState state;153 static EventHandlerDragState& state = *new EventHandlerDragState; 154 154 return state; 155 155 } -
trunk/WebCore/page/Frame.cpp
r38202 r38203 318 318 // the same across calls. We can't do that. 319 319 320 static RegularExpression wordRegExp =RegularExpression("\\w");320 static RegularExpression& wordRegExp = *new 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;1014 static HashSet<Frame*>& staticKeepAliveSet = *new HashSet<Frame*>; 1015 1015 return staticKeepAliveSet; 1016 1016 } -
trunk/WebCore/page/Page.cpp
r38202 r38203 233 233 const String& Page::groupName() const 234 234 { 235 static String nullString;235 static String& nullString = *new String; 236 236 return m_group ? m_group->name() : nullString; 237 237 } -
trunk/WebCore/page/SecurityOrigin.cpp
r38202 r38203 42 42 return false; 43 43 44 static HashMap<String, unsigned> defaultPorts;44 static HashMap<String, unsigned>& defaultPorts = *new HashMap<String, unsigned>; 45 45 if (defaultPorts.isEmpty()) { 46 46 defaultPorts.set("http", 80); … … 261 261 String SecurityOrigin::databaseIdentifier() const 262 262 { 263 static String separatorString =String(&SeparatorCharacter, 1);263 static String& separatorString = *new String(&SeparatorCharacter, 1); 264 264 return m_protocol + separatorString + m_host + separatorString + String::number(m_port); 265 265 } -
trunk/WebCore/page/mac/FrameMac.mm
r38202 r38203 89 89 static const unsigned int regExpCacheSize = 4; 90 90 static NSMutableArray* regExpLabels = nil; 91 static Vector<RegularExpression*> regExps;92 static RegularExpression wordRegExp =RegularExpression("\\w");91 static Vector<RegularExpression*>& regExps = *new Vector<RegularExpression*>; 92 static RegularExpression& wordRegExp = *new RegularExpression("\\w"); 93 93 94 94 RegularExpression* result; -
trunk/WebCore/platform/KURL.cpp
r38202 r38203 1564 1564 const KURL& blankURL() 1565 1565 { 1566 static KURL staticBlankURL("about:blank");1566 static KURL& staticBlankURL = *new KURL("about:blank"); 1567 1567 return staticBlankURL; 1568 1568 } -
trunk/WebCore/platform/graphics/FontCache.cpp
r38202 r38203 125 125 { 126 126 // Alias Courier <-> Courier New 127 static AtomicString courier("Courier"), courierNew("Courier New"); 127 static AtomicString& courier = *new AtomicString("Courier"); 128 static AtomicString& courierNew = *new AtomicString("Courier New"); 128 129 if (equalIgnoringCase(familyName, courier)) 129 130 return courierNew; … … 132 133 133 134 // Alias Times and Times New Roman. 134 static AtomicString times("Times"), timesNewRoman("Times New Roman"); 135 static AtomicString& times = *new AtomicString("Times"); 136 static AtomicString& timesNewRoman = *new AtomicString("Times New Roman"); 135 137 if (equalIgnoringCase(familyName, times)) 136 138 return timesNewRoman; … … 139 141 140 142 // Alias Arial and Helvetica 141 static AtomicString arial("Arial"), helvetica("Helvetica"); 143 static AtomicString& arial = *new AtomicString("Arial"); 144 static AtomicString& helvetica = *new AtomicString("Helvetica"); 142 145 if (equalIgnoringCase(familyName, arial)) 143 146 return helvetica; -
trunk/WebCore/platform/graphics/mac/FontCacheMac.mm
r38202 r38203 141 141 if (currFamily->family().length()) { 142 142 static String matchWords[3] = { String("Arabic"), String("Pashto"), String("Urdu") }; 143 static AtomicString geezaStr("Geeza Pro");143 static AtomicString& geezaStr = *new AtomicString("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("Times");157 static AtomicString lucidaGrandeStr("Lucida Grande");156 static AtomicString& timesStr = *new AtomicString("Times"); 157 static AtomicString& lucidaGrandeStr = *new AtomicString("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
r38202 r38203 87 87 ScrollbarTheme* ScrollbarTheme::nativeTheme() 88 88 { 89 static ScrollbarThemeMac theme;89 static ScrollbarThemeMac& theme = *new ScrollbarThemeMac; 90 90 return &theme; 91 91 } -
trunk/WebCore/platform/mac/ThemeMac.mm
r38202 r38203 47 47 Theme* platformTheme() 48 48 { 49 static ThemeMac themeMac;49 static ThemeMac& themeMac = *new ThemeMac; 50 50 return &themeMac; 51 51 } -
trunk/WebCore/platform/mac/ThreadCheck.mm
r38202 r38203 80 80 { 81 81 using namespace WebCore; 82 static HashSet<String> loggedFunctions;82 static HashSet<String>& loggedFunctions = *new HashSet<String>; 83 83 switch (threadViolationBehavior) { 84 84 case NoThreadCheck: -
trunk/WebCore/platform/network/NetworkStateNotifier.cpp
r38202 r38203 33 33 NetworkStateNotifier& networkStateNotifier() 34 34 { 35 static NetworkStateNotifier networkStateNotifier;35 static NetworkStateNotifier& networkStateNotifier = *new NetworkStateNotifier; 36 36 37 37 return networkStateNotifier; -
trunk/WebCore/platform/network/mac/FormDataStreamMac.mm
r38202 r38203 50 50 static StreamFormDataMap& getStreamFormDataMap() 51 51 { 52 static StreamFormDataMap streamFormDataMap;52 static StreamFormDataMap& streamFormDataMap = *new StreamFormDataMap; 53 53 return streamFormDataMap; 54 54 } … … 57 57 static StreamResourceHandleMap& getStreamResourceHandleMap() 58 58 { 59 static StreamResourceHandleMap streamResourceHandleMap;59 static StreamResourceHandleMap& streamResourceHandleMap = *new StreamResourceHandleMap; 60 60 return streamResourceHandleMap; 61 61 } -
trunk/WebCore/platform/network/mac/ResourceResponseMac.mm
r38202 r38203 100 100 if (m_url.isLocalFile() && m_mimeType == "text/html") { 101 101 const String& path = m_url.path(); 102 static const String xhtmlExt(".xhtml");102 static const String& xhtmlExt = *new String(".xhtml"); 103 103 if (path.endsWith(xhtmlExt, false)) 104 104 m_mimeType = "application/xhtml+xml"; -
trunk/WebCore/platform/text/TextEncoding.cpp
r38202 r38203 123 123 return false; 124 124 125 static HashSet<const char*> set;125 static HashSet<const char*>& set = *new HashSet<const char*>; 126 126 if (set.isEmpty()) { 127 127 addEncodingName(set, "x-mac-japanese"); -
trunk/WebCore/rendering/RenderBlock.cpp
r38202 r38203 1799 1799 HashMap<RenderBlock*, RenderFlowSequencedSet*>* continuationOutlineTable() 1800 1800 { 1801 static HashMap<RenderBlock*, RenderFlowSequencedSet*> table;1801 static HashMap<RenderBlock*, RenderFlowSequencedSet*>& table = *new HashMap<RenderBlock*, RenderFlowSequencedSet*>; 1802 1802 return &table; 1803 1803 } -
trunk/WebCore/rendering/RenderCounter.cpp
r38202 r38203 42 42 static CounterMaps& counterMaps() 43 43 { 44 static CounterMaps staticCounterMaps;44 static CounterMaps& staticCounterMaps = *new CounterMaps; 45 45 return staticCounterMaps; 46 46 } -
trunk/WebCore/rendering/RenderFlexibleBox.cpp
r38202 r38203 778 778 779 779 const UChar ellipsisAndSpace[2] = { horizontalEllipsis, ' ' }; 780 static AtomicString ellipsisAndSpaceStr(ellipsisAndSpace, 2);780 static AtomicString& ellipsisAndSpaceStr = *new AtomicString(ellipsisAndSpace, 2); 781 781 782 782 const Font& font = style(numVisibleLines == 1)->font(); -
trunk/WebCore/rendering/RenderListItem.cpp
r38202 r38203 290 290 if (m_marker) 291 291 return m_marker->text(); 292 static String staticNullString;292 static String& staticNullString = *new String; 293 293 return staticNullString; 294 294 } -
trunk/WebCore/rendering/RenderScrollbarTheme.cpp
r38202 r38203 32 32 RenderScrollbarTheme* RenderScrollbarTheme::renderScrollbarTheme() 33 33 { 34 static RenderScrollbarTheme theme;34 static RenderScrollbarTheme& theme = *new RenderScrollbarTheme; 35 35 return &theme; 36 36 } -
trunk/WebCore/rendering/RenderThemeMac.mm
r38202 r38203 169 169 void RenderThemeMac::systemFont(int cssValueId, FontDescription& fontDescription) const 170 170 { 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;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; 178 178 179 179 FontDescription* cachedDesc; -
trunk/WebCore/rendering/bidi.cpp
r38202 r38203 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(&horizontalEllipsis, 1);2195 static AtomicString& ellipsisStr = *new AtomicString(&horizontalEllipsis, 1); 2196 2196 const Font& firstLineFont = firstLineStyle()->font(); 2197 2197 const Font& font = style()->font(); -
trunk/WebCore/rendering/style/RenderStyle.cpp
r38202 r38203 721 721 const Vector<StyleDashboardRegion>& RenderStyle::initialDashboardRegions() 722 722 { 723 static Vector<StyleDashboardRegion> emptyList;723 static Vector<StyleDashboardRegion>& emptyList = *new Vector<StyleDashboardRegion>; 724 724 return emptyList; 725 725 } … … 727 727 const Vector<StyleDashboardRegion>& RenderStyle::noneDashboardRegions() 728 728 { 729 static Vector<StyleDashboardRegion> noneList;729 static Vector<StyleDashboardRegion>& noneList = *new Vector<StyleDashboardRegion>; 730 730 static bool noneListInitialized = false; 731 731 -
trunk/WebCore/storage/LocalStorage.cpp
r38202 r38203 43 43 static LocalStorageMap& localStorageMap() 44 44 { 45 static LocalStorageMap localStorageMap;45 static LocalStorageMap& localStorageMap = *new LocalStorageMap; 46 46 return localStorageMap; 47 47 } -
trunk/WebCore/svg/SVGAnimateMotionElement.cpp
r38202 r38203 92 92 SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const 93 93 { 94 static const AtomicString autoVal("auto");95 static const AtomicString autoReverse("auto-reverse");94 static const AtomicString& autoVal = *new AtomicString("auto"); 95 static const AtomicString& autoReverse = *new AtomicString("auto-reverse"); 96 96 String rotate = getAttribute(SVGNames::rotateAttr); 97 97 if (rotate == autoVal) -
trunk/WebCore/svg/SVGAnimationElement.cpp
r38202 r38203 197 197 SVGAnimationElement::CalcMode SVGAnimationElement::calcMode() const 198 198 { 199 static const AtomicString discrete("discrete");200 static const AtomicString linear("linear");201 static const AtomicString paced("paced");202 static const AtomicString spline("spline");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"); 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("CSS");218 static const AtomicString xml("XML");217 static const AtomicString& css = *new AtomicString("CSS"); 218 static const AtomicString& xml = *new AtomicString("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("sum");244 static const AtomicString& sum = *new AtomicString("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("sum");251 static const AtomicString& sum = *new AtomicString("sum"); 252 252 const AtomicString& value = getAttribute(SVGNames::accumulateAttr); 253 253 return value == sum && animationMode() != ToAnimation; -
trunk/WebCore/svg/SVGLangSpace.cpp
r38202 r38203 52 52 { 53 53 if (!m_space) { 54 static const AtomicString defaultString("default");54 static const AtomicString& defaultString = *new AtomicString("default"); 55 55 return defaultString; 56 56 } -
trunk/WebCore/svg/SVGSVGElement.cpp
r38202 r38203 90 90 const AtomicString& SVGSVGElement::contentScriptType() const 91 91 { 92 static const AtomicString defaultValue("text/ecmascript");92 static const AtomicString& defaultValue = *new AtomicString("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("text/css");104 static const AtomicString& defaultValue = *new AtomicString("text/css"); 105 105 const AtomicString& n = getAttribute(contentStyleTypeAttr); 106 106 return n.isNull() ? defaultValue : n; -
trunk/WebCore/svg/SVGStyleElement.cpp
r38202 r38203 54 54 const AtomicString& SVGStyleElement::type() const 55 55 { 56 static const AtomicString defaultValue("text/css");56 static const AtomicString& defaultValue = *new AtomicString("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("all");68 static const AtomicString& defaultValue = *new AtomicString("all"); 69 69 const AtomicString& n = getAttribute(mediaAttr); 70 70 return n.isNull() ? defaultValue : n; -
trunk/WebCore/svg/SVGTextContentElement.cpp
r38202 r38203 499 499 if (SVGLangSpace::parseMappedAttribute(attr)) { 500 500 if (attr->name().matches(XMLNames::spaceAttr)) { 501 static const AtomicString preserveString("preserve");501 static const AtomicString& preserveString = *new AtomicString("preserve"); 502 502 503 503 if (attr->value() == preserveString) -
trunk/WebCore/svg/animation/SVGSMILElement.cpp
r38202 r38203 194 194 String parse = data.stripWhiteSpace(); 195 195 196 static const AtomicString indefiniteValue("indefinite");196 static const AtomicString& indefiniteValue = *new AtomicString("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("never");461 static const AtomicString whenNotActive("whenNotActive");460 static const AtomicString& never = *new AtomicString("never"); 461 static const AtomicString& whenNotActive = *new AtomicString("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("freeze");472 static const AtomicString& freeze = *new AtomicString("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("indefinite");509 static const AtomicString& indefiniteValue = *new AtomicString("indefinite"); 510 510 if (value == indefiniteValue) 511 511 return SMILTime::indefinite(); … … 862 862 { 863 863 ASSERT(m_intervalBegin.isFinite()); 864 static HashSet<SVGSMILElement*> loopBreaker;864 static HashSet<SVGSMILElement*>& loopBreaker = *new HashSet<SVGSMILElement*>; 865 865 if (loopBreaker.contains(this)) 866 866 return; -
trunk/WebCore/svg/graphics/SVGResource.cpp
r38202 r38203 49 49 50 50 static HashMap<SVGStyledElement*, ResourceSet*>& clientMap() { 51 static HashMap<SVGStyledElement*, ResourceSet*> map;51 static HashMap<SVGStyledElement*, ResourceSet*>& map = *new HashMap<SVGStyledElement*, ResourceSet*>; 52 52 return map; 53 53 } -
trunk/WebCore/svg/graphics/SVGResourceMarker.cpp
r38202 r38203 66 66 return; 67 67 68 static HashSet<SVGResourceMarker*> currentlyDrawingMarkers;68 static HashSet<SVGResourceMarker*>& currentlyDrawingMarkers = *new HashSet<SVGResourceMarker*>; 69 69 70 70 // avoid drawing circular marker references -
trunk/WebCore/xml/XMLHttpRequest.cpp
r38202 r38203 74 74 static PreflightResultCache& preflightResultCache() 75 75 { 76 static PreflightResultCache cache;76 static PreflightResultCache& cache = *new PreflightResultCache; 77 77 return cache; 78 78 } … … 89 89 static bool isSafeRequestHeader(const String& name) 90 90 { 91 static HashSet<String, CaseFoldingHash> forbiddenHeaders;92 static String proxyString("proxy-");93 static String secString("sec-");91 static HashSet<String, CaseFoldingHash>& forbiddenHeaders = *new HashSet<String, CaseFoldingHash>; 92 static String& proxyString = *new String("proxy-"); 93 static String& secString = *new String("sec-"); 94 94 95 95 if (forbiddenHeaders.isEmpty()) { … … 122 122 static bool isOnAccessControlResponseHeaderWhitelist(const String& name) 123 123 { 124 static HashSet<String, CaseFoldingHash> allowedHeaders;124 static HashSet<String, CaseFoldingHash>& allowedHeaders = *new HashSet<String, CaseFoldingHash>; 125 125 if (allowedHeaders.isEmpty()) { 126 126 allowedHeaders.add("cache-control"); -
trunk/WebCore/xml/XPathExpressionNode.cpp
r38202 r38203 38 38 EvaluationContext& Expression::evaluationContext() 39 39 { 40 static EvaluationContext evaluationContext;40 static EvaluationContext& evaluationContext = *new EvaluationContext; 41 41 return evaluationContext; 42 42 } -
trunk/WebCore/xml/XPathParser.cpp
r38202 r38203 98 98 static bool isAxisName(const String& name, Step::Axis& type) 99 99 { 100 static HashMap<String, Step::Axis> axisNames;100 static HashMap<String, Step::Axis>& axisNames = *new HashMap<String, Step::Axis>; 101 101 102 102 if (axisNames.isEmpty()) … … 112 112 static bool isNodeTypeName(const String& name) 113 113 { 114 static HashSet<String> nodeTypeNames;114 static HashSet<String>& nodeTypeNames = *new HashSet<String>; 115 115 if (nodeTypeNames.isEmpty()) { 116 116 nodeTypeNames.add("comment"); -
trunk/WebCore/xml/XPathValue.cpp
r38202 r38203 46 46 { 47 47 if (!m_data) { 48 static NodeSet emptyNodeSet;48 static NodeSet& emptyNodeSet = *new NodeSet; 49 49 return emptyNodeSet; 50 50 } -
trunk/WebKit/mac/ChangeLog
r38202 r38203 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD WAS NOT BROKEN: Rolling r38189 back in. 4 5 Please perform a clean build if you see crashes. 6 1 7 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 8 -
trunk/WebKit/mac/History/WebBackForwardList.mm
r38202 r38203 52 52 static HashMap<BackForwardList*, WebBackForwardList*>& backForwardLists() 53 53 { 54 static HashMap<BackForwardList*, WebBackForwardList*> staticBackForwardLists;54 static HashMap<BackForwardList*, WebBackForwardList*>& staticBackForwardLists = *new HashMap<BackForwardList*, WebBackForwardList*>; 55 55 return staticBackForwardLists; 56 56 } -
trunk/WebKit/mac/History/WebHistoryItem.mm
r38202 r38203 71 71 HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers() 72 72 { 73 static HashMap<HistoryItem*, WebHistoryItem*> historyItemWrappers;73 static HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers = *new HashMap<HistoryItem*, WebHistoryItem*>; 74 74 return historyItemWrappers; 75 75 } -
trunk/WebKit/mac/Misc/WebStringTruncator.m
r38202 r38203 50 50 { 51 51 static NSFont *currentFont; 52 static Font currentRenderer;52 static Font& currentRenderer = *new Font; 53 53 54 54 if ([font isEqual:currentFont]) -
trunk/WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm
r38202 r38203 56 56 static StreamMap& streams() 57 57 { 58 static StreamMap staticStreams;58 static StreamMap& staticStreams = *new StreamMap; 59 59 return staticStreams; 60 60 } -
trunk/WebKit/mac/WebView/WebView.mm
r38202 r38203 3607 3607 } 3608 3608 else if (object->inherits(&JSArray::info)) { 3609 static HashSet<JSObject*> visitedElems;3609 static HashSet<JSObject*>& visitedElems = *new HashSet<JSObject*>; 3610 3610 if (!visitedElems.contains(object)) { 3611 3611 visitedElems.add(object); -
trunk/WebKitTools/ChangeLog
r38202 r38203 1 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 3 BUILD WAS NOT BROKEN: Rolling r38189 back in. 4 5 Please perform a clean build if you see crashes. 6 1 7 2008-11-06 David Kilzer <ddkilzer@apple.com> 2 8 -
trunk/WebKitTools/Scripts/check-for-exit-time-destructors
r38202 r38203 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";104 98 next if $shortName eq "CSSStyleSelector.o"; 105 99 next if $shortName eq "CachedImage.o"; 106 100 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";110 101 next if $shortName eq "EventHandlerMac.o"; 111 102 next if $shortName eq "FTPDirectoryDocument.o"; 112 103 next if $shortName eq "FontCache.o"; 113 104 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";119 105 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";131 106 next if $shortName eq "HTMLTableElement.o"; 132 next if $shortName eq "HTMLTextAreaElement.o";133 107 next if $shortName eq "IconDatabase.o"; 134 108 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";138 109 next if $shortName eq "JSHTMLElementWrapperFactory.o"; 139 next if $shortName eq "JSInspectedObjectWrapper.o";140 next if $shortName eq "JSInspectorCallbackWrapper.o";141 110 next if $shortName eq "JSSVGAnimatedLength.o"; 142 111 next if $shortName eq "JSSVGAnimatedRect.o"; … … 144 113 next if $shortName eq "JSSVGLength.o"; 145 114 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";153 115 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";157 116 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";174 117 next if $shortName eq "ScrollView.o"; 175 next if $shortName eq "ScrollbarThemeMac.o";176 118 next if $shortName eq "SecurityOrigin.o"; 177 119 next if $shortName eq "SimpleFontDataMac.o"; 178 120 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";190 121 } 191 122 192 123 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";196 124 next if $shortName eq "WebHTMLRepresentation.o"; 197 next if $shortName eq "WebHistoryItem.o";198 125 next if $shortName eq "WebNSPasteboardExtras.o"; 199 126 next if $shortName eq "WebPasteboardHelper.o"; 200 next if $shortName eq "WebStringTruncator.o";201 next if $shortName eq "WebView.o";202 127 } 203 128
Note: See TracChangeset
for help on using the changeset viewer.