Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 #ifndef StyleBuilder_h | 31 #ifndef StyleBuilder_h |
| 32 #define StyleBuilder_h | 32 #define StyleBuilder_h |
| 33 | 33 |
| 34 #include "CSSPropertyNames.h" | 34 #include "CSSPropertyNames.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 class CSSValue; | 38 class CSSValue; |
| 39 class Document; | 39 class Document; |
| 40 class RenderStyle; | 40 class RenderStyle; |
| 41 class StyleResolver; | |
| 42 class StyleResolverState; | 41 class StyleResolverState; |
| 43 | 42 |
| 44 class StyleBuilder { | 43 class StyleBuilder { |
| 45 public: | 44 public: |
| 46 static bool applyProperty(CSSPropertyID, StyleResolver*, StyleResolverState& , CSSValue*, bool isInitial, bool isInherit); | 45 // FIXME: What's the endgame for this function? |
|
eseidel
2013/08/01 21:09:53
What does endgame mean here?
dglazkov
2013/08/01 21:16:19
--> "Will this need further refactoring or is this
| |
| 46 static void applyProperty(CSSPropertyID, StyleResolverState&, CSSValue*); | |
|
esprehn
2013/08/01 21:07:13
This is the public API to the style builder system
| |
| 47 | 47 |
| 48 // This function contains the gigantic old switch-statement of properties in herited from | 48 // This function contains the gigantic old switch-statement of properties in herited from |
| 49 // StyleResolver. Each property should be migrated over to a new StyleBuilde r templated | 49 // StyleResolver. Each property should be migrated over to a new StyleBuilde r templated |
| 50 // function and removed from this code. Once they're all moved, this functio n can die. | 50 // function and removed from this code. Once they're all moved, this functio n can die. |
| 51 static void oldApplyProperty(CSSPropertyID, StyleResolver*, StyleResolverSta te&, CSSValue*, bool isInitial, bool isInherit); | 51 static void oldApplyProperty(CSSPropertyID, StyleResolverState&, CSSValue*, bool isInitial, bool isInherit); |
|
eseidel
2013/08/01 21:09:53
It's uncclear if it should depend on StyleResolver
| |
| 52 | |
| 53 private: | |
| 54 static bool applyProperty(CSSPropertyID, StyleResolverState&, CSSValue*, boo l isInitial, bool isInherit); | |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } | 57 } |
| 55 | 58 |
| 56 #endif | 59 #endif |
| OLD | NEW |