зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1134531 - Remove nsTextFrame::DidSetStyleContext which only contained a (now obsolete) wallpaper. r=heycam
This commit is contained in:
Родитель
5db9cb8bc7
Коммит
8c27917737
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче