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

Side by Side Diff: Source/core/html/HTMLLinkElement.cpp

Issue 202893002: Replace elementHasLegalLinkAttribute() helper with 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/html/HTMLLinkElement.h ('k') | Source/core/html/HTMLModElement.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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 { 320 {
321 ASSERT(linkStyle()); 321 ASSERT(linkStyle());
322 linkStyle()->startLoadingDynamicSheet(); 322 linkStyle()->startLoadingDynamicSheet();
323 } 323 }
324 324
325 bool HTMLLinkElement::isURLAttribute(const Attribute& attribute) const 325 bool HTMLLinkElement::isURLAttribute(const Attribute& attribute) const
326 { 326 {
327 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu te(attribute); 327 return attribute.name().localName() == hrefAttr || HTMLElement::isURLAttribu te(attribute);
328 } 328 }
329 329
330 bool HTMLLinkElement::hasLegalLinkAttribute(const QualifiedName& name) const
331 {
332 return name == hrefAttr || HTMLElement::hasLegalLinkAttribute(name);
333 }
334
330 KURL HTMLLinkElement::href() const 335 KURL HTMLLinkElement::href() const
331 { 336 {
332 return document().completeURL(getAttribute(hrefAttr)); 337 return document().completeURL(getAttribute(hrefAttr));
333 } 338 }
334 339
335 const AtomicString& HTMLLinkElement::rel() const 340 const AtomicString& HTMLLinkElement::rel() const
336 { 341 {
337 return getAttribute(relAttr); 342 return getAttribute(relAttr);
338 } 343 }
339 344
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 void LinkStyle::ownerRemoved() 636 void LinkStyle::ownerRemoved()
632 { 637 {
633 if (m_sheet) 638 if (m_sheet)
634 clearSheet(); 639 clearSheet();
635 640
636 if (styleSheetIsLoading()) 641 if (styleSheetIsLoading())
637 removePendingSheet(RemovePendingSheetNotifyLater); 642 removePendingSheet(RemovePendingSheetNotifyLater);
638 } 643 }
639 644
640 } // namespace WebCore 645 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLLinkElement.h ('k') | Source/core/html/HTMLModElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698