| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // Only add properties that have no !important counterpart present | 290 // Only add properties that have no !important counterpart present |
| 291 if (!propertyIsImportant(property.id()) || property.isImportant()) | 291 if (!propertyIsImportant(property.id()) || property.isImportant()) |
| 292 setProperty(property); | 292 setProperty(property); |
| 293 } | 293 } |
| 294 | 294 |
| 295 String StylePropertySet::asText() const | 295 String StylePropertySet::asText() const |
| 296 { | 296 { |
| 297 return StylePropertySerializer(*this).asText(); | 297 return StylePropertySerializer(*this).asText(); |
| 298 } | 298 } |
| 299 | 299 |
| 300 bool StylePropertySet::hasFailedOrCanceledSubresources() const | |
| 301 { | |
| 302 unsigned size = propertyCount(); | |
| 303 for (unsigned i = 0; i < size; ++i) { | |
| 304 if (propertyAt(i).value()->hasFailedOrCanceledSubresources()) | |
| 305 return true; | |
| 306 } | |
| 307 return false; | |
| 308 } | |
| 309 | |
| 310 // This is the list of properties we want to copy in the copyBlockProperties() f
unction. | 300 // This is the list of properties we want to copy in the copyBlockProperties() f
unction. |
| 311 // It is the list of CSS properties that apply specially to block-level elements
. | 301 // It is the list of CSS properties that apply specially to block-level elements
. |
| 312 static const CSSPropertyID staticBlockProperties[] = { | 302 static const CSSPropertyID staticBlockProperties[] = { |
| 313 CSSPropertyOrphans, | 303 CSSPropertyOrphans, |
| 314 CSSPropertyOverflow, // This can be also be applied to replaced elements | 304 CSSPropertyOverflow, // This can be also be applied to replaced elements |
| 315 CSSPropertyWebkitAspectRatio, | 305 CSSPropertyWebkitAspectRatio, |
| 316 CSSPropertyPageBreakAfter, | 306 CSSPropertyPageBreakAfter, |
| 317 CSSPropertyPageBreakBefore, | 307 CSSPropertyPageBreakBefore, |
| 318 CSSPropertyPageBreakInside, | 308 CSSPropertyPageBreakInside, |
| 319 CSSPropertyTextAlign, | 309 CSSPropertyTextAlign, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 result.appendLiteral(": "); | 498 result.appendLiteral(": "); |
| 509 result.append(propertyValue()->cssText()); | 499 result.append(propertyValue()->cssText()); |
| 510 if (isImportant()) | 500 if (isImportant()) |
| 511 result.appendLiteral(" !important"); | 501 result.appendLiteral(" !important"); |
| 512 result.append(';'); | 502 result.append(';'); |
| 513 return result.toString(); | 503 return result.toString(); |
| 514 } | 504 } |
| 515 | 505 |
| 516 | 506 |
| 517 } // namespace blink | 507 } // namespace blink |
| OLD | NEW |