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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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) 2011 University of Szeged 2 * Copyright (C) 2011 University of Szeged
3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 const char* name() const override { return "LayoutSVGRect"; } 44 const char* name() const override { return "LayoutSVGRect"; }
45 45
46 private: 46 private:
47 void updateShapeFromElement() override; 47 void updateShapeFromElement() override;
48 bool isShapeEmpty() const override { 48 bool isShapeEmpty() const override {
49 return m_usePathFallback ? LayoutSVGShape::isShapeEmpty() 49 return m_usePathFallback ? LayoutSVGShape::isShapeEmpty()
50 : m_fillBoundingBox.isEmpty(); 50 : m_fillBoundingBox.isEmpty();
51 } 51 }
52 char objectSize() const override { return sizeof(this); }
52 bool shapeDependentStrokeContains(const FloatPoint&) override; 53 bool shapeDependentStrokeContains(const FloatPoint&) override;
53 bool shapeDependentFillContains(const FloatPoint&, 54 bool shapeDependentFillContains(const FloatPoint&,
54 const WindRule) const override; 55 const WindRule) const override;
55 bool definitelyHasSimpleStroke() const; 56 bool definitelyHasSimpleStroke() const;
56 57
57 private: 58 private:
58 bool m_usePathFallback; 59 bool m_usePathFallback;
59 }; 60 };
60 61
61 } // namespace blink 62 } // namespace blink
62 63
63 #endif 64 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698