Chromium Code Reviews| Index: Source/core/layout/LayoutObject.cpp |
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
| index f668620b095015648d489dd76352b72f812f59c8..8612a1546630cce35d044065fc0f12a78645a15b 100644 |
| --- a/Source/core/layout/LayoutObject.cpp |
| +++ b/Source/core/layout/LayoutObject.cpp |
| @@ -106,6 +106,12 @@ static bool gDisablePaintInvalidationStateAsserts = false; |
| using namespace HTMLNames; |
| +const LayoutUnit& caretWidth() |
|
eae
2015/05/26 18:56:31
I'm curious, why did you switch this to me a funct
szager1
2015/05/27 05:59:42
Previously, this was a global static variable, but
|
| +{ |
| + static LayoutUnit gCaretWidth(1); |
| + return gCaretWidth; |
| +} |
| + |
| #if ENABLE(ASSERT) |
| LayoutObject::SetLayoutNeededForbiddenScope::SetLayoutNeededForbiddenScope(LayoutObject& layoutObject) |