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

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

Issue 362073004: Revert of Refactoring activity logger. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/html/HTMLLinkElement.h ('k') | Source/core/html/HTMLLinkElement.idl » ('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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 return m_sizes.get(); 446 return m_sizes.get();
447 } 447 }
448 448
449 void HTMLLinkElement::trace(Visitor* visitor) 449 void HTMLLinkElement::trace(Visitor* visitor)
450 { 450 {
451 visitor->trace(m_link); 451 visitor->trace(m_link);
452 visitor->trace(m_sizes); 452 visitor->trace(m_sizes);
453 HTMLElement::trace(visitor); 453 HTMLElement::trace(visitor);
454 } 454 }
455 455
456 void HTMLLinkElement::attributeWillChange(const QualifiedName& name, const Atomi cString& oldValue, const AtomicString& newValue)
457 {
458 if (name == hrefAttr && inDocument()) {
459 V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivi tyLoggerIfIsolatedWorld();
460 if (activityLogger) {
461 Vector<String> argv;
462 argv.append("link");
463 argv.append(hrefAttr.toString());
464 argv.append(oldValue);
465 argv.append(newValue);
466 activityLogger->logEvent("blinkSetAttribute", argv.size(), argv.data ());
467 }
468 }
469 HTMLElement::attributeWillChange(name, oldValue, newValue);
470 }
471
472 PassOwnPtrWillBeRawPtr<LinkStyle> LinkStyle::create(HTMLLinkElement* owner) 456 PassOwnPtrWillBeRawPtr<LinkStyle> LinkStyle::create(HTMLLinkElement* owner)
473 { 457 {
474 return adoptPtrWillBeNoop(new LinkStyle(owner)); 458 return adoptPtrWillBeNoop(new LinkStyle(owner));
475 } 459 }
476 460
477 LinkStyle::LinkStyle(HTMLLinkElement* owner) 461 LinkStyle::LinkStyle(HTMLLinkElement* owner)
478 : LinkResource(owner) 462 : LinkResource(owner)
479 , m_disabledState(Unset) 463 , m_disabledState(Unset)
480 , m_pendingSheetType(None) 464 , m_pendingSheetType(None)
481 , m_loading(false) 465 , m_loading(false)
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 removePendingSheet(); 725 removePendingSheet();
742 } 726 }
743 727
744 void LinkStyle::trace(Visitor* visitor) 728 void LinkStyle::trace(Visitor* visitor)
745 { 729 {
746 visitor->trace(m_sheet); 730 visitor->trace(m_sheet);
747 LinkResource::trace(visitor); 731 LinkResource::trace(visitor);
748 } 732 }
749 733
750 } // namespace WebCore 734 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLLinkElement.h ('k') | Source/core/html/HTMLLinkElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698