~jconti/ubuntu/oneiric/webkit/fix_doc_path

« back to all changes in this revision

Viewing changes to WebCore/rendering/RenderCounter.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-10-18 20:17:09 UTC
  • mfrom: (1.5.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20101018201709-dkathefl8vvl2uxe
Tags: 1.2.5-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
    RenderObject* currentRenderer = counterOwner->previousInPreOrder();
137
137
    previousSibling = 0;
138
138
    while (currentRenderer) {
 
139
        // A sibling without a parent means that the counter node tree was not constructed correctly so we stop
 
140
        // traversing. In the future RenderCounter should handle RenderObjects that are not connected to the
 
141
        // render tree at counter node creation. See bug 43812.
 
142
        if (previousSibling && !previousSibling->parent())
 
143
            return false;
139
144
        CounterNode* currentCounter = makeCounterNode(currentRenderer, identifier, false);
140
145
        if (searchEndRenderer == currentRenderer) {
141
146
            // We may be at the end of our search.