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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 27511002: Forward onscroll on body and frameset to window (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sharedidl
Patch Set: Created 7 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
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/html/HTMLBodyElement.h » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (!renderer() || renderer()->style()->visibility() != VISIBLE) 295 if (!renderer() || renderer()->style()->visibility() != VISIBLE)
296 return false; 296 return false;
297 297
298 return true; 298 return true;
299 } 299 }
300 300
301 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, blur); 301 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, blur);
302 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, error); 302 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, error);
303 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, focus); 303 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, focus);
304 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, load); 304 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, load);
305 DEFINE_VIRTUAL_ATTRIBUTE_EVENT_LISTENER(Element, scroll);
305 306
306 PassRefPtr<Node> Element::cloneNode(bool deep) 307 PassRefPtr<Node> Element::cloneNode(bool deep)
307 { 308 {
308 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren(); 309 return deep ? cloneElementWithChildren() : cloneElementWithoutChildren();
309 } 310 }
310 311
311 PassRefPtr<Element> Element::cloneElementWithChildren() 312 PassRefPtr<Element> Element::cloneElementWithChildren()
312 { 313 {
313 RefPtr<Element> clone = cloneElementWithoutChildren(); 314 RefPtr<Element> clone = cloneElementWithoutChildren();
314 cloneChildNodes(clone.get()); 315 cloneChildNodes(clone.get());
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after
3743 return 0; 3744 return 0;
3744 } 3745 }
3745 3746
3746 Attribute* UniqueElementData::attributeItem(unsigned index) 3747 Attribute* UniqueElementData::attributeItem(unsigned index)
3747 { 3748 {
3748 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); 3749 ASSERT_WITH_SECURITY_IMPLICATION(index < length());
3749 return &m_attributeVector.at(index); 3750 return &m_attributeVector.at(index);
3750 } 3751 }
3751 3752
3752 } // namespace WebCore 3753 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/html/HTMLBodyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698