Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: Source/core/editing/FrameSelection.cpp

Issue 197873022: Drop Element::isHTMLFrameElementBase() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Take tkent's feedback into consideration Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLBodyElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698