OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
4 * reserved. | 4 * reserved. |
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 5 * Copyright (C) 2011 Adobe Systems Incorporated. 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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 m_surround = other.m_surround; | 360 m_surround = other.m_surround; |
361 m_rareNonInheritedData = other.m_rareNonInheritedData; | 361 m_rareNonInheritedData = other.m_rareNonInheritedData; |
362 | 362 |
363 // The flags are copied one-by-one because m_nonInheritedData.m_contains a | 363 // The flags are copied one-by-one because m_nonInheritedData.m_contains a |
364 // bunch of stuff other than real style data. | 364 // bunch of stuff other than real style data. |
365 // See comments for each skipped flag below. | 365 // See comments for each skipped flag below. |
366 m_nonInheritedData.m_effectiveDisplay = | 366 m_nonInheritedData.m_effectiveDisplay = |
367 other.m_nonInheritedData.m_effectiveDisplay; | 367 other.m_nonInheritedData.m_effectiveDisplay; |
368 m_nonInheritedData.m_originalDisplay = | 368 m_nonInheritedData.m_originalDisplay = |
369 other.m_nonInheritedData.m_originalDisplay; | 369 other.m_nonInheritedData.m_originalDisplay; |
370 m_nonInheritedData.m_overflowX = other.m_nonInheritedData.m_overflowX; | |
371 m_nonInheritedData.m_overflowY = other.m_nonInheritedData.m_overflowY; | |
372 m_nonInheritedData.m_verticalAlign = other.m_nonInheritedData.m_verticalAlign; | 370 m_nonInheritedData.m_verticalAlign = other.m_nonInheritedData.m_verticalAlign; |
373 m_nonInheritedData.m_position = other.m_nonInheritedData.m_position; | 371 m_nonInheritedData.m_position = other.m_nonInheritedData.m_position; |
374 m_nonInheritedData.m_hasViewportUnits = | 372 m_nonInheritedData.m_hasViewportUnits = |
375 other.m_nonInheritedData.m_hasViewportUnits; | 373 other.m_nonInheritedData.m_hasViewportUnits; |
376 m_nonInheritedData.m_breakBefore = other.m_nonInheritedData.m_breakBefore; | 374 m_nonInheritedData.m_breakBefore = other.m_nonInheritedData.m_breakBefore; |
377 m_nonInheritedData.m_breakAfter = other.m_nonInheritedData.m_breakAfter; | 375 m_nonInheritedData.m_breakAfter = other.m_nonInheritedData.m_breakAfter; |
378 m_nonInheritedData.m_breakInside = other.m_nonInheritedData.m_breakInside; | 376 m_nonInheritedData.m_breakInside = other.m_nonInheritedData.m_breakInside; |
379 m_nonInheritedData.m_hasRemUnits = other.m_nonInheritedData.m_hasRemUnits; | 377 m_nonInheritedData.m_hasRemUnits = other.m_nonInheritedData.m_hasRemUnits; |
380 | 378 |
381 // Correctly set during selector matching: | 379 // Correctly set during selector matching: |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 } | 802 } |
805 | 803 |
806 if (boxDirection() != other.boxDirection() || | 804 if (boxDirection() != other.boxDirection() || |
807 rtlOrdering() != other.rtlOrdering() || | 805 rtlOrdering() != other.rtlOrdering() || |
808 textAlign() != other.textAlign() || | 806 textAlign() != other.textAlign() || |
809 textTransform() != other.textTransform() || | 807 textTransform() != other.textTransform() || |
810 direction() != other.direction() || whiteSpace() != other.whiteSpace() || | 808 direction() != other.direction() || whiteSpace() != other.whiteSpace() || |
811 getWritingMode() != other.getWritingMode()) | 809 getWritingMode() != other.getWritingMode()) |
812 return true; | 810 return true; |
813 | 811 |
814 if (m_nonInheritedData.m_overflowX != other.m_nonInheritedData.m_overflowX || | 812 if (overflowX() != other.overflowX() || overflowY() != other.overflowY() || |
815 m_nonInheritedData.m_overflowY != other.m_nonInheritedData.m_overflowY || | |
816 clear() != other.clear() || getUnicodeBidi() != other.getUnicodeBidi() || | 813 clear() != other.clear() || getUnicodeBidi() != other.getUnicodeBidi() || |
817 floating() != other.floating() || | 814 floating() != other.floating() || |
818 m_nonInheritedData.m_originalDisplay != | 815 m_nonInheritedData.m_originalDisplay != |
819 other.m_nonInheritedData.m_originalDisplay) | 816 other.m_nonInheritedData.m_originalDisplay) |
820 return true; | 817 return true; |
821 | 818 |
822 if (isDisplayTableType(display())) { | 819 if (isDisplayTableType(display())) { |
823 if (borderCollapse() != other.borderCollapse() || | 820 if (borderCollapse() != other.borderCollapse() || |
824 emptyCells() != other.emptyCells() || | 821 emptyCells() != other.emptyCells() || |
825 captionSide() != other.captionSide() || | 822 captionSide() != other.captionSide() || |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2476 if (value < 0) | 2473 if (value < 0) |
2477 fvalue -= 0.5f; | 2474 fvalue -= 0.5f; |
2478 else | 2475 else |
2479 fvalue += 0.5f; | 2476 fvalue += 0.5f; |
2480 } | 2477 } |
2481 | 2478 |
2482 return roundForImpreciseConversion<int>(fvalue / zoomFactor); | 2479 return roundForImpreciseConversion<int>(fvalue / zoomFactor); |
2483 } | 2480 } |
2484 | 2481 |
2485 } // namespace blink | 2482 } // namespace blink |
OLD | NEW |