| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2  * Copyright (C) 2004, 2008, 2009, 2010 Apple Inc. All rights reserved. | 
| 3  * | 3  * | 
| 4  * Redistribution and use in source and binary forms, with or without | 4  * Redistribution and use in source and binary forms, with or without | 
| 5  * modification, are permitted provided that the following conditions | 5  * modification, are permitted provided that the following conditions | 
| 6  * are met: | 6  * are met: | 
| 7  * 1. Redistributions of source code must retain the above copyright | 7  * 1. Redistributions of source code must retain the above copyright | 
| 8  *    notice, this list of conditions and the following disclaimer. | 8  *    notice, this list of conditions and the following disclaimer. | 
| 9  * 2. Redistributions in binary form must reproduce the above copyright | 9  * 2. Redistributions in binary form must reproduce the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer in the | 10  *    notice, this list of conditions and the following disclaimer in the | 
| (...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1726     if (!start) | 1726     if (!start) | 
| 1727         return 0; | 1727         return 0; | 
| 1728     HTMLElement* element = start->isHTMLElement() ? toHTMLElement(start) : Trave
      rsal<HTMLElement>::next(*start); | 1728     HTMLElement* element = start->isHTMLElement() ? toHTMLElement(start) : Trave
      rsal<HTMLElement>::next(*start); | 
| 1729     for (; element; element = Traversal<HTMLElement>::next(*element)) { | 1729     for (; element; element = Traversal<HTMLElement>::next(*element)) { | 
| 1730         if (isHTMLFormElement(*element)) | 1730         if (isHTMLFormElement(*element)) | 
| 1731             return toHTMLFormElement(element); | 1731             return toHTMLFormElement(element); | 
| 1732 | 1732 | 
| 1733         if (HTMLFormElement* owner = element->formOwner()) | 1733         if (HTMLFormElement* owner = element->formOwner()) | 
| 1734                 return owner; | 1734                 return owner; | 
| 1735 | 1735 | 
| 1736         if (isHTMLFrameElement(*element) || isHTMLIFrameElement(*element)) { | 1736         if (isHTMLFrameElementBase(*element)) { | 
| 1737             Node* childDocument = toHTMLFrameElementBase(*element).contentDocume
      nt(); | 1737             Node* childDocument = toHTMLFrameElementBase(*element).contentDocume
      nt(); | 
| 1738             if (HTMLFormElement* frameResult = scanForForm(childDocument)) | 1738             if (HTMLFormElement* frameResult = scanForForm(childDocument)) | 
| 1739                 return frameResult; | 1739                 return frameResult; | 
| 1740         } | 1740         } | 
| 1741     } | 1741     } | 
| 1742     return 0; | 1742     return 0; | 
| 1743 } | 1743 } | 
| 1744 | 1744 | 
| 1745 // We look for either the form containing the current focus, or for one immediat
      ely after it | 1745 // We look for either the form containing the current focus, or for one immediat
      ely after it | 
| 1746 HTMLFormElement* FrameSelection::currentForm() const | 1746 HTMLFormElement* FrameSelection::currentForm() const | 
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1875     sel.showTreeForThis(); | 1875     sel.showTreeForThis(); | 
| 1876 } | 1876 } | 
| 1877 | 1877 | 
| 1878 void showTree(const WebCore::FrameSelection* sel) | 1878 void showTree(const WebCore::FrameSelection* sel) | 
| 1879 { | 1879 { | 
| 1880     if (sel) | 1880     if (sel) | 
| 1881         sel->showTreeForThis(); | 1881         sel->showTreeForThis(); | 
| 1882 } | 1882 } | 
| 1883 | 1883 | 
| 1884 #endif | 1884 #endif | 
| OLD | NEW | 
|---|