diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-05 14:34:32 -0800 |
commit | 635860845790a19bf50bbc51ba8fb66a96dde068 (patch) | |
tree | ef6ad9ff73a5b57f65249d4232a202fa77e6a140 /WebCore/css/StyleBase.h | |
parent | 8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (diff) | |
download | external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.zip external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.gz external_webkit-635860845790a19bf50bbc51ba8fb66a96dde068.tar.bz2 |
auto import from //depot/cupcake/@136594
Diffstat (limited to 'WebCore/css/StyleBase.h')
-rw-r--r-- | WebCore/css/StyleBase.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/WebCore/css/StyleBase.h b/WebCore/css/StyleBase.h index 3dc5388..a1660ab 100644 --- a/WebCore/css/StyleBase.h +++ b/WebCore/css/StyleBase.h @@ -60,30 +60,36 @@ namespace WebCore { virtual bool isStyleSheet() const { return false; } virtual bool isXSLStyleSheet() const { return false; } - virtual bool isValueList() const { return false; } virtual bool isMutableStyleDeclaration() const { return false; } virtual String cssText() const; virtual void checkLoaded(); - void setStrictParsing(bool b) { m_strictParsing = b; } - bool useStrictParsing() const { return m_strictParsing; } + bool useStrictParsing() const { return !m_parent || m_parent->useStrictParsing(); } virtual void insertedIntoParent() { } StyleSheet* stylesheet(); +#ifdef ANDROID_INSTRUMENT + // Overridden to prevent the normal new from being called. + void* operator new(size_t) throw(); + + // Overridden to prevent the normal delete from being called. + void operator delete(void*, size_t); + + static size_t reportStyleSize(); +#endif + protected: StyleBase(StyleBase* parent) : m_parent(parent) - , m_strictParsing(!parent || parent->useStrictParsing()) { } private: StyleBase* m_parent; - bool m_strictParsing; }; } |