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

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 CSSPropertyAlignmentBaseline, 336 CSSPropertyAlignmentBaseline,
337 CSSPropertyBaselineShift, 337 CSSPropertyBaselineShift,
338 CSSPropertyDominantBaseline, 338 CSSPropertyDominantBaseline,
339 CSSPropertyTextAnchor, 339 CSSPropertyTextAnchor,
340 CSSPropertyWritingMode, 340 CSSPropertyWritingMode,
341 CSSPropertyGlyphOrientationHorizontal, 341 CSSPropertyGlyphOrientationHorizontal,
342 CSSPropertyGlyphOrientationVertical, 342 CSSPropertyGlyphOrientationVertical,
343 CSSPropertyVectorEffect, 343 CSSPropertyVectorEffect,
344 CSSPropertyPaintOrder, 344 CSSPropertyPaintOrder,
345 CSSPropertyX, 345 CSSPropertyX,
346 CSSPropertyY 346 CSSPropertyY,
347 CSSPropertyRx,
348 CSSPropertyRy
347 }; 349 };
348 350
349 static const Vector<CSSPropertyID>& computableProperties() 351 static const Vector<CSSPropertyID>& computableProperties()
350 { 352 {
351 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ()); 353 DEFINE_STATIC_LOCAL(Vector<CSSPropertyID>, properties, ());
352 if (properties.isEmpty()) 354 if (properties.isEmpty())
353 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties); 355 CSSPropertyMetadata::filterEnabledCSSPropertiesIntoVector(staticComputab leProperties, WTF_ARRAY_LENGTH(staticComputableProperties), properties);
354 return properties; 356 return properties;
355 } 357 }
356 358
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 case CSSPropertyWebkitTransform: 480 case CSSPropertyWebkitTransform:
479 case CSSPropertyTransformOrigin: 481 case CSSPropertyTransformOrigin:
480 case CSSPropertyWebkitTransformOrigin: 482 case CSSPropertyWebkitTransformOrigin:
481 case CSSPropertyMotionPath: 483 case CSSPropertyMotionPath:
482 case CSSPropertyMotionPosition: 484 case CSSPropertyMotionPosition:
483 case CSSPropertyMotionRotation: 485 case CSSPropertyMotionRotation:
484 case CSSPropertyWidth: 486 case CSSPropertyWidth:
485 case CSSPropertyWebkitFilter: 487 case CSSPropertyWebkitFilter:
486 case CSSPropertyX: 488 case CSSPropertyX:
487 case CSSPropertyY: 489 case CSSPropertyY:
490 case CSSPropertyRx:
491 case CSSPropertyRy:
488 return true; 492 return true;
489 case CSSPropertyMargin: 493 case CSSPropertyMargin:
490 return renderer && renderer->isBox() && (!style || !style->marginBottom( ).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() | | !style->marginRight().isFixed()); 494 return renderer && renderer->isBox() && (!style || !style->marginBottom( ).isFixed() || !style->marginTop().isFixed() || !style->marginLeft().isFixed() | | !style->marginRight().isFixed());
491 case CSSPropertyMarginLeft: 495 case CSSPropertyMarginLeft:
492 return renderer && renderer->isBox() && (!style || !style->marginLeft(). isFixed()); 496 return renderer && renderer->isBox() && (!style || !style->marginLeft(). isFixed());
493 case CSSPropertyMarginRight: 497 case CSSPropertyMarginRight:
494 return renderer && renderer->isBox() && (!style || !style->marginRight() .isFixed()); 498 return renderer && renderer->isBox() && (!style || !style->marginRight() .isFixed());
495 case CSSPropertyMarginTop: 499 case CSSPropertyMarginTop:
496 return renderer && renderer->isBox() && (!style || !style->marginTop().i sFixed()); 500 return renderer && renderer->isBox() && (!style || !style->marginTop().i sFixed());
497 case CSSPropertyMarginBottom: 501 case CSSPropertyMarginBottom:
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only."); 690 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only.");
687 } 691 }
688 692
689 DEFINE_TRACE(CSSComputedStyleDeclaration) 693 DEFINE_TRACE(CSSComputedStyleDeclaration)
690 { 694 {
691 visitor->trace(m_node); 695 visitor->trace(m_node);
692 CSSStyleDeclaration::trace(visitor); 696 CSSStyleDeclaration::trace(visitor);
693 } 697 }
694 698
695 } // namespace blink 699 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698