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

Side by Side Diff: Source/core/svg/SVGNumberOptionalNumber.cpp

Issue 803443002: Introduce InlinedGlobalMarkingVisitor Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/svg/SVGNumberOptionalNumber.h ('k') | Source/core/svg/SVGPathSegList.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 36
37 namespace blink { 37 namespace blink {
38 38
39 SVGNumberOptionalNumber::SVGNumberOptionalNumber(PassRefPtrWillBeRawPtr<SVGNumbe r> firstNumber, PassRefPtrWillBeRawPtr<SVGNumber> secondNumber) 39 SVGNumberOptionalNumber::SVGNumberOptionalNumber(PassRefPtrWillBeRawPtr<SVGNumbe r> firstNumber, PassRefPtrWillBeRawPtr<SVGNumber> secondNumber)
40 : SVGPropertyBase(classType()) 40 : SVGPropertyBase(classType())
41 , m_firstNumber(firstNumber) 41 , m_firstNumber(firstNumber)
42 , m_secondNumber(secondNumber) 42 , m_secondNumber(secondNumber)
43 { 43 {
44 } 44 }
45 45
46 void SVGNumberOptionalNumber::trace(Visitor* visitor) 46 DEFINE_TRACE(SVGNumberOptionalNumber)
47 { 47 {
48 visitor->trace(m_firstNumber); 48 visitor->trace(m_firstNumber);
49 visitor->trace(m_secondNumber); 49 visitor->trace(m_secondNumber);
50 SVGPropertyBase::trace(visitor); 50 SVGPropertyBase::trace(visitor);
51 } 51 }
52 52
53 PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> SVGNumberOptionalNumber::clone() const 53 PassRefPtrWillBeRawPtr<SVGNumberOptionalNumber> SVGNumberOptionalNumber::clone() const
54 { 54 {
55 return SVGNumberOptionalNumber::create(m_firstNumber->clone(), m_secondNumbe r->clone()); 55 return SVGNumberOptionalNumber::create(m_firstNumber->clone(), m_secondNumbe r->clone());
56 } 56 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_secondNumber->setValue(y); 110 m_secondNumber->setValue(y);
111 } 111 }
112 112
113 float SVGNumberOptionalNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPrope rtyBase> other, SVGElement*) 113 float SVGNumberOptionalNumber::calculateDistance(PassRefPtrWillBeRawPtr<SVGPrope rtyBase> other, SVGElement*)
114 { 114 {
115 // FIXME: Distance calculation is not possible for SVGNumberOptionalNumber r ight now. We need the distance for every single value. 115 // FIXME: Distance calculation is not possible for SVGNumberOptionalNumber r ight now. We need the distance for every single value.
116 return -1; 116 return -1;
117 } 117 }
118 118
119 } 119 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGNumberOptionalNumber.h ('k') | Source/core/svg/SVGPathSegList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698