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

Side by Side Diff: webkit/glue/dom_operations.cc

Issue 255042: Reverting 27711. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "AnimationController.h" 10 #include "AnimationController.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 bool* is_frame_element) { 474 bool* is_frame_element) {
475 *is_frame_element = false; 475 *is_frame_element = false;
476 if (element->hasTagName(WebCore::HTMLNames::iframeTag) || 476 if (element->hasTagName(WebCore::HTMLNames::iframeTag) ||
477 element->hasTagName(WebCore::HTMLNames::frameTag)) { 477 element->hasTagName(WebCore::HTMLNames::frameTag)) {
478 *is_frame_element = true; 478 *is_frame_element = true;
479 if (element->isFrameOwnerElement()) { 479 if (element->isFrameOwnerElement()) {
480 // Check whether this frame has content. 480 // Check whether this frame has content.
481 WebCore::HTMLFrameOwnerElement* frame_element = 481 WebCore::HTMLFrameOwnerElement* frame_element =
482 static_cast<WebCore::HTMLFrameOwnerElement*>(element); 482 static_cast<WebCore::HTMLFrameOwnerElement*>(element);
483 WebCore::Frame* content_frame = frame_element->contentFrame(); 483 WebCore::Frame* content_frame = frame_element->contentFrame();
484 return content_frame ? WebFrameImpl::FromFrame(content_frame) : NULL; 484 return WebFrameImpl::FromFrame(content_frame);
485 } 485 }
486 } 486 }
487 return NULL; 487 return NULL;
488 } 488 }
489 489
490 const WebCore::AtomicString* GetSubResourceLinkFromElement( 490 const WebCore::AtomicString* GetSubResourceLinkFromElement(
491 const WebCore::Element* element) { 491 const WebCore::Element* element) {
492 const WebCore::QualifiedName* attribute_name = NULL; 492 const WebCore::QualifiedName* attribute_name = NULL;
493 if (element->hasTagName(WebCore::HTMLNames::imgTag) || 493 if (element->hasTagName(WebCore::HTMLNames::imgTag) ||
494 element->hasTagName(WebCore::HTMLNames::scriptTag) || 494 element->hasTagName(WebCore::HTMLNames::scriptTag) ||
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 return static_cast<WebCore::HTMLInputElement*>(element); 878 return static_cast<WebCore::HTMLInputElement*>(element);
879 } 879 }
880 880
881 WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node) { 881 WebCore::HTMLInputElement* NodeToHTMLInputElement(WebCore::Node* node) {
882 if (node->nodeType() != WebCore::Node::ELEMENT_NODE) 882 if (node->nodeType() != WebCore::Node::ELEMENT_NODE)
883 return NULL; 883 return NULL;
884 return ElementToHTMLInputElement(static_cast<WebCore::Element*>(node)); 884 return ElementToHTMLInputElement(static_cast<WebCore::Element*>(node));
885 } 885 }
886 886
887 } // webkit_glue 887 } // webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/mimetype_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698