Changeset 38203 in webkit


Ignore:
Timestamp:
Nov 6, 2008 3:46:40 PM (15 years ago)
Author:
ddkilzer@apple.com
Message:

BUILD WAS NOT BROKEN: Rolling r38189 back in.

WebCore:

BUILD WAS NOT BROKEN: Rolling r38189 back in.

Please perform a clean build if you see crashes.

WebKit/mac:

BUILD WAS NOT BROKEN: Rolling r38189 back in.

Please perform a clean build if you see crashes.

WebKitTools:

BUILD WAS NOT BROKEN: Rolling r38189 back in.

Please perform a clean build if you see crashes.

Location:
trunk
Files:
83 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r38202 r38203  
     12008-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
    172008-11-06  David Kilzer  <ddkilzer@apple.com>
    28
  • trunk/WebCore/bindings/js/GCController.cpp

    r38202 r38203  
    5353GCController& gcController()
    5454{
    55     static GCController staticGCController;
     55    static GCController& staticGCController = *new GCController;
    5656    return staticGCController;
    5757}
  • trunk/WebCore/bindings/js/JSDOMBinding.cpp

    r38202 r38203  
    9898{
    9999#if ENABLE(WORKERS)
    100     static ThreadSpecific<HashSet<DOMObject*> > staticWrapperSet;
     100    static ThreadSpecific<HashSet<DOMObject*> >& staticWrapperSet = *new ThreadSpecific<HashSet<DOMObject*> >;
    101101    return *staticWrapperSet;
    102102#else
    103     static HashSet<DOMObject*> staticWrapperSet;
     103    static HashSet<DOMObject*>& staticWrapperSet = *new HashSet<DOMObject*>;
    104104    return staticWrapperSet;
    105105#endif
  • trunk/WebCore/bindings/js/JSInspectedObjectWrapper.cpp

    r38202 r38203  
    4141static GlobalObjectWrapperMap& wrappers()
    4242{
    43     static GlobalObjectWrapperMap map;
     43    static GlobalObjectWrapperMap& map = *new GlobalObjectWrapperMap;
    4444    return map;
    4545}
  • trunk/WebCore/bindings/js/JSInspectorCallbackWrapper.cpp

    r38202 r38203  
    3939static WrapperMap& wrappers()
    4040{
    41     static WrapperMap map;
     41    static WrapperMap& map = *new WrapperMap;
    4242    return map;
    4343}
  • trunk/WebCore/bridge/runtime_root.cpp

    r38202 r38203  
    4343static RootObjectSet* rootObjectSet()
    4444{
    45     static RootObjectSet staticRootObjectSet;
     45    static RootObjectSet& staticRootObjectSet = *new RootObjectSet;
    4646    return &staticRootObjectSet;
    4747}
  • trunk/WebCore/css/CSSMutableStyleDeclaration.cpp

    r38202 r38203  
    502502    ec = 0;
    503503
    504     static HashMap<int, PropertyLonghand> shorthandMap;
     504    static HashMap<int, PropertyLonghand>& shorthandMap = *new HashMap<int, PropertyLonghand>;
    505505    if (shorthandMap.isEmpty())
    506506        initShorthandMap(shorthandMap);
  • trunk/WebCore/css/CSSPrimitiveValue.cpp

    r38202 r38203  
    687687            break;
    688688        case CSS_RECT: {
    689             static const String rectParen("rect(");
     689            static const String& rectParen = *new String("rect(");
    690690
    691691            Rect* rectVal = getRectValue();
     
    710710        case CSS_RGBCOLOR:
    711711        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(");
    715715
    716716            RGBA32 rgbColor = m_value.rgbcolor;
  • trunk/WebCore/css/CSSSelector.cpp

    r38202 r38203  
    6363        return;
    6464
    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");
     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");
    134134
    135135    bool element = false; // pseudo-element
  • trunk/WebCore/css/CSSStyleSelector.cpp

    r38202 r38203  
    373373static const MediaQueryEvaluator& screenEval()
    374374{
    375     static const MediaQueryEvaluator staticScreenEval("screen");
     375    static const MediaQueryEvaluator& staticScreenEval = *new MediaQueryEvaluator("screen");
    376376    return staticScreenEval;
    377377}
     
    379379static const MediaQueryEvaluator& printEval()
    380380{
    381     static const MediaQueryEvaluator staticPrintEval("print");
     381    static const MediaQueryEvaluator& staticPrintEval = *new MediaQueryEvaluator("print");
    382382    return staticPrintEval;
    383383}
  • trunk/WebCore/dom/DOMImplementation.cpp

    r38202 r38203  
    6565{
    6666    static bool initialized = false;
    67     static HashSet<String, CaseFoldingHash> svgFeatures;
     67    static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>;
    6868    if (!initialized) {
    6969#if ENABLE(SVG_USE) && ENABLE(SVG_FOREIGN_OBJECT) && ENABLE(SVG_FILTER) && ENABLE(SVG_FONTS)
     
    9090{
    9191    static bool initialized = false;
    92     static HashSet<String, CaseFoldingHash> svgFeatures;
     92    static HashSet<String, CaseFoldingHash>& svgFeatures = *new HashSet<String, CaseFoldingHash>;
    9393    if (!initialized) {
    9494        // Sadly, we cannot claim to implement any of the SVG 1.1 generic feature sets
     
    275275        return true;
    276276    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$");
    278278    return xmlTypeRegExp.match(mimeType) > -1;
    279279}
  • trunk/WebCore/dom/Document.cpp

    r38202 r38203  
    714714bool Document::hasPrefixNamespaceMismatch(const QualifiedName& qName)
    715715{
    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");
    719719
    720720    // These checks are from DOM Core Level 2, createElementNS
  • trunk/WebCore/dom/ScriptElement.cpp

    r38202 r38203  
    9292static bool isSupportedJavaScriptLanguage(const String& language)
    9393{
    94     static HashSet<String, CaseFoldingHash> languages;
     94    static HashSet<String, CaseFoldingHash>& languages = *new HashSet<String, CaseFoldingHash>;
    9595    if (languages.isEmpty()) {
    9696        languages.add("javascript");
  • trunk/WebCore/editing/ApplyStyleCommand.cpp

    r38202 r38203  
    217217static String &styleSpanClassString()
    218218{
    219     static String styleSpanClassString = AppleStyleSpanClass;
     219    static String& styleSpanClassString = *new String(AppleStyleSpanClass);
    220220    return styleSpanClassString;
    221221}
  • trunk/WebCore/editing/HTMLInterchange.cpp

    r38202 r38203  
    3737String convertedSpaceString()
    3838{
    39     static String convertedSpaceString;
     39    static String& convertedSpaceString = *new String;
    4040    if (convertedSpaceString.isNull()) {
    4141        convertedSpaceString = "<span class=\"";
  • trunk/WebCore/editing/IndentOutdentCommand.cpp

    r38202 r38203  
    4444static String indentBlockquoteString()
    4545{
    46     static String string = "webkit-indent-blockquote";
     46    static String& string = *new String("webkit-indent-blockquote");
    4747    return string;
    4848}
  • trunk/WebCore/editing/ReplaceSelectionCommand.cpp

    r38202 r38203  
    9090static bool isInterchangeNewlineNode(const Node *node)
    9191{
    92     static String interchangeNewlineClassString(AppleInterchangeNewline);
     92    static String& interchangeNewlineClassString = *new String(AppleInterchangeNewline);
    9393    return node && node->hasTagName(brTag) &&
    9494           static_cast<const Element *>(node)->getAttribute(classAttr) == interchangeNewlineClassString;
     
    9797static bool isInterchangeConvertedSpaceSpan(const Node *node)
    9898{
    99     static String convertedSpaceSpanClassString(AppleConvertedSpace);
     99    static String& convertedSpaceSpanClassString = *new String(AppleConvertedSpace);
    100100    return node->isHTMLElement() &&
    101101           static_cast<const HTMLElement *>(node)->getAttribute(classAttr) == convertedSpaceSpanClassString;
  • trunk/WebCore/editing/htmlediting.cpp

    r38202 r38203  
    365365String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfParagraph, bool endIsEndOfParagraph)
    366366{
    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");
    370370
    371371    String rebalancedString = string;
     
    394394const String& nonBreakingSpaceString()
    395395{
    396     static String nonBreakingSpaceString = String(&noBreakSpace, 1);
     396    static String& nonBreakingSpaceString = *new String(&noBreakSpace, 1);
    397397    return nonBreakingSpaceString;
    398398}
  • trunk/WebCore/editing/markup.cpp

    r38202 r38203  
    9595    unsigned lastCopiedFrom = 0;
    9696
    97     static const String ampEntity("&amp;");
    98     static const String gtEntity("&gt;");
    99     static const String ltEntity("&lt;");
    100     static const String quotEntity("&quot;");
    101     static const String nbspEntity("&nbsp;");
     97    static const String& ampEntity = *new String("&amp;");
     98    static const String& gtEntity = *new String("&gt;");
     99    static const String& ltEntity = *new String("&lt;");
     100    static const String& quotEntity = *new String("&quot;");
     101    static const String& nbspEntity = *new String("&nbsp;");
    102102   
    103103    for (unsigned i = 0; i < len; ++i) {
     
    143143    unsigned lastCopiedFrom = 0;
    144144   
    145     static const String ampEntity("&amp;");
    146     static const String gtEntity("&gt;");
    147     static const String ltEntity("&lt;");
    148     static const String nbspEntity("&nbsp;");
     145    static const String& ampEntity = *new String("&amp;");
     146    static const String& gtEntity = *new String("&gt;");
     147    static const String& ltEntity = *new String("&lt;");
     148    static const String& nbspEntity = *new String("&nbsp;");
    149149
    150150    for (unsigned i = 0; i < len; ++i) {
     
    317317{
    318318    // 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);
    321321    if (attr->name() == xmlnsAttr) {
    322322        namespaces.set(emptyAtom.impl(), attr->value().impl());
     
    343343    if (foundNS != ns.impl()) {
    344344        namespaces.set(pre, ns.impl());
    345         static const String xmlns("xmlns");
     345        static const String& xmlns = *new String("xmlns");
    346346        result.append(' ');
    347347        append(result, xmlns);
     
    502502                    style->setProperty(CSSPropertyDisplay, CSSValueInline, true);
    503503                if (style->length() > 0) {
    504                     static const String stylePrefix(" style=\"");
     504                    static const String& stylePrefix = *new String(" style=\"");
    505505                    append(result, stylePrefix);
    506506                    appendAttributeValue(result, style->cssText(), documentIsHTML);
     
    703703String createMarkup(const Range* range, Vector<Node*>* nodes, EAnnotateForInterchange annotate, bool convertBlocksToInlines)
    704704{
    705     static const String interchangeNewlineString = String("<br class=\"") + AppleInterchangeNewline + "\">";
     705    static const String& interchangeNewlineString = *new String("<br class=\"" AppleInterchangeNewline "\">");
    706706
    707707    if (!range)
     
    906906                if (style->length()) {
    907907                    Vector<UChar> openTag;
    908                     static const String divStyle("<div style=\"");
     908                    static const String& divStyle = *new String("<div style=\"");
    909909                    append(openTag, divStyle);
    910910                    appendAttributeValue(openTag, style->cssText(), documentIsHTML);
     
    913913                    preMarkups.append(String::adopt(openTag));
    914914
    915                     static const String divCloseTag("</div>");
     915                    static const String& divCloseTag = *new String("</div>");
    916916                    markups.append(divCloseTag);
    917917                }
     
    930930    }
    931931   
    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>");
    934934   
    935935    // Add a wrapper span with the styles that all of the nodes in the markup inherit.
  • trunk/WebCore/html/HTMLButtonElement.cpp

    r38202 r38203  
    5858    switch (m_type) {
    5959        case SUBMIT: {
    60             static const AtomicString submit("submit");
     60            static const AtomicString& submit = *new AtomicString("submit");
    6161            return submit;
    6262        }
    6363        case BUTTON: {
    64             static const AtomicString button("button");
     64            static const AtomicString& button = *new AtomicString("button");
    6565            return button;
    6666        }
    6767        case RESET: {
    68             static const AtomicString reset("reset");
     68            static const AtomicString& reset = *new AtomicString("reset");
    6969            return reset;
    7070        }
  • trunk/WebCore/html/HTMLElement.cpp

    r38202 r38203  
    809809bool HTMLElement::isRecognizedTagName(const QualifiedName& tagName)
    810810{
    811     static HashSet<AtomicStringImpl*> tagList;
     811    static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
    812812    if (tagList.isEmpty()) {
    813813        size_t tagCount = 0;
     
    823823HashSet<AtomicStringImpl*>* inlineTagList()
    824824{
    825     static HashSet<AtomicStringImpl*> tagList;
     825    static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
    826826    if (tagList.isEmpty()) {
    827827        tagList.add(ttTag.localName().impl());
     
    882882HashSet<AtomicStringImpl*>* blockTagList()
    883883{
    884     static HashSet<AtomicStringImpl*> tagList;
     884    static HashSet<AtomicStringImpl*>& tagList = *new HashSet<AtomicStringImpl*>;
    885885    if (tagList.isEmpty()) {
    886886        tagList.add(addressTag.localName().impl());
  • trunk/WebCore/html/HTMLFieldSetElement.cpp

    r38202 r38203  
    5656const AtomicString& HTMLFieldSetElement::type() const
    5757{
    58     static const AtomicString fieldset("fieldset");
     58    static const AtomicString& fieldset = *new AtomicString("fieldset");
    5959    return fieldset;
    6060}
  • trunk/WebCore/html/HTMLInputElement.cpp

    r38202 r38203  
    374374    switch (inputType()) {
    375375        case BUTTON: {
    376             static const AtomicString button("button");
     376            static const AtomicString& button = *new AtomicString("button");
    377377            return button;
    378378        }
    379379        case CHECKBOX: {
    380             static const AtomicString checkbox("checkbox");
     380            static const AtomicString& checkbox = *new AtomicString("checkbox");
    381381            return checkbox;
    382382        }
    383383        case FILE: {
    384             static const AtomicString file("file");
     384            static const AtomicString& file = *new AtomicString("file");
    385385            return file;
    386386        }
    387387        case HIDDEN: {
    388             static const AtomicString hidden("hidden");
     388            static const AtomicString& hidden = *new AtomicString("hidden");
    389389            return hidden;
    390390        }
    391391        case IMAGE: {
    392             static const AtomicString image("image");
     392            static const AtomicString& image = *new AtomicString("image");
    393393            return image;
    394394        }
     
    396396            return emptyAtom;
    397397        case PASSWORD: {
    398             static const AtomicString password("password");
     398            static const AtomicString& password = *new AtomicString("password");
    399399            return password;
    400400        }
    401401        case RADIO: {
    402             static const AtomicString radio("radio");
     402            static const AtomicString& radio = *new AtomicString("radio");
    403403            return radio;
    404404        }
    405405        case RANGE: {
    406             static const AtomicString range("range");
     406            static const AtomicString& range = *new AtomicString("range");
    407407            return range;
    408408        }
    409409        case RESET: {
    410             static const AtomicString reset("reset");
     410            static const AtomicString& reset = *new AtomicString("reset");
    411411            return reset;
    412412        }
    413413        case SEARCH: {
    414             static const AtomicString search("search");
     414            static const AtomicString& search = *new AtomicString("search");
    415415            return search;
    416416        }
    417417        case SUBMIT: {
    418             static const AtomicString submit("submit");
     418            static const AtomicString& submit = *new AtomicString("submit");
    419419            return submit;
    420420        }
    421421        case TEXT: {
    422             static const AtomicString text("text");
     422            static const AtomicString& text = *new AtomicString("text");
    423423            return text;
    424424        }
  • trunk/WebCore/html/HTMLKeygenElement.cpp

    r38202 r38203  
    5757const AtomicString& HTMLKeygenElement::type() const
    5858{
    59     static const AtomicString keygen("keygen");
     59    static const AtomicString& keygen = *new AtomicString("keygen");
    6060    return keygen;
    6161}
  • trunk/WebCore/html/HTMLLegendElement.cpp

    r38202 r38203  
    5959const AtomicString& HTMLLegendElement::type() const
    6060{
    61     static const AtomicString legend("legend");
     61    static const AtomicString& legend = *new AtomicString("legend");
    6262    return legend;
    6363}
  • trunk/WebCore/html/HTMLOptGroupElement.cpp

    r38202 r38203  
    5050const AtomicString& HTMLOptGroupElement::type() const
    5151{
    52     static const AtomicString optgroup("optgroup");
     52    static const AtomicString& optgroup = *new AtomicString("optgroup");
    5353    return optgroup;
    5454}
  • trunk/WebCore/html/HTMLOptionElement.cpp

    r38202 r38203  
    7474const AtomicString& HTMLOptionElement::type() const
    7575{
    76     static const AtomicString option("option");
     76    static const AtomicString& option = *new AtomicString("option");
    7777    return option;
    7878}
  • trunk/WebCore/html/HTMLParser.cpp

    r38202 r38203  
    833833{
    834834    // Init our error handling table.
    835     static FunctionMap gFunctionMap;
     835    static FunctionMap& gFunctionMap = *new FunctionMap;
    836836    if (gFunctionMap.isEmpty()) {
    837837        gFunctionMap.set(aTag.localName().impl(), &HTMLParser::nestedCreateErrorCheck);
     
    944944bool HTMLParser::isHeaderTag(const AtomicString& tagName)
    945945{
    946     static HashSet<AtomicStringImpl*> headerTags;
     946    static HashSet<AtomicStringImpl*>& headerTags = *new HashSet<AtomicStringImpl*>;
    947947    if (headerTags.isEmpty()) {
    948948        headerTags.add(h1Tag.localName().impl());
     
    987987bool HTMLParser::isResidualStyleTag(const AtomicString& tagName)
    988988{
    989     static HashSet<AtomicStringImpl*> residualStyleTags;
     989    static HashSet<AtomicStringImpl*>& residualStyleTags = *new HashSet<AtomicStringImpl*>;
    990990    if (residualStyleTags.isEmpty()) {
    991991        residualStyleTags.add(aTag.localName().impl());
     
    10141014bool HTMLParser::isAffectedByResidualStyle(const AtomicString& tagName)
    10151015{
    1016     static HashSet<AtomicStringImpl*> unaffectedTags;
     1016    static HashSet<AtomicStringImpl*>& unaffectedTags = *new HashSet<AtomicStringImpl*>;
    10171017    if (unaffectedTags.isEmpty()) {
    10181018        unaffectedTags.add(bodyTag.localName().impl());
  • trunk/WebCore/html/HTMLSelectElement.cpp

    r38202 r38203  
    115115const AtomicString& HTMLSelectElement::type() const
    116116{
    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");
    119119    return m_multiple ? selectMultiple : selectOne;
    120120}
  • trunk/WebCore/html/HTMLTextAreaElement.cpp

    r38202 r38203  
    6060const AtomicString& HTMLTextAreaElement::type() const
    6161{
    62     static const AtomicString textarea("textarea");
     62    static const AtomicString& textarea = *new AtomicString("textarea");
    6363    return textarea;
    6464}
  • trunk/WebCore/inspector/InspectorController.cpp

    r38202 r38203  
    863863#if PLATFORM(MAC)
    864864#ifdef BUILDING_ON_TIGER
    865     static const String platform = "mac-tiger";
     865    static const String& platform = *new String("mac-tiger");
    866866#else
    867     static const String platform = "mac-leopard";
     867    static const String& platform = *new String("mac-leopard");
    868868#endif
    869869#elif PLATFORM(WIN_OS)
    870     static const String platform = "windows";
     870    static const String& platform = *new String("windows");
    871871#elif PLATFORM(QT)
    872     static const String platform = "qt";
     872    static const String& platform = *new String("qt");
    873873#elif PLATFORM(GTK)
    874     static const String platform = "gtk";
     874    static const String& platform = *new String("gtk");
    875875#elif PLATFORM(WX)
    876     static const String platform = "wx";
     876    static const String& platform = *new String("wx");
    877877#else
    878     static const String platform = "unknown";
     878    static const String& platform = *new String("unknown");
    879879#endif
    880880
  • trunk/WebCore/inspector/JavaScriptDebugServer.cpp

    r38202 r38203  
    6060JavaScriptDebugServer& JavaScriptDebugServer::shared()
    6161{
    62     static JavaScriptDebugServer server;
     62    static JavaScriptDebugServer& server = *new JavaScriptDebugServer;
    6363    return server;
    6464}
  • trunk/WebCore/inspector/JavaScriptProfile.cpp

    r38202 r38203  
    4646static ProfileMap& profileCache()
    4747{
    48     static ProfileMap staticProfiles;
     48    static ProfileMap& staticProfiles = *new ProfileMap;
    4949    return staticProfiles;
    5050}
  • trunk/WebCore/inspector/JavaScriptProfileNode.cpp

    r38202 r38203  
    4747static ProfileNodeMap& profileNodeCache()
    4848{
    49     static ProfileNodeMap staticProfileNodes;
     49    static ProfileNodeMap& staticProfileNodes = *new ProfileNodeMap;
    5050    return staticProfileNodes;
    5151}
  • trunk/WebCore/loader/FrameLoader.cpp

    r38202 r38203  
    11731173static HashSet<String, CaseFoldingHash>& localSchemes()
    11741174{
    1175     static HashSet<String, CaseFoldingHash> localSchemes;
     1175    static HashSet<String, CaseFoldingHash>& localSchemes = *new HashSet<String, CaseFoldingHash>;
    11761176
    11771177    if (localSchemes.isEmpty()) {
  • trunk/WebCore/loader/appcache/ApplicationCacheStorage.cpp

    r38202 r38203  
    654654ApplicationCacheStorage& cacheStorage()
    655655{
    656     static ApplicationCacheStorage storage;
     656    static ApplicationCacheStorage& storage = *new ApplicationCacheStorage;
    657657   
    658658    return storage;
  • trunk/WebCore/loader/archive/ArchiveFactory.cpp

    r38202 r38203  
    5252static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& archiveMIMETypes()
    5353{
    54     static HashMap<String, RawDataCreationFunction*, CaseFoldingHash> mimeTypes;
     54    static HashMap<String, RawDataCreationFunction*, CaseFoldingHash>& mimeTypes = *new HashMap<String, RawDataCreationFunction*, CaseFoldingHash>;
    5555    static bool initialized = false;
    5656   
  • trunk/WebCore/loader/icon/IconDatabase.cpp

    r38202 r38203  
    851851String IconDatabase::defaultDatabaseFilename()
    852852{
    853     static String defaultDatabaseFilename = "WebpageIcons.db";
     853    static String& defaultDatabaseFilename = *new String("WebpageIcons.db");
    854854    return defaultDatabaseFilename.copy();
    855855}
  • trunk/WebCore/page/EventHandler.cpp

    r38202 r38203  
    151151EventHandler::EventHandlerDragState& EventHandler::dragState()
    152152{
    153     static EventHandlerDragState state;
     153    static EventHandlerDragState& state = *new EventHandlerDragState;
    154154    return state;
    155155}
  • trunk/WebCore/page/Frame.cpp

    r38202 r38203  
    318318    // the same across calls.  We can't do that.
    319319
    320     static RegularExpression wordRegExp = RegularExpression("\\w");
     320    static RegularExpression& wordRegExp = *new RegularExpression("\\w");
    321321    String pattern("(");
    322322    unsigned int numLabels = labels.size();
     
    10121012static HashSet<Frame*>& keepAliveSet()
    10131013{
    1014     static HashSet<Frame*> staticKeepAliveSet;
     1014    static HashSet<Frame*>& staticKeepAliveSet = *new HashSet<Frame*>;
    10151015    return staticKeepAliveSet;
    10161016}
  • trunk/WebCore/page/Page.cpp

    r38202 r38203  
    233233const String& Page::groupName() const
    234234{
    235     static String nullString;
     235    static String& nullString = *new String;
    236236    return m_group ? m_group->name() : nullString;
    237237}
  • trunk/WebCore/page/SecurityOrigin.cpp

    r38202 r38203  
    4242        return false;
    4343
    44     static HashMap<String, unsigned> defaultPorts;
     44    static HashMap<String, unsigned>& defaultPorts = *new HashMap<String, unsigned>;
    4545    if (defaultPorts.isEmpty()) {
    4646        defaultPorts.set("http", 80);
     
    261261String SecurityOrigin::databaseIdentifier() const
    262262{
    263     static String separatorString = String(&SeparatorCharacter, 1);
     263    static String& separatorString = *new String(&SeparatorCharacter, 1);
    264264    return m_protocol + separatorString + m_host + separatorString + String::number(m_port);
    265265}
  • trunk/WebCore/page/mac/FrameMac.mm

    r38202 r38203  
    8989    static const unsigned int regExpCacheSize = 4;
    9090    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");
    9393
    9494    RegularExpression* result;
  • trunk/WebCore/platform/KURL.cpp

    r38202 r38203  
    15641564const KURL& blankURL()
    15651565{
    1566     static KURL staticBlankURL("about:blank");
     1566    static KURL& staticBlankURL = *new KURL("about:blank");
    15671567    return staticBlankURL;
    15681568}
  • trunk/WebCore/platform/graphics/FontCache.cpp

    r38202 r38203  
    125125{
    126126    // 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");
    128129    if (equalIgnoringCase(familyName, courier))
    129130        return courierNew;
     
    132133
    133134    // 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");
    135137    if (equalIgnoringCase(familyName, times))
    136138        return timesNewRoman;
     
    139141   
    140142    // 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");
    142145    if (equalIgnoringCase(familyName, arial))
    143146        return helvetica;
  • trunk/WebCore/platform/graphics/mac/FontCacheMac.mm

    r38202 r38203  
    141141        if (currFamily->family().length()) {
    142142            static String matchWords[3] = { String("Arabic"), String("Pashto"), String("Urdu") };
    143             static AtomicString geezaStr("Geeza Pro");
     143            static AtomicString& geezaStr = *new AtomicString("Geeza Pro");
    144144            for (int j = 0; j < 3 && !platformData; ++j)
    145145                if (currFamily->family().contains(matchWords[j], false))
     
    154154FontPlatformData* FontCache::getLastResortFallbackFont(const FontDescription& fontDescription)
    155155{
    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");
    158158
    159159    // 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  
    8787ScrollbarTheme* ScrollbarTheme::nativeTheme()
    8888{
    89     static ScrollbarThemeMac theme;
     89    static ScrollbarThemeMac& theme = *new ScrollbarThemeMac;
    9090    return &theme;
    9191}
  • trunk/WebCore/platform/mac/ThemeMac.mm

    r38202 r38203  
    4747Theme* platformTheme()
    4848{
    49     static ThemeMac themeMac;
     49    static ThemeMac& themeMac = *new ThemeMac;
    5050    return &themeMac;
    5151}
  • trunk/WebCore/platform/mac/ThreadCheck.mm

    r38202 r38203  
    8080{
    8181    using namespace WebCore;
    82     static HashSet<String> loggedFunctions;
     82    static HashSet<String>& loggedFunctions = *new HashSet<String>;
    8383    switch (threadViolationBehavior) {
    8484        case NoThreadCheck:
  • trunk/WebCore/platform/network/NetworkStateNotifier.cpp

    r38202 r38203  
    3333NetworkStateNotifier& networkStateNotifier()
    3434{
    35     static NetworkStateNotifier networkStateNotifier;
     35    static NetworkStateNotifier& networkStateNotifier = *new NetworkStateNotifier;
    3636   
    3737    return networkStateNotifier;
  • trunk/WebCore/platform/network/mac/FormDataStreamMac.mm

    r38202 r38203  
    5050static StreamFormDataMap& getStreamFormDataMap()
    5151{
    52     static StreamFormDataMap streamFormDataMap;
     52    static StreamFormDataMap& streamFormDataMap = *new StreamFormDataMap;
    5353    return streamFormDataMap;
    5454}
     
    5757static StreamResourceHandleMap& getStreamResourceHandleMap()
    5858{
    59     static StreamResourceHandleMap streamResourceHandleMap;
     59    static StreamResourceHandleMap& streamResourceHandleMap = *new StreamResourceHandleMap;
    6060    return streamResourceHandleMap;
    6161}
  • trunk/WebCore/platform/network/mac/ResourceResponseMac.mm

    r38202 r38203  
    100100        if (m_url.isLocalFile() && m_mimeType == "text/html") {
    101101            const String& path = m_url.path();
    102             static const String xhtmlExt(".xhtml");
     102            static const String& xhtmlExt = *new String(".xhtml");
    103103            if (path.endsWith(xhtmlExt, false))
    104104                m_mimeType = "application/xhtml+xml";
  • trunk/WebCore/platform/text/TextEncoding.cpp

    r38202 r38203  
    123123        return false;
    124124
    125     static HashSet<const char*> set;
     125    static HashSet<const char*>& set = *new HashSet<const char*>;
    126126    if (set.isEmpty()) {
    127127        addEncodingName(set, "x-mac-japanese");
  • trunk/WebCore/rendering/RenderBlock.cpp

    r38202 r38203  
    17991799HashMap<RenderBlock*, RenderFlowSequencedSet*>* continuationOutlineTable()
    18001800{
    1801     static HashMap<RenderBlock*, RenderFlowSequencedSet*> table;
     1801    static HashMap<RenderBlock*, RenderFlowSequencedSet*>& table = *new HashMap<RenderBlock*, RenderFlowSequencedSet*>;
    18021802    return &table;
    18031803}
  • trunk/WebCore/rendering/RenderCounter.cpp

    r38202 r38203  
    4242static CounterMaps& counterMaps()
    4343{
    44     static CounterMaps staticCounterMaps;
     44    static CounterMaps& staticCounterMaps = *new CounterMaps;
    4545    return staticCounterMaps;
    4646}
  • trunk/WebCore/rendering/RenderFlexibleBox.cpp

    r38202 r38203  
    778778
    779779                const UChar ellipsisAndSpace[2] = { horizontalEllipsis, ' ' };
    780                 static AtomicString ellipsisAndSpaceStr(ellipsisAndSpace, 2);
     780                static AtomicString& ellipsisAndSpaceStr = *new AtomicString(ellipsisAndSpace, 2);
    781781
    782782                const Font& font = style(numVisibleLines == 1)->font();
  • trunk/WebCore/rendering/RenderListItem.cpp

    r38202 r38203  
    290290    if (m_marker)
    291291        return m_marker->text();
    292     static String staticNullString;
     292    static String& staticNullString = *new String;
    293293    return staticNullString;
    294294}
  • trunk/WebCore/rendering/RenderScrollbarTheme.cpp

    r38202 r38203  
    3232RenderScrollbarTheme* RenderScrollbarTheme::renderScrollbarTheme()
    3333{
    34     static RenderScrollbarTheme theme;
     34    static RenderScrollbarTheme& theme = *new RenderScrollbarTheme;
    3535    return &theme;
    3636}
  • trunk/WebCore/rendering/RenderThemeMac.mm

    r38202 r38203  
    169169void RenderThemeMac::systemFont(int cssValueId, FontDescription& fontDescription) const
    170170{
    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;
    178178
    179179    FontDescription* cachedDesc;
  • trunk/WebCore/rendering/bidi.cpp

    r38202 r38203  
    21932193    // FIXME: CSS3 says this is configurable, also need to use 0x002E (FULL STOP) if horizontal ellipsis is "not renderable"
    21942194    TextRun ellipsisRun(&horizontalEllipsis, 1);
    2195     static AtomicString ellipsisStr(&horizontalEllipsis, 1);
     2195    static AtomicString& ellipsisStr = *new AtomicString(&horizontalEllipsis, 1);
    21962196    const Font& firstLineFont = firstLineStyle()->font();
    21972197    const Font& font = style()->font();
  • trunk/WebCore/rendering/style/RenderStyle.cpp

    r38202 r38203  
    721721const Vector<StyleDashboardRegion>& RenderStyle::initialDashboardRegions()
    722722{
    723     static Vector<StyleDashboardRegion> emptyList;
     723    static Vector<StyleDashboardRegion>& emptyList = *new Vector<StyleDashboardRegion>;
    724724    return emptyList;
    725725}
     
    727727const Vector<StyleDashboardRegion>& RenderStyle::noneDashboardRegions()
    728728{
    729     static Vector<StyleDashboardRegion> noneList;
     729    static Vector<StyleDashboardRegion>& noneList = *new Vector<StyleDashboardRegion>;
    730730    static bool noneListInitialized = false;
    731731
  • trunk/WebCore/storage/LocalStorage.cpp

    r38202 r38203  
    4343static LocalStorageMap& localStorageMap()
    4444{
    45     static LocalStorageMap localStorageMap;
     45    static LocalStorageMap& localStorageMap = *new LocalStorageMap;
    4646    return localStorageMap;
    4747}
  • trunk/WebCore/svg/SVGAnimateMotionElement.cpp

    r38202 r38203  
    9292SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const
    9393{
    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");
    9696    String rotate = getAttribute(SVGNames::rotateAttr);
    9797    if (rotate == autoVal)
  • trunk/WebCore/svg/SVGAnimationElement.cpp

    r38202 r38203  
    197197SVGAnimationElement::CalcMode SVGAnimationElement::calcMode() const
    198198{   
    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");
    203203    const AtomicString& value = getAttribute(SVGNames::calcModeAttr);
    204204    if (value == discrete)
     
    215215SVGAnimationElement::AttributeType SVGAnimationElement::attributeType() const
    216216{   
    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");
    219219    const AtomicString& value = getAttribute(SVGNames::attributeTypeAttr);
    220220    if (value == css)
     
    242242bool SVGAnimationElement::isAdditive() const
    243243{
    244     static const AtomicString sum("sum");
     244    static const AtomicString& sum = *new AtomicString("sum");
    245245    const AtomicString& value = getAttribute(SVGNames::additiveAttr);
    246246    return value == sum || animationMode() == ByAnimation;
     
    249249bool SVGAnimationElement::isAccumulated() const
    250250{
    251     static const AtomicString sum("sum");
     251    static const AtomicString& sum = *new AtomicString("sum");
    252252    const AtomicString& value = getAttribute(SVGNames::accumulateAttr);
    253253    return value == sum && animationMode() != ToAnimation;
  • trunk/WebCore/svg/SVGLangSpace.cpp

    r38202 r38203  
    5252{
    5353    if (!m_space) {
    54         static const AtomicString defaultString("default");
     54        static const AtomicString& defaultString = *new AtomicString("default");
    5555        return defaultString;
    5656    }
  • trunk/WebCore/svg/SVGSVGElement.cpp

    r38202 r38203  
    9090const AtomicString& SVGSVGElement::contentScriptType() const
    9191{
    92     static const AtomicString defaultValue("text/ecmascript");
     92    static const AtomicString& defaultValue = *new AtomicString("text/ecmascript");
    9393    const AtomicString& n = getAttribute(contentScriptTypeAttr);
    9494    return n.isNull() ? defaultValue : n;
     
    102102const AtomicString& SVGSVGElement::contentStyleType() const
    103103{
    104     static const AtomicString defaultValue("text/css");
     104    static const AtomicString& defaultValue = *new AtomicString("text/css");
    105105    const AtomicString& n = getAttribute(contentStyleTypeAttr);
    106106    return n.isNull() ? defaultValue : n;
  • trunk/WebCore/svg/SVGStyleElement.cpp

    r38202 r38203  
    5454const AtomicString& SVGStyleElement::type() const
    5555{
    56     static const AtomicString defaultValue("text/css");
     56    static const AtomicString& defaultValue = *new AtomicString("text/css");
    5757    const AtomicString& n = getAttribute(typeAttr);
    5858    return n.isNull() ? defaultValue : n;
     
    6666const AtomicString& SVGStyleElement::media() const
    6767{
    68     static const AtomicString defaultValue("all");
     68    static const AtomicString& defaultValue = *new AtomicString("all");
    6969    const AtomicString& n = getAttribute(mediaAttr);
    7070    return n.isNull() ? defaultValue : n;
  • trunk/WebCore/svg/SVGTextContentElement.cpp

    r38202 r38203  
    499499        if (SVGLangSpace::parseMappedAttribute(attr)) {
    500500            if (attr->name().matches(XMLNames::spaceAttr)) {
    501                 static const AtomicString preserveString("preserve");
     501                static const AtomicString& preserveString = *new AtomicString("preserve");
    502502
    503503                if (attr->value() == preserveString)
  • trunk/WebCore/svg/animation/SVGSMILElement.cpp

    r38202 r38203  
    194194    String parse = data.stripWhiteSpace();
    195195
    196     static const AtomicString indefiniteValue("indefinite");
     196    static const AtomicString& indefiniteValue = *new AtomicString("indefinite");
    197197    if (parse == indefiniteValue)
    198198        return SMILTime::indefinite();
     
    458458SVGSMILElement::Restart SVGSMILElement::restart() const
    459459{   
    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");
    462462    const AtomicString& value = getAttribute(SVGNames::restartAttr);
    463463    if (value == never)
     
    470470SVGSMILElement::FillMode SVGSMILElement::fill() const
    471471{   
    472     static const AtomicString freeze("freeze");
     472    static const AtomicString& freeze = *new AtomicString("freeze");
    473473    const AtomicString& value = getAttribute(SVGNames::fillAttr);
    474474    return value == freeze ? FillFreeze : FillRemove;
     
    507507        return SMILTime::unresolved();
    508508
    509     static const AtomicString indefiniteValue("indefinite");
     509    static const AtomicString& indefiniteValue = *new AtomicString("indefinite");
    510510    if (value == indefiniteValue)
    511511        return SMILTime::indefinite();
     
    862862{
    863863    ASSERT(m_intervalBegin.isFinite());
    864     static HashSet<SVGSMILElement*> loopBreaker;
     864    static HashSet<SVGSMILElement*>& loopBreaker = *new HashSet<SVGSMILElement*>;
    865865    if (loopBreaker.contains(this))
    866866        return;
  • trunk/WebCore/svg/graphics/SVGResource.cpp

    r38202 r38203  
    4949
    5050static HashMap<SVGStyledElement*, ResourceSet*>& clientMap() {
    51     static HashMap<SVGStyledElement*, ResourceSet*> map;
     51    static HashMap<SVGStyledElement*, ResourceSet*>& map = *new HashMap<SVGStyledElement*, ResourceSet*>;
    5252    return map;
    5353}
  • trunk/WebCore/svg/graphics/SVGResourceMarker.cpp

    r38202 r38203  
    6666        return;
    6767
    68     static HashSet<SVGResourceMarker*> currentlyDrawingMarkers;
     68    static HashSet<SVGResourceMarker*>& currentlyDrawingMarkers = *new HashSet<SVGResourceMarker*>;
    6969
    7070    // avoid drawing circular marker references
  • trunk/WebCore/xml/XMLHttpRequest.cpp

    r38202 r38203  
    7474static PreflightResultCache& preflightResultCache()
    7575{
    76     static PreflightResultCache cache;
     76    static PreflightResultCache& cache = *new PreflightResultCache;
    7777    return cache;
    7878}
     
    8989static bool isSafeRequestHeader(const String& name)
    9090{
    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-");
    9494   
    9595    if (forbiddenHeaders.isEmpty()) {
     
    122122static bool isOnAccessControlResponseHeaderWhitelist(const String& name)
    123123{
    124     static HashSet<String, CaseFoldingHash> allowedHeaders;
     124    static HashSet<String, CaseFoldingHash>& allowedHeaders = *new HashSet<String, CaseFoldingHash>;
    125125    if (allowedHeaders.isEmpty()) {
    126126        allowedHeaders.add("cache-control");
  • trunk/WebCore/xml/XPathExpressionNode.cpp

    r38202 r38203  
    3838EvaluationContext& Expression::evaluationContext()
    3939{
    40     static EvaluationContext evaluationContext;
     40    static EvaluationContext& evaluationContext = *new EvaluationContext;
    4141    return evaluationContext;
    4242}
  • trunk/WebCore/xml/XPathParser.cpp

    r38202 r38203  
    9898static bool isAxisName(const String& name, Step::Axis& type)
    9999{
    100     static HashMap<String, Step::Axis> axisNames;
     100    static HashMap<String, Step::Axis>& axisNames = *new HashMap<String, Step::Axis>;
    101101
    102102    if (axisNames.isEmpty())
     
    112112static bool isNodeTypeName(const String& name)
    113113{
    114     static HashSet<String> nodeTypeNames;
     114    static HashSet<String>& nodeTypeNames = *new HashSet<String>;
    115115    if (nodeTypeNames.isEmpty()) {
    116116        nodeTypeNames.add("comment");
  • trunk/WebCore/xml/XPathValue.cpp

    r38202 r38203  
    4646{
    4747    if (!m_data) {
    48         static NodeSet emptyNodeSet;
     48        static NodeSet& emptyNodeSet = *new NodeSet;
    4949        return emptyNodeSet;
    5050    }
  • trunk/WebKit/mac/ChangeLog

    r38202 r38203  
     12008-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
    172008-11-06  David Kilzer  <ddkilzer@apple.com>
    28
  • trunk/WebKit/mac/History/WebBackForwardList.mm

    r38202 r38203  
    5252static HashMap<BackForwardList*, WebBackForwardList*>& backForwardLists()
    5353{
    54     static HashMap<BackForwardList*, WebBackForwardList*> staticBackForwardLists;
     54    static HashMap<BackForwardList*, WebBackForwardList*>& staticBackForwardLists = *new HashMap<BackForwardList*, WebBackForwardList*>;
    5555    return staticBackForwardLists;
    5656}
  • trunk/WebKit/mac/History/WebHistoryItem.mm

    r38202 r38203  
    7171HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers()
    7272{
    73     static HashMap<HistoryItem*, WebHistoryItem*> historyItemWrappers;
     73    static HashMap<HistoryItem*, WebHistoryItem*>& historyItemWrappers = *new HashMap<HistoryItem*, WebHistoryItem*>;
    7474    return historyItemWrappers;
    7575}
  • trunk/WebKit/mac/Misc/WebStringTruncator.m

    r38202 r38203  
    5050{
    5151    static NSFont *currentFont;
    52     static Font currentRenderer;
     52    static Font& currentRenderer = *new Font;
    5353
    5454    if ([font isEqual:currentFont])
  • trunk/WebKit/mac/Plugins/WebBaseNetscapePluginStream.mm

    r38202 r38203  
    5656static StreamMap& streams()
    5757{
    58     static StreamMap staticStreams;
     58    static StreamMap& staticStreams = *new StreamMap;
    5959    return staticStreams;
    6060}
  • trunk/WebKit/mac/WebView/WebView.mm

    r38202 r38203  
    36073607        }
    36083608        else if (object->inherits(&JSArray::info)) {
    3609             static HashSet<JSObject*> visitedElems;
     3609            static HashSet<JSObject*>& visitedElems = *new HashSet<JSObject*>;
    36103610            if (!visitedElems.contains(object)) {
    36113611                visitedElems.add(object);
  • trunk/WebKitTools/ChangeLog

    r38202 r38203  
     12008-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
    172008-11-06  David Kilzer  <ddkilzer@apple.com>
    28
  • trunk/WebKitTools/Scripts/check-for-exit-time-destructors

    r38202 r38203  
    9696        next if $shortName eq "AccessibilityObject.o";
    9797        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";
    10498        next if $shortName eq "CSSStyleSelector.o";
    10599        next if $shortName eq "CachedImage.o";
    106100        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";
    110101        next if $shortName eq "EventHandlerMac.o";
    111102        next if $shortName eq "FTPDirectoryDocument.o";
    112103        next if $shortName eq "FontCache.o";
    113104        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";
    119105        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";
    131106        next if $shortName eq "HTMLTableElement.o";
    132         next if $shortName eq "HTMLTextAreaElement.o";
    133107        next if $shortName eq "IconDatabase.o";
    134108        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";
    138109        next if $shortName eq "JSHTMLElementWrapperFactory.o";
    139         next if $shortName eq "JSInspectedObjectWrapper.o";
    140         next if $shortName eq "JSInspectorCallbackWrapper.o";
    141110        next if $shortName eq "JSSVGAnimatedLength.o";
    142111        next if $shortName eq "JSSVGAnimatedRect.o";
     
    144113        next if $shortName eq "JSSVGLength.o";
    145114        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";
    153115        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";
    157116        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";
    174117        next if $shortName eq "ScrollView.o";
    175         next if $shortName eq "ScrollbarThemeMac.o";
    176118        next if $shortName eq "SecurityOrigin.o";
    177119        next if $shortName eq "SimpleFontDataMac.o";
    178120        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";
    190121    }
    191122
    192123    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";
    196124        next if $shortName eq "WebHTMLRepresentation.o";
    197         next if $shortName eq "WebHistoryItem.o";
    198125        next if $shortName eq "WebNSPasteboardExtras.o";
    199126        next if $shortName eq "WebPasteboardHelper.o";
    200         next if $shortName eq "WebStringTruncator.o";
    201         next if $shortName eq "WebView.o";
    202127    }
    203128
Note: See TracChangeset for help on using the changeset viewer.