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

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

Issue 126713004: Remove Node.prefix so it's no longer visible to script. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove spurious OVERRIDE. Created 6 years, 11 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.h ('k') | Source/core/dom/Node.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "core/dom/shadow/ShadowRoot.h" 66 #include "core/dom/shadow/ShadowRoot.h"
67 #include "core/editing/FrameSelection.h" 67 #include "core/editing/FrameSelection.h"
68 #include "core/editing/TextIterator.h" 68 #include "core/editing/TextIterator.h"
69 #include "core/editing/htmlediting.h" 69 #include "core/editing/htmlediting.h"
70 #include "core/editing/markup.h" 70 #include "core/editing/markup.h"
71 #include "core/events/EventDispatcher.h" 71 #include "core/events/EventDispatcher.h"
72 #include "core/events/FocusEvent.h" 72 #include "core/events/FocusEvent.h"
73 #include "core/frame/ContentSecurityPolicy.h" 73 #include "core/frame/ContentSecurityPolicy.h"
74 #include "core/frame/Frame.h" 74 #include "core/frame/Frame.h"
75 #include "core/frame/FrameView.h" 75 #include "core/frame/FrameView.h"
76 #include "core/frame/UseCounter.h"
76 #include "core/html/ClassList.h" 77 #include "core/html/ClassList.h"
77 #include "core/html/HTMLCollection.h" 78 #include "core/html/HTMLCollection.h"
78 #include "core/html/HTMLDocument.h" 79 #include "core/html/HTMLDocument.h"
79 #include "core/html/HTMLElement.h" 80 #include "core/html/HTMLElement.h"
80 #include "core/html/HTMLFormControlsCollection.h" 81 #include "core/html/HTMLFormControlsCollection.h"
81 #include "core/html/HTMLFrameOwnerElement.h" 82 #include "core/html/HTMLFrameOwnerElement.h"
82 #include "core/html/HTMLLabelElement.h" 83 #include "core/html/HTMLLabelElement.h"
83 #include "core/html/HTMLOptionsCollection.h" 84 #include "core/html/HTMLOptionsCollection.h"
84 #include "core/html/HTMLTableRowsCollection.h" 85 #include "core/html/HTMLTableRowsCollection.h"
85 #include "core/html/HTMLTemplateElement.h" 86 #include "core/html/HTMLTemplateElement.h"
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 return m_tagName.toString(); 1226 return m_tagName.toString();
1226 } 1227 }
1227 1228
1228 String Element::nodeNamePreservingCase() const 1229 String Element::nodeNamePreservingCase() const
1229 { 1230 {
1230 return m_tagName.toString(); 1231 return m_tagName.toString();
1231 } 1232 }
1232 1233
1233 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta te) 1234 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta te)
1234 { 1235 {
1236 UseCounter::count(document(), UseCounter::ElementSetPrefix);
1237
1235 checkSetPrefix(prefix, exceptionState); 1238 checkSetPrefix(prefix, exceptionState);
1236 if (exceptionState.hadException()) 1239 if (exceptionState.hadException())
1237 return; 1240 return;
1238 1241
1239 m_tagName.setPrefix(prefix.isEmpty() ? AtomicString() : prefix); 1242 m_tagName.setPrefix(prefix.isEmpty() ? AtomicString() : prefix);
1240 } 1243 }
1241 1244
1242 KURL Element::baseURI() const 1245 KURL Element::baseURI() const
1243 { 1246 {
1244 const AtomicString& baseAttribute = getAttribute(baseAttr); 1247 const AtomicString& baseAttribute = getAttribute(baseAttr);
(...skipping 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3618 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3621 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3619 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3622 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3620 if (hasTagName(optionTag) || hasTagName(optgroupTag)) 3623 if (hasTagName(optionTag) || hasTagName(optgroupTag))
3621 return false; 3624 return false;
3622 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3625 if (FullscreenElementStack::isActiveFullScreenElement(this))
3623 return false; 3626 return false;
3624 return true; 3627 return true;
3625 } 3628 }
3626 3629
3627 } // namespace WebCore 3630 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698