Bug 959150 part 6 - Move the opening brace to the next line in methods whose body is in non-generated .h files under parser/html/. r=smaug.
This commit is contained in:
@@ -181,7 +181,8 @@ class nsHtml5StreamParser : public nsIStreamListener,
|
||||
*/
|
||||
void ContinueAfterFailedCharsetSwitch();
|
||||
|
||||
void Terminate() {
|
||||
void Terminate()
|
||||
{
|
||||
mozilla::MutexAutoLock autoLock(mTerminatedMutex);
|
||||
mTerminated = true;
|
||||
}
|
||||
@@ -220,12 +221,14 @@ class nsHtml5StreamParser : public nsIStreamListener,
|
||||
* avoid having a previous in-flight runnable cancel your Interrupt()
|
||||
* call on the other thread too soon.
|
||||
*/
|
||||
void Interrupt() {
|
||||
void Interrupt()
|
||||
{
|
||||
mozilla::MutexAutoLock autoLock(mTerminatedMutex);
|
||||
mInterrupted = true;
|
||||
}
|
||||
|
||||
void Uninterrupt() {
|
||||
void Uninterrupt()
|
||||
{
|
||||
NS_ASSERTION(IsParserThread(), "Wrong thread!");
|
||||
mTokenizerMutex.AssertCurrentThreadOwns();
|
||||
// Not acquiring mTerminatedMutex because mTokenizerMutex is already
|
||||
@@ -252,12 +255,14 @@ class nsHtml5StreamParser : public nsIStreamListener,
|
||||
uint32_t aCount,
|
||||
uint32_t *aWriteCount);
|
||||
|
||||
bool IsTerminatedOrInterrupted() {
|
||||
bool IsTerminatedOrInterrupted()
|
||||
{
|
||||
mozilla::MutexAutoLock autoLock(mTerminatedMutex);
|
||||
return mTerminated || mInterrupted;
|
||||
}
|
||||
|
||||
bool IsTerminated() {
|
||||
bool IsTerminated()
|
||||
{
|
||||
mozilla::MutexAutoLock autoLock(mTerminatedMutex);
|
||||
return mTerminated;
|
||||
}
|
||||
@@ -265,7 +270,8 @@ class nsHtml5StreamParser : public nsIStreamListener,
|
||||
/**
|
||||
* True when there is a Unicode decoder already
|
||||
*/
|
||||
inline bool HasDecoder() {
|
||||
inline bool HasDecoder()
|
||||
{
|
||||
return !!mUnicodeDecoder;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user