| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2010, 2011 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2011 Igalia S.L. | 4 * Copyright (C) 2011 Igalia S.L. |
| 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 5 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 return str; | 271 return str; |
| 272 } | 272 } |
| 273 | 273 |
| 274 bool StyledMarkupAccumulator::shouldApplyWrappingStyle(const Node& node) const | 274 bool StyledMarkupAccumulator::shouldApplyWrappingStyle(const Node& node) const |
| 275 { | 275 { |
| 276 // TODO(hajimehoshi): Use Strategy | 276 // TODO(hajimehoshi): Use Strategy |
| 277 return m_highestNodeToBeSerialized && m_highestNodeToBeSerialized->parentNod
e() == node.parentNode() | 277 return m_highestNodeToBeSerialized && m_highestNodeToBeSerialized->parentNod
e() == node.parentNode() |
| 278 && m_wrappingStyle && m_wrappingStyle->style(); | 278 && m_wrappingStyle && m_wrappingStyle->style(); |
| 279 } | 279 } |
| 280 | 280 |
| 281 bool StyledMarkupAccumulator::shouldAnnotate() const |
| 282 { |
| 283 return m_shouldAnnotate == AnnotateForInterchange || m_shouldAnnotate == Ann
otateForNavigationTransition; |
| 284 } |
| 285 |
| 281 } // namespace blink | 286 } // namespace blink |
| OLD | NEW |