Ignore:
Timestamp:
Jul 6, 2008, 7:49:29 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-07-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Second step in broad cleanup effort.

[ File list elided ]

WebCore:

2008-07-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Add #include for kjs/protect.h.

  • xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::loadRequestAsynchronously):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/LabelStack.cpp

    r34893 r35027  
    2626namespace KJS {
    2727
    28 bool LabelStack::push(const Identifier &id)
     28bool LabelStack::push(const Identifier& id)
    2929{
    30   if (contains(id))
    31     return false;
     30    if (contains(id))
     31        return false;
    3232
    33   StackElem *newtos = new StackElem;
    34   newtos->id = id;
    35   newtos->prev = tos;
    36   tos = newtos;
    37   return true;
     33    StackElem* newTopOfStack = new StackElem;
     34    newTopOfStack->id = id;
     35    newTopOfStack->prev = m_topOfStack;
     36    m_topOfStack = newTopOfStack;
     37    return true;
    3838}
    3939
    4040bool LabelStack::contains(const Identifier &id) const
    4141{
    42   if (id.isEmpty())
    43     return true;
     42    if (id.isEmpty())
     43        return true;
    4444
    45   for (StackElem *curr = tos; curr; curr = curr->prev)
    46     if (curr->id == id)
    47       return true;
     45    for (StackElem* curr = m_topOfStack; curr; curr = curr->prev) {
     46        if (curr->id == id)
     47            return true;
     48    }
    4849
    49   return false;
     50    return false;
    5051}
    5152
Note: See TracChangeset for help on using the changeset viewer.