mirror of
https://github.com/classilla/tenfourfox.git
synced 2026-04-25 16:18:33 +00:00
closes #493: fix height for flexbox case M1030952 M1180107
This commit is contained in:
@@ -123,6 +123,16 @@ public:
|
||||
*/
|
||||
void DeleteAll();
|
||||
|
||||
/**
|
||||
* Check if a property exists (added for TenFourFox issue 493).
|
||||
*/
|
||||
bool Has(const nsIFrame* aFrame, const FramePropertyDescriptor* aProperty)
|
||||
{
|
||||
bool foundResult = false;
|
||||
(void)Get(aFrame, aProperty, &foundResult);
|
||||
return foundResult;
|
||||
}
|
||||
|
||||
size_t SizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
||||
|
||||
protected:
|
||||
@@ -238,6 +248,13 @@ public:
|
||||
{
|
||||
mTable->Delete(mFrame, aProperty);
|
||||
}
|
||||
// TenFourFox issue 493
|
||||
bool Has(const FramePropertyDescriptor* aProperty)
|
||||
{
|
||||
bool foundResult;
|
||||
(void)mTable->Get(mFrame, aProperty, &foundResult);
|
||||
return foundResult;
|
||||
}
|
||||
|
||||
private:
|
||||
FramePropertyTable* mTable;
|
||||
|
||||
Reference in New Issue
Block a user