<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[180055] trunk/Source/WTF</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/180055">180055</a></dd>
<dt>Author</dt> <dd>andersca@apple.com</dd>
<dt>Date</dt> <dd>2015-02-13 10:05:46 -0800 (Fri, 13 Feb 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Re-indent Deque.h

Rubber-stamped by Antti Koivisto.

* wtf/Deque.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfDequeh">trunk/Source/WTF/wtf/Deque.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (180054 => 180055)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-02-13 17:50:15 UTC (rev 180054)
+++ trunk/Source/WTF/ChangeLog        2015-02-13 18:05:46 UTC (rev 180055)
</span><span class="lines">@@ -1,3 +1,11 @@
</span><ins>+2015-02-13  Anders Carlsson  &lt;andersca@apple.com&gt;
+
+        Re-indent Deque.h
+
+        Rubber-stamped by Antti Koivisto.
+
+        * wtf/Deque.h:
+
</ins><span class="cx"> 2015-02-11  Brent Fulgham  &lt;bfulgham@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Win] [64-bit] Work around MSVC2013 Runtime Bug
</span></span></pre></div>
<a id="trunkSourceWTFwtfDequeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Deque.h (180054 => 180055)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Deque.h        2015-02-13 17:50:15 UTC (rev 180054)
+++ trunk/Source/WTF/wtf/Deque.h        2015-02-13 18:05:46 UTC (rev 180055)
</span><span class="lines">@@ -38,621 +38,621 @@
</span><span class="cx"> 
</span><span class="cx"> namespace WTF {
</span><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt; class DequeIteratorBase;
-    template&lt;typename T, size_t inlineCapacity&gt; class DequeIterator;
-    template&lt;typename T, size_t inlineCapacity&gt; class DequeConstIterator;
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt; class DequeIteratorBase;
+template&lt;typename T, size_t inlineCapacity&gt; class DequeIterator;
+template&lt;typename T, size_t inlineCapacity&gt; class DequeConstIterator;
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity = 0&gt;
-    class Deque {
-        WTF_MAKE_FAST_ALLOCATED;
-    public:
-        typedef DequeIterator&lt;T, inlineCapacity&gt; iterator;
-        typedef DequeConstIterator&lt;T, inlineCapacity&gt; const_iterator;
-        typedef std::reverse_iterator&lt;iterator&gt; reverse_iterator;
-        typedef std::reverse_iterator&lt;const_iterator&gt; const_reverse_iterator;
</del><ins>+template&lt;typename T, size_t inlineCapacity = 0&gt;
+class Deque {
+    WTF_MAKE_FAST_ALLOCATED;
+public:
+    typedef DequeIterator&lt;T, inlineCapacity&gt; iterator;
+    typedef DequeConstIterator&lt;T, inlineCapacity&gt; const_iterator;
+    typedef std::reverse_iterator&lt;iterator&gt; reverse_iterator;
+    typedef std::reverse_iterator&lt;const_iterator&gt; const_reverse_iterator;
</ins><span class="cx"> 
</span><del>-        Deque();
-        Deque(const Deque&lt;T, inlineCapacity&gt;&amp;);
-        Deque&amp; operator=(const Deque&lt;T, inlineCapacity&gt;&amp;);
-        ~Deque();
</del><ins>+    Deque();
+    Deque(const Deque&lt;T, inlineCapacity&gt;&amp;);
+    Deque&amp; operator=(const Deque&lt;T, inlineCapacity&gt;&amp;);
+    ~Deque();
</ins><span class="cx"> 
</span><del>-        void swap(Deque&lt;T, inlineCapacity&gt;&amp;);
</del><ins>+    void swap(Deque&lt;T, inlineCapacity&gt;&amp;);
</ins><span class="cx"> 
</span><del>-        size_t size() const { return m_start &lt;= m_end ? m_end - m_start : m_end + m_buffer.capacity() - m_start; }
-        bool isEmpty() const { return m_start == m_end; }
</del><ins>+    size_t size() const { return m_start &lt;= m_end ? m_end - m_start : m_end + m_buffer.capacity() - m_start; }
+    bool isEmpty() const { return m_start == m_end; }
</ins><span class="cx"> 
</span><del>-        iterator begin() { return iterator(this, m_start); }
-        iterator end() { return iterator(this, m_end); }
-        const_iterator begin() const { return const_iterator(this, m_start); }
-        const_iterator end() const { return const_iterator(this, m_end); }
-        reverse_iterator rbegin() { return reverse_iterator(end()); }
-        reverse_iterator rend() { return reverse_iterator(begin()); }
-        const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); }
-        const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
</del><ins>+    iterator begin() { return iterator(this, m_start); }
+    iterator end() { return iterator(this, m_end); }
+    const_iterator begin() const { return const_iterator(this, m_start); }
+    const_iterator end() const { return const_iterator(this, m_end); }
+    reverse_iterator rbegin() { return reverse_iterator(end()); }
+    reverse_iterator rend() { return reverse_iterator(begin()); }
+    const_reverse_iterator rbegin() const { return const_reverse_iterator(end()); }
+    const_reverse_iterator rend() const { return const_reverse_iterator(begin()); }
</ins><span class="cx"> 
</span><del>-        T&amp; first() { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; }
-        const T&amp; first() const { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; }
-        T takeFirst();
</del><ins>+    T&amp; first() { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; }
+    const T&amp; first() const { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; }
+    T takeFirst();
</ins><span class="cx"> 
</span><del>-        T&amp; last() { ASSERT(m_start != m_end); return *(--end()); }
-        const T&amp; last() const { ASSERT(m_start != m_end); return *(--end()); }
-        T takeLast();
</del><ins>+    T&amp; last() { ASSERT(m_start != m_end); return *(--end()); }
+    const T&amp; last() const { ASSERT(m_start != m_end); return *(--end()); }
+    T takeLast();
</ins><span class="cx"> 
</span><del>-        template&lt;typename U&gt; void append(U&amp;&amp;);
-        template&lt;typename U&gt; void prepend(U&amp;&amp;);
-        void removeFirst();
-        void removeLast();
-        void remove(iterator&amp;);
-        void remove(const_iterator&amp;);
</del><ins>+    template&lt;typename U&gt; void append(U&amp;&amp;);
+    template&lt;typename U&gt; void prepend(U&amp;&amp;);
+    void removeFirst();
+    void removeLast();
+    void remove(iterator&amp;);
+    void remove(const_iterator&amp;);
</ins><span class="cx"> 
</span><del>-        void clear();
</del><ins>+    void clear();
</ins><span class="cx"> 
</span><del>-        template&lt;typename Predicate&gt;
-        iterator findIf(Predicate&amp;&amp;);
</del><ins>+    template&lt;typename Predicate&gt;
+    iterator findIf(Predicate&amp;&amp;);
</ins><span class="cx"> 
</span><del>-    private:
-        friend class DequeIteratorBase&lt;T, inlineCapacity&gt;;
</del><ins>+private:
+    friend class DequeIteratorBase&lt;T, inlineCapacity&gt;;
</ins><span class="cx"> 
</span><del>-        typedef VectorBuffer&lt;T, inlineCapacity&gt; Buffer;
-        typedef VectorTypeOperations&lt;T&gt; TypeOperations;
-        typedef DequeIteratorBase&lt;T, inlineCapacity&gt; IteratorBase;
</del><ins>+    typedef VectorBuffer&lt;T, inlineCapacity&gt; Buffer;
+    typedef VectorTypeOperations&lt;T&gt; TypeOperations;
+    typedef DequeIteratorBase&lt;T, inlineCapacity&gt; IteratorBase;
</ins><span class="cx"> 
</span><del>-        void remove(size_t position);
-        void invalidateIterators();
-        void destroyAll();
-        void checkValidity() const;
-        void checkIndexValidity(size_t) const;
-        void expandCapacityIfNeeded();
-        void expandCapacity();
</del><ins>+    void remove(size_t position);
+    void invalidateIterators();
+    void destroyAll();
+    void checkValidity() const;
+    void checkIndexValidity(size_t) const;
+    void expandCapacityIfNeeded();
+    void expandCapacity();
</ins><span class="cx"> 
</span><del>-        size_t m_start;
-        size_t m_end;
-        Buffer m_buffer;
</del><ins>+    size_t m_start;
+    size_t m_end;
+    Buffer m_buffer;
</ins><span class="cx"> #ifndef NDEBUG
</span><del>-        mutable IteratorBase* m_iterators;
</del><ins>+    mutable IteratorBase* m_iterators;
</ins><span class="cx"> #endif
</span><del>-    };
</del><ins>+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity = 0&gt;
-    class DequeIteratorBase {
-    protected:
-        DequeIteratorBase();
-        DequeIteratorBase(const Deque&lt;T, inlineCapacity&gt;*, size_t);
-        DequeIteratorBase(const DequeIteratorBase&amp;);
-        DequeIteratorBase&amp; operator=(const DequeIteratorBase&amp;);
-        ~DequeIteratorBase();
</del><ins>+template&lt;typename T, size_t inlineCapacity = 0&gt;
+class DequeIteratorBase {
+protected:
+    DequeIteratorBase();
+    DequeIteratorBase(const Deque&lt;T, inlineCapacity&gt;*, size_t);
+    DequeIteratorBase(const DequeIteratorBase&amp;);
+    DequeIteratorBase&amp; operator=(const DequeIteratorBase&amp;);
+    ~DequeIteratorBase();
</ins><span class="cx"> 
</span><del>-        void assign(const DequeIteratorBase&amp; other) { *this = other; }
</del><ins>+    void assign(const DequeIteratorBase&amp; other) { *this = other; }
</ins><span class="cx"> 
</span><del>-        void increment();
-        void decrement();
</del><ins>+    void increment();
+    void decrement();
</ins><span class="cx"> 
</span><del>-        T* before() const;
-        T* after() const;
</del><ins>+    T* before() const;
+    T* after() const;
</ins><span class="cx"> 
</span><del>-        bool isEqual(const DequeIteratorBase&amp;) const;
</del><ins>+    bool isEqual(const DequeIteratorBase&amp;) const;
</ins><span class="cx"> 
</span><del>-    private:
-        void addToIteratorsList();
-        void removeFromIteratorsList();
-        void checkValidity() const;
-        void checkValidity(const DequeIteratorBase&amp;) const;
</del><ins>+private:
+    void addToIteratorsList();
+    void removeFromIteratorsList();
+    void checkValidity() const;
+    void checkValidity(const DequeIteratorBase&amp;) const;
</ins><span class="cx"> 
</span><del>-        Deque&lt;T, inlineCapacity&gt;* m_deque;
-        size_t m_index;
</del><ins>+    Deque&lt;T, inlineCapacity&gt;* m_deque;
+    size_t m_index;
</ins><span class="cx"> 
</span><del>-        friend class Deque&lt;T, inlineCapacity&gt;;
</del><ins>+    friend class Deque&lt;T, inlineCapacity&gt;;
</ins><span class="cx"> 
</span><span class="cx"> #ifndef NDEBUG
</span><del>-        mutable DequeIteratorBase* m_next;
-        mutable DequeIteratorBase* m_previous;
</del><ins>+    mutable DequeIteratorBase* m_next;
+    mutable DequeIteratorBase* m_previous;
</ins><span class="cx"> #endif
</span><del>-    };
</del><ins>+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity = 0&gt;
-    class DequeIterator : public DequeIteratorBase&lt;T, inlineCapacity&gt; {
-    private:
-        typedef DequeIteratorBase&lt;T, inlineCapacity&gt; Base;
-        typedef DequeIterator&lt;T, inlineCapacity&gt; Iterator;
</del><ins>+template&lt;typename T, size_t inlineCapacity = 0&gt;
+class DequeIterator : public DequeIteratorBase&lt;T, inlineCapacity&gt; {
+private:
+    typedef DequeIteratorBase&lt;T, inlineCapacity&gt; Base;
+    typedef DequeIterator&lt;T, inlineCapacity&gt; Iterator;
</ins><span class="cx"> 
</span><del>-    public:
-        typedef ptrdiff_t difference_type;
-        typedef T value_type;
-        typedef T* pointer;
-        typedef T&amp; reference;
-        typedef std::bidirectional_iterator_tag iterator_category;
</del><ins>+public:
+    typedef ptrdiff_t difference_type;
+    typedef T value_type;
+    typedef T* pointer;
+    typedef T&amp; reference;
+    typedef std::bidirectional_iterator_tag iterator_category;
</ins><span class="cx"> 
</span><del>-        DequeIterator(Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
-            : Base(deque, index) { }
</del><ins>+    DequeIterator(Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
+        : Base(deque, index) { }
</ins><span class="cx"> 
</span><del>-        DequeIterator(const Iterator&amp; other) : Base(other) { }
-        DequeIterator&amp; operator=(const Iterator&amp; other) { Base::assign(other); return *this; }
</del><ins>+    DequeIterator(const Iterator&amp; other) : Base(other) { }
+    DequeIterator&amp; operator=(const Iterator&amp; other) { Base::assign(other); return *this; }
</ins><span class="cx"> 
</span><del>-        T&amp; operator*() const { return *Base::after(); }
-        T* operator-&gt;() const { return Base::after(); }
</del><ins>+    T&amp; operator*() const { return *Base::after(); }
+    T* operator-&gt;() const { return Base::after(); }
</ins><span class="cx"> 
</span><del>-        bool operator==(const Iterator&amp; other) const { return Base::isEqual(other); }
-        bool operator!=(const Iterator&amp; other) const { return !Base::isEqual(other); }
</del><ins>+    bool operator==(const Iterator&amp; other) const { return Base::isEqual(other); }
+    bool operator!=(const Iterator&amp; other) const { return !Base::isEqual(other); }
</ins><span class="cx"> 
</span><del>-        Iterator&amp; operator++() { Base::increment(); return *this; }
-        // postfix ++ intentionally omitted
-        Iterator&amp; operator--() { Base::decrement(); return *this; }
-        // postfix -- intentionally omitted
-    };
</del><ins>+    Iterator&amp; operator++() { Base::increment(); return *this; }
+    // postfix ++ intentionally omitted
+    Iterator&amp; operator--() { Base::decrement(); return *this; }
+    // postfix -- intentionally omitted
+};
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity = 0&gt;
-    class DequeConstIterator : public DequeIteratorBase&lt;T, inlineCapacity&gt; {
-    private:
-        typedef DequeIteratorBase&lt;T, inlineCapacity&gt; Base;
-        typedef DequeConstIterator&lt;T, inlineCapacity&gt; Iterator;
-        typedef DequeIterator&lt;T, inlineCapacity&gt; NonConstIterator;
</del><ins>+template&lt;typename T, size_t inlineCapacity = 0&gt;
+class DequeConstIterator : public DequeIteratorBase&lt;T, inlineCapacity&gt; {
+private:
+    typedef DequeIteratorBase&lt;T, inlineCapacity&gt; Base;
+    typedef DequeConstIterator&lt;T, inlineCapacity&gt; Iterator;
+    typedef DequeIterator&lt;T, inlineCapacity&gt; NonConstIterator;
</ins><span class="cx"> 
</span><del>-    public:
-        typedef ptrdiff_t difference_type;
-        typedef T value_type;
-        typedef const T* pointer;
-        typedef const T&amp; reference;
-        typedef std::bidirectional_iterator_tag iterator_category;
</del><ins>+public:
+    typedef ptrdiff_t difference_type;
+    typedef T value_type;
+    typedef const T* pointer;
+    typedef const T&amp; reference;
+    typedef std::bidirectional_iterator_tag iterator_category;
</ins><span class="cx"> 
</span><del>-        DequeConstIterator(const Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
-            : Base(deque, index) { }
</del><ins>+    DequeConstIterator(const Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
+        : Base(deque, index) { }
</ins><span class="cx"> 
</span><del>-        DequeConstIterator(const Iterator&amp; other) : Base(other) { }
-        DequeConstIterator(const NonConstIterator&amp; other) : Base(other) { }
-        DequeConstIterator&amp; operator=(const Iterator&amp; other) { Base::assign(other); return *this; }
-        DequeConstIterator&amp; operator=(const NonConstIterator&amp; other) { Base::assign(other); return *this; }
</del><ins>+    DequeConstIterator(const Iterator&amp; other) : Base(other) { }
+    DequeConstIterator(const NonConstIterator&amp; other) : Base(other) { }
+    DequeConstIterator&amp; operator=(const Iterator&amp; other) { Base::assign(other); return *this; }
+    DequeConstIterator&amp; operator=(const NonConstIterator&amp; other) { Base::assign(other); return *this; }
</ins><span class="cx"> 
</span><del>-        const T&amp; operator*() const { return *Base::after(); }
-        const T* operator-&gt;() const { return Base::after(); }
</del><ins>+    const T&amp; operator*() const { return *Base::after(); }
+    const T* operator-&gt;() const { return Base::after(); }
</ins><span class="cx"> 
</span><del>-        bool operator==(const Iterator&amp; other) const { return Base::isEqual(other); }
-        bool operator!=(const Iterator&amp; other) const { return !Base::isEqual(other); }
</del><ins>+    bool operator==(const Iterator&amp; other) const { return Base::isEqual(other); }
+    bool operator!=(const Iterator&amp; other) const { return !Base::isEqual(other); }
</ins><span class="cx"> 
</span><del>-        Iterator&amp; operator++() { Base::increment(); return *this; }
-        // postfix ++ intentionally omitted
-        Iterator&amp; operator--() { Base::decrement(); return *this; }
-        // postfix -- intentionally omitted
-    };
</del><ins>+    Iterator&amp; operator++() { Base::increment(); return *this; }
+    // postfix ++ intentionally omitted
+    Iterator&amp; operator--() { Base::decrement(); return *this; }
+    // postfix -- intentionally omitted
+};
</ins><span class="cx"> 
</span><span class="cx"> #ifdef NDEBUG
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::checkValidity() const { }
-    template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::checkIndexValidity(size_t) const { }
-    template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::invalidateIterators() { }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::checkValidity() const { }
+template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::checkIndexValidity(size_t) const { }
+template&lt;typename T, size_t inlineCapacity&gt; inline void Deque&lt;T, inlineCapacity&gt;::invalidateIterators() { }
</ins><span class="cx"> #else
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void Deque&lt;T, inlineCapacity&gt;::checkValidity() const
-    {
-        // In this implementation a capacity of 1 would confuse append() and
-        // other places that assume the index after capacity - 1 is 0.
-        ASSERT(m_buffer.capacity() != 1);
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void Deque&lt;T, inlineCapacity&gt;::checkValidity() const
+{
+    // In this implementation a capacity of 1 would confuse append() and
+    // other places that assume the index after capacity - 1 is 0.
+    ASSERT(m_buffer.capacity() != 1);
</ins><span class="cx"> 
</span><del>-        if (!m_buffer.capacity()) {
-            ASSERT(!m_start);
-            ASSERT(!m_end);
-        } else {
-            ASSERT(m_start &lt; m_buffer.capacity());
-            ASSERT(m_end &lt; m_buffer.capacity());
-        }
</del><ins>+    if (!m_buffer.capacity()) {
+        ASSERT(!m_start);
+        ASSERT(!m_end);
+    } else {
+        ASSERT(m_start &lt; m_buffer.capacity());
+        ASSERT(m_end &lt; m_buffer.capacity());
</ins><span class="cx">     }
</span><ins>+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void Deque&lt;T, inlineCapacity&gt;::checkIndexValidity(size_t index) const
-    {
-        ASSERT_UNUSED(index, index &lt;= m_buffer.capacity());
-        if (m_start &lt;= m_end) {
-            ASSERT(index &gt;= m_start);
-            ASSERT(index &lt;= m_end);
-        } else {
-            ASSERT(index &gt;= m_start || index &lt;= m_end);
-        }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void Deque&lt;T, inlineCapacity&gt;::checkIndexValidity(size_t index) const
+{
+    ASSERT_UNUSED(index, index &lt;= m_buffer.capacity());
+    if (m_start &lt;= m_end) {
+        ASSERT(index &gt;= m_start);
+        ASSERT(index &lt;= m_end);
+    } else {
+        ASSERT(index &gt;= m_start || index &lt;= m_end);
</ins><span class="cx">     }
</span><ins>+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void Deque&lt;T, inlineCapacity&gt;::invalidateIterators()
-    {
-        IteratorBase* next;
-        for (IteratorBase* p = m_iterators; p; p = next) {
-            next = p-&gt;m_next;
-            p-&gt;m_deque = 0;
-            p-&gt;m_next = 0;
-            p-&gt;m_previous = 0;
-        }
-        m_iterators = 0;
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void Deque&lt;T, inlineCapacity&gt;::invalidateIterators()
+{
+    IteratorBase* next;
+    for (IteratorBase* p = m_iterators; p; p = next) {
+        next = p-&gt;m_next;
+        p-&gt;m_deque = 0;
+        p-&gt;m_next = 0;
+        p-&gt;m_previous = 0;
</ins><span class="cx">     }
</span><ins>+    m_iterators = 0;
+}
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline Deque&lt;T, inlineCapacity&gt;::Deque()
-        : m_start(0)
-        , m_end(0)
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline Deque&lt;T, inlineCapacity&gt;::Deque()
+    : m_start(0)
+    , m_end(0)
</ins><span class="cx"> #ifndef NDEBUG
</span><del>-        , m_iterators(0)
</del><ins>+    , m_iterators(0)
</ins><span class="cx"> #endif
</span><del>-    {
-        checkValidity();
-    }
</del><ins>+{
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline Deque&lt;T, inlineCapacity&gt;::Deque(const Deque&lt;T, inlineCapacity&gt;&amp; other)
-        : m_start(other.m_start)
-        , m_end(other.m_end)
-        , m_buffer(other.m_buffer.capacity())
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline Deque&lt;T, inlineCapacity&gt;::Deque(const Deque&lt;T, inlineCapacity&gt;&amp; other)
+    : m_start(other.m_start)
+    , m_end(other.m_end)
+    , m_buffer(other.m_buffer.capacity())
</ins><span class="cx"> #ifndef NDEBUG
</span><del>-        , m_iterators(0)
</del><ins>+    , m_iterators(0)
</ins><span class="cx"> #endif
</span><del>-    {
-        const T* otherBuffer = other.m_buffer.buffer();
-        if (m_start &lt;= m_end)
-            TypeOperations::uninitializedCopy(otherBuffer + m_start, otherBuffer + m_end, m_buffer.buffer() + m_start);
-        else {
-            TypeOperations::uninitializedCopy(otherBuffer, otherBuffer + m_end, m_buffer.buffer());
-            TypeOperations::uninitializedCopy(otherBuffer + m_start, otherBuffer + m_buffer.capacity(), m_buffer.buffer() + m_start);
-        }
</del><ins>+{
+    const T* otherBuffer = other.m_buffer.buffer();
+    if (m_start &lt;= m_end)
+        TypeOperations::uninitializedCopy(otherBuffer + m_start, otherBuffer + m_end, m_buffer.buffer() + m_start);
+    else {
+        TypeOperations::uninitializedCopy(otherBuffer, otherBuffer + m_end, m_buffer.buffer());
+        TypeOperations::uninitializedCopy(otherBuffer + m_start, otherBuffer + m_buffer.capacity(), m_buffer.buffer() + m_start);
</ins><span class="cx">     }
</span><ins>+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline Deque&lt;T, inlineCapacity&gt;&amp; Deque&lt;T, inlineCapacity&gt;::operator=(const Deque&lt;T, inlineCapacity&gt;&amp; other)
-    {
-        // FIXME: This is inefficient if we're using an inline buffer and T is
-        // expensive to copy since it will copy the buffer twice instead of once.
-        Deque&lt;T, inlineCapacity&gt; copy(other);
-        swap(copy);
-        return *this;
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline Deque&lt;T, inlineCapacity&gt;&amp; Deque&lt;T, inlineCapacity&gt;::operator=(const Deque&lt;T, inlineCapacity&gt;&amp; other)
+{
+    // FIXME: This is inefficient if we're using an inline buffer and T is
+    // expensive to copy since it will copy the buffer twice instead of once.
+    Deque&lt;T, inlineCapacity&gt; copy(other);
+    swap(copy);
+    return *this;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::destroyAll()
-    {
-        if (m_start &lt;= m_end)
-            TypeOperations::destruct(m_buffer.buffer() + m_start, m_buffer.buffer() + m_end);
-        else {
-            TypeOperations::destruct(m_buffer.buffer(), m_buffer.buffer() + m_end);
-            TypeOperations::destruct(m_buffer.buffer() + m_start, m_buffer.buffer() + m_buffer.capacity());
-        }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::destroyAll()
+{
+    if (m_start &lt;= m_end)
+        TypeOperations::destruct(m_buffer.buffer() + m_start, m_buffer.buffer() + m_end);
+    else {
+        TypeOperations::destruct(m_buffer.buffer(), m_buffer.buffer() + m_end);
+        TypeOperations::destruct(m_buffer.buffer() + m_start, m_buffer.buffer() + m_buffer.capacity());
</ins><span class="cx">     }
</span><ins>+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline Deque&lt;T, inlineCapacity&gt;::~Deque()
-    {
-        checkValidity();
-        invalidateIterators();
-        destroyAll();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline Deque&lt;T, inlineCapacity&gt;::~Deque()
+{
+    checkValidity();
+    invalidateIterators();
+    destroyAll();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::swap(Deque&lt;T, inlineCapacity&gt;&amp; other)
-    {
-        checkValidity();
-        other.checkValidity();
-        invalidateIterators();
-        std::swap(m_start, other.m_start);
-        std::swap(m_end, other.m_end);
-        m_buffer.swap(other.m_buffer, 0, 0);
-        checkValidity();
-        other.checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::swap(Deque&lt;T, inlineCapacity&gt;&amp; other)
+{
+    checkValidity();
+    other.checkValidity();
+    invalidateIterators();
+    std::swap(m_start, other.m_start);
+    std::swap(m_end, other.m_end);
+    m_buffer.swap(other.m_buffer, 0, 0);
+    checkValidity();
+    other.checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::clear()
-    {
-        checkValidity();
-        invalidateIterators();
-        destroyAll();
-        m_start = 0;
-        m_end = 0;
-        m_buffer.deallocateBuffer(m_buffer.buffer());
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::clear()
+{
+    checkValidity();
+    invalidateIterators();
+    destroyAll();
+    m_start = 0;
+    m_end = 0;
+    m_buffer.deallocateBuffer(m_buffer.buffer());
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    template&lt;typename Predicate&gt;
-    inline auto Deque&lt;T, inlineCapacity&gt;::findIf(Predicate&amp;&amp; predicate) -&gt; iterator
-    {
-        iterator end_iterator = end();
-        for (iterator it = begin(); it != end_iterator; ++it) {
-            if (predicate(*it))
-                return it;
-        }
-        return end_iterator;
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+template&lt;typename Predicate&gt;
+inline auto Deque&lt;T, inlineCapacity&gt;::findIf(Predicate&amp;&amp; predicate) -&gt; iterator
+{
+    iterator end_iterator = end();
+    for (iterator it = begin(); it != end_iterator; ++it) {
+        if (predicate(*it))
+            return it;
</ins><span class="cx">     }
</span><ins>+    return end_iterator;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::expandCapacityIfNeeded()
-    {
-        if (m_start) {
-            if (m_end + 1 != m_start)
-                return;
-        } else if (m_end) {
-            if (m_end != m_buffer.capacity() - 1)
-                return;
-        } else if (m_buffer.capacity())
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::expandCapacityIfNeeded()
+{
+    if (m_start) {
+        if (m_end + 1 != m_start)
</ins><span class="cx">             return;
</span><ins>+    } else if (m_end) {
+        if (m_end != m_buffer.capacity() - 1)
+            return;
+    } else if (m_buffer.capacity())
+        return;
</ins><span class="cx"> 
</span><del>-        expandCapacity();
-    }
</del><ins>+    expandCapacity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void Deque&lt;T, inlineCapacity&gt;::expandCapacity()
-    {
-        checkValidity();
-        size_t oldCapacity = m_buffer.capacity();
-        T* oldBuffer = m_buffer.buffer();
-        m_buffer.allocateBuffer(std::max(static_cast&lt;size_t&gt;(16), oldCapacity + oldCapacity / 4 + 1));
-        if (m_start &lt;= m_end)
-            TypeOperations::move(oldBuffer + m_start, oldBuffer + m_end, m_buffer.buffer() + m_start);
-        else {
-            TypeOperations::move(oldBuffer, oldBuffer + m_end, m_buffer.buffer());
-            size_t newStart = m_buffer.capacity() - (oldCapacity - m_start);
-            TypeOperations::move(oldBuffer + m_start, oldBuffer + oldCapacity, m_buffer.buffer() + newStart);
-            m_start = newStart;
-        }
-        m_buffer.deallocateBuffer(oldBuffer);
-        checkValidity();
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void Deque&lt;T, inlineCapacity&gt;::expandCapacity()
+{
+    checkValidity();
+    size_t oldCapacity = m_buffer.capacity();
+    T* oldBuffer = m_buffer.buffer();
+    m_buffer.allocateBuffer(std::max(static_cast&lt;size_t&gt;(16), oldCapacity + oldCapacity / 4 + 1));
+    if (m_start &lt;= m_end)
+        TypeOperations::move(oldBuffer + m_start, oldBuffer + m_end, m_buffer.buffer() + m_start);
+    else {
+        TypeOperations::move(oldBuffer, oldBuffer + m_end, m_buffer.buffer());
+        size_t newStart = m_buffer.capacity() - (oldCapacity - m_start);
+        TypeOperations::move(oldBuffer + m_start, oldBuffer + oldCapacity, m_buffer.buffer() + newStart);
+        m_start = newStart;
</ins><span class="cx">     }
</span><ins>+    m_buffer.deallocateBuffer(oldBuffer);
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline auto Deque&lt;T, inlineCapacity&gt;::takeFirst() -&gt; T
-    {
-        T oldFirst = WTF::move(first());
-        removeFirst();
-        return oldFirst;
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline auto Deque&lt;T, inlineCapacity&gt;::takeFirst() -&gt; T
+{
+    T oldFirst = WTF::move(first());
+    removeFirst();
+    return oldFirst;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline auto Deque&lt;T, inlineCapacity&gt;::takeLast() -&gt; T
-    {
-        T oldLast = WTF::move(last());
-        removeLast();
-        return oldLast;
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline auto Deque&lt;T, inlineCapacity&gt;::takeLast() -&gt; T
+{
+    T oldLast = WTF::move(last());
+    removeLast();
+    return oldLast;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt; template&lt;typename U&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::append(U&amp;&amp; value)
-    {
-        checkValidity();
-        expandCapacityIfNeeded();
-        new (NotNull, std::addressof(m_buffer.buffer()[m_end])) T(std::forward&lt;U&gt;(value));
-        if (m_end == m_buffer.capacity() - 1)
-            m_end = 0;
-        else
-            ++m_end;
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt; template&lt;typename U&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::append(U&amp;&amp; value)
+{
+    checkValidity();
+    expandCapacityIfNeeded();
+    new (NotNull, std::addressof(m_buffer.buffer()[m_end])) T(std::forward&lt;U&gt;(value));
+    if (m_end == m_buffer.capacity() - 1)
+        m_end = 0;
+    else
+        ++m_end;
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt; template&lt;typename U&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::prepend(U&amp;&amp; value)
-    {
-        checkValidity();
-        expandCapacityIfNeeded();
-        if (!m_start)
-            m_start = m_buffer.capacity() - 1;
-        else
-            --m_start;
-        new (NotNull, std::addressof(m_buffer.buffer()[m_start])) T(std::forward&lt;U&gt;(value));
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt; template&lt;typename U&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::prepend(U&amp;&amp; value)
+{
+    checkValidity();
+    expandCapacityIfNeeded();
+    if (!m_start)
+        m_start = m_buffer.capacity() - 1;
+    else
+        --m_start;
+    new (NotNull, std::addressof(m_buffer.buffer()[m_start])) T(std::forward&lt;U&gt;(value));
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::removeFirst()
-    {
-        checkValidity();
-        invalidateIterators();
-        ASSERT(!isEmpty());
-        TypeOperations::destruct(std::addressof(m_buffer.buffer()[m_start]), std::addressof(m_buffer.buffer()[m_start + 1]));
-        if (m_start == m_buffer.capacity() - 1)
-            m_start = 0;
-        else
-            ++m_start;
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::removeFirst()
+{
+    checkValidity();
+    invalidateIterators();
+    ASSERT(!isEmpty());
+    TypeOperations::destruct(std::addressof(m_buffer.buffer()[m_start]), std::addressof(m_buffer.buffer()[m_start + 1]));
+    if (m_start == m_buffer.capacity() - 1)
+        m_start = 0;
+    else
+        ++m_start;
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::removeLast()
-    {
-        checkValidity();
-        invalidateIterators();
-        ASSERT(!isEmpty());
-        if (!m_end)
-            m_end = m_buffer.capacity() - 1;
-        else
-            --m_end;
-        TypeOperations::destruct(std::addressof(m_buffer.buffer()[m_end]), std::addressof(m_buffer.buffer()[m_end + 1]));
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::removeLast()
+{
+    checkValidity();
+    invalidateIterators();
+    ASSERT(!isEmpty());
+    if (!m_end)
+        m_end = m_buffer.capacity() - 1;
+    else
+        --m_end;
+    TypeOperations::destruct(std::addressof(m_buffer.buffer()[m_end]), std::addressof(m_buffer.buffer()[m_end + 1]));
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::remove(iterator&amp; it)
-    {
-        it.checkValidity();
-        remove(it.m_index);
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::remove(iterator&amp; it)
+{
+    it.checkValidity();
+    remove(it.m_index);
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::remove(const_iterator&amp; it)
-    {
-        it.checkValidity();
-        remove(it.m_index);
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::remove(const_iterator&amp; it)
+{
+    it.checkValidity();
+    remove(it.m_index);
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void Deque&lt;T, inlineCapacity&gt;::remove(size_t position)
-    {
-        if (position == m_end)
-            return;
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void Deque&lt;T, inlineCapacity&gt;::remove(size_t position)
+{
+    if (position == m_end)
+        return;
</ins><span class="cx"> 
</span><del>-        checkValidity();
-        invalidateIterators();
</del><ins>+    checkValidity();
+    invalidateIterators();
</ins><span class="cx"> 
</span><del>-        T* buffer = m_buffer.buffer();
-        TypeOperations::destruct(std::addressof(buffer[position]), std::addressof(buffer[position + 1]));
</del><ins>+    T* buffer = m_buffer.buffer();
+    TypeOperations::destruct(std::addressof(buffer[position]), std::addressof(buffer[position + 1]));
</ins><span class="cx"> 
</span><del>-        // Find which segment of the circular buffer contained the remove element, and only move elements in that part.
-        if (position &gt;= m_start) {
-            TypeOperations::moveOverlapping(buffer + m_start, buffer + position, buffer + m_start + 1);
-            m_start = (m_start + 1) % m_buffer.capacity();
-        } else {
-            TypeOperations::moveOverlapping(buffer + position + 1, buffer + m_end, buffer + position);
-            m_end = (m_end - 1 + m_buffer.capacity()) % m_buffer.capacity();
-        }
-        checkValidity();
</del><ins>+    // Find which segment of the circular buffer contained the remove element, and only move elements in that part.
+    if (position &gt;= m_start) {
+        TypeOperations::moveOverlapping(buffer + m_start, buffer + position, buffer + m_start + 1);
+        m_start = (m_start + 1) % m_buffer.capacity();
+    } else {
+        TypeOperations::moveOverlapping(buffer + position + 1, buffer + m_end, buffer + position);
+        m_end = (m_end - 1 + m_buffer.capacity()) % m_buffer.capacity();
</ins><span class="cx">     }
</span><ins>+    checkValidity();
+}
</ins><span class="cx"> 
</span><span class="cx"> #ifdef NDEBUG
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity() const { }
-    template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity(const DequeIteratorBase&lt;T, inlineCapacity&gt;&amp;) const { }
-    template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::addToIteratorsList() { }
-    template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::removeFromIteratorsList() { }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity() const { }
+template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity(const DequeIteratorBase&lt;T, inlineCapacity&gt;&amp;) const { }
+template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::addToIteratorsList() { }
+template&lt;typename T, size_t inlineCapacity&gt; inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::removeFromIteratorsList() { }
</ins><span class="cx"> #else
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity() const
-    {
-        ASSERT(m_deque);
-        m_deque-&gt;checkIndexValidity(m_index);
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity() const
+{
+    ASSERT(m_deque);
+    m_deque-&gt;checkIndexValidity(m_index);
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity(const DequeIteratorBase&amp; other) const
-    {
-        checkValidity();
-        other.checkValidity();
-        ASSERT(m_deque == other.m_deque);
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void DequeIteratorBase&lt;T, inlineCapacity&gt;::checkValidity(const DequeIteratorBase&amp; other) const
+{
+    checkValidity();
+    other.checkValidity();
+    ASSERT(m_deque == other.m_deque);
+}
+
+template&lt;typename T, size_t inlineCapacity&gt;
+void DequeIteratorBase&lt;T, inlineCapacity&gt;::addToIteratorsList()
+{
+    if (!m_deque)
+        m_next = 0;
+    else {
+        m_next = m_deque-&gt;m_iterators;
+        m_deque-&gt;m_iterators = this;
+        if (m_next)
+            m_next-&gt;m_previous = this;
</ins><span class="cx">     }
</span><ins>+    m_previous = 0;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    void DequeIteratorBase&lt;T, inlineCapacity&gt;::addToIteratorsList()
-    {
-        if (!m_deque)
-            m_next = 0;
-        else {
-            m_next = m_deque-&gt;m_iterators;
-            m_deque-&gt;m_iterators = this;
-            if (m_next)
-                m_next-&gt;m_previous = this;
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+void DequeIteratorBase&lt;T, inlineCapacity&gt;::removeFromIteratorsList()
+{
+    if (!m_deque) {
+        ASSERT(!m_next);
+        ASSERT(!m_previous);
+    } else {
+        if (m_next) {
+            ASSERT(m_next-&gt;m_previous == this);
+            m_next-&gt;m_previous = m_previous;
</ins><span class="cx">         }
</span><del>-        m_previous = 0;
-    }
-
-    template&lt;typename T, size_t inlineCapacity&gt;
-    void DequeIteratorBase&lt;T, inlineCapacity&gt;::removeFromIteratorsList()
-    {
-        if (!m_deque) {
-            ASSERT(!m_next);
-            ASSERT(!m_previous);
</del><ins>+        if (m_previous) {
+            ASSERT(m_deque-&gt;m_iterators != this);
+            ASSERT(m_previous-&gt;m_next == this);
+            m_previous-&gt;m_next = m_next;
</ins><span class="cx">         } else {
</span><del>-            if (m_next) {
-                ASSERT(m_next-&gt;m_previous == this);
-                m_next-&gt;m_previous = m_previous;
-            }
-            if (m_previous) {
-                ASSERT(m_deque-&gt;m_iterators != this);
-                ASSERT(m_previous-&gt;m_next == this);
-                m_previous-&gt;m_next = m_next;
-            } else {
-                ASSERT(m_deque-&gt;m_iterators == this);
-                m_deque-&gt;m_iterators = m_next;
-            }
</del><ins>+            ASSERT(m_deque-&gt;m_iterators == this);
+            m_deque-&gt;m_iterators = m_next;
</ins><span class="cx">         }
</span><del>-        m_next = 0;
-        m_previous = 0;
</del><span class="cx">     }
</span><ins>+    m_next = 0;
+    m_previous = 0;
+}
</ins><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase()
-        : m_deque(0)
-    {
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase()
+    : m_deque(0)
+{
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase(const Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
-        : m_deque(const_cast&lt;Deque&lt;T, inlineCapacity&gt;*&gt;(deque))
-        , m_index(index)
-    {
-        addToIteratorsList();
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase(const Deque&lt;T, inlineCapacity&gt;* deque, size_t index)
+    : m_deque(const_cast&lt;Deque&lt;T, inlineCapacity&gt;*&gt;(deque))
+    , m_index(index)
+{
+    addToIteratorsList();
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase(const DequeIteratorBase&amp; other)
-        : m_deque(other.m_deque)
-        , m_index(other.m_index)
-    {
-        addToIteratorsList();
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline DequeIteratorBase&lt;T, inlineCapacity&gt;::DequeIteratorBase(const DequeIteratorBase&amp; other)
+    : m_deque(other.m_deque)
+    , m_index(other.m_index)
+{
+    addToIteratorsList();
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline DequeIteratorBase&lt;T, inlineCapacity&gt;&amp; DequeIteratorBase&lt;T, inlineCapacity&gt;::operator=(const DequeIteratorBase&amp; other)
-    {
-        other.checkValidity();
-        removeFromIteratorsList();
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline DequeIteratorBase&lt;T, inlineCapacity&gt;&amp; DequeIteratorBase&lt;T, inlineCapacity&gt;::operator=(const DequeIteratorBase&amp; other)
+{
+    other.checkValidity();
+    removeFromIteratorsList();
</ins><span class="cx"> 
</span><del>-        m_deque = other.m_deque;
-        m_index = other.m_index;
-        addToIteratorsList();
-        checkValidity();
-        return *this;
-    }
</del><ins>+    m_deque = other.m_deque;
+    m_index = other.m_index;
+    addToIteratorsList();
+    checkValidity();
+    return *this;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline DequeIteratorBase&lt;T, inlineCapacity&gt;::~DequeIteratorBase()
-    {
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline DequeIteratorBase&lt;T, inlineCapacity&gt;::~DequeIteratorBase()
+{
</ins><span class="cx"> #ifndef NDEBUG
</span><del>-        removeFromIteratorsList();
-        m_deque = 0;
</del><ins>+    removeFromIteratorsList();
+    m_deque = 0;
</ins><span class="cx"> #endif
</span><del>-    }
</del><ins>+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline bool DequeIteratorBase&lt;T, inlineCapacity&gt;::isEqual(const DequeIteratorBase&amp; other) const
-    {
-        checkValidity(other);
-        return m_index == other.m_index;
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline bool DequeIteratorBase&lt;T, inlineCapacity&gt;::isEqual(const DequeIteratorBase&amp; other) const
+{
+    checkValidity(other);
+    return m_index == other.m_index;
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::increment()
-    {
-        checkValidity();
-        ASSERT(m_index != m_deque-&gt;m_end);
-        ASSERT(m_deque-&gt;m_buffer.capacity());
-        if (m_index == m_deque-&gt;m_buffer.capacity() - 1)
-            m_index = 0;
-        else
-            ++m_index;
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::increment()
+{
+    checkValidity();
+    ASSERT(m_index != m_deque-&gt;m_end);
+    ASSERT(m_deque-&gt;m_buffer.capacity());
+    if (m_index == m_deque-&gt;m_buffer.capacity() - 1)
+        m_index = 0;
+    else
+        ++m_index;
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::decrement()
-    {
-        checkValidity();
-        ASSERT(m_index != m_deque-&gt;m_start);
-        ASSERT(m_deque-&gt;m_buffer.capacity());
-        if (!m_index)
-            m_index = m_deque-&gt;m_buffer.capacity() - 1;
-        else
-            --m_index;
-        checkValidity();
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline void DequeIteratorBase&lt;T, inlineCapacity&gt;::decrement()
+{
+    checkValidity();
+    ASSERT(m_index != m_deque-&gt;m_start);
+    ASSERT(m_deque-&gt;m_buffer.capacity());
+    if (!m_index)
+        m_index = m_deque-&gt;m_buffer.capacity() - 1;
+    else
+        --m_index;
+    checkValidity();
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline T* DequeIteratorBase&lt;T, inlineCapacity&gt;::after() const
-    {
-        checkValidity();
-        ASSERT(m_index != m_deque-&gt;m_end);
-        return std::addressof(m_deque-&gt;m_buffer.buffer()[m_index]);
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline T* DequeIteratorBase&lt;T, inlineCapacity&gt;::after() const
+{
+    checkValidity();
+    ASSERT(m_index != m_deque-&gt;m_end);
+    return std::addressof(m_deque-&gt;m_buffer.buffer()[m_index]);
+}
</ins><span class="cx"> 
</span><del>-    template&lt;typename T, size_t inlineCapacity&gt;
-    inline T* DequeIteratorBase&lt;T, inlineCapacity&gt;::before() const
-    {
-        checkValidity();
-        ASSERT(m_index != m_deque-&gt;m_start);
-        if (!m_index)
-            return std::addressof(m_deque-&gt;m_buffer.buffer()[m_deque-&gt;m_buffer.capacity() - 1]);
-        return std::addressof(m_deque-&gt;m_buffer.buffer()[m_index - 1]);
-    }
</del><ins>+template&lt;typename T, size_t inlineCapacity&gt;
+inline T* DequeIteratorBase&lt;T, inlineCapacity&gt;::before() const
+{
+    checkValidity();
+    ASSERT(m_index != m_deque-&gt;m_start);
+    if (!m_index)
+        return std::addressof(m_deque-&gt;m_buffer.buffer()[m_deque-&gt;m_buffer.capacity() - 1]);
+    return std::addressof(m_deque-&gt;m_buffer.buffer()[m_index - 1]);
+}
</ins><span class="cx"> 
</span><span class="cx"> } // namespace WTF
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>