Bug 1134531 - Remove nsTextFrame::DidSetStyleContext which only contained a (now obsolete) wallpaper. r=heycam

This commit is contained in:
Mats Palmgren 2015-02-24 18:35:30 +00:00
Родитель 5db9cb8bc7
Коммит 8c27917737
4 изменённых файлов: 5 добавлений и 17 удалений

Просмотреть файл

@ -0,0 +1,4 @@
<!DOCTYPE html>
<html>
<body onload="x.style.textTransform = 'capitalize';"><div id="x">b</div></body>
</html>

Просмотреть файл

@ -570,4 +570,5 @@ load 1039454-1.html
load 1042489.html
load 1054010-1.html
load 1058954-1.html
load 1134531.html
load 1134667.html

Просмотреть файл

@ -4539,21 +4539,6 @@ nsTextFrame::CharacterDataChanged(CharacterDataChangeInfo* aInfo)
return NS_OK;
}
/* virtual */ void
nsTextFrame::DidSetStyleContext(nsStyleContext* aOldStyleContext)
{
// A belt-and-braces check just in case we never get the
// MarkIntrinsicISizesDirty call from the style system.
if (StyleText()->mTextTransform == NS_STYLE_TEXT_TRANSFORM_CAPITALIZE &&
mTextRun &&
!(mTextRun->GetFlags() & nsTextFrameUtils::TEXT_IS_TRANSFORMED)) {
NS_ERROR("the current textrun doesn't match the style");
// The current textrun is now of the wrong type.
ClearTextRuns();
}
nsFrame::DidSetStyleContext(aOldStyleContext);
}
class nsDisplayTextGeometry : public nsCharClipGeometry
{
public:

Просмотреть файл

@ -74,8 +74,6 @@ public:
virtual nsresult CharacterDataChanged(CharacterDataChangeInfo* aInfo) MOZ_OVERRIDE;
virtual void DidSetStyleContext(nsStyleContext* aOldStyleContext) MOZ_OVERRIDE;
virtual nsIFrame* GetNextContinuation() const MOZ_OVERRIDE {
return mNextContinuation;
}