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

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformOperations.cpp

Issue 2478233002: Make 'transform' a presentation attribute on SVG elements (Closed)
Patch Set: Rebase Created 4 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 | « third_party/WebKit/Source/platform/transforms/TransformOperation.h ('k') | no next file » | 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 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 } 404 }
405 } 405 }
406 } 406 }
407 } 407 }
408 continue; 408 continue;
409 case TransformOperation::None: 409 case TransformOperation::None:
410 continue; 410 continue;
411 case TransformOperation::Matrix: 411 case TransformOperation::Matrix:
412 case TransformOperation::Matrix3D: 412 case TransformOperation::Matrix3D:
413 case TransformOperation::Interpolated: 413 case TransformOperation::Interpolated:
414 return (false); 414 case TransformOperation::RotateAroundOrigin:
415 return false;
415 } 416 }
416 } 417 }
417 418
418 return true; 419 return true;
419 } 420 }
420 421
421 TransformOperations TransformOperations::add( 422 TransformOperations TransformOperations::add(
422 const TransformOperations& addend) const { 423 const TransformOperations& addend) const {
423 TransformOperations result; 424 TransformOperations result;
424 result.m_operations = operations(); 425 result.m_operations = operations();
425 result.m_operations.appendVector(addend.operations()); 426 result.m_operations.appendVector(addend.operations());
426 return result; 427 return result;
427 } 428 }
428 429
429 TransformOperations TransformOperations::zoom(double factor) const { 430 TransformOperations TransformOperations::zoom(double factor) const {
430 TransformOperations result; 431 TransformOperations result;
431 for (auto& transformOperation : m_operations) 432 for (auto& transformOperation : m_operations)
432 result.m_operations.append(transformOperation->zoom(factor)); 433 result.m_operations.append(transformOperation->zoom(factor));
433 return result; 434 return result;
434 } 435 }
435 436
436 } // namespace blink 437 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/transforms/TransformOperation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698