Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / platform / graphics / PaintInvalidationReason.cpp
blob67f6aa86c3f6203a23b3cb1ddc3f931ffb70db89
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "config.h"
6 #include "platform/graphics/PaintInvalidationReason.h"
8 #include "wtf/Assertions.h"
10 namespace blink {
12 const char* paintInvalidationReasonToString(PaintInvalidationReason reason)
14 switch (reason) {
15 case PaintInvalidationNone:
16 return "none";
17 case PaintInvalidationIncremental:
18 return "incremental";
19 case PaintInvalidationRectangle:
20 return "invalidate paint rectangle";
21 case PaintInvalidationFull:
22 return "full";
23 case PaintInvalidationStyleChange:
24 return "style change";
25 case PaintInvalidationForcedByLayout:
26 return "forced by layout";
27 case PaintInvalidationCompositingUpdate:
28 return "compositing update";
29 case PaintInvalidationBorderBoxChange:
30 return "border box change";
31 case PaintInvalidationContentBoxChange:
32 return "content box change";
33 case PaintInvalidationLayoutOverflowBoxChange:
34 return "layout overflow box change";
35 case PaintInvalidationBoundsChange:
36 return "bounds change";
37 case PaintInvalidationLocationChange:
38 return "location change";
39 case PaintInvalidationBackgroundObscurationChange:
40 return "background obscuration change";
41 case PaintInvalidationBecameVisible:
42 return "became visible";
43 case PaintInvalidationBecameInvisible:
44 return "became invisible";
45 case PaintInvalidationScroll:
46 return "scroll";
47 case PaintInvalidationSelection:
48 return "selection";
49 case PaintInvalidationOutline:
50 return "outline";
51 case PaintInvalidationLayer:
52 return "layer";
53 case PaintInvalidationLayoutObjectInsertion:
54 return "layoutObject insertion";
55 case PaintInvalidationLayoutObjectRemoval:
56 return "layoutObject removal";
57 case PaintInvalidationSVGResourceChange:
58 return "SVG resource change";
59 case PaintInvalidationDelayedFull:
60 return "delayed full";
62 ASSERT_NOT_REACHED();
63 return "";