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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSPerspective.h

Issue 2935413002: [Typed OM] Add comments and consistent structure to all the CSSTransformComponent subclasses (Closed)
Patch Set: rebase Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h b/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
index ab30ff0e3fad86ba35127607683b7d57f9b41c1d..8912936b224ed376383a9c20abf724a49b3c89fe 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
+++ b/third_party/WebKit/Source/core/css/cssom/CSSPerspective.h
@@ -14,24 +14,30 @@ namespace blink {
class DOMMatrix;
class ExceptionState;
+// Represents a perspective value in a CSSTransformValue used for properties
+// like "transform".
+// See CSSPerspective.idl for more information about this class.
class CORE_EXPORT CSSPerspective : public CSSTransformComponent {
WTF_MAKE_NONCOPYABLE(CSSPerspective);
DEFINE_WRAPPERTYPEINFO();
public:
+ // Constructor defined in the IDL.
static CSSPerspective* Create(const CSSNumericValue*, ExceptionState&);
+
+ // Blink-internal ways of creating CSSPerspectives.
static CSSPerspective* FromCSSValue(const CSSFunctionValue&);
+ // Getters and setters for attributes defined in the IDL.
// Bindings require a non const return value.
CSSNumericValue* length() const {
return const_cast<CSSNumericValue*>(length_.Get());
}
+ // Internal methods - from CSSTransformComponent.
TransformComponentType GetType() const override { return kPerspectiveType; }
-
// TODO: Implement AsMatrix for CSSPerspective.
DOMMatrix* AsMatrix() const override { return nullptr; }
-
CSSFunctionValue* ToCSSValue() const override;
DEFINE_INLINE_VIRTUAL_TRACE() {
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSMatrixComponent.h ('k') | third_party/WebKit/Source/core/css/cssom/CSSRotation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698